/* Artzi — artzi.app
   Tokens mirror apps/desktop/src/renderer/styles.css and packages/design. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --paper: #f6f1e9;
  --paper-2: #efe8dd;
  --card: #fdfaf5;
  --ink: #2b2520;
  --ink-2: #625950;
  --ink-3: #8a8076;
  --line: rgb(43 37 32 / 0.1);
  --line-strong: rgb(43 37 32 / 0.18);
  --hover: rgb(43 37 32 / 0.05);
  --ok: #3f7a52;
  --shadow-1: 0 1px 2px rgb(60 40 20 / 0.06), 0 2px 8px rgb(60 40 20 / 0.05);
  --shadow-2: 0 2px 4px rgb(60 40 20 / 0.06), 0 12px 32px rgb(60 40 20 / 0.1);
  --shadow-3: 0 4px 8px rgb(60 40 20 / 0.05), 0 30px 80px -10px rgb(60 40 20 / 0.22);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
  --gutter: 24px;
  color-scheme: light;

  /* amber (default) */
  --hue: oklch(0.80 0.14 75);
  --hue-light: oklch(0.92 0.09 88);
  --hue-deep-base: oklch(0.52 0.12 60);
  --hue-on: oklch(0.25 0.05 60);
  --face: oklch(0.24 0.05 60);
}

:root[data-hue="coral"] { --hue: oklch(0.72 0.15 35); --hue-light: oklch(0.87 0.08 40); --hue-deep-base: oklch(0.48 0.14 30); --hue-on: oklch(0.22 0.05 30); --face: oklch(0.22 0.05 30); }
:root[data-hue="iris"]  { --hue: oklch(0.66 0.14 285); --hue-light: oklch(0.84 0.08 290); --hue-deep-base: oklch(0.45 0.14 280); --hue-on: oklch(0.98 0.01 285); --face: oklch(0.22 0.07 285); }
:root[data-hue="sage"]  { --hue: oklch(0.74 0.09 150); --hue-light: oklch(0.88 0.06 150); --hue-deep-base: oklch(0.47 0.08 155); --hue-on: oklch(0.22 0.04 155); --face: oklch(0.22 0.04 155); }
:root[data-hue="sky"]   { --hue: oklch(0.74 0.11 230); --hue-light: oklch(0.88 0.06 225); --hue-deep-base: oklch(0.47 0.11 240); --hue-on: oklch(0.22 0.05 240); --face: oklch(0.22 0.06 250); }
:root[data-hue="plum"]  { --hue: oklch(0.62 0.13 340); --hue-light: oklch(0.82 0.08 345); --hue-deep-base: oklch(0.42 0.12 335); --hue-on: oklch(0.98 0.01 340); --face: oklch(0.22 0.06 340); }

:root { --hue-deep: var(--hue-deep-base); }

:root[data-theme="dark"] {
  --paper: #17161a;
  --paper-2: #1d1c21;
  --card: #232228;
  --ink: #ece6dc;
  --ink-2: #b0a79b;
  --ink-3: #847c72;
  --line: rgb(236 230 220 / 0.09);
  --line-strong: rgb(236 230 220 / 0.16);
  --hover: rgb(236 230 220 / 0.05);
  --ok: #8cc79e;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 8px rgb(0 0 0 / 0.2);
  --shadow-2: 0 2px 4px rgb(0 0 0 / 0.3), 0 16px 40px rgb(0 0 0 / 0.35);
  --shadow-3: 0 4px 8px rgb(0 0 0 / 0.3), 0 40px 90px -10px rgb(0 0 0 / 0.6);
  --hue-deep: var(--hue-light);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 240ms var(--ease), color 240ms var(--ease);
}
::selection { background: color-mix(in oklch, var(--hue) 40%, transparent); color: var(--ink); }
a { color: var(--hue-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--hue-deep); outline-offset: 2px; border-radius: 6px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font: 0.88em var(--font-mono); background: var(--hover); padding: 0.1em 0.35em; border-radius: 5px; }
h1, h2, h3 { margin: 0; }
svg:not(.fill) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }

.wrap { width: min(1160px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }
.muted { color: var(--ink-3); }
[hidden] { display: none !important; }

/* ---------- bead ---------- */
.bead { display: block; overflow: visible; }
.bead .bead-fill, .bead use[href="#bead-body"] { fill: var(--hue); stroke: none; transition: fill 400ms var(--ease); }
.bead .bead-shadow { fill: var(--hue-deep-base); opacity: 0.16; stroke: none; }
:root[data-theme="dark"] .bead .bead-shadow { fill: #000; opacity: 0.35; }
.bead .bead-eye { fill: var(--face); stroke: none; }
.bead .bead-smile { fill: none; stroke: var(--face); stroke-width: 2.4; stroke-linecap: round; }
.bead-body { transform-origin: 50% 100%; transform-box: fill-box; }
.bead-eyes { transform-origin: center; transform-box: fill-box; transition: transform 400ms var(--ease); }
.bead-eye { transform-origin: center; transform-box: fill-box; animation: blink 6s infinite; }
.bead[data-activity="idle"] .bead-body, .bead:not([data-activity]) .bead-body { animation: breathe 5s ease-in-out infinite; }
.bead[data-activity="waiting"] .bead-body { animation: hop 1.6s var(--ease-out) infinite; }
.bead[data-activity="waiting"] .bead-eyes { transform: translate(0, -2px); }
.bead[data-activity="thinking"] .bead-eyes { animation: glance 2.4s var(--ease) infinite; }
.bead[data-activity="working"] .bead-eyes { transform: translate(0, 1.5px); }
.bead[data-activity="working"] .bead-eye { animation: blink 3s infinite; }
.bead-eyes.tracking { transition: transform 180ms var(--ease-out); }
@keyframes breathe { 50% { transform: scale(1.025, 0.985); } }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0); } 35% { transform: translateY(-4%); } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
@keyframes glance { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-3px); } 65% { transform: translateX(3px); } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  font-weight: 560; font-size: 14.5px; white-space: nowrap; text-decoration: none;
  transition: transform 120ms var(--ease), background 120ms var(--ease), box-shadow 120ms var(--ease), border-color 120ms var(--ease);
}
.btn:hover { background: color-mix(in oklch, var(--card) 92%, var(--ink)); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: transparent; }
.btn-primary:hover { background: color-mix(in oklch, var(--ink) 86%, var(--paper)); }
.btn-hue { background: var(--hue); color: var(--hue-on); border-color: transparent; box-shadow: 0 1px 0 rgb(255 255 255 / 0.3) inset, 0 1px 3px color-mix(in oklch, var(--hue-deep-base) 40%, transparent); }
.btn-hue:hover { background: color-mix(in oklch, var(--hue) 90%, var(--hue-deep-base)); }
.btn-ghost { background: none; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 16px; border-radius: 12px; }

.segmented { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--hover); border: 1px solid var(--line); }
.segmented button {
  border: 0; background: none; width: 32px; height: 28px; border-radius: 8px; color: var(--ink-3);
  display: grid; place-items: center;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background-color 240ms var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-bar { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 580 22px/1 var(--font-display); letter-spacing: -0.015em; font-variation-settings: "SOFT" 60, "opsz" 36; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px; transition: background 120ms, color 120ms; }
.nav-links a:hover { background: var(--hover); color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 72px 0 40px; display: flex; flex-direction: column; align-items: center; }
.bead-hero { width: 128px; height: 128px; margin-bottom: 28px; cursor: pointer; }
.hero h1 {
  font: 520 clamp(38px, 6vw, 68px)/1.04 var(--font-display);
  letter-spacing: -0.028em; max-width: 15.5em; text-wrap: balance;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin: 22px 0 0; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { margin: 20px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* ---------- showcase: app mock ---------- */
.showcase { padding: 32px 0 24px; }
.app {
  display: grid; grid-template-columns: 216px minmax(0, 1fr) 264px;
  height: 640px; border-radius: 18px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-3);
  font-size: 14.5px; line-height: 1.55; text-align: left;
  transition: background-color 240ms var(--ease);
}
.app-side { background: var(--paper-2); border-right: 1px solid var(--line); padding: 36px 12px 14px; display: flex; flex-direction: column; min-height: 0; }
.app-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 8px 20px; }
.app-name { font: 560 24px/1.1 var(--font-display); letter-spacing: -0.015em; font-variation-settings: "SOFT" 60, "opsz" 36; }
.app-status { color: var(--ink-2); font-size: 13px; display: flex; align-items: center; gap: 6px; min-height: 20px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status-dot[data-activity="working"] { background: var(--hue-deep); animation: pulse 1.4s var(--ease) infinite; }
.status-dot[data-activity="waiting"] { background: var(--hue); box-shadow: 0 0 0 3px color-mix(in oklch, var(--hue) 30%, transparent); }
.app-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.app-nav li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.app-nav li svg { width: 16px; height: 16px; flex: none; }
.app-nav li[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
.app-nav .count { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.app-foot { margin-top: auto; padding: 0 10px; font-size: 12px; color: var(--ink-3); }

.app-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread { flex: 1; overflow-y: auto; padding: 8px 28px 16px; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.day { align-self: center; font-size: 12px; color: var(--ink-3); margin: 18px 0 10px; font-weight: 520; }
.msg { display: flex; gap: 12px; animation: rise 360ms var(--ease) both; }
.msg + .msg, .thread > * + .msg { margin-top: 18px; }
.msg-avatar { flex: none; margin-top: 1px; }
.msg-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.msg-body p { margin: 0; }
.msg-meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.msg-meta strong { color: var(--ink); font-weight: 600; font-size: 13px; }
.msg-user { justify-content: flex-end; }
.bubble {
  max-width: 78%; background: color-mix(in oklch, var(--hue) 22%, var(--card));
  border: 1px solid color-mix(in oklch, var(--hue) 30%, transparent);
  padding: 9px 14px; border-radius: 16px 16px 4px 16px;
}
:root[data-theme="dark"] .bubble { background: color-mix(in oklch, var(--hue) 20%, var(--card)); }
.activity-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); animation: rise 240ms var(--ease) both; }
.activity-line svg { width: 15px; height: 15px; flex: none; }
.activity-line code { font-size: 12px; }
.activity-line[data-status="done"] svg { color: var(--ok); }

.approval {
  border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
  background: color-mix(in oklch, var(--hue) 14%, var(--card));
  border: 1px solid color-mix(in oklch, var(--hue) 45%, transparent);
  box-shadow: var(--shadow-2); margin-top: 4px;
  animation: arrive 420ms var(--ease-out) both;
  transition: background 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.approval-head { display: flex; gap: 10px; align-items: flex-start; }
.approval-head svg { color: var(--hue-deep); flex: none; margin-top: 1px; }
.approval-title { font-weight: 640; line-height: 1.35; }
.approval-sub { font-size: 12.5px; color: var(--ink-2); }
.approval-body { display: flex; flex-direction: column; gap: 10px; }
.approval-note { margin: 0; font-size: 13px; color: var(--ink-2); }
.approval-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.approval-result { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.approval-result svg { width: 15px; height: 15px; }
.approval[data-status="approved"], .approval[data-status="denied"] { box-shadow: none; background: var(--hover); border-color: var(--line); }
.approval[data-status="approved"] .approval-result svg { color: var(--ok); }

.diff { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.diff-head { display: flex; justify-content: space-between; padding: 7px 10px; font: 12.5px var(--font-mono); color: var(--ink-2); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.diff-stat { color: var(--ok); }
.diff pre { margin: 0; font: 12.5px/1.6 var(--font-mono); max-height: 150px; overflow: auto; background: color-mix(in oklch, var(--ok) 13%, var(--card)); scrollbar-width: thin; }
.dl { display: block; padding-right: 10px; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 58px; text-indent: -58px; }
.dl i { display: inline-block; width: 36px; text-align: right; font-style: normal; color: var(--ink-3); text-indent: 0; }
.dl b { display: inline-block; width: 22px; text-align: center; font-weight: 400; color: var(--ok); text-indent: 0; }

.composer-wrap { padding: 4px 28px 20px; flex: none; }
.composer {
  background: var(--card); border: 1px solid color-mix(in oklch, var(--hue-deep) 55%, var(--line-strong)); border-radius: 18px;
  box-shadow: var(--shadow-2); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px;
}
.composer-input { flex: 1; color: var(--ink-3); }
.send { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--paper); opacity: 0.25; }

.app-desk { background: var(--paper-2); border-left: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.app-desk h3 { font: 560 20px/1.2 var(--font-display); letter-spacing: -0.01em; font-variation-settings: "SOFT" 60, "opsz" 36; }
.slip {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
  animation: arrive 420ms var(--ease-out) both;
}
.slip::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.slip[data-status="running"]::before {
  background: linear-gradient(90deg, transparent, var(--hue), transparent); background-size: 40% 100%; background-repeat: no-repeat;
  animation: sweep 1.8s var(--ease) infinite;
}
.slip[data-status="done"]::before { background: var(--ok); opacity: 0.7; }
.slip-head { display: flex; align-items: flex-start; gap: 10px; }
.slip-title { font-weight: 620; line-height: 1.35; flex: 1; font-size: 14px; }
.slip-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.slip-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.slip-steps li svg { width: 14px; height: 14px; flex: none; }
.slip-steps li[data-status="done"] { color: var(--ink-3); }
.slip-steps li[data-status="done"] svg { color: var(--ok); }
.slip-steps li[data-status="active"] svg { color: var(--hue-deep); }
.slip-foot { font-size: 12.5px; color: var(--ink-3); }
.spin { animation: spin 1s linear infinite; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--hover); color: var(--ink-2); white-space: nowrap; }
.pill[data-tone="hue"] { background: color-mix(in oklch, var(--hue) 26%, transparent); color: var(--hue-deep); }
.pill[data-tone="ok"] { background: color-mix(in oklch, var(--ok) 15%, transparent); color: var(--ok); }

.showcase-hint { text-align: center; color: var(--ink-3); font-size: 14px; margin: 18px 0 0; }

/* ---------- sections ---------- */
.section { padding: 104px 0 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hue-deep); }
.section h2 {
  font: 520 clamp(30px, 4vw, 44px)/1.1 var(--font-display);
  letter-spacing: -0.022em; text-wrap: balance;
  font-variation-settings: "SOFT" 50, "opsz" 96;
}
.section-lede { color: var(--ink-2); margin: 16px 0 0; font-size: 18px; max-width: 38em; }
.text-link { display: inline-flex; gap: 6px; margin-top: 24px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.pillars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.pillar { grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 28px; box-shadow: var(--shadow-1); }
.pillar:nth-child(4), .pillar:nth-child(5) { grid-column: span 3; }
.pillar h3 { font: 560 22px/1.2 var(--font-display); letter-spacing: -0.012em; margin-bottom: 10px; font-variation-settings: "SOFT" 60, "opsz" 36; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* make it yours */
.meet {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 24px; padding: 56px;
}
.meet-preview { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.bead-meet { width: 168px; height: 168px; }
.meet-bubble { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-2); max-width: 400px; width: 100%; }
.meet-bubble strong { font-size: 13px; font-weight: 600; }
.meet-bubble p { margin: 4px 0 0; font-size: 15px; transition: opacity 180ms var(--ease); }
.meet-bubble p.swap { opacity: 0; }
.meet-form h2 { font-size: clamp(28px, 3.4vw, 38px); }
.meet-form .section-lede { font-size: 16.5px; margin-bottom: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.field-label { font-size: 14px; font-weight: 600; }
.field input {
  height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); outline: none;
  caret-color: var(--hue-deep); transition: border-color 160ms, box-shadow 160ms;
}
.field input:focus { border-color: var(--hue-deep); box-shadow: 0 0 0 3px color-mix(in oklch, var(--hue) 28%, transparent); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; transition: transform 160ms var(--ease-out), box-shadow 160ms; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 4px var(--ink); }
.swatch[data-hue="amber"] { background: oklch(0.80 0.14 75); }
.swatch[data-hue="coral"] { background: oklch(0.72 0.15 35); }
.swatch[data-hue="iris"]  { background: oklch(0.66 0.14 285); }
.swatch[data-hue="sage"]  { background: oklch(0.74 0.09 150); }
.swatch[data-hue="sky"]   { background: oklch(0.74 0.11 230); }
.swatch[data-hue="plum"]  { background: oklch(0.62 0.13 340); }
.tones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tone {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card);
  transition: border-color 160ms, box-shadow 160ms;
}
.tone strong { font-size: 14px; }
.tone span { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.tone:hover { border-color: color-mix(in oklch, var(--hue-deep) 50%, var(--line-strong)); }
.tone[aria-checked="true"] { border-color: var(--hue-deep); box-shadow: 0 0 0 3px color-mix(in oklch, var(--hue) 28%, transparent); }

/* features */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feature { background: var(--paper); padding: 26px 24px 28px; transition: background 160ms var(--ease); }
.feature:hover { background: var(--card); }
.feature svg { width: 22px; height: 22px; color: var(--hue-deep); margin-bottom: 14px; }
.feature h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* control */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--ink-2); font-size: 16px; }
.checks svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 4px; stroke-width: 2.2; }
.radio-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); overflow: hidden; }
.radio-row {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none;
  padding: 18px 20px; transition: background 140ms var(--ease);
}
.radio-row + .radio-row { border-top: 1px solid var(--line); }
.radio-row:hover { background: var(--hover); }
.radio-row > span { display: flex; flex-direction: column; gap: 4px; }
.radio-row strong { font-weight: 620; font-size: 15.5px; }
.radio-row > span > span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; margin-top: 2px; position: relative; transition: border-color 160ms; }
.radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--hue-deep); transform: scale(0); transition: transform 200ms var(--ease-out); }
.radio-row[aria-checked="true"] .radio { border-color: var(--hue-deep); }
.radio-row[aria-checked="true"] .radio::after { transform: scale(1); }

/* providers */
.providers { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.provider-group { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-1); }
.provider-group h3 { font-size: 13px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; color: var(--ink); }
.chips .chip-dashed { border-style: dashed; color: var(--ink-2); background: none; }
.provider-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }

/* terminal */
.terminal { background: #1d1c21; color: #ece6dc; border-radius: 16px; box-shadow: var(--shadow-3); overflow: hidden; border: 1px solid rgb(236 230 220 / 0.08); }
:root[data-theme="dark"] .terminal { background: #111014; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgb(236 230 220 / 0.07); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgb(236 230 220 / 0.16); }
.terminal pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font: 14px/1.75 var(--font-mono); }
.terminal code { background: none; padding: 0; font: inherit; }
.terminal .c { color: #847c72; }
.terminal .p { color: var(--hue); user-select: none; }
.terminal .ok { color: #8cc79e; }
.copy {
  margin-left: auto; border: 1px solid rgb(236 230 220 / 0.14); background: rgb(236 230 220 / 0.06); color: #b0a79b;
  font-size: 12.5px; font-weight: 560; padding: 3px 10px; border-radius: 7px; transition: color 120ms, background 120ms;
}
.copy:hover { color: #ece6dc; background: rgb(236 230 220 / 0.12); }

/* privacy */
.privacy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.privacy-item { border-top: 2px solid var(--hue); padding-top: 18px; }
.privacy-item svg { width: 22px; height: 22px; color: var(--hue-deep); }
.privacy-item p { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; }

/* start */
.start { text-align: center; display: flex; flex-direction: column; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: 24px; padding: 64px 32px; }
.bead-start { width: 88px; height: 88px; margin-bottom: 20px; }
.start .section-lede { margin-inline: auto; }
.terminal-start { width: min(560px, 100%); margin-top: 32px; text-align: left; }
.start-needs { color: var(--ink-2); max-width: 36em; margin: 24px 0 0; font-size: 16px; }
.start .hero-actions { margin-top: 26px; }
.status-note { margin: 28px 0 0; font-size: 14px; color: var(--ink-3); max-width: 40em; }
.status-note strong { color: var(--ink-2); }

.later { text-align: center; padding-bottom: 104px; }
.later-title { font-size: clamp(24px, 3vw, 30px) !important; margin-bottom: 20px !important; }
.chips-center { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-inner { display: flex; align-items: center; gap: 24px; padding: 28px 0; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: var(--ink); }
.footer-note { margin: 0 0 0 auto; font-size: 13.5px; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 200px minmax(0, 1fr); }
  .app-desk { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 880px) {
  .meet, .split { grid-template-columns: 1fr; gap: 40px; }
  .meet { padding: 36px 24px; }
  .split-rev > :first-child { order: 2; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar:nth-child(4), .pillar:nth-child(5) { grid-column: span 1; }
  .pillar:nth-child(5) { grid-column: span 2; }
  .providers { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .app { grid-template-columns: minmax(0, 1fr); height: 600px; }
  .app-side { display: none; }
  .thread { padding: 6px 16px 12px; }
  .composer-wrap { padding: 4px 14px 14px; }
  .hide-sm { display: none; }
  .hero { padding-top: 48px; }
  .bead-hero { width: 104px; height: 104px; }
  .section { padding-top: 80px; }
  .gh-link span { display: none; }
  .gh-link { width: 34px; padding: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar:nth-child(5) { grid-column: span 1; }
  .tones { grid-template-columns: 1fr; }
  .start { padding: 48px 20px; }
  .footer-note { margin-left: 0; width: 100%; }
  .later { padding-bottom: 80px; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; }
  .dl { padding-left: 44px; text-indent: -44px; }
  .dl i { width: 24px; }
  .terminal pre { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
