/* Layout: a single reading column with a two-phone hero; the process is a vertical timeline because it is a real sequence. */
:root {
  --ink: #16213a;          /* text */
  --paper: #f6f7f9;        /* page */
  --card: #ffffff;         /* raised surfaces */
  --line: #dde1e9;         /* hairlines */
  --muted: #5a6478;        /* secondary text */
  --accent: #c76a00;       /* amber: the cable between the phones */
  --accent-soft: #fbecd8;
  --bubble-in: #e9ecf2;
  --bubble-out: #16213a;
  --bubble-out-fg: #f6f7f9;
  --ok: #1d7a4f;
  --ok-soft: #e2f3ea;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 3.9rem);
  --radius: 14px;
  --shot-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8ebf2; --paper: #0f1524; --card: #172036; --line: #2a3550; --muted: #9aa5bd;
    --accent: #f0a23a; --accent-soft: #3a2a14; --bubble-in: #24304b; --bubble-out: #e8ebf2;
    --bubble-out-fg: #0f1524; --ok: #5fcf97; --ok-soft: #133726; color-scheme: dark;
    --shot-shadow: none;
  }
}
:root[data-theme="dark"] {
  --ink: #e8ebf2; --paper: #0f1524; --card: #172036; --line: #2a3550; --muted: #9aa5bd;
  --accent: #f0a23a; --accent-soft: #3a2a14; --bubble-in: #24304b; --bubble-out: #e8ebf2;
  --bubble-out-fg: #0f1524; --ok: #5fcf97; --ok-soft: #133726; color-scheme: dark;
  --shot-shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
}
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.prose { max-width: 66ch; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
code, .mono { font-family: var(--font-mono); font-size: 0.9em; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 18px; position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: 0; width: 12px; height: 18px; border: 2.5px solid var(--ink); border-radius: 4px; }
.brand-mark::before { left: 0; }
.brand-mark::after { right: 0; }
.brand-mark span { position: absolute; left: 9px; right: 9px; top: 7.5px; height: 3px; background: var(--accent); border-radius: 2px; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 40px 72px; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: var(--step-1); color: var(--muted); margin-top: 20px; max-width: 34ch; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 0.88rem; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.cta-note { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

/* the two phones */
.phones { display: flex; align-items: center; justify-content: center; gap: 0; }
.phone { width: min(42%, 200px); aspect-ratio: 9 / 18.5; max-width: 100%; border: 3px solid var(--ink); border-radius: 28px; background: var(--card); padding: 34px 12px 14px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 40%; height: 8px; border-radius: 8px; background: var(--line); }
.phone.android { border-radius: 18px; }
.phone.android::before { width: 10px; height: 10px; border-radius: 50%; }
.phone-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-align: center; margin-bottom: 4px; }
.bubble { font-size: 0.75rem; line-height: 1.35; padding: 6px 9px; border-radius: 12px; max-width: 86%; }
.bubble.in { background: var(--bubble-in); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--bubble-out); color: var(--bubble-out-fg); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.photo { height: 54px; width: 70%; background: linear-gradient(135deg, var(--accent-soft), var(--bubble-in)); border: 1px solid var(--line); }
.bubble .react { display: inline-block; margin-left: 4px; font-size: 0.75rem; }
.phone.iphone .bubble { opacity: 0; animation: arrive 0.5s ease forwards; }
.phone.iphone .bubble:nth-of-type(2) { animation-delay: 0.6s; }
.phone.iphone .bubble:nth-of-type(3) { animation-delay: 0.9s; }
.phone.iphone .bubble:nth-of-type(4) { animation-delay: 1.2s; }
.phone.iphone .bubble:nth-of-type(5) { animation-delay: 1.5s; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cable { flex: 0 0 64px; height: 4px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 16px); background-size: 32px 4px; animation: flow 1.2s linear infinite; border-radius: 2px; }
@keyframes flow { to { background-position: 32px 0; } }
@media (prefers-reduced-motion: reduce) {
  .phone.iphone .bubble { animation: none; opacity: 1; }
  .cable { animation: none; }
}

/* sections */
section { padding-block: 64px; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 34px; }
.section-head p { color: var(--muted); max-width: 62ch; }

/* why */
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.option { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; align-content: start; }
.option.ours { border: 2px solid var(--accent); background: var(--card); }
.option .tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.option ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; color: var(--muted); font-size: 0.97rem; }
.option.ours ul { color: var(--ink); }

/* how it works */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: flow; }
.flow li { list-style: none; padding: 0 18px 0 0; position: relative; display: grid; gap: 8px; align-content: start; }
.flow li::before { counter-increment: flow; content: counter(flow); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.flow li::after { content: ""; position: absolute; top: 19px; left: 46px; right: 8px; height: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow p { color: var(--muted); font-size: 0.97rem; }
.flow { padding: 0; margin: 0; }

/* the key */
.key { margin-top: 36px; padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; }
.key-digits { font-family: var(--font-mono); font-size: clamp(0.82rem, 0.7rem + 0.5vw, 1rem); letter-spacing: 0.04em; display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--ink); }
.key-digits span { white-space: nowrap; }
.key small { color: var(--muted); font-size: 0.9rem; }

/* process timeline */
.timeline { margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.timeline > li { list-style: none; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 18px; position: relative; padding-bottom: 34px; }
.timeline > li::before { counter-increment: step; content: counter(step); grid-row: 1 / span 3; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; background: var(--paper); z-index: 1; }
.timeline > li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.timeline > li:last-child::after { display: none; }
.timeline > li > * { grid-column: 2; min-width: 0; }
.timeline .when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.timeline h3 { margin: 2px 0 8px; }
.timeline ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; max-width: 64ch; }
.timeline .note { margin-top: 10px; padding: 10px 14px; background: var(--accent-soft); border-radius: 8px; font-size: 0.95rem; max-width: 64ch; }

/* safety */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.promises div { display: grid; gap: 6px; align-content: start; }
.promises p { color: var(--muted); }

/* what moves */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.97rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.yes { color: var(--ok); font-weight: 700; white-space: nowrap; }
.part { color: var(--accent); font-weight: 700; white-space: nowrap; }
.no { color: var(--muted); font-weight: 700; white-space: nowrap; }

/* proof */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 2px; }
.stat b { font-family: var(--font-display); font-size: var(--step-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.92rem; }
.proof-note { color: var(--muted); max-width: 66ch; }

/* reverse */
.reverse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.checklist { margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { list-style: none; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.checklist li::before { content: ""; width: 16px; height: 16px; margin-top: 5px; border-radius: 4px; border: 2px solid var(--line); }
.checklist li.done::before { background: var(--ok); border-color: var(--ok); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 760px; }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 18px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 16px; color: var(--muted); }

/* guide page */
.guide-intro { padding-block: 32px 56px; display: grid; gap: 4px; max-width: 760px; }
.guide-intro h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.guide-intro .lede { max-width: 56ch; }
.toc { margin-top: 26px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.needs { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; max-width: 70ch; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 40px; align-items: start; padding-block: 36px; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; padding-top: 0; }
.step-text { display: grid; gap: 12px; align-content: start; grid-row: 1 / span 3; }
.step-text ol, .step-text ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.step-text ol ul { margin-top: 6px; gap: 4px; }
.step .shot:nth-of-type(n+2) { grid-column: 2; }
.note { padding: 10px 14px; background: var(--accent-soft); border-radius: 8px; font-size: 0.95rem; }
.shot { margin: 0; display: grid; gap: 8px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shot-shadow); }
.shot figcaption { color: var(--muted); font-size: 0.9rem; }
.fixes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; }
.fixes div { display: grid; gap: 6px; align-content: start; }
.fixes h3 { font-size: 1.08rem; }
.fixes p { color: var(--muted); }
.promises code { overflow-wrap: anywhere; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--muted); font-size: 0.92rem; display: grid; gap: 10px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 16px 56px; }
  .compare, .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .flow li:nth-child(2)::after { display: none; }
  .reverse, .promises { grid-template-columns: minmax(0, 1fr); }
  .step, .fixes { grid-template-columns: minmax(0, 1fr); }
  .step .shot:nth-of-type(n+2) { grid-column: auto; }
  .step-text { grid-row: auto; }
}
@media (max-width: 560px) {
  .top nav { display: none; }
  .compare, .flow, .proof { grid-template-columns: minmax(0, 1fr); }
  .flow li::after { display: none; }
  section { padding-block: 48px; }
  .cable { flex-basis: 36px; }
}
