:root {
  --ink: #101214;
  --surface: #1f2327;
  --line-dark: #2a2f34;
  --on-dark: #e8ecef;
  --muted-dark: #b4bcc3;
  --accent: #b6f23c;
  --on-accent: #101214;

  --canvas: #f1f2ef;
  --card: #ffffff;
  --line: #dde0d9;
  --text: #14181b;
  --muted: #4d575e;

  --ok-bg: #e2f3e6; --ok: #1b6b36;
  --warn-bg: #fbeed0; --warn: #7d5200;
  --font: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 16px/1.55 var(--font); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

.notice { background: var(--ink); color: var(--on-dark); padding: 10px 20px; font-size: 14px; border-bottom: 3px solid var(--accent); }
.notice strong { color: var(--accent); margin-right: 6px; }

/* Hero */
.hero { background: var(--ink); color: var(--on-dark); padding: 44px 0 48px; }
.eyebrow { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; max-width: 18ch; }
.lede { margin-top: 16px; max-width: 62ch; color: var(--muted-dark); font-size: 17px; }
.legend { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: var(--muted-dark); font-size: 14.5px; }
.legend li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }

.tag { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.tag-live { background: var(--accent); color: var(--on-accent); }
.tag-preview { background: var(--warn-bg); color: var(--warn); border: 1px dashed #c89a3a; }

/* Chapters */
main { padding-top: 44px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.chapter, .cards, .card { min-width: 0; }
.chapter h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 18px; }
.ch-num { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 16px; flex: none; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; border-left: 3px solid var(--line); padding-left: 22px; margin-left: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; }
.card::before { content: ''; position: absolute; left: -31px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.time { font: 500 13.5px var(--mono); background: var(--canvas); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.card h3 { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.preview-note { margin-top: 10px; background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 9px 12px; font-size: 14.5px; font-weight: 600; }

.plain-note { margin-top: 10px; border-left: 4px solid var(--line); background: #fafbf9; border-radius: 0 8px 8px 0; padding: 8px 12px; font-size: 14.5px; color: var(--muted); }
.tar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tar-col { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fafbf9; }
.tar-result { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.tar-label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.tar-result .tar-label { color: var(--accent); }
.tar-col p { font-size: 15px; line-height: 1.5; }
.works { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.works strong { color: var(--text); }

.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn { border: 1px solid transparent; border-radius: 8px; padding: 10px 18px; font-weight: 700; font-size: 15px; line-height: 1.2; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: #9fd62a; }
.btn-primary:hover:not(:disabled) { background: #c6fa56; }
.btn-ghost { background: var(--card); border-color: #b9beb5; color: var(--text); }
.btn-ghost:hover { background: var(--canvas); }
.btn-ghost[aria-expanded="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* Stage: phones and the plain-words list */
.stage { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stage[hidden], .built[hidden] { display: none; }
.stage-phones { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.phone { background: var(--ink); border-radius: 24px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.phone-top { padding: 4px 8px 0; }
.role { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.screen { background: #f6f7f4; border-radius: 16px; padding: 10px; height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 10px; font-size: 13.5px; line-height: 1.4; align-self: flex-start; max-width: 94%; white-space: pre-line; animation: pop .25s ease-out; }
.bubble time { display: block; font: 500 11px var(--mono); color: var(--muted); margin-bottom: 3px; }
.bubble.mine { background: var(--accent); border-color: #9fd62a; border-radius: 14px 14px 4px 14px; align-self: flex-end; color: var(--on-accent); font-weight: 600; }
.callrow { align-self: center; background: #fbe2df; color: #8c1f17; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.what h4 { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.what-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.what-list li { border-left: 4px solid var(--accent); background: #fafbf9; border-radius: 0 8px 8px 0; padding: 8px 12px; font-size: 14.5px; line-height: 1.45; animation: pop .25s ease-out; }
.what-list li.is-preview { border-left-color: #c89a3a; background: var(--warn-bg); color: var(--warn); }
.what-list li.is-error { border-left-color: #d6483c; }

/* Built panel */
.built { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.built > *, .shot, .standin { min-width: 0; }
.built-note { font-size: 15px; max-width: 70ch; }
.standin { display: grid; gap: 8px; }
.standin div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fafbf9; }
.standin dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: var(--muted); padding-top: 2px; }
.standin dd { font-size: 14.5px; }
.shot figcaption { font: 500 13px var(--mono); color: var(--muted); margin-bottom: 6px; }
.shot-frame { display: block; background: #161616; border-radius: 10px; border: 1px solid var(--line-dark); overflow-x: auto; }
.shot-frame img { display: block; max-width: none; height: auto; }
.shot-hint { font-size: 13.5px; color: var(--muted); }

/* Closing */
.closing { background: var(--accent); color: var(--on-accent); padding: 40px 0 48px; }
.closing h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.closing p { margin-top: 8px; font-size: 18px; font-weight: 600; max-width: 60ch; }
.closing a { text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 800; }

@media (max-width: 860px) {
  .tar { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; }
  .stage-phones { grid-auto-flow: row; grid-auto-columns: auto; }
  .screen { height: 260px; }
  .cards { padding-left: 16px; margin-left: 8px; }
  .card::before { left: -25px; }
  .card { padding: 18px; }
  .standin div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .bubble, .what-list li, .callrow { animation: none; } }

/* "How it works for your business" panel and tools section */
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.sources { font-size: 13.5px; color: var(--muted); }
.sources a, .shot-hint a { color: var(--text); text-underline-offset: 3px; }
.tools { background: var(--surface); color: var(--on-dark); padding: 48px 0 52px; }
.tools h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.lede-dark { margin-top: 8px; color: var(--muted-dark); max-width: 62ch; }
.tools-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tools-col { border: 1px solid var(--line-dark); background: var(--ink); border-radius: 12px; padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.tools-col h3 { font-size: 16px; color: var(--accent); }
.tools-col .h-gap { margin-top: 8px; }
.tools-col p, .tool-list { font-size: 14.5px; }
.tool-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.tools .fine { color: var(--muted-dark); font-size: 14px; }
.tools a { color: var(--accent); text-underline-offset: 3px; }
.tools .sources { color: var(--muted-dark); }
.tools .sources strong { color: var(--on-dark); }
.tools-ask { border-style: dashed; }
@media (max-width: 860px) { .tools-grid { grid-template-columns: 1fr; } }
