/* ============================================================
   Revvlift Atlas — home page styles.
   Mobile first: base rules are for phones; wider screens are
   layered on in the @media blocks inside each section.
   Colours match dashboard/src/theme.css.

   COLOUR RULE: dark green fills (--forest) are for things a visitor
   can click. Everything else uses mint, pale mint or neutrals, so
   nothing that is not a button ever looks like one.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --bg-mint: #e8f7f1;
  --ink: #0d2219;
  --ink-2: #44594f;
  --ink-3: #5f7369;          /* small text, 4.8:1 on white */
  --line: #e3ebe7;
  --line-2: #cfdcd6;

  --forest: #004c3f;         /* logo green: BUTTONS ONLY */
  --forest-2: #00382e;
  --forest-deep: #062b22;    /* the closing call-to-action band */
  --green: #0f7d62;          /* green text on white, 4.9:1 */
  --mint: #3ec9a7;           /* brand accent */
  --mint-2: #67d4b4;
  --mint-pale: #d6f0e8;

  --warn: #b54708;
  --warn-bg: #fdf1e3;
  --bad: #b42318;
  --bad-bg: #fbeae8;
  --good-bg: #e4f5ef;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 34, 25, .06), 0 2px 8px rgba(13, 34, 25, .05);
  --shadow: 0 2px 4px rgba(13, 34, 25, .04), 0 12px 32px -8px rgba(13, 34, 25, .14);
  --shadow-lg: 0 4px 8px rgba(13, 34, 25, .04), 0 32px 64px -16px rgba(13, 34, 25, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 20px;
  --hdr-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.12; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- buttons (the only dark green fills on the page) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -6px rgba(0, 76, 63, .55); }
.btn-primary:hover { background: var(--forest-2); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 24px -8px rgba(0, 76, 63, .6); transform: translateY(-1px); }
.btn-mint { background: var(--mint); color: #05291f; box-shadow: 0 10px 30px -10px rgba(62, 201, 167, .7); }
.btn-mint:hover { background: var(--mint-2); transform: translateY(-1px); }
.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- small shared pieces ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip-good { background: var(--good-bg); color: var(--green); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #f7c56b, #e0883a); color: #fff; font-weight: 800; font-size: 12px; }
.av-lg { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
.stars { color: #e8a317; letter-spacing: 1px; font-size: 13px; }
.up { color: var(--green); font-weight: 700; font-size: 12px; }
.mini-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); font-weight: 500; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--good-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.4 2.4 4.6-5.2' fill='none' stroke='%230f7d62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- the name: same lockup as the video ("heavy" in video/src/scenes.jsx):
   "Atlas" is 1.27 × the logo's height, extra bold, on the logo's baseline,
   with a gap of 0.27 × the logo's height. The logo image has no padding, so
   its bottom edge IS the text baseline. ---------- */
.brand { --logo-h: 22px; display: inline-flex; align-items: baseline; gap: calc(var(--logo-h) * .274); text-decoration: none; flex: none; padding: 10px 0; }
.brand img { height: var(--logo-h); width: auto; }
.brand span { font-size: calc(var(--logo-h) * 1.274); font-weight: 800; letter-spacing: -.032em; line-height: 1; color: var(--mint); }

/* ============ header ============ */
.hdr {
  position: sticky; top: 0; z-index: 50; height: var(--hdr-h);
  background: rgba(255,255,255,.72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.hdr.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.86); box-shadow: 0 6px 24px -18px rgba(13,34,25,.4); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.hdr-nav { display: none; gap: 4px; margin-left: 16px; }
.hdr-nav a, .hdr-login { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.hdr-nav a:hover, .hdr-login:hover { color: var(--ink); background: var(--bg-soft); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-login, .hdr-cta { display: none; }
.menu-btn { width: 44px; height: 44px; border-radius: 10px; display: grid; place-content: center; gap: 6px; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(13,34,25,.35); animation: drop .28s var(--ease); }
.menu-in { display: grid; padding-top: 8px; padding-bottom: 20px; }
.menu-in a:not(.btn) { padding: 14px 4px; font-weight: 600; font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-in .btn { margin-top: 16px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 420px) { .hdr-cta { display: inline-flex; } }
@media (min-width: 960px) {
  .brand { --logo-h: 24px; }
  .hdr-nav, .hdr-login { display: flex; }
  .menu-btn, .menu { display: none !important; }
}

/* ============ hero ============ */
.hero { position: relative; padding: 40px 0 24px; overflow: clip; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero .o1 { width: 520px; height: 520px; left: -180px; top: -160px; background: radial-gradient(circle, #bdeedd 0%, transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.hero .o2 { width: 560px; height: 560px; right: -220px; top: 120px; background: radial-gradient(circle, #c9f2e6 0%, transparent 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 75%);
}
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }

.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.pill-pin { width: 15px; height: 15px; flex: none; }
.pill-pin path { fill: var(--green); }
.pill-pin circle { fill: #fff; }

.hero-h1 { margin-top: 20px; font-size: clamp(36px, 11vw, 48px); line-height: 1.04; letter-spacing: -.04em; }
.hero-h1 .line { display: inline; }
.hero-h1 .line::after { content: ' '; }
.hero-h1 em {
  font-style: normal; position: relative;
  background: linear-gradient(100deg, var(--forest) 0%, #12936f 60%, #1fae88 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-sub { margin-top: 20px; max-width: 620px; font-size: 17px; color: var(--ink-2); }
.hero-ctas { margin-top: 28px; display: grid; width: 100%; max-width: 420px; }
.hero-ticks { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero-ticks li { display: inline-flex; align-items: center; gap: 6px; }
.hero-ticks svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.js .rise { opacity: 0; transform: translateY(18px); animation: rise .8s calc(var(--d, 0) * 90ms + 80ms) var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* the video */
.stage-wrap { margin-top: 40px; margin-bottom: 16px; }
.stage { position: relative; max-width: 1040px; margin: 0 auto; }
.film {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #062b22;
  box-shadow: 0 0 0 1px rgba(13,34,25,.08), 0 2px 6px rgba(13,34,25,.06), 0 40px 80px -24px rgba(0, 56, 46, .45);
  transform: perspective(1600px) rotateX(var(--tilt, 0deg)) scale(var(--tscale, 1)); transform-origin: 50% 0; will-change: transform;
}
.film::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; z-index: 3; pointer-events: none; }
.film video { width: 100%; height: 100%; object-fit: cover; background: #062b22; }
.film video::cue { background: rgba(6, 30, 23, .82); color: #fff; font-family: var(--font); font-weight: 600; font-size: .9em; }
.film-play {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(ellipse at center, rgba(6,43,34,.15), rgba(6,43,34,.45)); transition: opacity .35s var(--ease);
}
.film-play-btn { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(0,0,0,.3), 0 0 0 10px rgba(255,255,255,.18); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.film-play-btn svg { width: 28px; height: 28px; fill: var(--forest); transform: translateX(2px); }
.film-play:hover .film-play-btn { transform: scale(1.08); box-shadow: 0 14px 40px rgba(0,0,0,.35), 0 0 0 16px rgba(255,255,255,.14); }
.film-play-label { color: #fff; font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px; background: rgba(6, 43, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.film.playing .film-play { opacity: 0; pointer-events: none; }
.film-end { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(6, 43, 34, .88); color: #fff; text-align: center; padding: 16px; animation: fade .4s var(--ease); }
.film-end p { font-weight: 700; font-size: clamp(17px, 3vw, 24px); }
.film-replay { color: var(--mint-2); font-weight: 700; font-size: 15px; padding: 8px 12px; text-decoration: underline; text-underline-offset: 3px; }
@keyframes fade { from { opacity: 0; } }

/* floating cards around the video */
.float { position: absolute; z-index: 5; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px 12px; font-size: 12px; pointer-events: none; transition: opacity .4s var(--ease); }
.js .float { opacity: 0; animation: floatIn .9s var(--ease) forwards, bob 6s 1.8s ease-in-out infinite; }
.stage.is-playing .float { opacity: 0 !important; }
.f-review { display: none; width: 184px; animation-delay: 1.1s, 2s; }
.f-review .f-row { display: flex; align-items: center; gap: 6px; }
.f-review .av { width: 22px; height: 22px; border-radius: 7px; font-size: 9px; }
.f-review b { font-size: 12px; }
.f-review .stars { font-size: 10px; margin-left: auto; }
.f-review p { margin: 6px 0 8px; color: var(--ink-2); font-weight: 500; }
.f-score { right: 10px; bottom: -28px; width: 132px; animation-delay: 1.3s, 2.6s; }
.f-score small, .f-calls small { display: block; color: var(--ink-3); font-weight: 600; font-size: 11px; }
.f-score-row { display: flex; align-items: baseline; gap: 6px; }
.f-score-row b { font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.f-bar { display: block; height: 6px; border-radius: 6px; background: var(--bg-soft); margin-top: 4px; overflow: hidden; }
.f-bar i { display: block; height: 100%; width: 82%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--mint)); }
.f-calls { display: none; align-items: center; gap: 10px; animation-delay: 1.5s, 3.2s; }
.f-calls b { font-size: 18px; letter-spacing: -.02em; }
.f-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-mint); }
.f-ic svg { width: 17px; height: 17px; fill: var(--green); }
@keyframes floatIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

@media (min-width: 640px) {
  .hero { padding-top: 64px; }
  .hero-h1 { font-size: clamp(48px, 8.4vw, 80px); line-height: 1.02; }
  .hero-h1 .line { display: block; }
  .hero-h1 .line::after { content: none; }
  .hero-h1 em { white-space: nowrap; }
  .hero-sub { font-size: 20px; }
  .hero-ctas { width: auto; }
  .stage-wrap { margin-top: 56px; }
  .film-play-btn { width: 88px; height: 88px; }
  .film-play-btn svg { width: 34px; height: 34px; }
  .float { font-size: 13px; padding: 14px 16px; }
  .f-review { display: block; left: -12px; top: 12%; width: 230px; }
  .f-review .av { width: 26px; height: 26px; font-size: 10px; }
  .f-review b { font-size: 13px; }
  .f-score { right: -12px; bottom: auto; top: 46%; width: 168px; }
  .f-score-row b { font-size: 34px; }
  .f-calls { display: flex; left: -12px; bottom: -24px; }
}
@media (min-width: 1100px) { .hero { padding-top: 88px; } .stage-wrap { margin-top: 64px; } }
@media (min-width: 1280px) { .f-review { left: -72px; } .f-score { right: -64px; } .f-calls { left: -40px; bottom: -32px; } }
@media (min-width: 900px) and (max-height: 820px) {
  .hero { padding-top: 56px; }
  .hero-h1 { font-size: clamp(48px, 6.4vw, 72px); }
  .stage-wrap { margin-top: 48px; }
}

/* ============ sections ============ */
.sec { padding: 88px 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(32px, 7.6vw, 54px); letter-spacing: -.035em; line-height: 1.06; }
.sec-sub { margin-top: 16px; font-size: 18px; color: var(--ink-2); }
@media (min-width: 900px) { .sec { padding: 128px 0; } .sec-head { margin-bottom: 64px; } .sec-sub { font-size: 20px; } }

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ============ you can't fix what you can't see ============ */
.unseen { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.checks { display: grid; gap: 14px; max-width: 1100px; margin: 0 auto; }
.check { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: border-color .5s; }
.check h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.3; }
.ans { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 15px; line-height: 1.45; }
.ans-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; position: relative; background: var(--warn-bg); margin-top: -1px; }
.ans-ic::after { content: '!'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--warn); font-weight: 800; font-size: 13px; }
.ans-info .ans-ic { background: var(--good-bg); }
.ans-info .ans-ic::after { content: '↗'; color: var(--green); font-size: 12px; }
.ans-txt { color: var(--ink); }
/* waiting → checking → answered, driven by home.js */
.js .check .ans-ic, .js .check .ans-info .ans-ic { background: var(--bg-soft); }
.js .check .ans-ic::after, .js .check .ans-info .ans-ic::after { content: '?'; color: var(--ink-3); font-size: 13px; }
.js .check .ans-txt { color: transparent; border-radius: 6px; background: linear-gradient(90deg, var(--bg-soft) 0%, var(--line) 50%, var(--bg-soft) 100%) 0 0 / 200% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: color .5s var(--ease); }
.js .check.scan .ans-txt { animation: shimmer 1s linear infinite; }
.js .check.done .ans-txt { color: var(--ink); background: none; animation: none; }
.js .check.done .ans-ic { background: var(--warn-bg); animation: pop .45s var(--ease); }
.js .check.done .ans-ic::after { content: '!'; color: var(--warn); }
.js .check.done .ans-info .ans-ic { background: var(--good-bg); }
.js .check.done .ans-info .ans-ic::after { content: '↗'; color: var(--green); font-size: 12px; }
.js .check.done { border-color: #ecdccb; }
.js .check.done:has(.ans-info) { border-color: #cdeee2; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.checks-note { margin-top: 20px; text-align: center; font-size: 13px; color: var(--ink-3); }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; gap: 18px; } .check { padding: 26px 24px; } }
@media (min-width: 1024px) { .checks { grid-template-columns: repeat(3, 1fr); gap: 20px; } .check h3 { font-size: 20px; } }

/* ============ on google: before and after ============ */
.seen { overflow-x: clip; }
.seen-in { display: grid; gap: 40px; align-items: center; max-width: 1100px; }
.seen-txt { text-align: center; }
.seen-txt h2 { font-size: clamp(32px, 7.6vw, 52px); letter-spacing: -.035em; line-height: 1.06; }
.seen-stats { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seen-stats > div { padding: 18px 14px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); }
.seen-stats b { display: block; font-size: clamp(36px, 9vw, 48px); letter-spacing: -.05em; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.seen-stats > div > span { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.seen-src { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

.seen-vis { position: relative; max-width: 440px; width: 100%; margin: 0 auto; }
.seen-vis::before { content: ''; position: absolute; inset: 10% -6% -4% -6%; z-index: -1; border-radius: 40px; background: radial-gradient(ellipse at 50% 50%, rgba(62,201,167,.25), transparent 70%); filter: blur(24px); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 0 auto 16px; max-width: 300px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); isolation: isolate; }
.seg-btn { position: relative; z-index: 1; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); transition: color .3s; }
.seg-btn[aria-pressed="true"] { color: #fff; }
.seg-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--forest); box-shadow: 0 6px 14px -6px rgba(0,76,63,.6); transform: translateX(100%); transition: transform .45s var(--ease); }
.seg.before .seg-pill { transform: none; }

/* a Google-style listing: Google's own type and colours, so it reads as "Google" */
.gcard { --g-ink: #202124; --g-muted: #70757a; --g-blue: #1a73e8; --g-red: #d93025; --g-green: #188038; font-family: Roboto, Arial, sans-serif; color: var(--g-ink); background: #fff; border: 1px solid #dadce0; border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg); letter-spacing: 0; }
.gcard .g-a { display: none; }
.gcard.is-after .g-a, .gcard .fxp.on .g-a { display: inline; }
.gcard.is-after .g-b, .gcard .fxp.on .g-b { display: none; }
.g-top { display: flex; justify-content: space-between; gap: 12px; }
.g-name { font-size: 22px; font-weight: 500; line-height: 1.25; }
.g-rating { margin-top: 2px; font-size: 14px; }
.g-rating .stars { font-size: 12px; }
.g-muted { color: var(--g-muted); font-size: 14px; }
.g-hours { margin-top: 8px; font-size: 14px; }
.g-hours .g-b { color: var(--g-red); }
.g-hours .g-a b { color: var(--g-green); font-weight: 500; }
.g-actions { display: flex; gap: 8px; margin-top: 14px; }
.g-actions span { flex: 1; text-align: center; padding: 7px 4px; border-radius: 999px; border: 1px solid #dadce0; color: var(--g-blue); font-size: 13px; font-weight: 500; }
.g-photos { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 4px; height: 92px; margin-top: 14px; border-radius: 12px; overflow: hidden; }
.ph { background: #e8eaed; transition: background .5s var(--ease); }
.gcard:not(.is-after) .g-photos:not(.on) .ph:nth-child(n+3) { background: #f1f3f4; }
.gcard.is-after .ph:nth-child(1), .g-photos.on .ph:nth-child(1) { background: linear-gradient(135deg, #f6c56d, #d9822b); }
.gcard.is-after .ph:nth-child(2), .g-photos.on .ph:nth-child(2) { background: linear-gradient(135deg, #e9b48a, #a8643a); }
.gcard.is-after .ph:nth-child(3), .g-photos.on .ph:nth-child(3) { background: linear-gradient(135deg, #f3dcb1, #c9a26b); }
.gcard.is-after .ph:nth-child(4), .g-photos.on .ph:nth-child(4) { background: linear-gradient(135deg, #b8d8c8, #6aa58a); }
.ph-count { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(32,33,36,.72); color: #fff; font-size: 12px; }
.g-post, .g-review { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ebedef; font-size: 14px; line-height: 1.45; }
.g-label { font-size: 12px; font-weight: 500; color: var(--g-muted); margin-bottom: 4px; }
.g-rv .stars { font-size: 11px; }
.g-reply { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #f8f9fa; }
.g-reply .g-a b { font-weight: 500; }
.g-hours, .g-post p:last-child { border-radius: 6px; }
.gcard.flash .g-hours, .gcard.flash .g-photos, .gcard.flash .g-post p:last-child, .gcard.flash .g-reply, .gcard .fxp.flash { animation: changed 1.2s var(--ease); }

/* the before → after story: a red label on each gap, each turning green as Atlas fixes it */
.g-hours, .g-post, .g-review { position: relative; }
.gfix { position: absolute; z-index: 2; right: 0; top: 11px; display: grid; font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: .02em; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .35s var(--ease); pointer-events: none; }
.g-hours .gfix { top: 50%; margin-top: -10px; }
.g-photos .gfix { top: 8px; right: 8px; }
.gfix > span { grid-area: 1 / 1; padding: 3px 9px; border-radius: 999px; color: #fff; white-space: nowrap; transition: opacity .3s; }
.gfix .gb { background: var(--g-red); box-shadow: 0 2px 8px rgba(217, 48, 37, .3); }
.gfix .ga { background: var(--green); box-shadow: 0 2px 8px rgba(15, 125, 98, .3); opacity: 0; }
.gcard.gaps .gfix { opacity: 1; transform: none; }
.gfix.ok .gb { opacity: 0; }
.gfix.ok .ga { opacity: 1; }

/* Atlas, working on the listing */
.gatlas { margin-top: 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gatlas img { width: 28px; height: 28px; border-radius: 8px; }
.gatlas-txt { font-size: 14px; line-height: 1.3; min-width: 0; }
.gatlas-txt b { display: block; font-weight: 800; }
.gatlas-msg { display: block; color: var(--ink-2); font-size: 13px; }
.gatlas-score { display: flex; align-items: baseline; gap: 2px; }
.gatlas-score b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gatlas-score small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.gatlas-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gatlas-bar i { display: block; height: 100%; width: calc(var(--v, 92) * 1%); background: var(--hc, var(--mint)); border-radius: 3px; }
.gplay { display: flex; align-items: center; gap: 6px; margin: 10px auto 0; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--green); }
.gplay:hover { background: var(--bg-soft); }
.gplay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* phones: the background glows and floating cards keep still (smoother scrolling) */
@media (max-width: 899px), (pointer: coarse) {
  .orb { animation: none !important; }
  .js .float { animation: floatIn .9s var(--ease) forwards; }
}
@keyframes changed { 0% { box-shadow: 0 0 0 0 rgba(62,201,167,0); } 25% { box-shadow: 0 0 0 4px rgba(62,201,167,.45); } 100% { box-shadow: 0 0 0 0 rgba(62,201,167,0); } }
@media (min-width: 960px) {
  .seen-in { grid-template-columns: 1fr 1fr; gap: 80px; }
  .seen-txt { text-align: left; }
  .seen-txt .sec-sub { max-width: 460px; }
  .seen-vis { margin: 0 0 0 auto; }
}

/* ============ features ============ */
.feats { overflow-x: clip; }
.fwrap { max-width: 1100px; margin: 0 auto; }
.fstep + .fstep { margin-top: 72px; }
.fstep-n { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--green); }
.fstep h3 { margin-top: 8px; font-size: clamp(28px, 6.4vw, 40px); letter-spacing: -.03em; }
.fstep p { margin-top: 12px; font-size: 18px; color: var(--ink-2); max-width: 480px; }
.fstep-vis { margin-top: 28px; position: relative; }
.fstep-vis::before, .fstage-in::before { content: ''; position: absolute; inset: 8% -2% -6% 2%; border-radius: 32px; z-index: -1; background: radial-gradient(ellipse at 60% 50%, rgba(62,201,167,.26), transparent 70%); filter: blur(20px); }
.fstage { display: none; }
.screen { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg); max-width: 520px; margin: 0 auto; }
.screen-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.screen-bar b { display: block; font-size: 15px; }
.screen-bar small { color: var(--ink-3); font-size: 13px; font-weight: 500; }

/* desktop: the text scrolls, the screen stays put and changes with the step */
@media (min-width: 1024px) {
  .fwrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; }
  .fsteps { padding: 6vh 0; }
  .fstep { min-height: 64vh; display: flex; align-items: center; }
  .fstep + .fstep { margin-top: 0; }
  .fstep-vis { display: none; }
  .fstep-txt { opacity: .28; transform: translateX(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .fstep.on .fstep-txt { opacity: 1; transform: none; }
  .fstep h3 { font-size: 40px; }
  .fstep p { font-size: 19px; }
  .fstage { display: flex; position: sticky; top: var(--hdr-h); height: calc(100vh - var(--hdr-h)); align-items: center; justify-content: center; gap: 28px; }
  .fstage-in { position: relative; display: grid; width: 100%; max-width: 540px; }
  .fstage-in > .screen { grid-area: 1 / 1; align-self: center; width: 100%; padding: 24px; opacity: 0; visibility: hidden; transform: translateY(28px) scale(.97); transition: opacity .55s var(--ease), transform .55s var(--ease), visibility 0s .55s; }
  .fstage-in > .screen.on { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease), visibility 0s; }
  .fdots { display: grid; gap: 10px; flex: none; }
  .fdots li { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: height .4s var(--ease), background-color .4s; }
  .fdots li.on { height: 28px; background: var(--mint); }
}

/* mock buttons inside the product screens: the dashboard's own teal, never
   the page's dark green, because they are pictures of buttons, not buttons */
.mock-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: 14px; background: var(--mint); color: #063326; }
.mock-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mock-ghost { background: #fff; color: var(--ink-2); border: 1.5px solid var(--line-2); }
.mock-sm { min-height: 32px; padding: 0 12px; font-size: 13px; flex: none; }

/* score */
.score-top { display: flex; align-items: center; gap: 20px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--bg-soft); }
.ring-fg { --val: 82; stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--val)); transition: stroke-dashoffset 1.2s var(--ease); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num b { font-size: 34px; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-num small { color: var(--ink-3); font-size: 11px; font-weight: 600; }
.score-side small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.score-word { display: block; font-size: 22px; margin: 2px 0 8px; }
.score-delta { opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s var(--ease); }
.score-delta.show { opacity: 1; transform: none; }
.screen .mini-label { margin-top: 20px; }
.screen > .mini-label:first-child { margin-top: 0; }
.tasks { display: grid; gap: 8px; }
.tasks li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; transition: background-color .4s, border-color .4s; }
.tbox { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.tbox::after { content: ''; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .3s .1s var(--ease); }
.ttxt { flex: 1; min-width: 0; transition: color .3s; }
.tag { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; flex: none; }
.tag-high { background: var(--bad-bg); color: var(--bad); }
.tag-med { background: var(--warn-bg); color: var(--warn); }
.tasks li.done { background: #f7fcfa; border-color: #cdeee2; }
.tasks li.done .tbox { background: var(--green); border-color: var(--green); }
.tasks li.done .tbox::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.tasks li.done .ttxt { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }

/* reply */
.rv { padding: 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.rv-top { display: flex; align-items: center; gap: 10px; }
.rv-top b { display: block; font-size: 14px; line-height: 1.2; }
.rv-state { margin-left: auto; background: var(--warn-bg); color: var(--warn); transition: background-color .3s, color .3s; }
.rv-state.ok { background: var(--good-bg); color: var(--green); }
.rv-text { margin-top: 10px; font-weight: 500; color: var(--ink); font-size: 15px; }
.reply { margin-top: 16px; }
.screen .reply .mini-label { margin-top: 0; }
.tone { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--green); background: var(--good-bg); padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.reply-box { min-height: 96px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--mint); box-shadow: 0 0 0 4px rgba(62,201,167,.15); font-size: 15px; font-weight: 500; line-height: 1.55; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--green); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.reply-box.done .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.reply-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.approve { transition: background-color .3s, transform .15s; }
.approve .a-on { display: none; align-items: center; gap: 6px; }
.approve.press { transform: scale(.95); }
.approve.ok { background: var(--good-bg); color: var(--green); }
.approve.ok .a-off { display: none; }
.approve.ok .a-on { display: inline-flex; }

/* hours */
.hours { display: grid; }
.hours li { display: flex; justify-content: space-between; padding: 10px 4px; border-bottom: 1px dashed var(--line); font-size: 15px; font-weight: 600; }
.hours li span:first-child { color: var(--ink-2); font-weight: 500; }
.hours li:last-child { border-bottom: 0; }
.hr-fix { border-radius: 10px; padding-left: 10px !important; padding-right: 10px !important; margin: 4px -6px 0; background: var(--bad-bg); outline: 1.5px solid #f2c4bf; transition: background-color .5s, outline-color .5s; }
.swap { display: inline-grid; text-align: right; }
.swap > span { grid-area: 1 / 1; transition: opacity .4s, transform .4s var(--ease); }
.s-old { color: var(--bad); }
.s-new { color: var(--green); opacity: 0; transform: translateY(8px); }
.hr-fix.fixed { background: var(--good-bg); outline-color: #bfe8d9; }
.hr-fix.fixed .s-old { opacity: 0; transform: translateY(-8px); }
.hr-fix.fixed .s-new { opacity: 1; transform: none; }
.holiday { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #fff8ec; border: 1px solid #f5e0b8; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.holiday.show { opacity: 1; transform: none; }
.hol-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fdebc8; }
.hol-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--warn); stroke-width: 2; stroke-linecap: round; }
.holiday div { flex: 1; min-width: 0; }
.holiday b { display: block; font-size: 14px; }
.holiday small { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.35; }

/* found + say */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { padding: 12px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); min-width: 0; }
.tile small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.tile b { display: block; font-size: clamp(22px, 6vw, 28px); letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bars, .say { display: grid; gap: 8px; }
.bars li, .say li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; overflow: hidden; isolation: isolate; }
.bars li span, .say li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars li b, .say li b { font-variant-numeric: tabular-nums; }
.bars li i, .say li i { position: absolute; inset: 0 auto 0 0; width: var(--w); z-index: -1; border-radius: inherit; background: var(--bg-mint); transform-origin: left; transform: scaleX(1); transition: transform 1.1s var(--ease); }
.bars li:nth-child(2) i, .say li:nth-child(2) i { transition-delay: .12s; }
.bars li:nth-child(3) i, .say li:nth-child(3) i { transition-delay: .24s; }
.bars li:nth-child(4) i { transition-delay: .36s; }
.screen.reset .bars li i, .screen.reset .say li i { transform: scaleX(0); transition: none; }
.say-col + .say-col { margin-top: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-good { background: var(--green); }
.dot-bad { background: var(--bad); }
.say-bad li i { background: var(--bad-bg); }

/* ============ how it works ============ */
.how { background: var(--bg-soft); }
.steps { position: relative; display: grid; gap: 16px; max-width: 1040px; margin: 0 auto; }
.step { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mint-pale); color: var(--green); font-weight: 800; font-size: 18px; margin-bottom: 16px; box-shadow: 0 0 0 6px #fff; }
.step h3 { font-size: 22px; }
.step p { margin-top: 8px; color: var(--ink-2); }
.steps::before { content: ''; position: absolute; z-index: 0; background: linear-gradient(90deg, var(--mint), var(--green)); display: none; }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { padding: 32px 28px; }
  .steps::before { display: block; left: 15%; right: 15%; top: 54px; height: 2px; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
  .steps.in::before { transform: scaleX(1); }
}

/* ============ who for ============ */
.who .sec-head { margin-bottom: 32px; }
.marquee { display: grid; gap: 4px; padding: 8px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
/* Each row holds its list twice (the second copy is aria-hidden in the HTML,
   not added by script, so nothing jumps on load). Spacing is a margin on every
   chip, never flex gap, so the two copies are exactly equal and -50% loops
   with no jump. */
.mq-row { display: flex; width: max-content; padding: 4px 0; animation: mq 50s linear infinite; will-change: transform; }
.mq-rev { animation-direction: reverse; animation-duration: 58s; }
.mq-row li { flex: none; margin-right: 12px; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-weight: 700; font-size: 16px; white-space: nowrap; box-shadow: var(--shadow-sm); }
.mq-row li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-right: 10px; vertical-align: 2px; }
/* pause on hover only where a real pointer hovers: on phones :hover sticks after a tap and froze the strip */
@media (hover: hover) { .marquee:hover .mq-row { animation-play-state: paused; } }
@keyframes mq { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.who-grid { margin: 40px auto 0; display: grid; gap: 16px; max-width: 1040px; }
.who-card { padding: 24px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.who-card h3 { font-size: 21px; }
.who-card p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 820px) { .who-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .who-card { padding: 32px; } }

/* ============ pricing ============ */
.price { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.pcard { position: relative; max-width: 940px; margin: 0 auto; display: grid; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.pcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--mint), var(--green)); }
.pcard-left { padding: 32px 24px; text-align: center; background: radial-gradient(ellipse at 50% 0%, var(--bg-mint), #fff 70%); border-bottom: 1px solid var(--line); }
.plan { font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.amount { margin-top: 10px; font-size: 72px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.cur { font-size: .5em; vertical-align: .55em; margin-right: 2px; letter-spacing: 0; }
.per { font-size: 18px; letter-spacing: 0; color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.gst { margin-top: 6px; color: var(--ink-2); font-weight: 600; }
.perday { margin: 16px auto 24px; display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-weight: 600; color: var(--ink-2); }
.perday b { color: var(--green); }
.pfine { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.pfine a { color: var(--green); }
.pcard-right { padding: 28px 24px 32px; }
.pcard-right .ticks { gap: 12px; }
.pcard-right .pfine { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 820px) {
  .pcard { grid-template-columns: .95fr 1.05fr; }
  .pcard-left { padding: 48px 40px; border-bottom: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .pcard-right { padding: 48px 44px; }
  .amount { font-size: 88px; }
}

/* ============ faq ============ */
.faq-in { max-width: 820px; }
.qs { display: grid; gap: 12px; }
.q { border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .25s, box-shadow .25s; }
.q[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; min-height: 64px; font-weight: 700; font-size: 17px; line-height: 1.35; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
.q summary::-webkit-details-marker { display: none; }
.q-ic { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); transition: background-color .25s, transform .35s var(--ease); }
.q-ic::before, .q-ic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .35s var(--ease), background-color .25s; }
.q-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.q[open] .q-ic { background: var(--mint-pale); transform: rotate(180deg); }
.q[open] .q-ic::before, .q[open] .q-ic::after { background: var(--green); }
.q[open] .q-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.a { padding: 0 20px 20px; color: var(--ink-2); }
.a a { color: var(--green); font-weight: 600; }
.q[open] .a { animation: aIn .4s var(--ease); }
@keyframes aIn { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 640px) { .q summary { padding: 22px 28px; font-size: 18px; } .a { padding: 0 28px 24px; } }

/* ============ closing call to action ============ */
.final { position: relative; overflow: hidden; background: var(--forest-deep); color: #fff; text-align: center; padding: 96px 0; isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -1; }
.final .o1 { width: 600px; height: 600px; left: -200px; top: -260px; background: radial-gradient(circle, rgba(62,201,167,.45), transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
.final .o2 { width: 520px; height: 520px; right: -200px; bottom: -280px; background: radial-gradient(circle, rgba(103,212,180,.35), transparent 70%); animation: drift 20s ease-in-out infinite alternate-reverse; }
.final-in { max-width: 760px; }
.final h2 { font-size: clamp(34px, 8vw, 60px); letter-spacing: -.04em; }
.final-in > p { margin: 16px auto 32px; font-size: 19px; color: rgba(230, 246, 240, .85); }
.final-in > .final-alt { margin-top: 24px; font-size: 15px; }
.final-alt a { color: var(--mint-2); font-weight: 700; }
@media (min-width: 900px) { .final { padding: 140px 0; } }

/* ============ footer ============ */
.ftr { padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ftr-in { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.ftr-brand { grid-column: 1 / -1; }
.ftr-brand p { margin-top: 4px; color: var(--ink-2); max-width: 320px; }
.ftr-col { display: grid; gap: 4px; align-content: start; }
.ftr-col p { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.ftr-col a { text-decoration: none; color: var(--ink-2); font-weight: 500; padding: 10px 0; overflow-wrap: anywhere; }
.ftr-col a:hover { color: var(--green); }
.ftr-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; color: var(--ink-3); }
@media (min-width: 820px) { .ftr-in { grid-template-columns: 2fr 1fr 1fr 1.3fr; } .ftr-brand { grid-column: auto; } }

/* ============ phone dock ============ */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.88); backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6); border-top: 1px solid var(--line); text-align: center; transform: translateY(110%); transition: transform .45s var(--ease); }
.dock small { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.dock.show { transform: none; }
@media (min-width: 820px) { .dock { display: none; } }
@media (max-width: 819px) { body.has-dock .ftr { padding-bottom: calc(120px + env(safe-area-inset-bottom)); } }

/* ============ very small phones ============ */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .tiles { gap: 6px; }
  .tile { padding: 10px 8px; }
  .screen { padding: 14px; }
  .seen-stats { grid-template-columns: 1fr; }
  .g-actions span { font-size: 12px; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .rise, .js [data-reveal], .js .float { opacity: 1 !important; transform: none !important; }
  .mq-row { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
  .marquee { gap: 10px; -webkit-mask-image: none; mask-image: none; }
  .mq-row li[aria-hidden] { display: none; }
  .film { transform: none !important; }
}

/* "Suggested reply" and its tone tag wrap as whole pieces on narrow screens */
.reply .mini-label { flex-wrap: wrap; white-space: nowrap; row-gap: 6px; }
.tone { white-space: nowrap; }
