/* onda v2 · installable app. One grid: 20px gutters, 12px gaps, 22px card radius. */
@font-face { font-family: "Clash"; src: url("/fonts/ClashDisplay-Variable.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
/* Body is General Sans (Indian Type Foundry / Fontshare), official variable woff2, ITF Free Font License v2.0.
   Self-hosted as distributed: the license forbids subsetting or format conversion without written consent. */
@font-face { font-family: "Body"; src: url("/fonts/GeneralSans-Variable.woff2") format("woff2"); font-weight: 200 700; font-display: swap; font-style: normal; }

:root {
  /* Mint Breeze (Palakonweb): #E8FFF1 · #B8F2D6 · #3ED3A4 · #0E8F6E. Ink stays #111418. */
  --mint-1: #E8FFF1;   /* lightest mint: page */
  --mint-2: #B8F2D6;   /* soft mint: secondary fills */
  --mint-3: #3ED3A4;   /* bright mint: primary fills (ink text, 9.7:1) */
  --mint-4: #0E8F6E;   /* deep emerald: graphics, selected marks, focus (never small white text) */
  --bg: var(--mint-1);
  --ink: #111418;
  --accent: var(--mint-4);
  --accent-ink: #0B6B52; /* text-safe emerald: 6.5:1 on white, 6.2:1 on #E8FFF1 */
  --deep: #08362D;       /* the palette's title green: meta text over the tinted corner */
  --press: #26B189;      /* primary pressed: #3ED3A4 deepened toward #0E8F6E (ink 6.8:1) */
  --mint: var(--mint-2);
  --mute: #55605C;       /* 6.7:1 on white, 6.4:1 on #E8FFF1, 5.3:1 on #B8F2D6 */
  --mute2: #7D8985;      /* unchecked ring, a UI graphic: 3.6:1 on white */
  --line: rgba(17, 20, 24, .08);
  --card: #FFFFFF;
  --tint: var(--mint-2);
  --bad: #B3261E;
  /* page wash: deep emerald faint in the top corner, through bright and soft mint, to #E8FFF1 (diagonal sweep) */
  --wash:
    radial-gradient(120% 42% at 100% 0%, rgba(14, 143, 110, .30) 0%, rgba(62, 211, 164, .22) 34%, rgba(184, 242, 214, .32) 62%, rgba(232, 255, 241, 0) 100%),
    linear-gradient(200deg, rgba(184, 242, 214, .55) 0%, rgba(232, 255, 241, 0) 46%);
  --wash-strong:
    radial-gradient(130% 60% at 100% 0%, rgba(14, 143, 110, .46) 0%, rgba(62, 211, 164, .34) 32%, rgba(184, 242, 214, .42) 60%, rgba(232, 255, 241, 0) 100%),
    linear-gradient(205deg, rgba(184, 242, 214, .7) 0%, rgba(232, 255, 241, 0) 58%);

  --gut: 20px;     /* side gutter */
  --gap: 12px;     /* between cards / rows */
  --pad: 20px;     /* inside cards */
  --r: 22px;       /* card + row radius */
  --r-in: 16px;    /* inner fields */
  --btn: 56px;

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(17, 20, 24, .04), 0 14px 34px -18px rgba(17, 20, 24, .16);

  /* ------------------------------------------------------------------ type system (one scale, app-wide)
     Two families only: General Sans ("Body") for every body / UI / small text, Clash Display ("Clash") for display
     headings and numbers. Weights: 400 regular, 500 medium (labels, inputs), 600 strong (buttons, names, display).
     Sizes: display (hero numbers), h1, h2, h3, num (small display numbers), ui (buttons, inputs), body, small, caption. */
  --font-body: "Body", system-ui, sans-serif;
  --font-display: "Clash", "Body", system-ui, sans-serif;
  --fw-regular: 400; --fw-medium: 500; --fw-strong: 600; --fw-display: 600;
  --fs-display: min(76px, 19.5vw);
  --fs-h1: 40px;   /* opener headline (max), "Profile ready" */
  --fs-h2: 34px;   /* onboarding question titles */
  --fs-h3: 28px;   /* sheet titles, earnings title, invite count */
  --fs-num: 22px;  /* small display numbers: audience sizes, profile %, per-source figures */
  --fs-ui: 16px;   /* buttons and inputs (16px also stops iOS zooming into fields) */
  --fs-body: 15px;
  --fs-small: 13.5px;
  --fs-caption: 12px;
  --ls-body: -.1px;
  --ls-display: -.02em;      /* h1-h3 and small numbers */
  --ls-display-xl: -.035em;  /* hero numbers */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Mint all the way to every edge: html and body carry the base and the wash, so the status-bar
   area, the home-indicator area and rubber-band overscroll never show white. */
html { color-scheme: light; height: 100%; min-height: 100%; background: var(--wash-strong), #E8FFF1; background-color: #E8FFF1; }
body { height: 100%; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--wash-strong), #E8FFF1; background-color: #E8FFF1; }
body {
  color: var(--ink);
  font: var(--fw-regular) var(--fs-body)/1.45 var(--font-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overflow: hidden;
  overflow: clip;
}
button, input { font: inherit; color: inherit; }
input::placeholder { color: var(--mute); opacity: 1; }
button { background: none; border: 0; cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }
.noscript { padding: 40px 20px; text-align: center; }

.d { font-family: var(--font-display); font-weight: var(--fw-display); letter-spacing: var(--ls-display); line-height: 1.04; }
.lbl { font: 500 var(--fs-caption)/1.2 var(--font-body); color: var(--mute); }
.sub { margin-top: 12px; color: var(--mute); font-size: var(--fs-body); line-height: 1.45; max-width: 34ch; text-wrap: pretty; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ app frame */
#app {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: -webkit-fill-available;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  overflow: clip; /* no programmatic scroll either: a focus() or tap on a screen mid-slide can't shift the frame */
  background: var(--bg);
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: var(--sat);   /* screens own the safe areas: the wash paints under the status bar */
  background: var(--wash), var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translate3d(32px, 0, 0);
  transition: transform .32s var(--ease), opacity .26s var(--ease), visibility 0s linear .32s;
}
.screen.is-active { visibility: visible; opacity: 1; transform: none; transition: transform .32s var(--ease), opacity .26s var(--ease), visibility 0s; }
.screen.is-left { transform: translate3d(-32px, 0, 0); }
.screen.is-fade { transform: none; }

.bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 var(--gut);
}
.lockup { height: 26px; width: auto; }
.bar-meta { font-size: var(--fs-small); color: var(--deep); }

.body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px var(--gut) 24px;
}
.foot {
  flex: none;
  display: grid;
  gap: var(--gap);
  padding: 12px var(--gut) max(20px, calc(var(--sab) + 8px));
  background: linear-gradient(to bottom, rgba(232, 255, 241, 0), var(--bg) 24%);
}
.foot-note { text-align: center; font-size: var(--fs-small); color: var(--mute); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: var(--btn); border-radius: calc(var(--btn) / 2);
  font: 600 var(--fs-ui) var(--font-body); text-decoration: none;
  transition: transform .15s var(--ease), opacity .2s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--mint-3); color: var(--ink); }
.btn.primary:active { background: var(--press); }
.btn.soft { background: var(--mint-2); color: var(--ink); }
.btn.soft:active { background: #A2E9C7; }
.btn.ghost { background: transparent; color: var(--ink); height: 48px; }
.btn:disabled { opacity: .28; cursor: default; transform: none; }
.btn.mini { width: auto; height: 38px; padding: 0 16px; border-radius: 12px; font-size: var(--fs-small); background: var(--mint-3); color: var(--ink); flex: none; }
.btn.mini:active { background: var(--press); }
.btn[aria-busy="true"] { opacity: .6; }
.txt { color: var(--accent-ink); font-weight: 600; font-size: var(--fs-small); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.circ { width: 40px; height: 40px; border-radius: 50%; background: rgba(17, 20, 24, .05); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.circ.small { width: 32px; height: 32px; }

/* ------------------------------------------------------------------ landing */
#s-pass, .screen.ob, #s-done { background: var(--wash-strong), var(--bg); }

/* ------------------------------------------------------------------ overview: ONE screen, no scrolling (round 3)
   A single flex column on the full-height frame. Type and spacing scale with the screen's own height
   (--u = 1% of it: cqh where container units exist, else dvh, else vh). The mini cards sit in a flexible
   slot that is itself a size container, so they simply hide when the slot gets too short: nothing ever
   scrolls or clips. */
#s-overview { background: var(--wash-strong), var(--bg); overflow: hidden; }
.screen-ov { --u: 1vh; --w: 1vw; }
@supports (height: 1dvh) { .screen-ov { --u: 1dvh; } }
@supports (container-type: size) {
  .screen-ov { container: ov / size; }
  .ov { --u: 1cqh; --w: 1cqw; }
}
.ov { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.ov-top { flex: none; display: flex; align-items: center; height: clamp(46px, calc(var(--u) * 7.6), 66px); padding: 0 var(--gut); }
.ov-top .lockup { height: clamp(22px, calc(var(--u) * 3), 27px); }
.ov-head { flex: none; padding: clamp(2px, calc(var(--u) * 1.4), 16px) var(--gut) 0; }
.ov-h1 { font-size: clamp(24px, min(calc(var(--u) * 4.6), calc(var(--w) * 9.4)), var(--fs-h1)); line-height: 1.06; letter-spacing: var(--ls-display); text-wrap: balance; padding-bottom: .08em; }
.ov-lede { margin-top: clamp(8px, calc(var(--u) * 1.6), 14px); max-width: 32ch; font-size: clamp(14px, calc(var(--u) * 2), var(--fs-ui)); line-height: 1.42; color: var(--mute); text-wrap: pretty; }

/* tiny visual: two mini campaign cards (copy from the verified feed screen) */
.ov-vis { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--gut); }
@supports (container-type: size) { .ov-vis { container-type: size; } }
.ov-cards { position: relative; width: min(100%, 318px); height: 144px; }
.mc { position: absolute; left: 0; right: 0; padding: 12px 13px; border-radius: 18px; background: var(--card);
  box-shadow: 0 1px 2px rgba(17, 20, 24, .05), 0 16px 30px -18px rgba(8, 54, 45, .38); }
.mc-back { top: 0; transform: translate(12px, 0) rotate(2.6deg) scale(.92); transform-origin: 70% 50%; opacity: .96; }
.mc-front { bottom: 0; transform: rotate(-1.6deg); }
.mc-row { display: flex; align-items: center; gap: 10px; }
.mc-ico { width: 34px; height: 34px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-style: normal; }
.ico-play { background: var(--mint-3); color: var(--ink); }
.ico-spark { background: var(--mint-2); color: var(--mint-4); }
.mc-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mc-name b { font: 600 var(--fs-small)/1.2 var(--font-body); white-space: nowrap; }
.mc-name small { font-size: var(--fs-caption); line-height: 1.25; color: var(--mute); white-space: nowrap; }
.mc-oc { flex: none; padding: 5px 9px; border-radius: 10px; background: var(--mint-1); color: var(--accent-ink); font: 600 var(--fs-caption)/1.2 var(--font-body); white-space: nowrap; }
.mc-acts { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); font-size: var(--fs-caption); line-height: 1.3; color: var(--mute); white-space: nowrap; }
@container (max-height: 150px) { .ov-cards { display: none; } }
@container (min-height: 196px) { .ov-cards { transform: scale(1.06); } }
@supports not (container-type: size) { @media (max-height: 760px) { .ov-cards { display: none; } } }

/* the four points, compact: icon + title + one short line */
.ov-feats { flex: none; list-style: none; margin: 0 var(--gut); padding: clamp(2px, calc(var(--u) * .5), 6px) 16px;
  border-radius: var(--r); background: rgba(255, 255, 255, .78); box-shadow: var(--shadow); }
.ov-feats li { display: flex; align-items: center; gap: 13px; padding: clamp(6px, calc(var(--u) * 1.25), 12px) 0; }
.ov-feats li + li { border-top: 1px solid var(--line); }
.ov-ico { width: clamp(30px, calc(var(--u) * 4.3), 38px); height: clamp(30px, calc(var(--u) * 4.3), 38px); flex: none; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; background: var(--mint-1); color: var(--accent-ink); font-style: normal; }
.ov-feats span { min-width: 0; }
.ov-feats b { display: block; font: 600 clamp(14px, calc(var(--u) * 1.85), var(--fs-body))/1.22 var(--font-body); }
.ov-feats small { display: block; margin-top: 1px; font-size: clamp(12px, calc(var(--u) * 1.6), var(--fs-small)); line-height: 1.3; color: var(--mute); }

/* the button: pinned in the thumb zone, above the home-indicator safe area */
.ov-foot { flex: none; padding: clamp(10px, calc(var(--u) * 2), 18px) var(--gut) max(14px, calc(var(--sab) + 8px)); }
.ov-foot .btn { height: clamp(48px, calc(var(--u) * 6.6), 56px); }

/* very short frames (landscape phones, tiny windows): drop the second line of each point, keep the titles */
@container ov (max-height: 540px) { .ov-feats small { display: none; } .ov-lede { font-size: var(--fs-small); } }
@container ov (max-height: 440px) {
  .ov-top { height: 42px; }
  .ov-lede { margin-top: 6px; }
  .ov-feats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; padding: 4px 12px; }
  .ov-feats li { gap: 9px; padding: 6px 0; }
  .ov-feats li + li { border-top: 0; }
  .ov-feats b { font-size: var(--fs-small); }
  .ov-ico { width: 28px; height: 28px; border-radius: 9px; }
  .ov-foot { padding-top: 8px; }
  .ov-foot .btn { height: 46px; }
}
@container ov (max-height: 340px) { .ov-lede { display: none; } }
@supports not (container-type: size) { @media (max-height: 540px) { .ov-feats small { display: none; } } }

/* ------------------------------------------------------------------ launch intro (every app open)
   In the initial HTML, painted with the first frame on the same #E8FFF1 as the iOS splash and manifest.
   CSS-only: the Swell ribbon wipes in with a soft edge and settles, the wordmark fades up. app.js fades the
   layer out at max(animation end, app ready) and removes it; introGone is the fail-safe that hides it at
   ~2.2s even if app.js never runs. */
.intro { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: #E8FFF1;
  animation: introGone .25s 1.95s ease forwards; }
.intro.is-out { animation: none; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; }
.intro-logo { display: flex; flex-direction: column; align-items: center; margin-top: -4vh; }
.intro-mark { width: 172px; height: 104px; overflow: visible; }
.intro-swell { display: block; width: 172px; height: 172px; margin-top: -34px;
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 0 0 / 300% 100% no-repeat;
  mask: linear-gradient(90deg, #000 40%, transparent 60%) 0 0 / 300% 100% no-repeat;
  animation: introDraw .8s .06s cubic-bezier(.55, .05, .3, 1) both, introSettle 1.05s .06s cubic-bezier(.2, .8, .2, 1) both; }
.intro-wm { display: block; width: 124px; height: auto; aspect-ratio: 2402 / 690; margin-top: 14px; animation: introWm .62s .58s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes introDraw {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes introSettle {
  from { transform: translate3d(-8px, 10px, 0) rotate(-5deg) scale(.9); }
  62% { transform: translate3d(0, -2px, 0) rotate(.6deg) scale(1.012); }
  to { transform: none; }
}
@keyframes introWm { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes introGone { to { opacity: 0; visibility: hidden; } }
/* reduced motion: no movement. The static logo shows briefly, then a simple fade (fail-safe still on). */
@media (prefers-reduced-motion: reduce) {
  .intro { animation: introGone .2s .7s ease forwards !important; }
  .intro.is-out { animation: none !important; transition-duration: .2s, 0s !important; transition-delay: 0s, .2s !important; }
  .intro-swell { -webkit-mask: none; mask: none; }
}

/* status-bar zone for the installed app (black-translucent = white status text): deep emerald, so the
   time and battery stay readable, fading into the mint wash. Height is the real inset, 0 in Safari. */
.status-zone { display: none; position: absolute; top: 0; left: 0; right: 0; z-index: 60; height: var(--sat); pointer-events: none;
  background: linear-gradient(to bottom, #0B6B52 0%, #0E8F6E 72%, rgba(14, 143, 110, 0) 100%); }
html.standalone .status-zone { display: block; }

@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ onboarding */
.ob-bar .prog { display: flex; gap: 6px; flex: 1; }
.prog i { flex: 1; height: 3px; border-radius: 2px; background: rgba(17, 20, 24, .1); transition: background .3s; }
.prog i.on { background: var(--accent); }
.prog i.done { background: var(--ink); }
.step { width: 40px; text-align: right; font: 500 var(--fs-small) var(--font-body); color: var(--deep); }
.h-ob { margin-top: 20px; font-size: var(--fs-h2); max-width: 10.5em; text-wrap: balance; }

.stack { display: grid; gap: var(--gap); margin-top: 28px; }

.row {
  display: block; width: 100%; text-align: left;
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .15s var(--ease);
}
.row-head { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 0 var(--pad); text-align: left; }
.row-name { flex: 1; font: var(--fw-strong) var(--fs-ui)/1.2 var(--font-body); }
.row-name small { display: block; margin-top: 4px; font: 400 var(--fs-small) var(--font-body); color: var(--mute);}
.tick { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--mute2); color: transparent; transition: background .2s, border-color .2s, color .2s; }
.row.is-on .tick { background: var(--mint-4); border-color: var(--mint-4); color: #fff; }
.row-handle { display: none; padding: 0 var(--pad) 16px; }
.row.is-on .row-handle { display: block; }
.handle-in {
  display: flex; align-items: center; height: 48px; padding: 0 14px; border-radius: var(--r-in); background: var(--bg);
  border: 1.5px solid transparent; transition: border-color .2s;
}
.handle-in:focus-within { border-color: var(--accent); }
.handle-in span { color: var(--mute); font-weight: 500; }
.handle-in input { flex: 1; min-width: 0; height: 100%; margin-left: 2px; border: 0; outline: 0; background: transparent; font-size: var(--fs-ui); font-weight: 500; }
.row.is-bad .handle-in { border-color: var(--bad); }

.more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: var(--gap); border-radius: var(--r); border: 1.5px dashed rgba(17, 20, 24, .16); color: var(--ink); font-weight: 600; font-size: 14.5px; }
.more[aria-expanded="true"] svg { transform: rotate(45deg); }
.more svg { transition: transform .2s; }

.msg { margin-top: 10px; font-size: var(--fs-small); color: var(--mute); }
.msg:empty { display: none; }
.msg.bad { color: var(--bad); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chipb {
  height: 46px; padding: 0 20px; border-radius: 23px; background: var(--card); box-shadow: var(--shadow);
  font: 500 var(--fs-body) var(--font-body); transition: background .2s, color .2s, transform .15s var(--ease);
}
.chipb[aria-pressed="true"] { background: var(--mint-3); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--mint-4), var(--shadow); }
.chipb:active { transform: scale(.96); }
.chipb:disabled { opacity: .4; }

.opt .row-head { min-height: 64px; }
.opt .row-name { font: 600 var(--fs-ui)/1.2 var(--font-body); }
.opt .tick { border-radius: 50%; }
.opt[aria-checked="true"] .tick { background: var(--mint-4); border-color: var(--mint-4); color: #fff; }

.field { display: block; margin-top: 28px; padding: 14px var(--pad) 12px; }
.field input { display: block; width: 100%; height: 34px; margin-top: 4px; border: 0; outline: 0; background: transparent; font-size: var(--fs-ui); font-weight: 500; }
.field:focus-within { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }

/* ------------------------------------------------------------------ pass */
.body-pass { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-content: start; padding-top: 8px; }
.body-pass > * { min-width: 0; }
.pass { position: relative; overflow: hidden; }
.pass-top {
  position: relative; padding: var(--pad) var(--pad) 22px;
  background:
    radial-gradient(120% 95% at 100% 0%, rgba(14, 143, 110, .34) 0%, rgba(62, 211, 164, .30) 26%, rgba(184, 242, 214, .45) 48%, rgba(232, 255, 241, .35) 66%, rgba(255, 255, 255, 0) 84%),
    var(--card);
}
.pass-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pass-mark { width: 34px; height: 34px; }
.pass-num { margin-top: 14px; font-size: var(--fs-display); letter-spacing: var(--ls-display-xl); line-height: .95; font-variant-numeric: tabular-nums; }
.pass-who { margin-top: 12px; font-size: var(--fs-small); color: var(--ink); opacity: .72; min-height: 20px; overflow-wrap: anywhere; }
.perf { position: relative; height: 0; border-top: 1.5px dashed rgba(17, 20, 24, .14); margin: 0 18px; }
/* ticket notches are real cut-outs (masks), so the page wash shows through instead of a flat disc */
.pass { background: none; box-shadow: none; filter: drop-shadow(0 1px 1px rgba(17, 20, 24, .04)) drop-shadow(0 12px 16px rgba(17, 20, 24, .08)); }
.pass-top, .pass-bottom { --notch: radial-gradient(circle 11px at -1px var(--ny), transparent 10.5px, #000 11.5px), radial-gradient(circle 11px at calc(100% + 1px) var(--ny), transparent 10.5px, #000 11.5px);
  -webkit-mask: var(--notch); -webkit-mask-composite: source-in; mask: var(--notch); mask-composite: intersect; }
.pass-top { --ny: calc(100% - 1px); }
.pass-bottom { --ny: 0px; background: var(--card); }
.pass-bottom { display: flex; align-items: center; gap: 18px; padding: 18px var(--pad) var(--pad); }
.stat { display: grid; gap: 4px; flex: none; min-width: 64px; }
.stat-n { font-size: var(--fs-h3); }
.pass-line { font-size: var(--fs-small); line-height: 1.4; color: var(--mute); border-left: 1px solid var(--line); padding-left: 18px; }

.link-card { padding: var(--pad); }
.link-note { margin-top: 12px; font-size: var(--fs-small); line-height: 1.4; color: var(--mute); text-wrap: pretty; } /* #55605C on white: 6.7:1 */
.linkbox { display: flex; align-items: center; gap: 10px; height: 54px; margin-top: 12px; padding: 0 8px 0 16px; border-radius: var(--r-in); background: var(--bg); }
.link-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: var(--fs-body); }
.linkbox.edit { border: 1.5px solid var(--accent); }
.link-pre { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; color: var(--mute); font-weight: 500; white-space: nowrap; }
.linkbox.edit input { flex: 1 0 110px; min-width: 110px; width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: var(--fs-ui); font-weight: 500; }
.foot-2 { gap: 10px; }

/* reveal motion */
.screen.is-active .pass.reveal { animation: passIn .8s var(--ease) both; }
.screen.is-active .link-card.reveal { animation: rise .7s .18s var(--ease) both; }
.screen.is-active .foot-2.reveal { animation: rise .7s .28s var(--ease) both; }
.pass.reveal .pass-top::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .7) 48%, rgba(255, 255, 255, 0) 66%);
  transform: translateX(-120%); animation: sheen 1.4s .5s var(--ease) both;
}
@keyframes passIn { from { opacity: 0; transform: translateY(28px) scale(.94) rotateX(8deg); } to { opacity: 1; transform: none; } }
@keyframes sheen { to { transform: translateX(120%); } }

/* ------------------------------------------------------------------ install sheet */
.sheet-wrap { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; }
.scrim { position: absolute; inset: 0; background: rgba(8, 54, 45, .40); opacity: 0; transition: opacity .3s; }
.sheet {
  position: relative; margin: 0 10px max(10px, var(--sab)); padding: 18px var(--pad) 12px;
  background: var(--bg); border-radius: 30px; box-shadow: 0 30px 60px -20px rgba(17, 20, 24, .4);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.sheet-wrap.is-open .scrim { opacity: 1; }
.sheet-wrap.is-open .sheet { transform: none; }
.sheet-app { display: flex; align-items: center; gap: 12px; }
.sheet-app img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 6px 16px -8px rgba(17, 20, 24, .5); }
.sheet-app div { flex: 1; display: grid; gap: 2px; }
.sheet-app strong { font-size: var(--fs-body); font-weight: 600; }
.h-sheet { margin-top: 18px; font-size: var(--fs-h3); }
.steps { list-style: none; margin-top: 18px; padding: 4px var(--pad); }
.steps li { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.steps li + li { border-top: 1px solid var(--line); }
.steps b { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-size: var(--fs-caption); display: flex; align-items: center; justify-content: center; }
.steps span { flex: 1; font-size: var(--fs-body); }
.steps small { display: block; color: var(--mute); font-size: var(--fs-caption); }
.steps .ico { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--mint-1); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; letter-spacing: 1px; }
.steps .ico.app { background: none; }
.steps .ico.app img { width: 30px; height: 30px; border-radius: 8px; }
.done-card { padding: 18px var(--pad); }
.sheet-cta { margin-top: 18px; }
.sheet-desk { margin-top: 14px; font-size: var(--fs-small); color: var(--mute); }
.sheet .btn.ghost { margin-top: 6px; }
.sheet-arrow { display: none; justify-content: center; color: var(--accent); padding-top: 2px; animation: nudge 1.4s ease-in-out infinite; }
.sheet[data-mode="ios"] .sheet-arrow { display: flex; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.sheet [data-mode] { display: none; }
.sheet[data-mode="ios"] [data-mode="ios"],
.sheet[data-mode="inapp"] [data-mode="inapp"],
.sheet[data-mode="android"] [data-mode="android"],
.sheet[data-mode="installed"] [data-mode="installed"],
.sheet[data-mode="desktop"] [data-mode="desktop"] { display: block; }
.sheet[data-mode="ios"] ol[data-mode="ios"], .sheet[data-mode="inapp"] ol[data-mode="inapp"] { display: block; }

/* ------------------------------------------------------------------ toast */
.toast {
  position: absolute; left: 50%; bottom: calc(110px + var(--sab)); z-index: 40;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: var(--fs-small); font-weight: 500;
  transition: opacity .2s, transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ standalone */
@media (display-mode: standalone) {
  body { user-select: none; -webkit-user-select: none; }
  input { user-select: text; -webkit-user-select: text; }
}

/* ------------------------------------------------------------------ wider screens: the app in a window */
@media (min-width: 720px) and (min-height: 700px) {
  body {
    display: flex; align-items: center; justify-content: center;
    background:
      radial-gradient(70% 60% at 85% 0%, rgba(14, 143, 110, .22), rgba(62, 211, 164, .16) 40%, rgba(232, 255, 241, 0) 75%),
      radial-gradient(60% 50% at 50% 40%, rgba(184, 242, 214, .55), rgba(232, 255, 241, 0) 70%),
      var(--bg);
  }
  #app { height: min(880px, calc(100dvh - 48px)); max-width: 420px; border-radius: 36px; box-shadow: 0 1px 0 rgba(17, 20, 24, .04), 0 40px 80px -40px rgba(17, 20, 24, .35); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}


/* ================================================================== round 2: onboarding */
/* segmented progress: earlier steps full, the current one fills when its question is answered */
.seg { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-right: 4px; }
.seg i { position: relative; height: 6px; border-radius: 3px; background: rgba(17, 20, 24, .10); overflow: hidden; }
.seg i::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: var(--mint-4); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.seg[data-step="2"] i:nth-child(-n+1)::after, .seg[data-step="3"] i:nth-child(-n+2)::after,
.seg[data-step="4"] i:nth-child(-n+3)::after, .seg[data-step="5"] i:nth-child(-n+4)::after { transform: none; }
.seg.is-ready[data-step="1"] i:nth-child(1)::after, .seg.is-ready[data-step="2"] i:nth-child(2)::after,
.seg.is-ready[data-step="3"] i:nth-child(3)::after, .seg.is-ready[data-step="4"] i:nth-child(4)::after,
.seg.is-ready[data-step="5"] i:nth-child(5)::after { transform: none; background: var(--mint-3); }

.ob .body { padding-top: 4px; }
.ob .h-ob { margin-top: 40px; }
.confirm {
  position: absolute; z-index: 3; left: var(--gut); top: calc(var(--sat) + 62px);
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px;
  background: var(--card); color: var(--accent-ink); font: 600 var(--fs-small)/1 var(--font-body); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px) scale(.96); pointer-events: none;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.confirm.is-on { opacity: 1; transform: none; }
.confirm svg { color: var(--mint-4); flex: none; }

/* platform tiles */
.ptiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.ptile {
  position: relative; display: flex; align-items: center; gap: 11px; height: 64px; padding: 0 12px 0 11px; border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow); text-align: left;
  transition: transform .16s var(--ease), background .2s, box-shadow .2s;
}
.ptile:active { transform: scale(.96); }
.ptile-logo { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--mint-1); color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.ptile-name { flex: 1; min-width: 0; font: 600 var(--fs-body)/1.15 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile .tick, .hrow .tick, .atile .tick { width: 24px; height: 24px; border: 1.5px solid var(--mute2); }
.ptile[aria-pressed="true"] { background: var(--mint-2); box-shadow: inset 0 0 0 2px var(--mint-4), var(--shadow); }
.ptile[aria-pressed="true"] .ptile-logo { background: var(--card); }
.ptile[aria-pressed="true"] .tick, .atile[aria-checked="true"] .tick, .hrow.is-ok .tick { background: var(--mint-4); border-color: var(--mint-4); color: #fff; animation: pop .32s var(--ease); }
@keyframes pop { 0% { transform: scale(.5); } 60% { transform: scale(1.15); } 100% { transform: none; } }

/* handles */
.hlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-top: 24px; }
.hrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); border: 1.5px solid transparent; transition: border-color .2s; cursor: text; }
.hrow:focus-within { border-color: var(--accent); }
.hrow.is-bad { border-color: var(--bad); }
.hrow-logo { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--mint-1); display: flex; align-items: center; justify-content: center; }
.hrow-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hrow-name { font: 500 var(--fs-caption)/1.2 var(--font-body); color: var(--mute); }
.hrow-in { display: flex; align-items: center; height: 30px; }
.hrow-in .at { color: var(--mute); font-weight: 600; font-size: var(--fs-ui); }
.hrow-in input { flex: 1; width: 0; min-width: 0; height: 100%; margin-left: 1px; border: 0; outline: 0; background: transparent; font-size: var(--fs-ui); font-weight: 600; }
.hrow .tick { color: transparent; }
.hrow-in input::placeholder { font-weight: 400; color: var(--mute); }

/* niches */
.chips { gap: 9px; margin-top: 24px; }
.chipb { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 16px 0 13px; border-radius: 23px; }
.chip-ico { display: flex; color: var(--accent-ink); }
.chip-tick { display: none; width: 18px; height: 18px; margin-right: -4px; border-radius: 50%; background: var(--ink); color: var(--mint-3); align-items: center; justify-content: center; }
.chip-tick svg { width: 11px; height: 11px; }
.chipb[aria-pressed="true"] { background: var(--mint-3); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--mint-4), var(--shadow); }
.chipb[aria-pressed="true"] .chip-ico { color: var(--ink); }
.chipb[aria-pressed="true"] .chip-tick { display: inline-flex; animation: pop .3s var(--ease); }
.chipb.is-dim { opacity: .45; }
.chipb.nope { animation: nope .32s var(--ease); }
@keyframes nope { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* audience tiles */
.atiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.atile {
  position: relative; display: grid; align-content: end; gap: 3px; min-height: 112px; padding: 14px; border-radius: var(--r);
  background: var(--card); box-shadow: var(--shadow); text-align: left; transition: transform .16s var(--ease), background .2s, box-shadow .2s;
}
.atile:active { transform: scale(.96); }
.atile .tick { position: absolute; top: 12px; right: 12px; color: transparent; }
.abars { position: absolute; top: 14px; left: 14px; display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.abars i { width: 5px; border-radius: 2px; background: rgba(17, 20, 24, .12); }
.abars i.on { background: var(--mint-4); }
.abars .b0 { height: 6px; } .abars .b1 { height: 10px; } .abars .b2 { height: 14px; } .abars .b3 { height: 18px; } .abars .b4 { height: 22px; } .abars .b5 { height: 26px; }
.atile-n { font-size: var(--fs-num); }
.atile small { font-size: var(--fs-small); color: var(--mute); }
.atile[aria-checked="true"] { background: var(--mint-2); box-shadow: inset 0 0 0 2px var(--mint-4), var(--shadow); }
.atile[aria-checked="true"] small { color: var(--deep); }

/* profile done: the payoff beat */
.screen-done { align-items: center; justify-content: center; }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gut); }
.done-wave { position: relative; width: 150px; height: 150px; }
.done-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.done-ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: rgba(14, 143, 110, .14); }
.ring-fg { stroke: var(--mint-4); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; }
.done-swell { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; }
.screen-done.is-active .done-swell { animation: swell 1.2s var(--ease) both; }
@keyframes swell { 0% { transform: translateX(-26px) scale(.6); opacity: 0; } 55% { transform: translateX(4px) scale(1.06); opacity: 1; } 100% { transform: none; } }
.done-check { position: absolute; right: 4px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; background: var(--mint-3); color: var(--ink);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px var(--bg), var(--shadow); transform: scale(0); }
.screen-done.is-active .done-check { animation: popIn .42s .8s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes popIn { from { transform: scale(0); } to { transform: none; } }
.done-pct { margin-top: 22px; font-size: var(--fs-num); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.done-h { margin-top: 6px; font-size: var(--fs-h1); }
.done-sum { margin-top: 10px; font-size: var(--fs-body); color: var(--mute); }
.screen-done.is-active .done-h, .screen-done.is-active .done-sum { animation: rise .6s .25s var(--ease) both; }

/* ================================================================== round 2: link editor */
.link-editor { margin-top: 12px; }
.link-editor .linkbox { margin-top: 0; }
.linkbox.edit { position: relative; padding-right: 44px; transition: border-color .2s; }
.linkbox.edit[data-state="ok"] { border-color: var(--mint-4); }
.linkbox.edit[data-state="bad"] { border-color: var(--bad); }
.link-state { position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; }
[data-state="check"] .link-state { border: 2.5px solid rgba(14, 143, 110, .2); border-top-color: var(--mint-4); animation: spin .7s linear infinite; }
[data-state="ok"] .link-state { background: var(--mint-4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
[data-state="bad"] .link-state { background: var(--bad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6.5v7M12 17.5v.01' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-hint { margin-top: 8px; min-height: 19px; font-size: var(--fs-small); line-height: 1.4; color: var(--mute); }
.link-hint.is-ok { color: var(--accent-ink); font-weight: 600; }
.link-hint.is-bad { color: var(--bad); }
.link-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.link-actions .btn.mini { width: 100%; height: 46px; }
.btn.mini:disabled { opacity: .35; }
.btn.mini.soft { background: var(--mint-2); }
.btn.mini.soft:active { background: #A2E9C7; }
.msg.ok { color: var(--accent-ink); font-weight: 600; }
.linkbox.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: var(--mint-3); } 100% { background: var(--bg); } }

/* ================================================================== round 2: share sheet */
.share-sheet { max-height: calc(100% - var(--sat) - 20px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 16px; }
.share-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.share-head .h-sheet { margin-top: 2px; }
.share-head .sub { margin-top: 6px; }
.fmts { list-style: none; margin-top: 14px; padding: 2px 14px; }
.fmt { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 8px 0; }
.fmt + .fmt { border-top: 1px solid var(--line); }
.fmt-thumb { width: 76px; height: 68px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px; overflow: hidden;
  background: linear-gradient(110deg, var(--mint-1) 30%, var(--mint-2) 50%, var(--mint-1) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.fmt-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 5px; box-shadow: 0 3px 8px -4px rgba(17, 20, 24, .5); object-fit: contain; opacity: 0; transition: opacity .3s; }
.fmt.is-ready .fmt-thumb { animation: none; background: none; }
.fmt.is-ready .fmt-thumb img { opacity: 1; }
@keyframes shimmer { to { background-position: -300% 0; } }
.fmt-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fmt-txt b { font: 600 var(--fs-body)/1.25 var(--font-body); }
.fmt-txt small { font-size: var(--fs-caption); line-height: 1.3; color: var(--mute); overflow-wrap: anywhere; }
.fmt .btn.mini { min-width: 76px; }
.share-links .fmt { min-height: 64px; }
.fmt-ico { width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--mint-1); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.share-links .fmt-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* share flow (3 Dec): step 1 = where, step 2 = image + steps + one action */
.share-sheet[data-step="pick"] .share-back { display: none; }
.share-head { align-items: flex-start; }
.share-head .circ { margin-top: 4px; }
.share-titles { flex: 1; min-width: 0; }
.share-back[hidden] { display: none; }
.plats { list-style: none; margin-top: 14px; padding: 4px 6px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.plats li + li { border-top: 1px solid var(--line); }
.plat { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 8px; border-radius: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.plat:active { background: var(--mint-1); }
.plat:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.plat .fmt-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plat-chev { color: var(--mute); display: flex; }
.mylink { margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--mint-2); display: grid; gap: 2px; }
.mylink-url { font-weight: 600; font-size: var(--fs-body); overflow-wrap: anywhere; }
.mylink .txt { justify-self: start; margin-top: 4px; font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.mylink .txt[hidden] { display: none; }
.share-go[hidden], .share-pick[hidden] { display: none; }
.go-media { margin-top: 14px; display: flex; justify-content: center; padding: 14px; border-radius: var(--r); background: var(--mint-2); }
.go-frame { display: block; width: 100%; max-width: 100%; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 24px -12px rgba(17, 20, 24, .45);
  background: linear-gradient(110deg, var(--mint-1) 30%, #fff 50%, var(--mint-1) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.go-media[data-fmt="story"] .go-frame { width: auto; height: min(300px, 38vh); }
.go-media[data-fmt="feed"] .go-frame { width: auto; height: min(270px, 34vh); }
.go-frame img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.go-frame.is-ready { animation: none; background: none; }
.go-frame.is-ready img { opacity: 1; }
.go-steps { list-style: none; margin-top: 12px; padding: 2px var(--pad); background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.go-steps li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; }
.go-steps li + li { border-top: 1px solid var(--line); }
.go-steps li > b { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-size: var(--fs-caption); display: flex; align-items: center; justify-content: center; }
.go-steps span { flex: 1; font-size: var(--fs-body); line-height: 1.35; }
.go-steps span b { font-weight: 600; }
.go-note { margin-top: 10px; font-size: var(--fs-small); color: var(--mute); text-align: center; }
.go-note[hidden] { display: none; }
.go-cta { margin-top: 14px; }
.go-alt[hidden] { display: none; }
.share-sheet .btn.ghost.go-alt { margin-top: 4px; height: 44px; font-size: var(--fs-small); color: var(--mute); }

/* while the share sheet is up, toasts sit at the top so they never cover its rows */
#app.sheet-on .toast { bottom: auto; top: calc(var(--sat) + 14px); transform: translate(-50%, -12px); }
#app.sheet-on .toast.is-on { transform: translate(-50%, 0); }

/* ================================================================== 404 page (public/404.html) */
body.nf-page { height: auto; min-height: 100dvh; overflow: auto; background: var(--wash-strong), #E8FFF1; }
.nf { min-height: 100dvh; display: flex; flex-direction: column; }
.nf-top { height: 64px; display: flex; align-items: center; padding: 0 var(--gut); }
.nf-main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 var(--gut) 12vh; max-width: 560px; margin: 0 auto; width: 100%; }
.nf-h { margin-top: 12px; font-size: var(--fs-h1); max-width: 12em; text-wrap: balance; }
.nf-vis { display: none; }
.nf-btn { width: auto; padding: 0 32px; margin-top: 28px; }

/* ================================================================== 3 Dec: "What best describes you?" + brand leads form */
.ob-bar .bar-tag { font: var(--fw-medium) var(--fs-small)/18px var(--font-body); color: var(--accent-ink); margin-left: 4px; }
.rtiles { display: grid; gap: 12px; margin-top: 24px; }
.rtile {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px; border-radius: var(--r);
  background: var(--card); box-shadow: var(--shadow); text-align: left; width: 100%;
  transition: transform .16s var(--ease), background .2s, box-shadow .2s;
}
.rtile:active { transform: scale(.98); }
.rtile-ico { width: 48px; height: 48px; flex: none; border-radius: 15px; background: var(--mint-1); color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.rtile-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rtile-n { font-size: var(--fs-num); }
.rtile small { font-size: var(--fs-small); line-height: 1.3; color: var(--mute); }
.rtile .tick { width: 24px; height: 24px; flex: none; border: 1.5px solid var(--mute2); color: transparent; }
.rtile[aria-checked="true"] { background: var(--mint-2); box-shadow: inset 0 0 0 2px var(--mint-4), var(--shadow); }
.rtile[aria-checked="true"] .rtile-ico { background: var(--card); }
.rtile[aria-checked="true"] small { color: var(--deep); }
.rtile[aria-checked="true"] .tick { background: var(--mint-4); border-color: var(--mint-4); color: #fff; animation: pop .32s var(--ease); }

.brand-body { padding-bottom: 20px; }
.bfields { margin-top: 20px; padding: 2px var(--pad); }
.bfields.bf-msg { margin-top: 14px; }
.bf { display: block; padding: 12px 0 10px; }
.bf + .bf { border-top: 1px solid var(--line); }
.bf .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--mute); }
.bf input, .bf textarea { display: block; width: 100%; margin-top: 4px; border: 0; outline: 0; background: transparent; font: var(--fw-medium) var(--fs-ui)/1.35 var(--font-body); color: var(--ink); }
.bf input { height: 32px; }
.bf textarea { resize: none; min-height: 66px; padding: 2px 0; }
.bf:focus-within .lbl { color: var(--accent-ink); }
.blbl { margin-top: 20px; font: 600 var(--fs-small)/1.2 var(--font-body); color: var(--ink); }
.blbl span { font-weight: 400; color: var(--mute); }
.bchips { margin-top: 10px; }
.chipb.bud { height: 40px; padding: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bdone .done-h { margin-top: 24px; }
.bdone .done-sum { max-width: 26ch; }
.bdone-btn { margin-top: 28px; width: auto; min-width: 200px; padding: 0 32px; }
.ring-full { stroke-dashoffset: 0; transition: none; }
.screen-done.is-active .bdone .done-check { animation: none; transform: none; }
.screen-done.is-active .bdone .done-swell { animation: swell 1s var(--ease) both; }
