/* ============================================================
   Clip Nugget — single shared design system (cap.so language).
   Instrument Sans for type and UI, Source Serif 4 light for
   reading copy, DM Mono for eyebrows and chips. Sky-gradient
   hero panel, tinted noise "shells" holding soft inner cards,
   floating pill nav. One token set drives landing, login,
   register, dashboard and app-return.
   ============================================================ */

:root {
  --bg: #f8f6f0;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fbf9f4;
  --surface-hover: #f5f1e8;
  --shell: #f4efe4;
  --field: #fdfcf9;
  --border: #e8e1d2;
  --border-strong: #ded4c1;
  --line: #eae4d8;
  --ring: rgba(17, 17, 17, 0.06);
  --text: #111111;
  --text-strong: #111111;
  --ink: #202020;
  --lead: rgba(17, 17, 17, 0.78);
  --muted: rgba(17, 17, 17, 0.6);
  --faint: rgba(17, 17, 17, 0.45);
  --footer-link: #838383;
  --accent: #111111;
  --accent-hover: #000000;
  --sky: #f59e0b;
  --sky-chip: #fef3c7;
  --sky-ink: #b45309;
  --success: #157a32;
  --warning: #8a5a00;
  --danger: #c4232b;
  --placeholder: #9a9a9a;
  --focus-ring: rgba(245, 158, 11, 0.35);
  --content: 1160px;

  --font: "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-shell: 22px;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  --sky-panel:
    radial-gradient(42% 38% at 72% 0%, rgba(251, 191, 36, 0.4) 0%, rgba(251, 191, 36, 0) 70%),
    radial-gradient(55% 42% at 20% 12%, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 72%),
    radial-gradient(80% 50% at 50% 82%, rgba(254, 243, 199, 0.65) 0%, rgba(254, 243, 199, 0) 75%),
    linear-gradient(#fcf8ee 0%, #f7ebd4 34%, #f1e0ba 66%, #ebd6a3 100%);
  --tint-blue:
    var(--noise),
    radial-gradient(92% 95% at 6% 6%, #fde68a 0%, rgba(253, 230, 138, 0) 66%),
    radial-gradient(70% 78% at 96% 2%, #fef3c7 0%, rgba(254, 243, 199, 0) 60%),
    radial-gradient(82% 76% at 92% 96%, #fed7aa 0%, rgba(254, 215, 170, 0) 62%),
    radial-gradient(92% 88% at 24% 100%, #fcd34d 0%, rgba(252, 211, 77, 0) 70%);
  --tint-violet:
    var(--noise),
    radial-gradient(80% 88% at 92% 8%, #b9a5f2 0%, rgba(185, 165, 242, 0) 60%),
    radial-gradient(72% 80% at 4% 4%, #c3dcf8 0%, rgba(195, 220, 248, 0) 60%),
    radial-gradient(84% 80% at 6% 98%, #f6d9ec 0%, rgba(246, 217, 236, 0) 62%),
    radial-gradient(88% 72% at 68% 100%, #d5ede6 0%, rgba(213, 237, 230, 0) 66%);
  --tint-green:
    var(--noise),
    radial-gradient(80% 88% at 8% 92%, #8fdcbb 0%, rgba(143, 220, 187, 0) 60%),
    radial-gradient(72% 78% at 88% 4%, #e0d8f7 0%, rgba(224, 216, 247, 0) 60%),
    radial-gradient(80% 80% at 96% 92%, #f8e7c8 0%, rgba(248, 231, 200, 0) 64%),
    radial-gradient(88% 80% at 28% 2%, #c8eedd 0%, rgba(200, 238, 221, 0) 66%);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }
.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; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.site { background: var(--page); }

a {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 17, 0.25);
  text-underline-offset: 3px;
}
a:hover { color: var(--text-strong); text-decoration-color: currentColor; }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  word-break: break-all;
}

h1, h2, h3 { color: var(--text-strong); letter-spacing: -0.03em; font-weight: 400; }
h1 { font-size: 2.25rem; line-height: 1.05; margin: 0.4em 0 0.4em; }
h2 { font-size: 1.25rem; margin: 1.6em 0 0.6em; }

/* ---------- Nav (floating pill) ---------- */
.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px var(--ring), 0 8px 24px -18px rgba(17, 17, 17, 0.35);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  text-decoration: none;
}
.brand img { display: block; }
.brand:hover { color: var(--text-strong); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text-strong); background: rgba(17, 17, 17, 0.04); }
.nav-links a[data-auth="guest"],
.nav-links a[data-auth="user"] {
  min-height: 42px;
  margin-left: 8px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.906rem;
}
.nav-links a[data-auth="guest"]:hover,
.nav-links a[data-auth="user"]:hover { background: rgba(17, 17, 17, 0.04); }
.nav-links .nav-cta,
.nav-links .nav-cta:hover {
  min-height: 42px;
  margin-left: 6px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fcfcfc;
  font-size: 0.906rem;
}
.nav-links .nav-cta:hover { background: #000; }

/* ---------- Layout ---------- */
main { max-width: 880px; margin: 0 auto; padding: 40px 20px 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-strong);
  font-family: var(--font);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.btn:hover {
  border-color: #bfcbd8;
  background: var(--surface-hover);
  color: var(--text-strong);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fcfcfc;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.2);
}
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fcfcfc; }
/* Gold nugget CTA button — signature metallic amber luster */
.btn.sky {
  border: 0;
  background: linear-gradient(180deg, #fffcf0 0%, #fef3c7 48%, #fde480 100%);
  color: #5c2709;
  box-shadow:
    inset 0 0 0 1px rgba(217, 119, 6, 0.45),
    inset 0 2px 3px -1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(180, 83, 9, 0.25),
    0 1px 2px rgba(180, 83, 9, 0.15),
    0 10px 24px -10px rgba(217, 119, 6, 0.45);
}
.btn.sky:hover {
  background: linear-gradient(180deg, #ffffff 0%, #fef08a 48%, #fcd34d 100%);
  color: #451a03;
  box-shadow:
    inset 0 0 0 1px rgba(217, 119, 6, 0.65),
    inset 0 2px 3px -1px #ffffff,
    inset 0 -1px 1px rgba(180, 83, 9, 0.3),
    0 1px 2px rgba(180, 83, 9, 0.2),
    0 14px 28px -10px rgba(217, 119, 6, 0.6);
}
.btn.ghost { background: var(--surface); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 0.85rem; border-radius: 8px; }
.btn.large { min-height: 48px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.btn .os-logo { width: 17px; height: 17px; fill: currentColor; flex: none; }
.block-btn { width: 100%; }

/* ---------- Eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: var(--sky);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--sky-chip);
  color: #78350f;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Shell + inner card (cap.so card pattern) ---------- */
.shell {
  padding: 10px;
  border-radius: var(--radius-shell);
  background: var(--noise), var(--shell);
}
.shell.blue { background: var(--tint-blue), #faeed2; }
.shell.violet { background: var(--tint-violet), #efe9fb; }
.shell.green { background: var(--tint-green), #e5f3ec; }
.inner {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--noise), var(--surface-soft);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.03), 0 1px 2px rgba(17, 17, 17, 0.04);
}

/* ---------- Panels (app pages) ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 14px;
}
.panel h2 { margin: 0 0 16px; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.shell > .panel { margin: 0; border: 0; }
.shell + .shell { margin-top: 14px; }
.dash-foot { margin: 20px 0 0; }

.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); }
.page-head p:not(.eyebrow) { margin: 8px 0 0; color: var(--lead); font-family: var(--serif); font-weight: 300; font-size: 1.05rem; }

/* ---------- Forms ---------- */
input {
  width: 100%;
  min-height: 44px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  padding: 0 16px;
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: var(--placeholder); }
input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-error {
  color: var(--danger);
  background: #fdecec;
  border: 1px solid #f3c1bc;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Auth (centered card) ---------- */
.back-link {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
}
.back-link:hover { text-decoration: none; opacity: 0.7; }
.auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  max-width: none;
  padding: 72px 16px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px 24px;
  border: 1px solid #e7ded0;
  border-radius: 16px;
  background: #f7f3ea;
  text-align: center;
}
.auth-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.15), 0 4px 12px rgba(180, 83, 9, 0.08);
}
.auth-logo img { display: block; width: 38px; height: 38px; }
.auth-card h1 { margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.auth-sub { margin: 4px 0 0; color: rgba(32, 32, 32, 0.6); font-size: 0.94rem; }
.auth form { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; text-align: left; }
.auth label { display: block; }
.auth label span:not(.sr-only) { display: block; margin: 0 0 6px; font-size: 0.8rem; color: rgba(32, 32, 32, 0.72); }
.auth .btn { width: 100%; border-radius: 999px; font-size: 0.875rem; }
.auth .btn:not(.primary) { background: #ede7db; border-color: #d8cebe; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.4); }
.alt { margin: 16px 0 0; color: rgba(32, 32, 32, 0.6); font-size: 0.8rem; }
.alt a { color: #b45309; font-weight: 500; text-decoration: none; }
.alt a:hover { text-decoration: underline; }
.auth-actions { margin: 22px 0 0; }
.auth-legal { margin: 20px 0 0; color: rgba(32, 32, 32, 0.55); font-size: 0.72rem; line-height: 1.5; }

/* ---------- Dashboard ---------- */
.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  margin: 0;
  align-items: center;
}
.kv dt, .kv dd { padding: 12px 0; border-top: 1px solid var(--line); }
.kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; padding-top: 0; }
.kv dt { color: var(--muted); font-size: 0.92rem; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.key-reveal {
  margin-top: 14px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.auth .key-reveal { flex-direction: column; align-items: stretch; }
.auth .key-reveal code {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: 0;
  padding: 2px 0 6px;
}
.note { color: var(--muted); font-size: 0.875rem; }
.status-active { color: var(--success); font-weight: 500; }
.status-none { color: var(--muted); }

/* ---------- Landing ---------- */
.landing { max-width: none; padding: 0; }
.landing section { scroll-margin-top: 96px; }
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.accent-text { color: inherit; }

/* Hero sky panel */
.hero-panel {
  position: relative;
  margin: 12px 10px 0;
  border-radius: 24px;
  background: var(--sky-panel);
  overflow: hidden;
  isolation: isolate;
}
/* Soft cloud banks drawn with blurred radial blobs. */
.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.9;
}
.hero-panel::before {
  top: 60px;
  left: -60px;
  width: 520px;
  height: 260px;
  background:
    radial-gradient(40% 45% at 30% 60%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(35% 40% at 62% 45%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%);
}
.hero-panel::after {
  top: 150px;
  right: -80px;
  width: 560px;
  height: 300px;
  background:
    radial-gradient(38% 42% at 40% 50%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(30% 36% at 70% 62%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 104px) 24px 0;
  text-align: center;
  animation: hero-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.12), 0 10px 24px -14px rgba(17, 17, 17, 0.6);
}
.announce:hover { color: #fff; text-decoration: none; }
.announce s { color: rgba(255, 255, 255, 0.45); text-decoration: line-through; }
.announce-more { color: rgba(255, 255, 255, 0.55); }

.hero-title {
  margin: 0;
  font-size: clamp(46px, 7.4vw, 88px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--text-strong);
}
.tagline {
  margin: 0;
  max-width: 580px;
  color: var(--lead);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.tagline strong { color: var(--text-strong); font-weight: 400; }

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.actions.left { justify-content: flex-start; }
.dl-meta { margin: -6px 0 0; color: var(--faint); font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }

.frame {
  width: 100%;
  max-width: 1080px;
  margin: 36px auto 0;
  padding: 10px 10px 0;
  border-radius: var(--radius-shell) var(--radius-shell) 0 0;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 28px 80px rgba(180, 115, 20, 0.16);
  backdrop-filter: blur(6px);
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px 14px 0 0;
}

/* Launch film in the hero frame */
.frame.film { position: relative; }
.film-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px 14px 0 0;
  background: #0b0907;
}
.film-sound {
  position: absolute;
  right: 26px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(17, 13, 8, 0.72);
  color: #f6f0e4;
  font: 500 13px/1 var(--font);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.film-sound:hover { background: rgba(17, 13, 8, 0.9); border-color: rgba(245, 158, 11, 0.6); }
.film-sound:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.film-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.film-sound svg path:first-child { fill: currentColor; stroke: none; }
.film-sound .film-sound-on { display: none; }
.film-sound[aria-pressed="true"] .film-sound-on { display: inline; }
.film-sound[aria-pressed="true"] .film-sound-off { display: none; }
.demo-shot-frame + .demo-shot-frame { margin-top: 16px; }
@media (max-width: 640px) {
  .film-sound { right: 16px; bottom: 8px; padding: 6px; }
  .film-sound span { display: none; }
}

/* Section scaffolding */
.block { padding: 112px 0 0; }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.block-title {
  margin: 0;
  max-width: 720px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.block-sub {
  margin: 18px 0 0;
  max-width: 600px;
  color: var(--lead);
  font-family: var(--serif);
  font-size: 1.03rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.block-sub strong { color: var(--text-strong); font-weight: 400; }
.block h3 { margin: 0; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; }

.card-text {
  margin: 8px 0 0;
  color: var(--lead);
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.5;
}

/* Demo */
.demo-shot { padding: 112px 0 0; }
.demo-shot-frame { margin: 40px 0 0; }
.demo-shot-frame .inner { padding: 8px; }
.demo-shot-frame img { display: block; width: 100%; height: auto; border-radius: 10px; }
.demo-video { display: block; width: 100%; height: auto; border-radius: 10px; background: #111; }

/* Facts */
.facts { margin: 48px 0 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 22px; }
.fact strong { color: var(--text-strong); font-size: 1.6rem; font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; }
.fact span { color: var(--lead); font-family: var(--serif); font-weight: 300; font-size: 0.95rem; }

/* Steps: one tinted shell per mode, cap.so style */
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step { display: flex; flex-direction: column; }
.step-top {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
}
.step-n { position: absolute; top: 12px; left: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: rgba(17, 17, 17, 0.7); }
.step-glyph {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 10px 30px -12px rgba(17, 40, 80, 0.35);
}
.step-glyph svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step .inner { flex: 1; }
.label-mono { display: block; margin-bottom: 8px; color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.features-shell { margin-top: 48px; padding: 12px; }
.feature { padding: 28px 24px; }
.feature svg {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--sky-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cli-feature {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-top: 10px;
  padding: 28px 24px;
}
.cli-feature svg {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--sky-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cli-feature h3 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 500; }
.cli-feature .card-text { margin: 0 0 16px; }
.cli-feature-code {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 12px;
  background: #111;
  color: #f2f2f2;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
}
.cli-feature-code code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  word-break: normal;
  white-space: pre;
}
@media (max-width: 900px) {
  .cli-feature { grid-template-columns: 1fr; }
}

/* Pricing */
.plans-shell { margin-top: 48px; padding: 12px; }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
}
.plan.featured {
  background: var(--noise), #ffffff;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.45), 0 18px 40px -24px rgba(180, 83, 9, 0.35);
}
.plan-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  margin: 0;
}
.plan-name { display: flex; align-items: center; gap: 8px; font-size: 1.2rem !important; }
.plan-tag {
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan-price {
  margin: 18px 0 0;
  color: var(--text-strong);
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}
.plan-price s {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: line-through;
}
.plan-price span { color: var(--faint); font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.plan-intro { margin: 8px 0 0; color: var(--sky-ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.plan-desc { margin: 10px 0 0; color: var(--lead); font-family: var(--serif); font-weight: 300; font-size: 0.98rem; }
.plan-list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  font-size: 0.94rem;
}
.plan-list li { position: relative; padding-left: 26px; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23b45309' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat,
    #fef3c7;
}
.plan-list li.dim { color: var(--faint); }
.plan-list li.dim::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat,
    #eceff3;
}
.plan-foot { margin: 10px 0 0; color: var(--faint); font-size: 0.8rem; text-align: center; }

.waitlist { margin-top: 112px; padding: 12px; }
.waitlist .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}
.waitlist-form { display: flex; gap: 8px; width: 100%; max-width: 480px; margin-top: 28px; }
.waitlist-form input { flex: 1; min-width: 0; min-height: 48px; background: #fff; }
.waitlist-form .btn { flex: none; min-height: 48px; border-radius: 12px; }
.waitlist-status { min-height: 1.6em; margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
.waitlist-status.success { color: var(--success); }
.waitlist-status.error { color: var(--danger); }

/* Download */
.dl-shell { padding: 12px; }
.dl-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  padding: 44px;
}
.dl-copy .eyebrow { margin-bottom: 16px; }
.dl-card .block-sub { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--faint); }
.dl-card .actions { margin-top: 26px; }
.dl-other { margin: 16px 0 0; color: var(--faint); font-size: 0.85rem; }
.dl-unavailable { margin: 14px 0 0; color: var(--warning); font-size: 0.92rem; }
.dl-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dl;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.dl-steps li {
  counter-increment: dl;
  position: relative;
  padding: 16px 16px 16px 56px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.04);
  color: var(--lead);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 0.95rem;
}
.dl-steps li::before {
  content: counter(dl, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 17px;
  color: var(--sky-ink);
  font-family: var(--mono);
  font-size: 12px;
}
.dl-steps strong { display: block; color: var(--text-strong); font-family: var(--font); font-weight: 500; }

/* FAQ */
.faq { max-width: 760px; margin: 48px auto 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  color: var(--text-strong);
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%23111' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px no-repeat,
    var(--shell);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: -6px 4px 22px;
  max-width: 640px;
  color: var(--lead);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1rem;
}

/* Final CTA */
.final-cta { margin: 112px 10px 0; }
.final-cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: clamp(64px, 10vw, 112px) 24px;
  border-radius: 24px;
  background: var(--sky-panel);
  text-align: center;
}
.final-cta h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

/* Footer */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  color: var(--footer-link);
  font-size: 0.94rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.15fr repeat(5, minmax(0, 1fr));
  gap: 32px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.footer-brand p {
  margin: 14px 0 0;
  max-width: 320px;
  color: var(--footer-link);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.5;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { margin: 0 0 4px; color: var(--text); font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.site-footer a { color: var(--footer-link); text-decoration: none; }
.site-footer a:hover { color: var(--text-strong); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* ---------- Blog ---------- */
.blog-head { padding-top: 88px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.post-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform 0.2s ease; }
.post-card:hover { color: inherit; text-decoration: none; transform: translateY(-2px); }
.post-card-top { min-height: 96px; padding: 12px 14px; }
.post-card .inner { flex: 1; }
.post-card h3 { margin: 0; font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.blog-empty { margin: 48px 0 0; text-align: center; color: var(--faint); }

.post { padding-top: 72px; max-width: 760px; margin: 0 auto; }
.post-back { display: inline-block; margin-bottom: 40px; color: var(--muted); font-size: 0.94rem; text-decoration: none; }
.post-back:hover { color: var(--text-strong); }
.post .block-title { font-size: clamp(34px, 5vw, 56px); }
.post-meta { margin: 20px 0 0; color: var(--faint); font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.prose {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--lead);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
}
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.2em; }
.prose h2, .prose h3 { margin: 1.8em 0 0.5em; color: var(--text-strong); font-family: var(--font); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.3rem; }
.prose strong { color: var(--text-strong); font-weight: 400; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--sky-ink); }
.prose a { color: var(--sky-ink); text-decoration-color: rgba(180, 83, 9, 0.35); }
.prose blockquote {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--tint-blue), #faeed2;
  color: var(--text);
}
.prose blockquote p:last-child { margin: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: #111; color: #f2f2f2; font-size: 0.85rem; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; word-break: normal; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 1.05rem; }
}

@media (max-width: 900px) {
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .plans-shell { max-width: 520px; margin-left: auto; margin-right: auto; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .dl-card { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav { top: 8px; margin: 8px 8px 0; padding: 8px 8px 8px 14px; }
  .nav-links .nav-anchor { display: none; }
  .nav-links { flex-wrap: nowrap; gap: 6px; }
  .nav-links a[data-auth="guest"], .nav-links a[data-auth="user"], .nav-links .nav-cta { margin-left: 0; padding: 0 12px; }
  .announce { white-space: nowrap; }
  .announce-more { display: none; }
  .nav-links a[data-auth="guest"], .nav-links a[data-auth="user"] { margin-left: 0; }
  .kv { grid-template-columns: 1fr; }
  .kv dd { padding-top: 0; border-top: 0; }
  .wrap { padding: 0 16px; }
  .hero-panel, .final-cta { margin-left: 6px; margin-right: 6px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero-title { font-size: clamp(40px, 12vw, 52px); }
  .tagline { font-size: 1.05rem; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .block, .demo-shot { padding-top: 80px; }
  .waitlist { margin-top: 80px; }
  .waitlist .inner { padding: 36px 18px; }
  .waitlist-form { flex-direction: column; }

  .dl-card { padding: 22px 18px; }

  .facts-grid { grid-template-columns: 1fr; }
  .step-top { min-height: 104px; }
  .final-cta { margin-top: 80px; }
  .footer-top { padding: 40px 16px 28px; }
  .footer-bottom { padding: 18px 16px 28px; }
  .back-link { top: 16px; left: 16px; }
  main { padding: 28px 16px 48px; }
  .auth { padding: 64px 16px; }
}

/* ---------- Compare ---------- */
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: #fff;
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip:focus { transform: none; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text-strong); }
.compare-page .section-head.left { align-items: flex-start; text-align: left; }
.compare-hero { padding-top: 28px; }
.compare-split, .compare-jobs, .more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.more-card { color: inherit; text-decoration: none; }
.more-card:hover { color: inherit; text-decoration: none; }
.more-read { margin: 14px 0 0; color: var(--sky-ink); font-size: 0.9rem; }
.compare-note { margin: 20px 0 0; color: var(--faint); font-size: 0.85rem; line-height: 1.5; }
.compare-note a { color: var(--sky-ink); }
.compare-table-wrap { margin-top: 28px; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.compare-table th, .compare-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table thead th { color: var(--faint); font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }
.compare-table tbody th { width: 22%; color: var(--text-strong); font-weight: 500; }
@media (max-width: 800px) {
  .compare-split, .compare-jobs, .more-grid { grid-template-columns: 1fr; }
}

.tool-controls { display: flex; flex-direction: column; gap: 12px; }
.tool-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.tool-controls textarea,
.tool-controls input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.tool-controls canvas { width: 100%; height: auto; background: #111; border-radius: 12px; }
.tool-controls pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- About ---------- */
.about-page { padding: 88px 0 0; max-width: 760px; margin: 0 auto; }
.about-page .block-title { font-size: clamp(40px, 6vw, 64px); margin: 0; }
.about-lede {
  margin: 20px 0 0;
  max-width: 38rem;
  color: var(--lead);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.45;
}
.about-explore { margin: 16px 0 0; color: var(--muted); }
.about-explore a { color: var(--sky-ink); }
.about-founder { margin-top: 40px; }
.about-founder .inner { padding: 12px; }
.about-art { display: block; width: 100%; height: auto; border-radius: 12px; }
.about-founder h2 { margin: 22px 8px 0; font-size: clamp(28px, 4vw, 40px); font-weight: 500; letter-spacing: -0.03em; }
.about-role { margin: 6px 8px 0; color: var(--faint); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.about-copy { margin: 18px 8px 0; color: var(--lead); font-family: var(--serif); font-weight: 300; font-size: 1.08rem; line-height: 1.65; }
.about-copy p { margin: 0 0 0.9em; }
.about-copy a, .about-section a { color: var(--sky-ink); }
.about-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 8px 8px; }
.about-links a { color: var(--text-strong); font-size: 0.92rem; text-decoration: none; }
.about-links a:hover { text-decoration: underline; }
.about-section { margin-top: 56px; padding-top: 8px; }
.about-section h2 { margin: 0 0 12px; font-size: 1.7rem; font-weight: 500; letter-spacing: -0.03em; }
.about-section p { margin: 0 0 1em; color: var(--lead); font-family: var(--serif); font-weight: 300; font-size: 1.08rem; line-height: 1.65; }
.about-section .actions { margin-top: 8px; }
@media (max-width: 640px) {
  .about-page { padding-top: 72px; }
  .about-lede, .about-copy, .about-section p { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { animation: none !important; }
  .faq summary::after, .btn, .film-sound { transition: none; }
}
