/* Aurafern site. Tokens mirror docs/DESIGN.md (Day / Evening). */
:root {
  --paper: #F3EEE4; --raised: #FBF8F2; --sunk: #E9E2D5; --hair: #DDD4C3;
  --ink: #232A1E; --muted: #565C4D; --faint: #6B6E60;
  --moss: #3F5B2E; --onmoss: #FBF8F2; --tint: #DFE7D2;
  --brass: #9A7838; --firefly: #E9C55B; --wax: #A8503A;
  --glass: rgba(251, 248, 242, 0.62);
  --shadow: 0 1px 0 rgba(35, 42, 30, 0.05), 0 10px 24px -14px rgba(35, 42, 30, 0.22);
  --serif: "New York", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181B14; --raised: #22261D; --sunk: #12140F; --hair: #3A4032;
    --ink: #EDE7D9; --muted: #B6B09F; --faint: #999483;
    --moss: #A3C07F; --onmoss: #1A2012; --tint: #2D3824;
    --brass: #C9A45E; --firefly: #F2D16B; --wax: #D07A60;
    --glass: rgba(34, 38, 29, 0.62);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 12px 28px -14px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font: 17px/1.45 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
img, video { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.label { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); }
.overline { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10; background: var(--glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--hair);
}
.site-header nav { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
a.brand { min-height: 44px; }
.site-header .brand { margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 1px 2px rgba(35, 42, 30, 0.18); }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.navlinks { display: flex; gap: 24px; font-size: 15px; }
.navlinks a { color: var(--muted); text-decoration: none; }
.navlinks a:hover { color: var(--ink); }
@media (max-width: 720px) { .navlinks { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: none; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--moss); color: var(--onmoss); }
.btn-primary:hover { color: var(--onmoss); filter: brightness(1.06); }
.btn-primary[disabled] { opacity: 0.4; cursor: progress; }
.btn-quiet { min-height: 44px; padding: 0 18px; font-size: 15px; background: var(--raised); color: var(--ink); border: 1px solid var(--hair); }

.btn-link { min-height: 52px; padding: 0 8px; background: none; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* Media */
.media { width: 100%; height: auto; object-fit: cover; background: var(--sunk); box-shadow: var(--shadow); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 72px 88px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.02em; }
.lede { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.5; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--firefly); box-shadow: 0 0 10px var(--firefly); }
.badge { display: flex; align-items: center; gap: 8px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.fine { margin: 0; font-size: 13px; color: var(--faint); }
.hero-media { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero-media figure { margin: 0; width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.hero-media video { aspect-ratio: 3 / 4; border-radius: 24px; }

/* Bands */
.band { background: var(--raised); border-block: 1px solid var(--hair); }
.section { padding-block: 88px; display: flex; flex-direction: column; gap: 48px; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.01em; max-width: 640px; }
.h2-big { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.step { background: var(--paper); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.step h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; }
.step p { margin: 0; font-size: 16px; color: var(--muted); }
.step-head { display: flex; flex-direction: column; gap: 8px; }
.mock { margin-top: auto; background: var(--raised); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.bubble { max-width: 86%; border-radius: 16px; padding: 10px 14px; font-size: 15px; }
.bubble.me { align-self: flex-end; background: var(--tint); }
.bubble.ai { align-self: flex-start; background: var(--sunk); }
.disclose { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.note { display: flex; gap: 10px; align-items: flex-start; }
.note img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.note > div { min-width: 0; }
.note-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--faint); }
.note-meta b { color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* Chips size to their label and stack on narrow cards, like iOS actions; padding keeps any wrapped text inside the pill. */
.chip { flex: 1 1 auto; min-height: 40px; padding: 6px 16px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2; background: var(--sunk); }
.chip .icon { flex: none; }
.chip.on { background: var(--tint); }
.toast { display: flex; align-items: center; gap: 8px; background: var(--tint); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.growth { aspect-ratio: 528 / 724; max-height: 340px; object-position: center 70%; border-radius: 10px; box-shadow: none; }

/* Split */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 104px; }
.split-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-copy p { margin: 0; max-width: 520px; font-size: 18px; color: var(--muted); }
.split figure { flex: 1 1 360px; min-width: 0; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.split video { aspect-ratio: 528 / 752; border-radius: 24px; }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.promises div { display: flex; flex-direction: column; gap: 10px; }
.promises h3 { margin: 0; font-size: 17px; font-weight: 600; }
.promises p { margin: 0; font-size: 16px; color: var(--muted); }
.icon { fill: none; stroke: var(--moss); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Join */
.join { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 104px; }
.join-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.join-copy p { margin: 0; max-width: 460px; font-size: 18px; color: var(--muted); }
.card { flex: 1 1 440px; min-width: 0; background: var(--raised); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input {
  min-height: 52px; padding: 0 16px; border: none; border-radius: 10px; background: var(--sunk); color: var(--ink); font: inherit; font-size: 17px;
}
.field input::placeholder { color: var(--faint); }
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--moss); }
.form-error { margin: 0; font-size: 15px; color: var(--ink); background: var(--sunk); border-radius: 10px; padding: 10px 14px; }
.done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding-block: 24px; }
.done h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 28px; }
.done p { margin: 0; font-size: 16px; color: var(--muted); }
.turnstile:empty { display: none; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--hair); }
.site-footer .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: 14px; color: var(--muted); }
.site-footer .brand img { width: 24px; height: 24px; border-radius: 6px; box-shadow: none; }
.site-footer .brand span { font-size: 17px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin-left: auto; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* Small phones (SE, mini): keep the header on one line and give the form room. */
@media (max-width: 380px) {
  .site-header nav { gap: 12px; }
  .brand span { font-size: 20px; }
  .btn-quiet { padding: 0 14px; font-size: 14px; }
  .card { padding: 24px 20px; }
  .step { padding: 24px 20px; }
}
