/* Styled after the clamshell.ai landing page (chaos web/site before
   d4044ba0): same tokens, fonts and layout grammar, with the shell's
   coral/pink gradient as the accent instead of cyan. Sora and Azeret
   Mono are SIL OFL 1.1 (fonts/*.LICENSE.txt). */
:root {
  color-scheme: dark;
  --ink: oklch(0.16 0.018 250);
  --ink-raised: oklch(0.2 0.022 250);
  --line: oklch(0.29 0.021 250);
  --text: oklch(0.97 0.006 250);
  --muted: oklch(0.68 0.015 250);
  --dim: oklch(0.62 0.015 250);
  --accent: oklch(0.78 0.17 25);
  --accent-bright: oklch(0.84 0.16 30);
  --accent-soft: oklch(0.78 0.17 25 / 0.14);
  --sans: Sora, "Helvetica Neue", Helvetica, sans-serif;
  --mono: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --space-1: 8px;
  --space-2: 12px;
  --radius-control: 10px;
  --radius-button: 12px;
  --radius-panel: 18px;
  --shadow-card: 0 24px 70px #0003;
  --focus-ring: 2px solid var(--accent);
  --motion-fast: 150ms ease;
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/sora.woff2) format("woff2");
}
@font-face {
  font-family: "Azeret Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/azeret-mono.woff2) format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body { margin: 0; min-height: 100%; background: var(--ink); color: var(--text);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
.site { min-height: 100vh; display: flex; flex-direction: column; overflow: clip; }
.site-header { position: relative; z-index: 5; flex: none;
  background: oklch(0.145 0.018 250 / 0.94); border-bottom: 1px solid oklch(0.22 0.018 250); }
.nav { width: min(100% - 48px, 1160px); min-height: 78px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text);
  text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: auto; flex: none; display: block; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-1); }
.nav-link { min-height: 42px; padding: 0 var(--space-2); display: inline-flex; align-items: center;
  color: var(--muted); border-radius: var(--radius-control); text-decoration: none; white-space: nowrap;
  font: 500 12px/1 var(--mono); transition: color var(--motion-fast), background var(--motion-fast); }
.nav-link:hover { color: var(--accent-bright); background: oklch(0.2 0.022 250); }
.nav-link-accent { color: var(--accent-bright); }
.nav-link:focus-visible, .hero-cta:focus-visible, .brand:focus-visible,
.footer-links a:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }

/* Landing */
.hero { position: relative; width: min(100% - 48px, 1160px); margin: 0 auto;
  padding: 20px 0 104px; display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr); align-items: center;
  gap: clamp(44px, 6vw, 82px); }
.hero::before { content: ""; position: absolute; width: 900px; height: 620px; left: -500px; top: -220px;
  pointer-events: none; background: radial-gradient(circle, var(--accent-soft), transparent 66%); }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { margin: 0 0 22px; color: var(--accent); font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.15em; text-transform: uppercase; }
.hero h1 { max-width: 10ch; margin: 0; font-size: clamp(52px, 5.7vw, 78px); font-weight: 800;
  line-height: 0.98; letter-spacing: -0.052em; text-wrap: balance; }
.hero h1 .accent { color: var(--accent); }
.hero-copy > p:not(.eyebrow) { max-width: 48ch; margin: 28px 0 0; color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; text-wrap: pretty; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.hero-cta { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center;
  color: oklch(0.18 0.03 250); background: var(--accent); border: 1px solid var(--accent);
  border-radius: var(--radius-button); text-decoration: none; font-weight: 700;
  transition: color var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast),
    transform var(--motion-fast); }
.hero-cta:hover { background: var(--accent-bright); border-color: var(--accent-bright); transform: translateY(-1px); }
.hero-cta-secondary { color: var(--text); background: transparent; border-color: var(--line); }
.hero-cta-secondary:hover { color: var(--accent-bright); background: var(--ink-raised); border-color: oklch(0.55 0.1 25); }
.hero-cta:active { transform: translateY(0); }
.hero-note { flex-basis: 100%; margin-top: 8px; color: var(--dim); font: 12px/1.6 var(--mono); }

/* Two phone-shaped cards, the same device the beta page mocked up. */
.showcase { position: relative; justify-self: end; width: min(100%, 520px); padding-bottom: 52px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.phone { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-panel);
  background: var(--ink-raised); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.phone:nth-child(even) { transform: translateY(52px); }
.phone-bar { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px;
  font-size: 13px; }
.phone-bar i { width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.85 0.17 80), oklch(0.72 0.2 350)); }
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bubble { max-width: 82%; padding: 8px 10px; border-radius: 12px; font-size: 12.5px; line-height: 1.4;
  background: oklch(0.26 0.02 250); }
.bubble.me { align-self: flex-end; color: oklch(0.18 0.03 250); background: var(--accent); }
.phone-input { margin: 10px 14px 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--dim); font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.lock { flex: 1; display: grid; place-items: center; padding: 24px 18px; text-align: center; gap: 14px; }
.lock-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-bright); }
.lock p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.band { width: min(100% - 48px, 1160px); margin: 0 auto; padding: 0 0 104px; }
.band-inner { max-width: 760px; }
.band h2 { margin: 0 0 20px; font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.045em; text-wrap: balance; }
.band h2 .accent { color: var(--accent); }
.band p { margin: 0 0 16px; max-width: 60ch; color: var(--muted); font-size: 17px; line-height: 1.65; }
.band p.tagline { color: var(--text); font-weight: 600; }
.pillars { margin: 36px 0 0; padding: 0; list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pillars li { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--ink-raised); }
.pillars strong { display: block; margin-bottom: 6px; font-size: 15px; }
.pillars span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.site-footer { margin-top: auto; border-top: 1px solid oklch(0.25 0.018 250); }
.footer-inner { width: min(100% - 48px, 1160px); min-height: 98px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  color: var(--dim); font: 11px/1.6 var(--mono); }
.footer-lockup { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.footer-mark { width: 16px; height: auto; flex: none; display: block; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 20px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted);
  text-decoration: none; white-space: nowrap; }
.footer-links a:hover { color: var(--accent-bright); }

.missing { width: min(100% - 48px, 1160px); margin: 0 auto; padding: 96px 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.missing h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.missing p { margin: 0; max-width: 44ch; color: var(--muted); }

/* Legal pages */
.legal-shell { width: min(100% - 48px, 980px); margin: 0 auto; padding: 68px 0 96px; }
.legal-document { color: oklch(0.88 0.012 250); }
.legal-heading { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-heading h1 { margin: 0; color: var(--text); font-size: clamp(36px, 6vw, 58px); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.045em; text-wrap: balance; }
.legal-updated { margin: 18px 0 0; color: var(--accent); font: 500 12px/1.5 var(--mono); letter-spacing: 0.04em; }
.legal-body { max-width: 82ch; }
.legal-body h2 { margin: 54px 0 18px; color: var(--text); font-size: clamp(23px, 3vw, 30px); line-height: 1.25;
  letter-spacing: -0.025em; scroll-margin-top: 24px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2 span { color: var(--accent); font-family: var(--mono); font-size: 0.72em; letter-spacing: 0; }
.legal-body p { margin: 0 0 18px; line-height: 1.75; }
.legal-body .clause-no { color: var(--accent); font: 500 0.85em/1 var(--mono); margin-right: 4px; }
.legal-body u { text-decoration: none; color: var(--text); font-weight: 600; }
.legal-body ul { margin: 4px 0 26px; padding-left: 26px; }
.legal-body ul.lettered { list-style: none; padding-left: 10px; }
.legal-body li { margin: 0 0 11px; padding-left: 7px; line-height: 1.7; }
.legal-body li::marker { color: var(--accent); }
.legal-body strong { color: var(--text); font-weight: 700; }
.legal-body a { color: var(--accent-bright); text-underline-offset: 3px; }
.legal-body a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .hero { padding-top: 48px; grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-copy { max-width: 680px; }
  .showcase { justify-self: center; max-width: 560px; }
}
@media (max-width: 560px) {
  .nav, .hero, .band, .footer-inner, .missing, .legal-shell { width: min(100% - 32px, 1160px); }
  .nav { min-height: 112px; padding: 14px 0; align-items: flex-start; flex-direction: column; gap: 8px; }
  .brand { font-size: 17px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 2px; }
  .nav-link { min-height: 38px; padding: 0 5px; font-size: 10.5px; }
  .hero { padding: 42px 0 76px; }
  .hero h1 { font-size: clamp(48px, 14vw, 64px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-cta { width: 100%; }
  .showcase { width: 100%; gap: 14px; padding-bottom: 42px; }
  .phone:nth-child(even) { transform: translateY(42px); }
  .footer-inner { min-height: 0; padding: 28px 0 32px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-links { justify-content: flex-start; gap: 2px 18px; }
  .legal-shell { padding: 48px 0 72px; }
  .legal-body h2 { margin-top: 44px; }
  .legal-body p, .legal-body li { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-link, .hero-cta { transition: none; }
}
