/* Round 3 tokens, HapDay-like: white or very light neutral base, ONE brand accent (SpeechDesk teal) for buttons,
   progress and selection; soft pastel cards (peach, cream, lilac) on value screens; warm orange only for her own hours;
   red only as small point accents on the result. Light default, dark via prefers-color-scheme, forced via html.light / html.dark. */
:root {
  --board: #eef0f3; --board-ink: #1e293b;
  --screen: #ffffff; --surface: #ffffff; --surface-2: #f5f6f8; --surface-3: #eceef2;
  --line: #eceef2; --line-strong: #d3d8e0; --track: #eceef2;
  --text: #1c2230; --muted: #667085; --faint: #98a2b3;
  --accent: #0d9488; --accent-2: #14b8a6; --accent-soft: #ecfaf7; --accent-line: #b5e9df; --accent-ink: #0f766e; --on-accent: #ffffff;
  --accent-shadow: 0 8px 20px rgba(13, 148, 136, .24);
  --warm: #f97316; --warm-2: #fdba74; --warm-3: #fed7aa; --warm-ink: #c2410c;
  --peach: #fff4ec; --peach-line: #fde3cf;
  --cream: #fff9ea; --cream-line: #f4e6bd;
  --lilac: #f4f1fe; --lilac-line: #e3ddfb; --lilac-ink: #5b4bc4;
  --red: #e5484d; --red-ink: #c4262b; --amber: #f0b03a;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .07);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --scrim: rgba(16, 20, 28, .42);
  --desk-bg: radial-gradient(900px 520px at 10% 0%, #fff1e6 0%, transparent 62%), radial-gradient(800px 520px at 100% 100%, #e8f7f4 0%, transparent 60%), #f7f8fa;
  --mono: "SF Mono", Menlo, Monaco, "Courier New", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --board: #05070a; --board-ink: #cbd5e1;
    --screen: #0f1216; --surface: #171b21; --surface-2: #1c2128; --surface-3: #232933;
    --line: #262c35; --line-strong: #3a4250; --track: #262c35;
    --text: #eef1f5; --muted: #a3acb9; --faint: #6e7787;
    --accent: #14b8a6; --accent-2: #2dd4bf; --accent-soft: #102724; --accent-line: #1d4a44; --accent-ink: #5eead4; --on-accent: #04201d;
    --accent-shadow: 0 8px 20px rgba(20, 184, 166, .18);
    --warm: #fb923c; --warm-2: #f6b27e; --warm-3: #7a4a26; --warm-ink: #fdba74;
    --peach: #241a14; --peach-line: #42301f;
    --cream: #221e12; --cream-line: #40381c;
    --lilac: #1c1a2c; --lilac-line: #35305a; --lilac-ink: #b9adff;
    --red: #f87171; --red-ink: #fca5a5; --amber: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --scrim: rgba(0, 0, 0, .6);
    --desk-bg: radial-gradient(900px 520px at 10% 0%, #22170f 0%, transparent 62%), radial-gradient(800px 520px at 100% 100%, #0d201d 0%, transparent 60%), #0a0c10;
  }
}
:root.dark {
  --board: #05070a; --board-ink: #cbd5e1;
  --screen: #0f1216; --surface: #171b21; --surface-2: #1c2128; --surface-3: #232933;
  --line: #262c35; --line-strong: #3a4250; --track: #262c35;
  --text: #eef1f5; --muted: #a3acb9; --faint: #6e7787;
  --accent: #14b8a6; --accent-2: #2dd4bf; --accent-soft: #102724; --accent-line: #1d4a44; --accent-ink: #5eead4; --on-accent: #04201d;
  --accent-shadow: 0 8px 20px rgba(20, 184, 166, .18);
  --warm: #fb923c; --warm-2: #f6b27e; --warm-3: #7a4a26; --warm-ink: #fdba74;
  --peach: #241a14; --peach-line: #42301f;
  --cream: #221e12; --cream-line: #40381c;
  --lilac: #1c1a2c; --lilac-line: #35305a; --lilac-ink: #b9adff;
  --red: #f87171; --red-ink: #fca5a5; --amber: #fbbf24;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --scrim: rgba(0, 0, 0, .6);
  --desk-bg: radial-gradient(900px 520px at 10% 0%, #22170f 0%, transparent 62%), radial-gradient(800px 520px at 100% 100%, #0d201d 0%, transparent 60%), #0a0c10;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--board); color: var(--board-ink); padding: 40px; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
b { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: block; }

/* ---------- board ---------- */
.board-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; max-width: 1700px; }
.board-head h2 { font-size: 24px; margin-bottom: 6px; }
.board-head p { font-size: 14px; opacity: .78; max-width: 980px; line-height: 1.5; }
.theme-sw { display: flex; gap: 6px; flex-shrink: 0; }
.theme-sw span { padding: 8px 12px; border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; border: 1px solid var(--line); }
section.board { margin-bottom: 56px; }
section.board > h3 { font-size: 16px; margin-bottom: 18px; opacity: .85; }
.frames { display: flex; flex-wrap: wrap; gap: 44px 32px; align-items: flex-start; }
.frame figcaption { font-size: 13px; margin-bottom: 10px; color: var(--board-ink); opacity: .9; max-width: 390px; line-height: 1.4; }
.frame figcaption b { display: inline-block; min-width: 28px; padding: 2px 7px; margin-right: 6px; border-radius: 6px; background: var(--board-ink); color: var(--board); font-size: 12px; text-align: center; }
.frame figcaption i { display: block; font-style: normal; opacity: .75; margin-top: 3px; }
.frame figcaption .wait { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 6px; background: #ffe58a; color: #3d3100; font-weight: 700; }
.desk-frames { flex-direction: column; }

/* ---------- phone screen ---------- */
.screen {
  position: relative; width: 390px; height: 844px; overflow: hidden;
  background: var(--screen); color: var(--text); border-radius: 40px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; font-size: 16px; line-height: 1.4;
}
/* long screens clip without becoming a scroll container, so the CTA can stick to the viewport bottom */
.screen.long { height: auto; min-height: 844px; overflow: clip; }
.scr { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.scr-pad { padding: 0 20px 150px; display: flex; flex-direction: column; }
.screen.long .scr-pad { padding-bottom: 8px; }
.screen.long:not(:has(> .cta)) .scr-pad { padding-bottom: 40px; }
.scr-pad.center { align-items: center; text-align: center; }
.cta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 18px 20px max(22px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--screen) 76%, rgba(0, 0, 0, 0));
  display: flex; flex-direction: column; gap: 10px;
}
.screen.long > .cta { position: sticky; bottom: 0; margin-top: 8px; padding-top: 26px; }
.btn {
  min-height: 58px; border-radius: 18px; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; cursor: pointer;
  font-size: 17px; font-weight: 700; padding: 12px 20px; line-height: 1.25; box-shadow: var(--accent-shadow);
  border: none; font-family: inherit; width: 100%; user-select: none; -webkit-user-select: none;
  transition: transform .12s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:active { transform: scale(.98); }
.btn.off { background: var(--track); color: var(--faint); box-shadow: none; pointer-events: none; }
.btn.outline { background: var(--surface); color: var(--text); border: 1.5px solid var(--line-strong); box-shadow: none; min-height: 52px; font-size: 16px; }
.btn.outline.done { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.btn.small { min-height: 42px; border-radius: 13px; font-size: 14.5px; padding: 8px 12px; gap: 7px; }
.btn.small svg.i { width: 17px; height: 17px; }
.fine { font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.4; }
.hint-off { font-size: 13px; color: var(--faint); text-align: center; }
.link { font-size: 13.5px; color: var(--muted); text-align: center; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* header: back, steady progress bar, «N з 7» */
.top { display: flex; align-items: center; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 18px 10px 10px; min-height: 64px; }
.back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text); flex-shrink: 0; cursor: pointer; }
.back svg.i { width: 24px; height: 24px; }
.back.ghost { visibility: hidden; }
.bar { flex: 1; height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent-2); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.step { flex-shrink: 0; min-width: 44px; text-align: right; font-size: 14px; font-weight: 650; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.step.fu { color: var(--accent-ink); }

.brand { display: flex; align-items: center; gap: 9px; padding: max(18px, env(safe-area-inset-top)) 20px 0; font-weight: 700; font-size: 16px; }
.brand img { width: 26px; height: 27px; }
.slim-brand { padding-bottom: 6px; }
.slim { margin: 14px 20px 0; height: 4px; border-radius: 99px; background: var(--track); overflow: hidden; }
.slim i { display: block; height: 100%; width: 10%; background: var(--accent-2); border-radius: inherit; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.q { margin-top: 12px; }
.q-title { font-size: 26px; line-height: 1.2; letter-spacing: -.015em; font-weight: 800; margin-top: 8px; }
.q-hint { font-size: 15.5px; color: var(--muted); margin-top: 8px; }
.q-optional { font-size: 13px; color: var(--faint); margin: 4px 0 0; }
.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.opt {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 13px 16px 13px 18px; cursor: pointer;
  border-radius: 16px; background: var(--surface-2); border: 1.5px solid transparent;
  font-size: 17px; font-weight: 600; line-height: 1.25; user-select: none; -webkit-user-select: none;
  transition: background-color .2s ease, border-color .2s ease, transform .12s ease;
}
.opt:active { transform: scale(.985); }
.opt .ic { color: var(--muted); transition: color .2s ease; }
.opt .ic svg.i { width: 22px; height: 22px; stroke-width: 1.8; }
.opt .lbl { flex: 1; }
.opt .sub { font-weight: 500; color: var(--muted); font-size: 15px; }
.opt .mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: var(--on-accent); flex-shrink: 0; transition: background-color .2s ease, border-color .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.opt .mark svg.i { width: 15px; height: 15px; stroke-width: 3; }
.opt .mark svg.i path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .28s .06s ease; }
.opt.multi .mark { border-radius: 7px; }
.opt.on { border-color: var(--accent-2); background: var(--accent-soft); }
.opt.on .ic { color: var(--accent-ink); }
.opt.on .mark { border-color: var(--accent); background: var(--accent); transform: scale(1.06); }
.opt.on .mark svg.i path { stroke-dashoffset: 0; }
.opts.tight .opt { min-height: 54px; padding-top: 11px; padding-bottom: 11px; font-size: 16.5px; }

.mock-note { background: #ffe58a; color: #3d3100; font-size: 12.5px; font-weight: 700; padding: 8px 16px; text-align: center; line-height: 1.35; }

/* ---------- 0a / 0b entry ---------- */
.entry .scr { padding-bottom: 150px; }
.entry .eyebrow { margin: auto 20px 0; text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 650; color: var(--muted); }
.hook { font-size: 38px; line-height: 1.12; letter-spacing: -.025em; font-weight: 850; margin: 8px 20px 0; color: var(--text); }
.preview {
  margin: 28px 20px auto; padding: 20px 18px 18px; border-radius: 26px; background: var(--peach);
  border: 1px solid var(--peach-line); position: relative; overflow: hidden;
}
.preview::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(167, 139, 250, .18), transparent 70%); }
.pv-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pv-label svg.i { width: 15px; height: 15px; }
.pv-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 6px; }
.pv-num { font-size: 96px; line-height: .95; font-weight: 850; letter-spacing: -.04em; color: var(--warm); filter: blur(2.4px); padding: 0 4px; opacity: .85; }
.pv-unit { font-size: 19px; font-weight: 750; padding-bottom: 12px; color: var(--text); }
.pv-sub { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.pv-bar { display: flex; gap: 4px; height: 12px; margin-top: 16px; filter: blur(1.2px); }
.pv-bar i { border-radius: 99px; }
.pv-chips { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.pv-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; white-space: nowrap; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 650; }
.pv-chips span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }

/* ---------- C1: her notes hours, calm ---------- */
.c1 { margin-top: 24px; border-radius: 26px; background: var(--peach); border: 1px solid var(--peach-line); padding: 26px 22px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.c1-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--warm-ink); box-shadow: var(--shadow-sm); }
.c1-ic svg.i { width: 28px; height: 28px; stroke-width: 1.8; }
.c1 .eyebrow { margin-top: 18px; }
.hero-row { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin-top: 8px; }
.hero-num { font-size: 100px; line-height: .9; font-weight: 850; letter-spacing: -.045em; color: var(--warm); padding-right: 4px; }
.hero-unit { font-size: 20px; font-weight: 750; line-height: 1.15; padding-bottom: 10px; text-align: left; }
.hero-sub { font-size: 16px; color: var(--muted); margin-top: 14px; line-height: 1.45; }

/* ---------- R1: calculating, two columns ---------- */
.ring { --p: 0; margin-top: 30px; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent-2) calc(var(--p) * 1%), var(--track) 0); position: relative; flex-shrink: 0; }
.ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--screen); }
.ring span { position: relative; z-index: 1; font-size: 27px; font-weight: 850; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.ba { width: 100%; margin-top: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: left; overflow: hidden; }
.ba-head { display: grid; grid-template-columns: 1fr 1fr; }
.ba-head div { display: flex; align-items: center; gap: 7px; padding: 12px 14px; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.ba-head div svg.i { width: 16px; height: 16px; }
.ba-head .now { background: var(--peach); color: var(--warm-ink); }
.ba-head .plan { background: var(--accent-soft); color: var(--accent-ink); }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ba-row > div { padding: 12px 14px; min-height: 76px; display: flex; flex-direction: column; justify-content: center; }
.ba-row .l { border-right: 1px solid var(--line); }
.ba-name { font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.ba-val { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ba-val b { font-size: 17px; font-weight: 800; color: var(--warm-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ba-val i { height: 8px; border-radius: 99px; background: var(--warm-2); display: block; transform-origin: left; }
.ba-auto { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.3; }
.ba-auto .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex-shrink: 0; margin-top: -1px; }
.ba-auto .ok svg.i { width: 13px; height: 13px; stroke-width: 3; }
.ba-row.wait .r .ba-auto { visibility: hidden; }
.ba-row.wait .r { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.ba-row.wait .r::after { content: ""; display: block; height: 10px; width: 70%; border-radius: 99px; background: var(--line); }
.ba-row.hide-l .l > * { visibility: hidden; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ba-cap { display: flex; gap: 7px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; color: var(--faint); line-height: 1.4; text-align: left; }
.ba-cap svg.i { width: 15px; height: 15px; margin-top: 1px; }

/* ---------- result ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.card-label { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 20px; font-weight: 800; margin-top: 6px; line-height: 1.22; letter-spacing: -.01em; }
.r-eyebrow { margin-top: 8px; text-align: center; color: var(--muted); }
.donut { position: relative; width: 252px; height: 252px; margin: 14px auto 0; }
.donut .ringc { position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #000 calc(100% - 21px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #000 calc(100% - 21px)); }
.donut .glow { position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .10), transparent 70%); }
.donut .mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big { font-size: 108px; line-height: .86; font-weight: 850; letter-spacing: -.05em; color: var(--warm); padding: 0 6px; font-variant-numeric: tabular-nums; }
.big-unit { font-size: 17px; font-weight: 750; margin-top: 8px; color: var(--text); }
.r-sub { text-align: center; font-size: 16.5px; color: var(--muted); margin: 14px 10px 0; line-height: 1.42; }
.days { display: flex; flex-direction: column; align-items: center; margin-top: 14px; gap: 10px; }
.days-pill { display: inline-flex; padding: 8px 14px; border-radius: 99px; background: var(--peach); border: 1px solid var(--peach-line); color: var(--warm-ink); font-weight: 800; font-size: 15px; }
.day-tiles { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; }
.day-tiles i { height: 10px; border-radius: 99px; background: var(--track); overflow: hidden; position: relative; }
.day-tiles i::after { content: ""; position: absolute; inset: 0; width: var(--f); background: var(--warm-2); border-radius: inherit; }

.stack { display: flex; height: 32px; border-radius: 12px; overflow: hidden; gap: 3px; margin-top: 14px; }
.stack i { display: flex; align-items: center; justify-content: center; color: #4a1d06; font-style: normal; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.stack .s-main { background: var(--warm); color: #fff; }
.stack .s-or { background: var(--warm-3); }
:root.dark .stack .s-main { color: #2a1206; }
:root.dark .stack .s-or { color: #fde4cc; }
@media (prefers-color-scheme: dark) { :root:not(.light) .stack .s-main { color: #2a1206; } :root:not(.light) .stack .s-or { color: #fde4cc; } }
.prow { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: start; padding: 14px 0 0; }
.prow + .prow { border-top: 1px solid var(--line); margin-top: 14px; }
.pdot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.pdot.main { background: var(--warm); } .pdot.or { background: var(--warm-2); } .pdot.nt { background: var(--line-strong); }
.pname { font-size: 16.5px; font-weight: 750; line-height: 1.3; }
.pval { font-size: 20px; font-weight: 850; white-space: nowrap; letter-spacing: -.01em; color: var(--warm-ink); }
.pval.nt { color: var(--muted); }
.ptag { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 12.5px; font-weight: 750; }
.ptag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.facts { grid-column: 2 / 4; margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--peach); border: 1px solid var(--peach-line); }
.facts .card-label { font-size: 11.5px; }
.fact { display: flex; gap: 9px; margin-top: 7px; font-size: 15px; font-weight: 650; color: var(--text); line-height: 1.35; }
.fact::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-top: 7px; }

/* calculator, landing look, softened */
.calc-head { display: flex; align-items: center; gap: 10px; }
.calc-head .hic { width: 36px; height: 36px; border-radius: 11px; background: var(--peach); color: var(--warm-ink); display: grid; place-items: center; flex-shrink: 0; }
.calc-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.slider { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--surface-2); }
.sl-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sl-top span { font-size: 13.5px; font-weight: 650; color: var(--muted); line-height: 1.35; }
.sl-badge { background: var(--surface); color: var(--text) !important; border: 1px solid var(--line); font-size: 17px !important; font-weight: 800 !important; padding: 5px 10px; border-radius: 9px; white-space: nowrap; }
.sl-track { position: relative; height: 26px; margin-top: 14px; }
.sl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%); border-radius: 3px; background: var(--line); }
.sl-fill { position: absolute; left: 0; top: 50%; height: 6px; transform: translateY(-50%); border-radius: 3px; background: var(--accent-2); }
.sl-thumb { position: absolute; top: 50%; width: 26px; height: 26px; margin-left: -13px; transform: translateY(-50%); border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(13, 148, 136, .3); pointer-events: none; }
.sl-track input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.sl-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--faint); font-weight: 600; }
.receipt { margin-top: 16px; padding: 14px 4px; border-top: 2px dashed var(--line-strong); border-bottom: 2px dashed var(--line-strong); font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text); }
.rc-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rc-row + .rc-row { margin-top: 10px; }
.rc-row b { white-space: nowrap; font-size: 14.5px; }
.rc-row small { display: block; color: var(--faint); font-size: 12px; }
.loss { margin-top: 16px; border-radius: 18px; background: var(--cream); border: 1px solid var(--cream-line); padding: 16px 18px 18px; }
.loss-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.loss-head svg.i { width: 17px; height: 17px; color: var(--amber); }
.loss-num { margin-top: 10px; font-size: 44px; line-height: 1; font-weight: 850; letter-spacing: -.03em; color: var(--warm-ink); font-variant-numeric: tabular-nums; }
.loss-note { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* grow map: thin colour bars as point accents, names in ink */
.grow-sub { font-size: 14.5px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.zone { display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.zone + .zone { border-top: 1px solid var(--line); }
.zone .zbar { align-self: stretch; border-radius: 4px; background: var(--line-strong); }
.zone .zname { font-size: 15.5px; font-weight: 800; }
.zone .zfact { font-size: 14.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.zone.red .zbar { background: var(--amber); }
.zone.or .zbar { background: var(--warm); }
.zone.am .zbar { background: var(--amber); }
.lvl { display: flex; gap: 3px; align-items: flex-end; }
.lvl i { width: 6px; border-radius: 2px; background: var(--track); }
.lvl i:nth-child(1) { height: 9px; } .lvl i:nth-child(2) { height: 14px; } .lvl i:nth-child(3) { height: 19px; }
.zone.red .lvl i { background: var(--amber); }
.zone.or .lvl i:nth-child(-n+2) { background: var(--warm); }
.zone.am .lvl i:nth-child(1) { background: var(--amber); }

/* ---------- F: what is in the PDF, phone, two messenger buttons ---------- */
.f-title { font-size: 28px; line-height: 1.15; font-weight: 850; letter-spacing: -.02em; margin-top: 8px; }
.f-lead { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 18px; }
.pain { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; margin-top: 10px; padding: 14px; border-radius: 18px; }
.pain.peach { background: var(--peach); border: 1px solid var(--peach-line); }
.pain.cream { background: var(--cream); border: 1px solid var(--cream-line); }
.pain .pic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; color: var(--warm-ink); }
.pain .pt { font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.pain .pt b { color: var(--warm-ink); font-weight: 850; }
.pain .ps { display: flex; gap: 7px; align-items: flex-start; margin-top: 6px; font-size: 14px; font-weight: 650; color: var(--text); line-height: 1.35; }
.pain .ps svg.i { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.6; margin-top: 1px; }
.vs { margin-top: 14px; display: flex; flex-direction: column; }
.vs-item { display: grid; grid-template-columns: 40px 1fr 22px; gap: 12px; align-items: center; padding: 11px 0; }
.vs-item + .vs-item { border-top: 1px solid var(--line); }
.vs-ic { width: 40px; height: 40px; border-radius: 13px; background: var(--lilac); border: 1px solid var(--lilac-line); color: var(--lilac-ink); display: grid; place-items: center; }
.vs-ic svg.i { stroke-width: 1.8; }
.vs-t { font-size: 16px; font-weight: 750; line-height: 1.25; }
.vs-s { font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.vs-ok { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.vs-ok svg.i { width: 13px; height: 13px; stroke-width: 3; }
.f-lbl { display: block; font-size: 15px; font-weight: 800; margin-top: 26px; }
.f-lbl em { font-style: normal; color: var(--accent-ink); margin-left: 3px; }
.field { margin-top: 8px; min-height: 58px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--accent-2); padding: 0 16px; font-size: 17px; display: flex; align-items: center; gap: 10px; font-weight: 650; box-shadow: 0 0 0 4px var(--accent-soft); }
.field .pfx { color: var(--muted); padding-right: 10px; border-right: 1px solid var(--line); }
.field input { border: none; outline: none; background: transparent; color: var(--text); font: inherit; width: 100%; min-width: 0; padding: 16px 0; }
.msgr { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.msgr .link { margin-top: 6px; }

/* ---------- bottom sheet over F ---------- */
.scrim { position: absolute; inset: 0; background: var(--scrim); z-index: 10; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; background: var(--screen); border-radius: 28px 28px 0 0; padding: 10px 20px max(24px, env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .18); border-top: 1px solid var(--line); }
.grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 0 auto 14px; }
.sh-head { display: flex; align-items: center; gap: 10px; }
.sh-app { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.sh-who { flex: 1; min-width: 0; }
.sh-who b { display: block; font-size: 15px; }
.sh-who span { font-size: 13.5px; color: var(--muted); }
.sh-x { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.sh-x svg.i { width: 18px; height: 18px; }
.sh-title { font-size: 24px; font-weight: 850; letter-spacing: -.015em; margin-top: 18px; line-height: 1.2; }
.msg-box { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1.5px dashed var(--line-strong); font-size: 17px; line-height: 1.4; font-weight: 600; user-select: all; -webkit-user-select: all; }
.msg-box b { white-space: nowrap; }
.sheet .btn.outline { margin-top: 12px; }
.sheet .btn.go { margin-top: 10px; }
.sh-hint { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.sh-hint svg.i { width: 16px; height: 16px; }

/* ---------- F2 return ---------- */
.done-ic { margin-top: 28px; width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.done-ic svg.i { width: 38px; height: 38px; stroke-width: 1.7; }
.f2-title { font-size: 27px; line-height: 1.15; font-weight: 850; letter-spacing: -.02em; margin-top: 18px; }
.f2-text { font-size: 16.5px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.code { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--surface); }
.code span { color: var(--muted); font-size: 14px; }
.code b { font-size: 19px; letter-spacing: .03em; white-space: nowrap; }
.fallback { width: 100%; margin-top: 22px; padding: 16px; border-radius: 20px; background: var(--surface-2); text-align: left; }
.fb-title { font-size: 16.5px; font-weight: 800; }
.fb-hint { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.fallback .msg-box { background: var(--surface); font-size: 15.5px; padding: 12px 14px; }
.fb-row { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fb-who { display: flex; align-items: center; gap: 10px; }
.fb-who .sh-app { width: 34px; height: 34px; border-radius: 10px; }
.fb-who .sh-app svg.i { width: 18px; height: 18px; }
.fb-who b { font-size: 15.5px; }
.fb-who span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fb-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: 8px; margin-top: 10px; }
.fb-btns .btn { box-shadow: none; font-size: 14px; padding: 8px 8px; min-width: 0; min-height: 44px; }

/* ---------- desktop ---------- */
.desk { width: 1280px; min-height: 800px; position: relative; overflow: clip; background: var(--desk-bg); color: var(--text); border-radius: 18px; box-shadow: var(--shadow); padding-bottom: 40px; }
.desk-head { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 40px; font-size: 16px; }
.desk-head img { width: 28px; height: 29px; }
.desk-main { display: flex; justify-content: center; align-items: flex-start; padding-top: 18px; }
.desk-main.mid { align-items: center; min-height: 680px; padding-top: 0; }
.screen.in-desk.entry .scr { padding-bottom: 0; }
.screen.in-desk.entry .eyebrow { margin-top: 36px; }
.screen.in-desk.entry .preview { margin-bottom: 0; }
.screen.in-desk { width: 560px; height: auto; border-radius: 28px; overflow: clip; }
.screen.in-desk .brand { display: none; }
.screen.in-desk:not(.long) .cta { position: static; background: none; padding: 22px 20px 24px; }
.screen.in-desk .scr-pad { padding-bottom: 4px; }
.screen.in-desk.wide { width: 1080px; }
.screen.in-desk.wide .scr-pad { padding: 0 40px 8px; }
.screen.in-desk.wide .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
.screen.in-desk.wide > .cta { max-width: 440px; margin-left: auto; margin-right: auto; width: 100%; border-radius: 0; }
.screen.in-desk.wide .colB > .card:first-child { margin-top: 0; }
.screen.in-desk.wide .r-eyebrow { margin-top: 18px; }
.screen.in-desk.wide .colB .f-lbl:first-child { margin-top: 18px; }
.screen.in-desk.wide .colB { position: sticky; top: 20px; }

/* ---------- R scrolled to the middle (viewport frame) ---------- */
.screen.viewport { overflow: hidden; }
.vp-scroll { height: 100%; overflow-y: auto; scrollbar-width: none; }
.vp-scroll::-webkit-scrollbar { display: none; }
.vp-scroll > .screen { border-radius: 0; box-shadow: none; width: 100%; }

/* ---------- solo mode for screenshots ---------- */
html.solo body { padding: 0; background: var(--screen); }
html.solo .screen:not(.in-desk) { border-radius: 0; box-shadow: none; }
html.solo .desk { border-radius: 0; box-shadow: none; }

/* =================== round 4 additions =================== */
/* her own numbers in warm orange (R1 lines, R hook) */
.wn { color: var(--warm-ink); font-weight: 850; }

/* SC: scenes of the last month, eight multi options without icons so they fit one phone screen */
.opts.sc { gap: 8px; margin-top: 16px; }
.opts.sc .opt { min-height: 50px; padding: 10px 14px 10px 16px; font-size: 16px; gap: 12px; border-radius: 15px; }
.opts.sc .opt[data-code="sc_none"] { margin-top: 6px; background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.opts.sc .opt[data-code="sc_none"].on { border-style: solid; border-color: var(--accent-2); background: var(--accent-soft); color: var(--text); }

/* R1: calculating without ring and percent, three lines one by one */
.r1 { flex: 1; justify-content: center; padding-top: 0; padding-bottom: 96px; }
.r1-dots { display: flex; gap: 7px; height: 10px; }
.r1-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); opacity: .35; animation: r1dot 1.2s ease-in-out infinite; }
.r1-dots i:nth-child(2) { animation-delay: .2s; } .r1-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes r1dot { 40% { opacity: 1; transform: translateY(-3px); } }
.r1-title { margin-top: 22px; }
.r1-lines { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 26px; text-align: left; }
.r1-line { display: grid; grid-template-columns: 40px 1fr 24px; gap: 12px; align-items: center; padding: 15px 14px; border-radius: 20px; background: var(--peach); border: 1px solid var(--peach-line);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.r1-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--warm-ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.r1-ic svg.i { stroke-width: 1.8; }
.r1-t { font-size: 16.5px; font-weight: 650; line-height: 1.38; color: var(--text); }
.r1-t .wn { white-space: nowrap; }
.r1-line .r1-t .wn:first-child { font-size: 19px; letter-spacing: -.01em; }
.r1-ok { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; transition: transform .4s cubic-bezier(.3, 1.7, .5, 1) .25s, opacity .3s ease .25s; }
.r1-ok svg.i { width: 14px; height: 14px; stroke-width: 3; }
.r1-line.total { background: var(--cream); border-color: var(--cream-line); padding: 18px 14px; }
.r1-line.total .r1-t { font-size: 17.5px; font-weight: 750; }
.r1-line.total .r1-t .wn:first-child { font-size: 24px; }
.r1-line.bridge { background: var(--accent-soft); border-color: var(--accent-line); }
.r1-line.bridge .r1-ic { color: var(--accent-ink); }
.r1-line.bridge .r1-t { font-weight: 750; color: var(--accent-ink); }
.r1-line[data-r1-scene] { background: var(--surface-2); border-color: var(--line); }
.r1-line.hide { opacity: 0; transform: translateY(10px); }
.r1-line.hide .r1-ok { opacity: 0; transform: scale(.3); }

/* R: owner's first line above the number */
.r-hook { font-size: 25px; line-height: 1.2; font-weight: 850; letter-spacing: -.02em; text-align: center; margin: 12px 4px 0; }
.r-hook + .r-eyebrow { margin-top: 18px; }
.r-hook .wn { white-space: nowrap; }
.facts .fact::before { background: var(--warm); }
.facts .fact [data-fill] { font-weight: 750; }

/* F: stack items with her zones, «Як отримати», optional phone */
.vs-item.hers .vs-ic { background: var(--peach); border-color: var(--peach-line); color: var(--warm-ink); }
.vs-t b { color: var(--warm-ink); font-weight: 800; }
.how { margin-top: 22px; padding: 18px 16px 16px; border-radius: 22px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.how-t { font-size: 19px; line-height: 1.25; font-weight: 850; letter-spacing: -.01em; }
.how-steps { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.how-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.how-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.how-s { font-size: 15px; line-height: 1.42; color: var(--text); font-weight: 500; padding-top: 3px; }
.how-s b { font-weight: 800; }
.f-lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 24px; }
.f-lbl-row .f-lbl { margin-top: 0; }
.f-opt { font-size: 13px; color: var(--faint); font-weight: 600; white-space: nowrap; }
.field.opt-field { border-color: var(--line-strong); box-shadow: none; }
.field .caret { width: 2px; height: 22px; background: var(--accent); border-radius: 1px; animation: caret 1.1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.screen.in-desk.wide .colB .how:first-child { margin-top: 18px; }

/* designer note under a frame, never on the screen */
.frame .dn { max-width: 390px; margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: var(--board-ink); opacity: .6; }
.frame figcaption .var { display: inline-block; margin: 0 0 4px; padding: 2px 9px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 800; }
.frame.pair-a, .frame.pair-b { position: relative; }


.qline { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--accent-2); font-size: 14.5px; line-height: 1.38; color: var(--text); font-weight: 600; }
.q .eyebrow + .q-title { margin-top: 8px; }
.opt .sub { display: inline-block; }

.screen.m0 .brand { padding-bottom: 2px; }
.screen.m0 .q { margin-top: 18px; }
.screen.m0 .q-title { font-size: 28px; line-height: 1.16; letter-spacing: -.02em; }
.m0opts { gap: 9px; margin-top: 18px; }
.m0opts .opt.m0-card { min-height: 60px; padding: 12px 14px; font-size: 16.5px; gap: 12px; border-radius: 16px; background: var(--surface-2); }
.m0opts .opt.m0-card .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; color: var(--warm-ink); box-shadow: var(--shadow-sm); }
.m0opts .opt.m0-card .ic svg.i { width: 19px; height: 19px; }
.m0opts .opt.m0-card.on .ic { color: var(--accent-ink); }
.m0opts .opt.m0-none { min-height: 44px; margin-top: 2px; padding: 8px 14px; background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: 14.5px; font-weight: 600; }
.m0opts .opt.m0-none.on { border-style: solid; border-color: var(--accent-2); background: var(--accent-soft); color: var(--text); }
.m0-sub { margin-top: 14px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.screen.m0 > .cta { background: linear-gradient(to top, var(--screen) 70%, rgba(0, 0, 0, 0)); }

.c1.g5 { margin-top: 14px; padding: 18px 18px 20px; }
.c1.g5 .eyebrow { margin-top: 0; }
.c1.g5 .hero-num { font-size: 84px; }
.fact5 { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--lilac); border: 1px solid var(--lilac-line); }
.fact5 .f5-ic { width: 34px; height: 34px; border-radius: 11px; background: var(--surface); color: var(--lilac-ink); display: grid; place-items: center; }
.fact5 .f5-ic svg.i { width: 18px; height: 18px; }
.fact5 p { font-size: 15px; line-height: 1.42; font-weight: 600; color: var(--text); }

.r5r1 { justify-content: flex-start; padding-top: 34px; }
.r5r1 .r1-lines { gap: 10px; margin-top: 20px; }
.r1-line.r5b { align-items: start; padding: 13px 12px; }
.r1-line.r5b .r1-t { font-size: 15.5px; }
.r1-line.r5b .r1-ok { margin-top: 8px; }
.r1-t .bl { display: block; }
.r1-t .bl + .bl { margin-top: 3px; }
.r1-t .bl.wn { font-size: 15.5px; white-space: normal; }
.r1-t .lab { font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.r1-t .hers { font-weight: 750; }
.r1cta { width: 100%; transition: opacity .35s ease, transform .35s ease; }
.r1cta.hide { opacity: 0; transform: translateY(8px); pointer-events: none; }

.clk { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 800; color: var(--accent-ink); white-space: nowrap; }
.clk svg.i { width: 15px; height: 15px; }
.s5-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 14px; font-weight: 800; }

.needs5 { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.need { border-radius: 18px; padding: 12px 14px 13px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.need-h { display: flex; align-items: center; gap: 9px; }
.need-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.need-ic svg.i { width: 17px; height: 17px; }
.need.functional .need-ic { background: var(--accent-soft); color: var(--accent-ink); }
.need.emotional .need-ic { background: var(--peach); color: var(--warm-ink); }
.need.social .need-ic { background: var(--lilac); color: var(--lilac-ink); }
.need-t { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.need-li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; margin-top: 9px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.need-li svg.i { width: 16px; height: 16px; stroke-width: 2.8; color: var(--accent); margin-top: 2px; }
.f-more { margin-top: 12px; font-size: 14.5px; color: var(--muted); font-weight: 650; }
.form5 { margin-top: 4px; }
.form5 .f-lbl { margin-top: 18px; }
.form5 .f-lbl-row { margin-top: 18px; }
.field.f5 { border-color: var(--line-strong); box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.field.f5:focus-within, .field.f5.focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.f5.bad { border-color: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 14%, transparent); }
.f-reason { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.f-err { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--amber) 10%, var(--surface)); color: var(--warm-ink); font-size: 14px; font-weight: 700; }
.f-err svg.i { width: 18px; height: 18px; }
.f-err.hide { display: none; }

svg.brand-ic { width: 26px; height: 26px; flex-shrink: 0; display: block; }
.msgr { margin-top: 18px; gap: 10px; }
.btn.msgr-btn { color: #fff; box-shadow: none; }
.btn.msgr-btn.tg { background: #229ED9; }
.btn.msgr-btn.off { background: var(--track); color: var(--faint); pointer-events: auto; cursor: not-allowed; }
.btn.msgr-btn.off svg.brand-ic { filter: grayscale(1); opacity: .45; }
.btn.msgr-btn.small svg.brand-ic { width: 20px; height: 20px; }
.sheet .btn.go.msgr-btn svg.brand-ic { width: 24px; height: 24px; }
.sh-brand { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; }
.sh-brand svg.brand-ic { width: 40px; height: 40px; }
.sh-brand.sm, .sh-brand.sm svg.brand-ic { width: 32px; height: 32px; }
.fb-btns .btn.msgr-btn { color: #fff; }

.screen.in-desk.m0 .cta { position: static; background: none; }
.screen.in-desk.wide.fs .colB .how:first-child { margin-top: 18px; }
.screen.in-desk.wide.rs .colB .card:first-child { margin-top: 0; }
.screen.in-desk.r1s .r1cta.hide { display: none; }

/* =================== round 6 (flow-r6.md) =================== */
/* head: back and the thin progress strip, 3 px, no text and no icons on the strip */
.r6top { position: relative; min-height: 54px; padding: max(10px, env(safe-area-inset-top)) 18px 4px 10px; }
.pstrip { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--track); }
.pstrip i { display: block; height: 100%; background: var(--accent-2); border-radius: 0 3px 3px 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.btn.off.soft { pointer-events: auto; cursor: not-allowed; }

/* M0: ticks, offer and micro line under the title, seven cards and a small «нічого з цього» */
.screen.m0 .q { margin-top: 12px; }
.screen.m0 .q-title { font-size: 26px; line-height: 1.17; }
.m0-sub { margin-top: 10px; font-size: 15.5px; line-height: 1.42; font-weight: 650; color: var(--text); }
.m0-micro { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.m0opts { gap: 7px; margin-top: 14px; }
.m0opts .opt.m0-card { min-height: 50px; padding: 8px 12px; font-size: 15.5px; gap: 11px; border-radius: 15px; background: var(--surface-2); line-height: 1.3; }
.m0opts .opt.m0-card .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--surface); display: grid; place-items: center; color: var(--warm-ink); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.m0opts .opt.m0-card .ic svg.i { width: 18px; height: 18px; }
.m0opts .opt.m0-card.on { background: var(--accent-soft); }
.m0opts .opt.m0-card.on .ic { color: var(--accent-ink); }
.m0opts .opt.m0-none { min-height: 40px; margin-top: 2px; padding: 6px 12px; background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: 14px; font-weight: 600; }
.m0opts .opt.m0-none.on { border-style: solid; border-color: var(--accent-2); background: var(--accent-soft); color: var(--text); }
.screen.m0 > .cta, .screen.qp > .cta, .screen.qd > .cta { background: linear-gradient(to top, var(--screen) 72%, rgba(0, 0, 0, 0)); }
.m0-hint { margin-bottom: 8px; text-align: center; font-size: 14px; font-weight: 700; color: var(--warm-ink); }
.m0-hint.hide { display: none; }
.screen.m0b .q-title { font-size: 25px; }

/* the row «що за цим» under a number, and B under S0 */
.row6 { margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--line-strong); animation: row6in .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes row6in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.row-title { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.row6 .q-hint { margin-top: 4px; font-size: 14px; }
.row6 .opts { margin-top: 12px; gap: 8px; }
.row6 .opts.tight .opt { min-height: 50px; font-size: 15.5px; }
.screen.qp.has-row .opts.tight .opt { min-height: 48px; }

/* G1 */
.c1.g5 { margin-top: 14px; padding: 18px 18px 20px; }
.screen.g1 .scr-pad > .fact5:first-child { margin-top: 18px; }

/* R: her scene, the other ticks, three steps with a one-line contrast, the compact receipt; nothing red */
.scene6 { margin-top: 10px; background: var(--peach); border-color: var(--peach-line); }
.sc-q { display: flex; gap: 9px; align-items: flex-start; margin-top: 8px; font-size: 20px; font-weight: 800; line-height: 1.28; letter-spacing: -.01em; }
.sc-q .sq-ic { color: var(--warm-ink); padding-top: 3px; }
.sc-q .sq-ic svg.i { width: 18px; height: 18px; }
.sc-l3 { margin-top: 10px; font-size: 16px; line-height: 1.42; font-weight: 700; color: var(--text); }
.sc-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sc-lines p { padding: 10px 12px; border-radius: 14px; background: var(--surface); font-size: 15px; line-height: 1.42; font-weight: 600; color: var(--text); }
.also6 .card-title { margin-top: 0; font-size: 17px; }
.al-row { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; padding: 10px 0; }
.al-row + .al-row { border-top: 1px solid var(--line); }
.al-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--warm-ink); display: grid; place-items: center; }
.al-ic svg.i { width: 16px; height: 16px; }
.al-row p { font-size: 15px; line-height: 1.42; font-weight: 600; padding-top: 4px; }
.steps6 .step6 { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 14px 0; }
.steps6 .step6 + .step6 { border-top: 1px solid var(--line); }
.s5-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.st-row .st-l { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.st-row p { margin-top: 2px; font-size: 15px; line-height: 1.4; }
.st-row.now p { color: var(--muted); font-weight: 600; }
.st-row.sd { margin-top: 8px; }
.st-row.sd .st-l { color: var(--accent-ink); }
.st-row.sd p { font-weight: 700; color: var(--text); }
.clk { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.clk svg.i { width: 14px; height: 14px; }
.s-more { display: flex; gap: 8px; align-items: center; margin-top: 6px; padding: 11px 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; font-weight: 700; color: var(--muted); }
.s-more svg.i { width: 16px; height: 16px; }
.receipt6 { background: var(--cream); border-color: var(--cream-line); }
.rc-hook { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.rc-hook .wn { white-space: nowrap; }
.rc-big { display: flex; align-items: baseline; gap: 10px; }
.rc-big .big { font-size: 64px; padding: 0; }
.rc-big .big-unit { margin-top: 0; }
.rc-days { margin-top: 6px; font-size: 16px; font-weight: 750; color: var(--warm-ink); }
.rc-sub { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.42; }
.receipt6 .stack { height: 12px; border-radius: 99px; margin-top: 14px; }
.legend6 { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.lg-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; font-size: 14px; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; }
.lg-dot.s-main { background: var(--warm); } .lg-dot.s-or { background: var(--warm-3); } .lg-dot.s-miss { background: var(--faint); }
.lg-l { color: var(--text); font-weight: 600; } .lg-v { font-weight: 800; white-space: nowrap; }
.receipt6 .r-calc { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--cream-line); }
.loss-head svg.i { color: var(--muted); }

/* F */
.f-promise { display: grid; grid-template-columns: 20px 1fr; gap: 9px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--lilac); border: 1px solid var(--lilac-line); color: var(--lilac-ink); font-size: 14.5px; font-weight: 750; line-height: 1.4; }
.f-promise svg.i { width: 18px; height: 18px; margin-top: 1px; }
.field.f5.bad { border-color: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); }
.f-err { background: color-mix(in srgb, var(--amber) 16%, var(--surface)); color: var(--text); }
.f-err svg.i { color: var(--warm-ink); }

/* desktop frames of round 6 */
.screen.in-desk .r6top { display: none; }
.screen.in-desk.wide.rs .colA > .card:first-child { margin-top: 0; }

/* round 7 (copy v12): the receipt head with a long phrase of her days wraps */
.rc-hook .wn.wrap { white-space: normal; }

/* Round 8 (copy v13, owner points of 13.10): pain cards neutral until picked, the picked pain card orange on M0, M0b and D2;
   teal stays for every other pick and for «Далі»; the email step on F2; the F lead and free lines; the sheet hint above the button. */
.m0opts .opt.m0-card .ic { color: var(--muted); }
.m0opts .opt.m0-card.on .ic { color: var(--muted); }
.screen.painpick .opt.on:not([data-ex]) { border-color: var(--warm); background: var(--peach); }
.screen.painpick .m0opts .opt.m0-card.on:not([data-ex]) { background: var(--peach); }
.screen.painpick .opt.on:not([data-ex]) .mark { border-color: var(--warm); background: var(--warm); }
.screen.painpick .opt.on:not([data-ex]) .ic, .screen.painpick .m0opts .opt.m0-card.on:not([data-ex]) .ic { color: var(--warm-ink); }
/* r8 fix (hostile r8 № 8): a pain she picks in the row under a number is orange too; the calm marks of the row stay teal */
.screen .row6 .opt.painopt.on:not([data-ex]) { border-color: var(--warm); background: var(--peach); }
.screen .row6 .opt.painopt.on:not([data-ex]) .mark { border-color: var(--warm); background: var(--warm); }
.good-lead { margin: 0 0 10px; font-size: 15.5px; line-height: 1.4; font-weight: 700; color: var(--text); }
.f-lead { margin-top: 10px; font-size: 16px; line-height: 1.42; color: var(--text); }
.f-free { margin-top: 18px; text-align: center; font-size: 15px; font-weight: 750; color: var(--accent-ink); }
.f-free + .msgr { margin-top: 10px; }
.sheet .sh-hint.above { margin: 14px 0 10px; }
/* r8 fix (hostile r8 № 6): the email card sits under the rescue block, quiet: plain surface, outlined button */
.email-card { width: 100%; margin-top: 22px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.email-card .em-title { font-size: 18px; line-height: 1.3; font-weight: 800; }
.email-card .em-sub { margin-top: 6px; font-size: 14.5px; line-height: 1.42; color: var(--muted); }
.email-card .em-field { margin-top: 12px; background: var(--surface); }
.email-card .em-field input { width: 100%; }
.email-card .em-err { margin-top: 8px; }
.email-card .em-send { margin-top: 10px; min-height: 50px; font-size: 16px; }
.email-card.done { display: flex; align-items: center; gap: 10px; }
.email-card.done p { font-size: 15.5px; font-weight: 700; color: var(--accent-ink); }
.email-card .em-ok svg.i { width: 24px; height: 24px; color: var(--accent); }

.logo { display: block; width: 26px; height: 27px; background: url(/logo.png) center / contain no-repeat; flex-shrink: 0; }
/* Жива сторінка (tech 6.10): телефонний кадр мокапу r8 (build-proto.cjs PROTO_CSS) на весь екран
   телефона, без дошки, перемикачів лідів і теми; тема лише за prefers-color-scheme. На широкому
   екрані та сама колонка по центру. Жодного вбудованого стилю (CSP default-src 'self'). */
html, body { height: 100%; }
body.live { padding: 0; background: var(--screen); color: var(--text); min-height: 100vh; overflow: hidden; }
.phone { position: relative; width: 100vw; height: 100vh; height: 100dvh; overflow: clip; background: var(--screen); isolation: isolate; }
@media (min-width: 761px) {
  body.live { background: var(--desk-bg); }
  .phone { width: 430px; margin: 0 auto; box-shadow: var(--shadow); }
}
.p-head { position: absolute; left: 0; right: 0; top: 0; z-index: 6; background: var(--screen); transition: opacity .3s ease, transform .3s ease; }
.p-head.hidden { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.p-head .back.ghost { visibility: hidden; }
.ps.screen { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; overflow-x: hidden; overflow-y: auto; scrollbar-width: none;
  transform: translateX(100%); opacity: 0; visibility: hidden; transition: transform .44s cubic-bezier(.2, .8, .2, 1), opacity .32s ease, visibility 0s linear .44s; }
.ps.screen::-webkit-scrollbar { display: none; }
.ps.screen.active { transform: none; opacity: 1; visibility: visible; transition: transform .44s cubic-bezier(.2, .8, .2, 1), opacity .32s ease, visibility 0s; }
.ps.screen.left { transform: translateX(-28%); opacity: 0; }
.ps.screen.noanim { transition: none !important; }
.ps .scr { flex: 1 0 auto; }
.ps.has-head .scr { padding-top: 54px; }
.ps .scr-pad { padding-bottom: 24px; }
.ps > .cta { position: sticky; bottom: 0; margin-top: auto; padding-top: 26px; }
.opt.pop { animation: pop .32s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pop { 40% { transform: scale(.975); } 100% { transform: none; } }
.msgr.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.p-sheet { position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: clip; }
.p-sheet .scrim { opacity: 0; transition: opacity .3s ease; }
.p-sheet .sheet { transform: translateY(105%); transition: transform .42s cubic-bezier(.2, .9, .25, 1); }
.p-sheet.open { pointer-events: auto; }
.p-sheet.open .scrim { opacity: 1; }
.p-sheet.open .sheet { transform: none; }
.p-sheet .sheet[hidden] { display: none; }
.sdr-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* К35: номера «Розбір N» ще нема: заглушка замість коду і рядка, кнопки, що його потребують, приглушені, але не нижчі за 44 px */
.skel { display: inline-block; border-radius: 8px; background: linear-gradient(90deg, var(--track) 25%, var(--line-strong) 50%, var(--track) 75%); background-size: 200% 100%; animation: skel-pulse 1.3s ease-in-out infinite; }
.code b.skel { width: 84px; height: 22px; }
.msg-box .skel-line { width: 100%; max-width: 280px; height: 16px; vertical-align: middle; }
.btn.needs-code.wait, .btn.msgr-btn.needs-code.wait { background: var(--track); color: var(--faint); border-color: transparent; box-shadow: none; cursor: not-allowed; min-height: 44px; }
.btn.needs-code.wait svg.brand-ic { filter: grayscale(1); opacity: .45; }
@keyframes skel-pulse { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* Екран Q (specs/razbir-open-questions К2): 5 полів завжди відкриті, висота поля 3 рядки, довший текст прокручується
   всередині поля; поле не росте і не тягнеться руками */
.oq-list { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.oq-q { display: block; }
.oq-ql { display: block; font-size: 15.5px; line-height: 1.38; font-weight: 750; }
.field.oq-field { display: block; min-height: 0; padding: 0 14px; }
.oq-field textarea { display: block; width: 100%; box-sizing: border-box; border: none; outline: none; resize: none; background: transparent; color: var(--text); font: inherit; font-size: 15.5px; font-weight: 500; line-height: 1.4; padding: 12px 0; height: calc(3 * 1.4em + 24px); overflow-y: auto; }
.oq-field textarea::placeholder { color: var(--faint); font-weight: 400; }
