/* ============================================================
   stickerbell — marketing site (frontend/site/)
   Launch-readiness § Phase 5, 2026-10-03.

   Layout idea: the page is a wall things get stuck to. The brand's one
   physical object — a paper sign with a peeled corner — recurs as the
   card shape (the dog-ear), never as decoration for its own sake.
   Mobile-first; no framework; iOS rules from CLAUDE.md apply (stretch +
   margin:auto in flex columns, inputs >= 1rem).
   ============================================================ */

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --red:      #BE0126;
  --red-deep: #96011e;
  --ink:      #1c1c1e;
  --ink-2:    #3d3a3b;
  --muted:    #6b6468;
  --line:     #ebe5e3;
  --paper:    #ffffff;
  --wall:     #f7f3f1;   /* warm grey, the wall the signs hang on */
  --night:    #161315;
  --night-2:  #241f22;
  --ok:       #1f8a4c;

  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-sm: .6rem;
  --r:    1rem;
  --r-lg: 1.5rem;
  --max:  1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--sb-frame, var(--max)); margin: 0 auto; padding-inline: var(--sb-gutter, 20px); }   /* the site frame (site-chrome.css) */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--red);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 0; border-radius: 999px; padding: .95rem 1.4rem;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 35%, transparent); outline-offset: 2px; }
.btn-red  { background: var(--red); color: #fff; box-shadow: 0 6px 18px -8px rgba(190,1,38,.7); }
.btn-red:hover { background: var(--red-deep); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }

/* The header and footer are the site-wide ones (includes/site_chrome.php,
   frontend/shared/site-chrome.css) since 2026-10-12. */

/* ---------- hero ---------- */
.hero { padding-block: 3rem 3.5rem; overflow: hidden; }
.hero .wrap { display: grid; gap: 3rem; }
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 4.4rem); font-weight: 760; letter-spacing: -.035em; margin-top: .8rem; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin-top: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: var(--muted); }
.hero-note b { color: var(--ink); font-weight: 600; }

/* the composition: a real sign on the wall, and the phone it rings */
.scene { position: relative; min-height: 420px; display: flex; align-items: stretch; }
.hero { --behind: var(--paper); }   /* the hero sits on white, not the wall */
.sign {
  position: relative; width: 250px; margin: 0 auto auto 4%;
  background: var(--paper); border-radius: 14px; padding: 18px 18px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 22px 44px -18px rgba(40,10,10,.35);
  transform: rotate(-3deg); text-align: center;
}
a.sign { display: block; text-decoration: none; color: inherit; transition: transform .2s; }
a.sign:hover { transform: rotate(-2deg) translateY(-3px); }
a.sign:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.sign-brand { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.sign-brand img { height: 22px; width: auto; }
.sign-title { font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-top: .7rem; }
.sign-sub { font-size: .8rem; color: var(--muted); }
.sign-qr { position: relative; width: 170px; aspect-ratio: 1; max-width: 100%; margin: .8rem auto .5rem; }
.sign-qr img.qr { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.sign-qr .qr-mark { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; transform: translate(-50%,-50%);
  background: #fff; border-radius: 9px; padding: 4px; }
.sign-qr .qr-mark img { width: 100%; height: 100%; display: block; }
.sign-cta { font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.sign-try { font-size: .78rem; color: var(--red); font-weight: 600; margin-top: .25rem; }
/* the peeled corner — the brand's one recurring shape */
.dogear::after {
  content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px;
  background: linear-gradient(225deg, var(--behind, var(--wall)) 0 50%, #d9d0cf 50% 58%, #f4efee 58%);
  border-top-right-radius: inherit; filter: drop-shadow(-2px 3px 3px rgba(0,0,0,.12));
}

.phone {
  position: absolute; right: 2%; bottom: 0; width: 200px; aspect-ratio: 9 / 18.5;
  background: #121212; border-radius: 34px; padding: 9px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  transform: rotate(4deg);
}
.screen {
  width: 100%; height: 100%; border-radius: 26px; background: #f2f2f7;
  display: flex; flex-direction: column; align-items: stretch; padding: 16px 10px; gap: 10px;
}
.vcard { background: #fff; border-radius: 16px; padding: 18px 12px; text-align: center; margin: auto 0; display: grid; justify-items: center; gap: 6px; }
.vbrand { width: 86px; height: auto; margin-bottom: 4px; }
.vname { font-weight: 700; color: #BE0126; font-size: .95rem; }   /* the doorbell's colour, as on the visitor page */
.vstate { font-weight: 700; font-size: .85rem; color: #1c1c1e; }
.vsub { font-size: .68rem; color: #6e6e73; line-height: 1.4; }
.vclock { font-weight: 700; font-size: .8rem; color: #1c1c1e; font-variant-numeric: tabular-nums; margin-top: 2px; }
.scene .sb-ring { --sb-dot: 18px; }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.band { padding-block: 4.5rem; }
.band-wall { background: var(--wall); }
.band-night { background: var(--night); color: #d9d3d6; }
.band-night h2, .band-night h3 { color: #fff; }
.sec-head { max-width: 40rem; margin-bottom: 2.5rem; }
.sec-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 740; letter-spacing: -.03em; margin-top: .6rem; }
.sec-head p { margin-top: .9rem; color: var(--muted); }
.band-night .sec-head p { color: #b4abb0; }

/* the audible bell — the owner app */
.app { display: grid; gap: 3rem; align-items: center; }
.app-h { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 740; letter-spacing: -.03em; margin-top: .6rem; }
.app-lead { margin-top: 1rem; color: #b4abb0; max-width: 34rem; }
.app-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; max-width: 34rem; }
.app-points li { padding-left: 1.4rem; position: relative; color: #b4abb0; }
.app-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); }
.app-points b { color: #fff; font-weight: 600; }
.stores { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.store { display: inline-block; line-height: 0; border-radius: 9px; }
.store img { height: 44px; width: auto; display: block; }
a.store:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.app-free { margin-top: .9rem; font-size: .9rem; color: #b4abb0; }

.app-scene { position: relative; display: flex; align-items: stretch; min-height: 440px; }
.lock {
  width: 230px; aspect-ratio: 9 / 19; margin: auto; background: #0b0b0c; border-radius: 38px; padding: 9px;
  box-shadow: 0 0 0 1px #2f2a2d, 0 40px 80px -30px rgba(0,0,0,.8); position: relative; z-index: 1;
}
.lock-screen {
  width: 100%; height: 100%; border-radius: 30px; padding: 46px 12px 12px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #4a1520 0%, #1d1418 55%, #120e10 100%);
  display: flex; flex-direction: column; align-items: stretch;
}
.lock-time { font-size: 3.1rem; font-weight: 300; color: #fff; letter-spacing: -.02em; line-height: 1; }
.lock-date { font-size: .78rem; color: rgba(255,255,255,.75); margin-top: .35rem; }
.notif {
  margin-top: 1.6rem; display: flex; gap: .55rem; text-align: left; padding: .65rem .7rem;
  background: rgba(245,240,242,.82); border-radius: 16px; color: #1c1c1e;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform-origin: 50% 0;
  animation: notif-pop 4s ease-out infinite;   /* always visible; a small pop on each ring */
}
.notif-old { margin-top: .5rem; opacity: .62; animation: none; }
.notif-icon { width: 30px; height: 30px; flex: none; border-radius: 7px; background: #fff; padding: 2px; }
.notif-body { min-width: 0; }
.notif-top { display: flex; justify-content: space-between; font-size: .62rem; color: #6e6e73; text-transform: uppercase; letter-spacing: .03em; }
.notif-title { font-weight: 700; font-size: .8rem; margin-top: .1rem; line-height: 1.25; }
.notif-text { font-size: .72rem; color: #3a3a3c; margin-top: .1rem; line-height: 1.3; }
.waves { position: absolute; left: 50%; top: 31%; width: 0; height: 0; z-index: 0; }
.waves i { position: absolute; left: 0; top: 0; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%;
  border: 2px solid rgba(190,1,38,.55); opacity: 0; animation: wave 4s ease-out infinite; }
.waves i:nth-child(2) { animation-delay: .25s; }
.waves i:nth-child(3) { animation-delay: .5s; }
@keyframes notif-pop {
  0%, 12% { transform: none; }
  15%     { transform: scale(1.035); }
  20%, 100% { transform: none; }
}
@keyframes wave {
  0%, 12% { opacity: 0; transform: scale(.55); }
  16%     { opacity: .9; }
  55%, 100% { opacity: 0; transform: scale(1.5); }
}
@media (prefers-reduced-motion: reduce) {
  .notif, .waves i { animation: none; }
}

/* demo */
.demo { display: grid; gap: 2rem; align-items: center; }
.demo-qr { background: #fff; border-radius: var(--r-lg); padding: 18px; width: 230px; max-width: 100%; position: relative; }
.demo-qr img.qr { width: 100%; display: block; image-rendering: pixelated; }
.demo-qr .qr-mark { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%,-50%); background:#fff; border-radius: 10px; padding: 4px; }
.demo-qr .qr-mark img { width: 100%; height: 100%; display: block; }
.demo-steps { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .8rem; counter-reset: s; }
.demo-steps li { counter-increment: s; display: flex; gap: .8rem; align-items: baseline; }
.demo-steps li::before { content: counter(s); flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.demo-alt { margin-top: 1.4rem; font-size: .95rem; }
.demo-alt a { color: #fff; }

/* how it works */
.steps { display: grid; gap: 1.2rem; }
.step { background: var(--paper); border-radius: var(--r); padding: 1.6rem 1.4rem; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.step-n { font-weight: 800; font-size: .85rem; color: var(--red); letter-spacing: .08em; }
.step h3 { font-size: 1.3rem; font-weight: 700; margin-top: .4rem; }
.step p { margin-top: .5rem; color: var(--muted); font-size: 1rem; }

/* features */
.features { display: grid; gap: 2rem 2.5rem; }
.feature h3 { font-size: 1.15rem; font-weight: 700; }
.feature p { margin-top: .4rem; color: var(--muted); font-size: 1rem; }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; background: #fdecef; color: var(--red);
  display: flex; align-items: center; justify-content: center; margin-bottom: .8rem; }
.feature .ic svg { width: 22px; height: 22px; }

/* use cases — each one a sticker on the wall */
.uses { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.use { background: var(--paper); border-radius: 14px; padding: 1.3rem 1.3rem 1.2rem; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.use h3 { font-size: 1.05rem; font-weight: 700; padding-right: 1.6rem; }
.use p { margin-top: .4rem; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* comparison */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid var(--line); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--wall); }
.compare thead th.us { color: var(--red); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.compare td.us { color: var(--ink); font-weight: 600; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* pricing */
.price-card { background: var(--paper); border-radius: var(--r-lg); padding: 2.2rem 1.8rem; max-width: 30rem; margin: 0 auto; position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 30px 60px -30px rgba(60,20,20,.25); }
.price { display: flex; align-items: baseline; gap: .4rem; margin-top: .8rem; color: var(--ink); }
.price b { font-size: 4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .7rem; }
.price-list li { display: flex; gap: .65rem; align-items: baseline; }
.price-list li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: none; }
.price-fine { margin-top: 1rem; font-size: .88rem; color: var(--muted); }

/* faq */
.faq { max-width: 46rem; display: grid; gap: .6rem; }
.faq details { background: var(--paper); border-radius: var(--r); padding: 1.1rem 1.3rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 700; font-size: 1.3rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .7rem; color: var(--muted); }

/* closing call */
.closer { text-align: center; }
.closer h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 760; letter-spacing: -.035em; }
.closer p { margin: 1rem auto 0; max-width: 32rem; color: #b4abb0; }
.closer .hero-cta { justify-content: center; }

/* footer */

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: auto 1fr; gap: 3rem; }
  .app { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
}
@media (min-width: 960px) {
  .hero { padding-block: 4.5rem 5rem; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .scene { min-height: 470px; }
  .features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .scene { min-height: 380px; }
  .sign { width: 215px; margin-left: 0; }
  .phone { width: 170px; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
