/* zentrainstudio.com (Milestone 3, step M3.2). The app's own look: its deep violet ground, the neon gradient of its icon and
   of Focus mode's title, and Focus mode's rings in the hero. One reading column; the home page puts the rings beside the
   introduction on wide screens. System fonts only, so the site loads nothing from other companies (Privacy Policy: no
   tracking). Pages are made by tools/site/build_site.js; this file is written by hand. */
:root {
    --bg: #f6f4fb; --surface: #ffffff; --sunk: #ece8f6; --line: #d9d2ea;
    --text: #1c1630; --muted: #554d6e; --accent: #6b21a8; --accent-soft: #efe5fa; --glow: #0b6f8f;
    --ring-1: #8b5cf6; --ring-2: #6366f1; --ring-3: #0ea5e9; --ring-4: #14b8a6; --ring-5: #a855f7; --ring-track: #e3ddf0;
    --g1: #9333ea; --g2: #4f46e5; --g3: #0284c7; --g4: #0d9488;
    --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0817; --surface: #141026; --sunk: #100c1f; --line: #2b2546;
        --text: #ebe7f7; --muted: #a59ec0; --accent: #c39bf5; --accent-soft: #231a3d; --glow: #5ad8ff;
        --ring-1: #c084fc; --ring-2: #818cf8; --ring-3: #38bdf8; --ring-4: #5eead4; --ring-5: #e879f9; --ring-track: #221c3b;
        --g1: #c084fc; --g2: #818cf8; --g3: #38bdf8; --g4: #5eead4;
        color-scheme: dark;
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-block: 0 env(safe-area-inset-bottom, 0px);
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 5; }

/* header */
header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: max(14px, env(safe-area-inset-top, 0px)) 14px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; display: block; }
nav.site { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; padding: 8px 0; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

/* home (product marketing): hero with a phone, the pillars, real screenshots, steps, a comparison, privacy and the
   Commune, everything inside, care, questions, and a closing call with Focus mode's rings */
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
h1 { font-size: clamp(40px, 9vw, 68px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 16px; font-weight: 800; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.01em; text-wrap: balance; }
h2.big { font-size: clamp(26px, 4.6vw, 38px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 22px; max-width: 26ch; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.01em; }
.wordmark { background: linear-gradient(90deg, var(--g1), var(--g2) 40%, var(--g3) 75%, var(--g4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-size: clamp(18px, 2.6vw, 22px); line-height: 1.45; margin: 0 0 20px; color: var(--muted); max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
/* the pills jump to the part of the page that explains them (PM: "They need to be made functional") */
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); text-decoration: none; }
.chips a::after { content: "↓"; font-size: 12px; opacity: 0.7; }
.chips a:hover { color: var(--text); border-color: var(--accent); }
.chips a:focus-visible { border-radius: 999px; }
.chips a.soon { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.mail { font-weight: 700; color: var(--text); user-select: all; overflow-wrap: anywhere; }
.hero-note { font-size: 15px; color: var(--muted); margin: 0; }
.more { font-size: 15px; font-weight: 600; margin: 12px 0 0; }
main > section { padding-block: 44px; border-bottom: 1px solid var(--line); }
main > section:last-child { border-bottom: 0; }
[id] { scroll-margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* what a pill jumped to is marked */
.card-flat:target, table.compare tr:target { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; padding-block: 36px 44px; }
@media (min-width: 820px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(240px, 330px); gap: 56px; padding-block: 64px; } }

/* a phone around each screenshot */
.phone { margin: 0; border-radius: 30px; padding: 7px; background: linear-gradient(160deg, #2a2148, #120e22); box-shadow: 0 24px 60px -18px rgba(124, 58, 237, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; max-width: 100%; }
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; aspect-ratio: 390 / 844; background: #0b0817; }
.hero-phone { width: min(250px, 66vw); justify-self: center; }
@media (min-width: 820px) { .hero-phone { width: min(310px, 100%); } }

.pillars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.pillar p { margin: 0; color: var(--muted); }
/* who it is for (PM 2026-10-25): a line in the hero, and the "Made for" cards right after it */
.for-line { font-size: 16px; line-height: 1.5; margin: 0 0 18px; color: var(--text); max-width: 52ch; }
.for-line a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.audiences { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .audiences { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; } .audiences li { grid-column: span 2; } .audiences li:nth-child(4) { grid-column: 2 / span 2; } }
.audiences h3 { margin: 0 0 8px; }
.final .pass-on { margin: 12px auto 0; max-width: 46ch; color: var(--muted); }
@media (min-width: 760px) { .final .pass-on { margin-inline: 0; } }
.pill-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.pill-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill-icon svg .dot { fill: currentColor; stroke: none; }

/* screenshots: a swipeable strip on a phone, three across on a wide screen */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(250px, 72vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; overscroll-behavior-x: contain; }
@media (min-width: 820px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; gap: 32px; } }
.shot { margin: 0; scroll-snap-align: start; min-width: 0; }
.shot figcaption { font-size: 15px; color: var(--muted); margin-top: 14px; }
.shot figcaption b { color: var(--text); }

ol.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; counter-reset: step; }
@media (min-width: 760px) { ol.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
ol.steps li { counter-increment: step; min-width: 0; }
ol.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; margin-bottom: 12px; }
ol.steps p { margin: 0; color: var(--muted); }

.table-scroll { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
table.compare th, table.compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.compare thead th:last-child { color: var(--accent); }
table.compare tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
table.compare td { color: var(--muted); }
table.compare td:last-child { color: var(--text); font-weight: 600; }
/* on a phone each row becomes a small card: the question, then both answers labelled */
@media (max-width: 600px) {
    table.compare { min-width: 0; }
    table.compare thead { display: none; }
    table.compare, table.compare tbody, table.compare tr, table.compare th, table.compare td { display: block; width: 100%; }
    table.compare tr { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; background: var(--surface); }
    table.compare th, table.compare td { border: 0; padding: 4px 0; }
    table.compare tbody th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
    table.compare td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
    table.compare td:last-child::before { color: var(--accent); }
}

.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 760px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.card-flat p { margin: 0; color: var(--muted); }
.card-flat p.more { color: inherit; }
ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.ticks li { padding-left: 28px; position: relative; color: var(--muted); }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.inside-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 28px; }
@media (min-width: 640px) { .inside-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .inside-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.inside-grid li { color: var(--muted); font-size: 15px; min-width: 0; }
.inside-grid b { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }

.care p { margin: 0; max-width: 72ch; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; max-width: 72ch; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style-position: outside; }
.faq summary:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 3px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.final { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; text-align: center; }
@media (min-width: 760px) { .final { grid-template-columns: 220px minmax(0, 1fr); text-align: left; } }
.final h2.big { margin-inline: auto; }
@media (min-width: 760px) { .final h2.big { margin-inline: 0; } }
.final .tagline { margin-inline: auto; }
@media (min-width: 760px) { .final .tagline { margin-inline: 0; } }
.final p { margin: 0 0 8px; }

/* Focus mode's rings (the closing call) */
.rings { width: 100%; max-width: 200px; aspect-ratio: 1; margin: 0 auto; display: block; }
.rings circle { fill: none; stroke-linecap: round; }
.rings .track { stroke: var(--ring-track); }
.rings .s1 { stroke: var(--ring-1); } .rings .s2 { stroke: var(--ring-2); } .rings .s3 { stroke: var(--ring-3); }
.rings .s4 { stroke: var(--ring-4); } .rings .s5 { stroke: var(--ring-5); }
.rings .lit { filter: drop-shadow(0 0 4px var(--ring-3)); }
.rings .core { fill: var(--accent-soft); stroke: none; }
@media (prefers-reduced-motion: no-preference) {
    .rings .lit { animation: breathe 10s ease-in-out infinite; }
    .rings .sweep { animation: sweep 90s linear infinite; transform-origin: 100px 100px; }
}
@keyframes breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes sweep { to { transform: rotate(360deg); } }

/* documents (health and safety, terms, privacy, licences, deleting data) */
.doc { max-width: 72ch; margin: 0 auto; padding-block: 36px 24px; }
.doc .eyebrow { margin-bottom: 6px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); }
.doc h2 { font-size: 20px; margin: 30px 0 8px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .note { background: var(--sunk); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; color: var(--text); }
.doc.safety h1 { color: inherit; }

/* footer */
footer.site { border-top: 1px solid var(--line); margin-top: 24px; padding-block: 22px 28px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }
