/* computeNN website. Same layout as Elsonia: plain CSS, no build step, no external fonts.
   Filled orange (buttons, the contact panel) is #C2410C with white text: 5.2:1.
   Hover is #9A3412 with white text: 7.3:1. The same pair is used in dark mode.
   Links stay #C2410C on light surfaces and a lighter orange on dark surfaces. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f0ea;
  --ink: #1b1f2a;
  --ink-2: #4a5160;
  --ink-3: #6b7280;
  --line: #e4e1d8;
  --brand: #C2410C;         /* white text is 5.2:1; #EA580C is only 3.6:1 */
  --brand-hover: #9A3412;   /* white text is 7.3:1 */
  --brand-ink: #ffffff;
  --brand-text: #C2410C;    /* links on light surfaces, 5.0:1 on --bg */
  --brand-text-hover: #9A3412;
  --brand-soft: #FFF7ED;    /* #C2410C on this is 4.9:1 */
  --brand-gradient: linear-gradient(145deg, #C2410C 0%, #9A3412 100%);
  --accent: #C2410C;
  --accent-soft: #FFEDD5;
  --danger: #8f2d2d;
  --danger-soft: #fdecec;
  --shadow: 0 1px 2px rgb(20 20 40 / 6%), 0 8px 24px rgb(20 20 40 / 8%);
  --radius: 16px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12131a;
    --surface: #1a1c25;
    --surface-2: #20232e;
    --ink: #eceef3;
    --ink-2: #b9bfcc;
    --ink-3: #8d94a3;
    --line: #2c303d;
    --brand: #C2410C;
    --brand-hover: #9A3412;
    --brand-ink: #ffffff;
    --brand-text: #FB923C;
    --brand-text-hover: #FDBA74;
    --brand-soft: #3a241c;
    --brand-gradient: linear-gradient(145deg, #C2410C 0%, #9A3412 100%);
    --accent: #FDBA74;
    --accent-soft: #3a241c;
    --danger: #ffb4b4;
    --danger-soft: #3a2226;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
  /* Accent stays a light orange in dark mode, so the arrow mark stays dark. */
  :root:not([data-theme="light"]) .arrow { color: #1b1f2a; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--brand-text-hover); text-decoration-thickness: 2px; }
code { overflow-wrap: anywhere; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo, .nav { flex-shrink: 0; }
@media (max-width: 400px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-left: auto; }
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.logo svg, .logo img { width: 32px; height: 32px; }
a.logo:hover { color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 22px; font-size: 16px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
a.btn-ghost:hover { color: var(--ink); }
.btn[aria-disabled="true"], .btn:disabled { cursor: default; }
.form .btn:disabled { opacity: 0.55; }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 32px 0 40px; }
.hero .wrap { display: block; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-text); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.lead { font-size: 20px; color: var(--ink-2); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 15px; color: var(--ink-3); margin-top: 14px; }
@media (max-width: 860px) {
  .hero { padding-top: 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* Phone mockups */
.phones { display: flex; justify-content: center; gap: 20px; }
.phone { margin: 0; width: min(240px, 44vw); }
.phone-frame { position: relative; border-radius: 30px; padding: 8px; background: #0d0f14; box-shadow: var(--shadow); }
/* Before/after screens: a vertical feed that both phones scroll in step (site.js). */
.screen { border-radius: 23px; overflow: hidden; aspect-ratio: 739 / 1600; background: #222; }
.feed { transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.feed img { width: 100%; aspect-ratio: 739 / 1600; object-fit: cover; }
.tag { z-index: 2; }
.phone figcaption { text-align: center; margin-top: 12px; font-weight: 600; font-size: 16px; }
.phone figcaption small { display: block; font-weight: 400; color: var(--ink-3); font-size: 14px; }
.tag { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag-off { background: rgb(255 255 255 / 85%); color: #1b1f2a; }
.tag-on { background: #C2410C; color: #fff; }
.phones { align-items: center; }
.arrow { flex: none; width: 44px; height: 44px; margin-bottom: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.arrow svg { width: 24px; height: 24px; }
@media (max-width: 520px) {
  .phones { gap: 6px; }
  .arrow { width: 28px; height: 28px; }
  .arrow svg { width: 16px; height: 16px; }
  .tag { font-size: 11px; padding: 3px 7px; top: 12px; }
}
/* The longer caption wraps onto its own line once each phone is about 140px wide. */
@media (max-width: 400px) {
  .phone figcaption small { font-size: 12px; }
}

/* "Works in" logo row */
.works-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -8px 0 28px; }
.works-in > span { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.logos svg { width: 26px; height: 26px; fill: var(--ink-2); display: block; }
.logos .more { font-size: 15px; color: var(--ink-3); }

/* Narrow hero (same breakpoint that stacks the two columns): H1, intro,
   then the before/after pair, then the app icons, store button, and note.
   display:contents lets those pieces share one flex column so the visual
   order can change without moving the DOM. Phones shrink to the column
   and stay side by side, including at 360px. */
@media (max-width: 860px) {
  .hero .wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .hero .lead { order: 2; }
  .hero .phones { order: 3; width: 100%; min-width: 0; }
  .hero .phone { width: auto; flex: 1 1 0; min-width: 0; max-width: 240px; }
  .hero .works-in { order: 4; margin: 28px 0; }
  .hero .cta-row { order: 5; }
  .hero .cta-note { order: 6; }
}

/* Sections */
section { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 14px; }
.section-intro { color: var(--ink-2); font-size: 19px; margin: 0 0 32px; max-width: 40em; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 14px; }
.steps h3, .cards h3 { margin: 0 0 6px; font-size: 20px; }
.steps p, .cards p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.apps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.apps li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 16px; }
.muted { color: #5b616e; font-size: 16px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .muted { color: var(--ink-3); }
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards.single { grid-template-columns: minmax(0, 36rem); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
.card p + p { margin-top: 12px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards.cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.level-note { margin-top: 8px; }

.checklist { margin: 0; padding-left: 1.25em; max-width: 40em; }
.checklist li { margin: 8px 0; }

.promise { background: var(--brand-gradient); color: var(--brand-ink); border-radius: 24px; padding: 40px; }
.promise h2 { color: inherit; }
.promise ul { margin: 16px 0 0; padding-left: 22px; }
.promise li { margin: 6px 0; }
.promise a, .promise a:hover { color: inherit; }
@media (max-width: 640px) { .promise { padding: 28px 22px; } }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* Legal pages */
.doc { padding: 48px 0 64px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc h3 { font-size: 20px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .updated { color: var(--ink-3); font-size: 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); background: var(--surface-2); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--accent-soft); border-radius: 12px; padding: 16px 20px; margin: 20px 0; color: var(--ink); }
.callout p { margin: 0; }
.callout .cta-row { margin-top: 14px; }
.breadcrumb { font-size: 15px; margin: 0 0 18px; color: #5b616e; }
.breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--ink); text-decoration: none; }
.breadcrumb span[aria-hidden="true"] { padding: 0 6px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .breadcrumb { color: var(--ink-3); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .credit a { text-decoration: underline; }
.footer-guides { flex-basis: 100%; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card h2, a.card h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; letter-spacing: normal; color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }

/* Contact form */
.form { display: grid; gap: 16px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field label, .field > span { font-weight: 600; color: var(--ink); font-size: 16px; }
.field input, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .form-status:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.form .btn { font-family: inherit; justify-self: start; }
.form-status { border-radius: 12px; padding: 14px 16px; margin: 0 0 8px; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--accent-soft); color: var(--ink); }
.form-status.err { background: var(--danger-soft); color: var(--danger); }
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Cookie consent banner (analytics.js) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; font-size: 16px; }
.consent p { margin: 0 0 14px; color: var(--ink-2); }
.consent-buttons { display: flex; gap: 10px; justify-content: flex-end; }
.consent .btn { padding: 10px 18px; font-size: 16px; }

/* "Made for people…" and the privacy card share a background: no double gap between them. */
#who { padding-bottom: 0; }
#who .checklist li:last-child { margin-bottom: 0; }
#privacy { padding-top: 32px; }

/* Comparison table: first column highlighted with the brand colour. */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 8px 0 12px; }
.compare-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
table.compare { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; margin: 0; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
table.compare tbody tr:last-child > * { border-bottom: 0; }
table.compare thead th { color: var(--ink); font-size: 16px; font-weight: 700; background: var(--surface-2); }
table.compare thead td { background: var(--surface-2); }
table.compare tbody th { color: var(--ink-3); font-size: 14px; font-weight: 600; width: 128px; }
table.compare tr > :first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
table.compare .us { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
table.compare thead .us { background: var(--brand); color: var(--brand-ink); }
.compare-hint { display: none; font-size: 14px; color: var(--ink-3); margin: 0 0 8px; }
@media (max-width: 820px) { .compare-hint { display: block; } }
@media (max-width: 520px) {
  table.compare { min-width: 680px; font-size: 14px; }
  table.compare th, table.compare td { padding: 12px; }
  table.compare tbody th { width: 92px; font-size: 13px; }
}

/* Homepage FAQ in two columns (each column is its own stack, so opening one doesn't move the other). */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* Homepage clarification under the hero. Outside .hero .wrap, so the
   small-screen order of the hero (title, intro, phones, logos, button, note) stays put. */
#not-a-blocker { padding: 0 0 28px; }
#not-a-blocker .callout { margin: 0; }

/* Guide pages reuse the homepage phone row inside a narrow column.
   Phones shrink to share the row, the same way .hero .phone does under 860px,
   so a pair stays side by side down to a 360px screen. */
.doc .phones { width: 100%; min-width: 0; margin: 8px 0 16px; }
.doc .phone { width: auto; flex: 1 1 0; min-width: 0; max-width: 240px; }

/* Covered screenshot: <details> so it stays covered with no JavaScript. */
.reveal { position: relative; }
.reveal summary {
  display: block;
  list-style: none;
  cursor: pointer;
  position: relative;
  border-radius: 22px;
}
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary::marker { content: ""; }
.reveal summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.reveal-label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgb(13 15 20 / 92%);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.reveal .reveal-hide { display: none; }
/* Author `img { display: block }` would otherwise beat the browser’s closed-<details> rule. */
.reveal:not([open]) > img { display: none; }
.reveal[open] { display: flex; flex-direction: column; }
.reveal[open] > img { order: 1; }
.reveal[open] .reveal-cover { display: none; }
.reveal[open] .reveal-show { display: none; }
.reveal[open] .reveal-hide { display: inline; }
.reveal[open] summary { position: static; order: 2; margin-top: 8px; }
.reveal[open] .reveal-label { position: static; display: block; }
/* Inside a phone screen the cover fills the glass, and Hide stays on the picture. */
.screen:has(.reveal) { position: relative; }
.screen .reveal { position: absolute; inset: 0; }
.screen .reveal summary { height: 100%; border-radius: 0; }
.screen .reveal img { width: 100%; height: 100%; object-fit: cover; }
.screen .reveal[open] { display: block; }
.screen .reveal[open] > img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.screen .reveal[open] summary { position: absolute; left: 0; right: 0; bottom: 0; height: auto; margin-top: 0; z-index: 2; }
.screen .reveal[open] .reveal-label { position: absolute; }
@media (max-width: 520px) {
  .screen .reveal-label { font-size: 11px; line-height: 1.25; padding: 6px 8px; left: 6px; right: 6px; bottom: 6px; }
}

/* Two-app comparison: don't force the wide five-app min-width. */
table.compare.cols-2 { min-width: 480px; }
@media (max-width: 520px) {
  table.compare.cols-2 { min-width: 440px; }
}
