/* Zilla consumer sites: shared layout and components.
   Each site sets its own tokens (colors, fonts, radii) in <site>/site.css.
   Built for Nikki, Nov 16 2026. Plain CSS, no framework. */

:root {
  --brand: #5b17d6;
  --brand-hover: #4a10b5;
  --accent: #7c3aed;
  --black: #0a0a0a;
  --bg: #ffffff;
  --surface: #ffffff;
  --sunken: #f5f5f4;
  --panel: #f3f0fb;
  --ink: #0a0a0a;
  --ink-2: #52525b;
  --ink-3: #6b6b74;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --btn-radius: 10px;
  --stage-radius: 24px;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --display-weight: 650;
  --display-tracking: -0.035em;
  --wrap: 1160px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 720px) { :root { --gutter: 20px; } }

/* ---------- Type ---------- */
.display, h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
}
h1 { font-size: clamp(42px, 6.2vw, 72px); line-height: 1.0; }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; }
h3 { font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 32em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.muted { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--btn-radius);
  font: 600 15px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--sunken); }
.btn-quiet { background: transparent; color: var(--ink); padding: 0 12px; }
.btn-quiet:hover { background: var(--sunken); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 36px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.logo img { width: 32px; height: 32px; border-radius: 50%; }
.logo span { font-weight: 450; }
.logo b { font-weight: 700; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 420px) {
  .head-row { gap: 12px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo img { width: 28px; height: 28px; }
  .head-actions .btn { padding: 0 12px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 11.5em; }
.hero .lede { margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.apps-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; font-size: 14px; line-height: 1.45; color: var(--ink-3); max-width: 30em; }
.apps-note svg { flex: none; margin-top: 1px; }
.hero-visual { position: relative; display: flex; justify-content: flex-end; min-width: 0; }
.hero-portrait { position: absolute; left: 0; top: 56px; width: 250px; aspect-ratio: 350 / 420; border-radius: 22px; overflow: hidden; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .phone { margin-right: 8px; }
@media (max-width: 980px) {
  .hero-portrait { width: 200px; }
}
@media (max-width: 880px) {
  .hero { padding: 36px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { justify-content: center; }
  .hero-portrait { display: none; }
  .hero-visual .phone { margin-right: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tint { background: var(--sunken); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head .lede { margin-top: 18px; }
@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 44px; }
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin: 0; padding: 0; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.step-n { display: block; margin-bottom: 36px; font: 500 14px/1 var(--font-body); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); max-width: 22em; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step-n { margin-bottom: 16px; }
}

/* Feature spotlights */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.spot + .spot { margin-top: 112px; }
.spot.flip .spot-media { order: -1; }
.spot-copy h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(28px, 3vw, 38px); line-height: 1.08; }
.spot-copy > p { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 28em; }
.spot-media { display: flex; justify-content: center; padding: 56px 24px; border-radius: var(--stage-radius); background: var(--panel); min-width: 0; }
.spot-label { display: block; font-size: 14px; font-weight: 500; color: var(--brand); margin-bottom: 14px; }
.flow { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; max-width: 30em; }
.flow li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.flow li:last-child { border-bottom: 1px solid var(--line); }
.flow b { color: var(--ink); font-weight: 600; }
.flow .n { font-size: 14px; font-weight: 600; color: var(--brand); padding-top: 2px; font-variant-numeric: tabular-nums; }
.quote-line { margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--line-strong); color: var(--ink-2); font-size: 16px; max-width: 28em; }
@media (max-width: 880px) {
  .spot { grid-template-columns: 1fr; gap: 40px; }
  .spot.flip .spot-media { order: 0; }
  .spot + .spot { margin-top: 88px; }
  .spot-media { padding: 40px 12px; }
}

/* Feature list */
.flist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; list-style: none; margin: 0; padding: 0; }
.flist li { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.flist h3 { font-size: 17px; }
.flist p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.flist-head { margin: 112px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
@media (max-width: 900px) { .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .flist { grid-template-columns: 1fr; } .flist-head { margin-top: 88px; } }

/* Ground rules (privacy / safety) */
.rules { background: var(--black); color: #f4f4f5; }
.rules h2 { color: #fff; }
.rules .lede { color: #a1a1aa; }
.rules-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.rules-list { list-style: none; margin: 0; padding: 0; }
.rules-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 24px 0; border-top: 1px solid #27272a; }
.rules-list li:last-child { border-bottom: 1px solid #27272a; }
.rules-list svg { margin-top: 3px; color: #c4b5fd; }
.rules-list h3 { color: #fff; font-size: 18px; }
.rules-list p { margin-top: 6px; color: #a1a1aa; font-size: 16px; }
@media (max-width: 880px) { .rules-grid { grid-template-columns: 1fr; gap: 36px; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center/12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center/1.5px 12px no-repeat; transition: transform .2s ease; color: var(--ink-3); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 32px 24px 0; color: var(--ink-2); max-width: 38em; }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Closing call to action */
.cta { padding: 96px 0; background: var(--cta-bg, var(--brand)); color: var(--cta-ink, #fff); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { color: inherit; max-width: 13em; }
.cta p { margin-top: 14px; opacity: .82; font-size: 18px; }
.cta .btn-primary { background: var(--cta-btn-bg, #fff); color: var(--cta-btn-ink, var(--brand)); }
.cta .btn-primary:hover { background: var(--cta-btn-hover, #f1ecfe); }
@media (max-width: 760px) { .cta { padding: 72px 0; } .cta-row { flex-direction: column; align-items: flex-start; } }

/* Footer */
.foot { padding: 64px 0 40px; font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot h4 { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand p { margin-top: 14px; max-width: 26em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Phone mockups ---------- */
.phone {
  --app-bg: #ffffff; --app-ink: #18181b; --app-ink-2: #6b6b74; --app-line: #ececef; --app-brand: var(--brand);
  position: relative; z-index: 1; flex: none;
  width: 300px; max-width: 100%;
  padding: 9px; border-radius: 48px; background: #0b0b0d;
  box-shadow: inset 0 0 0 1.5px #2a2a30, 0 40px 80px -30px rgba(30, 14, 70, .38), 0 16px 32px -16px rgba(20, 10, 40, .28);
}
.screen {
  position: relative; height: 610px; overflow: hidden; border-radius: 39px;
  background: var(--app-bg); color: var(--app-ink);
  font: 400 13px/1.4 var(--font-body); letter-spacing: 0;
  display: flex; flex-direction: column;
}
.screen::before { content: ""; position: absolute; z-index: 3; top: 10px; left: 50%; width: 88px; height: 25px; margin-left: -44px; border-radius: 20px; background: #0b0b0d; }
.sb { flex: none; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 2px 24px 0 32px; font-weight: 600; font-size: 14px; }
.sb i { width: 56px; height: 12px; background: currentColor; -webkit-mask: var(--sb-icons) no-repeat center / contain; mask: var(--sb-icons) no-repeat center / contain; }
:root { --sb-icons: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 12'%3E%3Crect x='0' y='7.5' width='3' height='4.5' rx='1'/%3E%3Crect x='4.5' y='5' width='3' height='7' rx='1'/%3E%3Crect x='9' y='2.5' width='3' height='9.5' rx='1'/%3E%3Crect x='13.5' y='0' width='3' height='12' rx='1'/%3E%3Crect x='29' y='.5' width='23' height='11' rx='3.2' fill='none' stroke='%23000' stroke-opacity='.4'/%3E%3Crect x='31' y='2.5' width='17' height='7' rx='1.6'/%3E%3Crect x='53' y='4' width='1.8' height='4' rx='.9' fill-opacity='.4'/%3E%3C/svg%3E"); }
.app-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 18px 12px; }
.app-top .av { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.app-top .t { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.app-top .s { font-size: 12px; color: var(--app-ink-2); }
.app-top .back { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--app-ink-2); flex: none; }
.app-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 2px 16px 16px; }
.app-label { font-size: 12px; font-weight: 600; color: var(--app-ink-2); margin-top: 6px; }
.tabbar { flex: none; display: flex; justify-content: space-around; padding: 8px 8px 24px; border-top: 1px solid var(--app-line); font-size: 10.5px; font-weight: 500; color: var(--app-ink-2); background: var(--app-bg); }
.tabbar span { display: grid; justify-items: center; gap: 3px; }
.tabbar span::before { content: ""; width: 20px; height: 20px; border-radius: 6px; background: currentColor; opacity: .22; }
.tabbar .on { color: var(--app-brand); }
.tabbar .on::before { opacity: 1; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 17px; font-size: 13px; line-height: 1.42; }
.msg.me { align-self: flex-end; background: var(--app-brand); color: #fff; border-bottom-right-radius: 6px; }
.msg.z { align-self: flex-start; background: var(--bubble, #f2f1f6); border-bottom-left-radius: 6px; }
.msg .meta { display: block; margin-top: 4px; font-size: 11px; opacity: .7; }
.msg.voice { display: inline-flex; align-items: center; gap: 8px; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.wave b { width: 2px; border-radius: 2px; background: currentColor; opacity: .85; }
.composer { flex: none; display: flex; align-items: center; gap: 8px; margin: 0 14px 14px; padding: 5px 5px 5px 14px; border: 1px solid var(--app-line); border-radius: 999px; color: #a1a1aa; font-size: 13px; background: var(--app-bg); }
.composer > span:first-child { flex: 1; }
.composer .mic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--app-brand); color: #fff; }

/* Small app pieces */
.row { display: flex; align-items: center; gap: 10px; }
.row .grow { flex: 1; min-width: 0; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.chk { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #c9c9d1; flex: none; }
.chk.done { background: var(--app-brand); border-color: var(--app-brand); -webkit-mask: none; position: relative; }
.chk.done::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mini-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--app-brand); color: #fff; }
.mini-btn.ghost { background: transparent; color: var(--app-ink); box-shadow: inset 0 0 0 1px var(--app-line); }

/* 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; padding-top: 48px; padding-bottom: 48px; }
.notfound img { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 28px; }
.notfound .lede { margin-top: 16px; }
