/* aldra.app: Alderway brand. Mobile-first, system fonts only (Georgia + Segoe UI), light and dark. */

:root {
  /* Alderway palette */
  --forest: #2F5D46;
  --canopy: #1E3B2D;
  --copper: #C0673A;
  --ember: #9E4E28;
  --cream: #F5EFE3;
  --paper: #FBF8F1;
  --charcoal: #2A2A28;
  --sage: #A8BFA3;

  /* theme tokens (light) */
  --bg: var(--cream);
  --surface: var(--paper);
  --surface-2: #EFE7D7;
  --text: var(--charcoal);
  --muted: #5E5A51;
  --line: #E2D9C6;
  --accent: var(--copper);
  --accent-text: var(--ember);
  --primary: var(--forest);
  --primary-hover: var(--canopy);
  --on-primary: var(--cream);
  --band: var(--canopy);
  --band-text: #F5EFE3;
  --band-muted: #C9D3C4;
  --focus: var(--copper);
  --ok: var(--forest);
  --err: #A2381F;
  --shadow-sm: 0 1px 0 rgba(30, 59, 45, .05), 0 2px 8px rgba(30, 59, 45, .06);
  --shadow: 0 1px 0 rgba(30, 59, 45, .05), 0 18px 48px -18px rgba(30, 59, 45, .28);
  --ground: #1E3B2D;
  --ground-op: .14;
  --ink: var(--forest);

  --serif: Georgia, Cambria, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, monospace;

  --radius: 18px;
  --gutter: 16px;
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #122019;
    --surface: #1B3226;
    --surface-2: #213B2E;
    --text: #EFE8DA;
    --muted: #A9B8A4;
    --line: #2A4636;
    --accent: #D9824F;
    --accent-text: #E39466;
    --primary: #D9824F;
    --primary-hover: #E8955F;
    --on-primary: #122019;
    --band: #0C1712;
    --band-text: #F5EFE3;
    --band-muted: #B9C4B4;
    --focus: #D9824F;
    --ok: #A8BFA3;
    --err: #F0A08A;
    --shadow-sm: 0 1px 0 rgba(0, 0, 0, .2), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 24px 60px -20px rgba(0, 0, 0, .6);
    --ground: #000;
    --ground-op: .35;
    --ink: var(--sage);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; 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: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); border-radius: 2px; }
.lede { font-size: 18px; color: var(--muted); max-width: 40em; }
@media (min-width: 720px) { .lede { font-size: 19px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--primary); color: var(--on-primary);
  font: 600 16px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img, .brand svg { width: 34px; height: 34px; }
.brand b { font: 400 24px/1 var(--serif); letter-spacing: -.01em; }
.brand small { font: 500 12px/1 var(--sans); color: var(--muted); letter-spacing: .04em; margin-top: 4px; display: none; }
@media (min-width: 420px) { .brand small { display: inline; } }
.nav { display: none; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 28px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sage) 34%, transparent), transparent);
  opacity: .55;
}
.rings { position: absolute; right: -180px; top: -160px; width: 520px; height: 520px; opacity: .22; pointer-events: none; color: var(--forest); }
@media (prefers-color-scheme: dark) { .rings { color: var(--sage); opacity: .1; } }
.hero-grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 56px; }
}
.hero h1 { font-size: clamp(42px, 10.5vw, 76px); margin: 18px 0 20px; letter-spacing: -.025em; line-height: 1.03; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero h1 .quote { display: block; }
.hero .lede { margin-bottom: 28px; }

/* ---------- waitlist form ---------- */
.waitlist { max-width: 520px; }
.field-row {
  display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 480px) {
  .field-row {
    flex-direction: row; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
  }
  .field-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
  .field-row input { border: 0 !important; background: transparent !important; box-shadow: none !important; }
  .field-row input:focus-visible { outline: none; }
}
.field-row input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 17px; color: var(--text);
}
.field-row input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field-row input[aria-invalid="true"] { border-color: var(--err); }
.field-row .btn { min-height: 50px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ts { margin-top: 10px; }
.ts:empty { display: none; }
.form-msg { min-height: 0; margin-top: 10px; font-size: 15px; }
.form-msg:empty { display: none; }
.form-msg.error { color: var(--err); }
.form-msg button.linkish { background: none; border: 0; padding: 0; color: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: none; }
.busy .spinner { display: inline-block; }
.busy .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.success {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
  animation: rise .5s cubic-bezier(.2, .8, .2, 1);
}
.success .fox-mini { width: 64px; flex: none; }
.success h3 { font-size: 22px; margin-bottom: 2px; }
.success p { color: var(--muted); font-size: 15px; }
.success:focus { outline: none; }
.success:focus-visible { outline: 3px solid var(--focus); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- hero demo scene ---------- */
.scene { position: relative; padding-bottom: 116px; }
@media (min-width: 560px) { .scene { padding-bottom: 72px; } }
.monitor {
  position: relative; border-radius: 16px; padding: 10px; background: #1E3B2D;
  box-shadow: var(--shadow); isolation: isolate;
}
@media (prefers-color-scheme: dark) { .monitor { background: #0C1712; outline: 1px solid var(--line); } }
.monitor::after { /* the copper edge glow Aldra shows while it has control */
  content: ""; position: absolute; inset: 4px; border-radius: 13px; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 2px #D9824F, inset 0 0 26px rgba(217, 130, 79, .55);
  transition: opacity .5s;
}
.scene.controlling .monitor::after { opacity: 1; animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 2px #D9824F, inset 0 0 40px rgba(217, 130, 79, .8); } }
.desktop {
  position: relative; aspect-ratio: 16 / 10.5; border-radius: 8px; overflow: hidden;
  background: linear-gradient(160deg, #3c6e55 0%, #2F5D46 45%, #22463a 100%);
}
.desktop .wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 8.5%; min-height: 20px;
  background: rgba(20, 38, 30, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; gap: 1.6%;
}
.taskbar i { width: 3.2%; aspect-ratio: 1; border-radius: 4px; background: rgba(245, 239, 227, .28); }
.taskbar i.on { background: rgba(245, 239, 227, .62); }
.taskbar i.app { background: #A8BFA3; opacity: 0; transition: opacity .4s; }
.scene.app-open .taskbar i.app { opacity: 1; }
.desk-icons { position: absolute; left: 3%; top: 5%; display: grid; gap: 7%; width: 8%; }
.desk-icons i { display: block; aspect-ratio: 1; border-radius: 5px; background: rgba(245, 239, 227, .2); }
.desk-icons i.folder { background: #E0B66E; opacity: .8; border-radius: 3px 5px 5px 5px; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.scene.looking .flash { animation: flash .9s ease-out; }
@keyframes flash { 8% { opacity: .38; } 100% { opacity: 0; } }

.win {
  position: absolute; left: 13%; top: 8%; width: 80%; height: 76%;
  background: #FBF8F1; color: #2A2A28; border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); font-family: var(--sans);
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: 50% 80%;
  transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.scene.app-open .win { opacity: 1; transform: none; }
.win-bar { display: flex; align-items: center; height: 12%; min-height: 22px; padding: 0 0 0 3%; background: #F5EFE3; border-bottom: 1px solid #E6DFD0; font-size: clamp(8px, 1.5vw, 12px); }
.win-bar .ico { width: 1.4em; height: 1.4em; border-radius: 3px; background: var(--forest); margin-right: .6em; flex: none; }
.win-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #5E5A51; }
.win-ctl { margin-left: auto; display: flex; height: 100%; }
.win-ctl i { width: 3.4em; display: grid; place-items: center; font-style: normal; color: #6b665c; }
.sheet { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: clamp(7.5px, 1.45vw, 12.5px); font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { border: 1px solid #E6DFD0; padding: .35em .6em; height: 2.15em; text-align: left; white-space: nowrap; overflow: hidden; }
.sheet thead th { background: #EFE7D7; color: #6b665c; font-weight: 600; text-align: center; font-size: .9em; height: 1.8em; }
.sheet th.rh { width: 7%; background: #EFE7D7; color: #6b665c; font-weight: 400; text-align: center; }
.sheet td.num { text-align: right; }
.sheet tr.hdr td { font-weight: 700; color: #1E3B2D; }
.sheet tr.total td { font-weight: 700; border-top: 2px solid #2F5D46; }
.sheet td.active { outline: 2px solid #2F5D46; outline-offset: -2px; background: #fff; }
.sheet td .caret { display: inline-block; width: 1px; height: 1em; background: #2A2A28; vertical-align: -.15em; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.cursor {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5; pointer-events: none;
  transform: translate(70%, 60%); transition: transform .75s cubic-bezier(.45, 0, .2, 1);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); opacity: 0;
}
.scene.controlling .cursor { opacity: 1; }
.cursor .ripple { transform-origin: 3px 3px; opacity: 0; }
.cursor.click .ripple { animation: ripple .55s ease-out; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.6); } }

.assistant {
  position: absolute; left: 4%; right: 4%; bottom: 0; z-index: 6;
  display: flex; gap: 12px; align-items: flex-end;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 20px; padding: 12px 16px 14px 8px; box-shadow: var(--shadow);
}
@media (min-width: 560px) { .assistant { left: auto; right: -2%; width: min(400px, 78%); } }
@media (min-width: 1000px) { .assistant { right: -6%; } }
.assistant .fox-box { width: 74px; flex: none; margin-bottom: -4px; }
.assistant .talk { flex: 1; min-width: 0; }
.assistant .said {
  font: italic 400 15.5px/1.4 var(--serif); margin-bottom: 8px; min-height: 2.8em;
}
.assistant .said .wake { color: var(--accent-text); font-style: normal; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13px; color: var(--muted); min-height: 3.7em; align-content: end; }
.steps li { display: flex; align-items: center; gap: 8px; animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
.steps li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite;
}
.steps li.done::before { border: 0; background: var(--ok); animation: none; width: 7px; height: 7px; }
.steps li.final { color: var(--text); font-weight: 600; }
.steps li.final::before { background: var(--accent); }
.listening-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
.listening-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); animation: tdot 1s infinite; }
.listening-dots i:nth-child(2) { animation-delay: .15s; } .listening-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip ul { list-style: none; margin: 0 auto; padding: 18px var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
@media (min-width: 820px) { .strip ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.strip li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.strip li b { color: var(--text); font-weight: 600; }
.strip svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* ---------- sections ---------- */
section.block { padding: 80px 0; }
@media (min-width: 1000px) { section.block { padding: 120px 0; } }
.head { max-width: 760px; margin-bottom: 44px; }
.head h2 { font-size: clamp(32px, 6.5vw, 52px); margin: 14px 0 16px; }
.head h2 em { color: var(--accent); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lede { margin: 0 auto; }

/* how it works */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 820px) { .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.steps3 li {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px 26px; counter-increment: s;
}
.steps3 .fox-box { width: 132px; margin: -4px auto 4px; }
.steps3 h3 { font-size: 25px; margin-bottom: 8px; }
.steps3 h3::before { content: counter(s, decimal-leading-zero); display: block; font: 600 12px/1 var(--sans); letter-spacing: .2em; color: var(--accent-text); margin-bottom: 10px; }
.steps3 p { color: var(--muted); font-size: 16px; }

/* any app */
.anyapp {
  margin-top: 22px; display: grid; gap: 24px; align-items: center;
  background: var(--band); color: var(--band-text); border-radius: 24px; padding: 32px 24px; position: relative; overflow: hidden;
}
@media (min-width: 900px) { .anyapp { grid-template-columns: 1fr 1.2fr; padding: 48px; gap: 48px; } }
.anyapp h3 { font-size: clamp(28px, 5vw, 40px); }
.anyapp h3 em { color: #D9824F; }
.anyapp p { color: var(--band-muted); margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; position: relative; }
.chips li {
  padding: 9px 15px; border-radius: 999px; font-size: 14.5px;
  background: rgba(245, 239, 227, .07); border: 1px solid rgba(245, 239, 227, .16); color: #EFE8DA;
}
.chips li.hot { background: rgba(217, 130, 79, .16); border-color: rgba(217, 130, 79, .5); }

/* ask cards */
.asks { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .asks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.asks li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 14px; transition: transform .25s, box-shadow .25s;
}
.asks li:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.asks q { font: italic 400 19px/1.4 var(--serif); quotes: "\201C" "\201D"; }
.asks q::before { color: var(--accent); }
.asks span { margin-top: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.asks span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* features */
.features { display: grid; gap: 18px; }
@media (min-width: 820px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--sage) 30%, transparent); color: var(--ink); margin-bottom: 18px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 26px; margin-bottom: 10px; }
.feature p { color: var(--muted); }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15.5px; }
.feature li { display: flex; gap: 10px; align-items: baseline; }
.feature li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }

/* control */
.control { background: var(--surface-2); }
.control-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .control-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.points { display: grid; gap: 22px; margin-top: 8px; list-style: none; padding: 0; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.points .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent-text); }
.points .ic svg { width: 20px; height: 20px; }
.points h3 { font: 600 17px/1.35 var(--sans); letter-spacing: 0; margin-bottom: 4px; }
.points p { color: var(--muted); font-size: 15.5px; }
.foxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.foxes figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 12px; text-align: center; }
.foxes .fox-box { width: 100%; }
.foxes figcaption { font-size: 13px; color: var(--muted); margin-top: 2px; }
.foxes-note { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px; font: 400 21px/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq .ans { padding: 0 4px 24px; color: var(--muted); max-width: 680px; }
.faq .ans p + p { margin-top: 10px; }

/* final cta */
.join { background: var(--band); color: var(--band-text); position: relative; overflow: hidden; }
.join .rings { color: #F5EFE3; opacity: .08; right: auto; left: -200px; top: auto; bottom: -220px; }
.join-grid { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .join-grid { grid-template-columns: 1.3fr .7fr; gap: 48px; } }
.join h2 { font-size: clamp(34px, 7vw, 58px); margin: 14px 0 16px; }
.join h2 em { color: #D9824F; }
.join .lede { color: var(--band-muted); margin-bottom: 28px; }
.join .eyebrow { color: var(--band-muted); }
.join .eyebrow::before { background: #D9824F; }
.join .fox-hero { width: min(300px, 70%); margin: 0 auto; }
.join .field-row { background: rgba(245, 239, 227, .06); border-color: rgba(245, 239, 227, .2); }
.join .field-row input { background: rgba(245, 239, 227, .08); border-color: rgba(245, 239, 227, .22); color: #F5EFE3; }
@media (min-width: 480px) { .join .field-row input { background: transparent; } }
.join .field-row input::placeholder { color: rgba(245, 239, 227, .55); }
.join .field-row:focus-within { border-color: #D9824F; }
.join .btn { background: #D9824F; color: #122019; }
.join .btn:hover { background: #E8955F; }
.join .form-msg.error { color: #F3B39C; }
.join .success { background: rgba(245, 239, 227, .06); border-color: rgba(245, 239, 227, .2); color: #F5EFE3; }
.join .success p { color: var(--band-muted); }
.join :focus-visible { outline-color: #D9824F; }

/* footer */
.site-footer { background: var(--band); color: var(--band-muted); border-top: 1px solid rgba(245, 239, 227, .1); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 32px; }
.site-footer .brand { color: #F5EFE3; }
.site-footer .brand b { font-size: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: #EFE8DA; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- fox (brand file drawings + task states) ---------- */
.fox-box svg, svg.fox { width: 100%; height: auto; overflow: visible; }
.fx .ground { fill: var(--ground); opacity: var(--ground-op); }
.fx * { transform-box: fill-box; }
.fx .critter { transform-origin: 50% 100%; }
.fx .paw { transform-origin: 50% 100%; }
.fx .eyes-in { transform-origin: center; }
.fx .prop, .fx .alt { opacity: 0; transition: opacity .25s; }
.fx .ln { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.fx .eye { animation: blink 4.5s infinite; transform-origin: center; }
.fx .ear { animation: twitch 6s ease-in-out infinite; transform-origin: 50% 100%; }
.fx .tail { transform-origin: 0% 100%; animation: wag 2.6s ease-in-out infinite; }
.s-listening .p-listen, .s-thinking .p-think, .s-speaking .p-speak, .s-searching .p-search, .s-typing .p-type,
.s-clicking .p-click, .s-looking .p-look, .s-success .p-success, .s-success .a-happy, .s-sleeping .p-sleep, .s-sleeping .a-shut { opacity: 1; }
.s-success .eyes, .s-sleeping .eyes { opacity: 0; }
.s-idle .critter { animation: t-bob 2.6s ease-in-out infinite; }
.s-idle .eyes { animation: t-look 9s ease-in-out infinite; }
.s-listening .critter { animation: t-lean 1.6s ease-in-out infinite; }
.s-listening .eyes-in { transform: scale(1.15, 1.25); }
.s-listening .tail { animation: wag .8s ease-in-out infinite; }
.p-listen path { stroke: var(--ink); animation: t-wave 1.2s infinite; }
.p-listen path:nth-child(1) { animation-delay: .4s; } .p-listen path:nth-child(2) { animation-delay: .2s; }
.s-thinking .critter { animation: t-sway 2.8s ease-in-out infinite; }
.s-thinking .eyes { animation: t-ponder 2.8s ease-in-out infinite; }
.p-think .spark { fill: var(--copper); transform-origin: center; animation: t-spin 2.4s linear infinite; }
.p-think .tdot { fill: var(--sage); animation: t-wave 1.2s infinite; }
.p-think .tdot:nth-of-type(2) { animation-delay: .2s; } .p-think .tdot:nth-of-type(3) { animation-delay: .4s; }
.s-speaking .critter { animation: t-bounce .45s ease-in-out infinite alternate; }
.p-speak path { stroke: var(--copper); animation: t-wave .9s infinite; }
.p-speak path:nth-child(2) { animation-delay: .15s; } .p-speak path:nth-child(3) { animation-delay: .3s; }
.s-speaking .nose { animation: t-talk .22s ease-in-out infinite alternate; transform-origin: center; }
.s-searching .critter { animation: t-bob .35s ease-in-out infinite; }
.s-searching .paw-l { animation: t-step .35s ease-in-out infinite alternate; }
.s-searching .paw-r { animation: t-step .35s ease-in-out infinite alternate-reverse; }
.s-searching .eyes { animation: t-scan 1.6s ease-in-out infinite alternate; }
.p-search .win2 { fill: var(--cream); stroke: var(--sage); stroke-width: 3; }
.p-search .tiles { animation: t-scroll 6s linear infinite; }
.p-search .magnifier { animation: t-sweep 1.6s ease-in-out infinite alternate; }
.s-typing .critter { animation: t-bob .5s ease-in-out infinite; }
.s-typing .eyes { transform: translateY(8px); }
.s-typing .paw-l { animation: t-tap .16s ease-in-out infinite alternate; }
.s-typing .paw-r { animation: t-tap .16s ease-in-out infinite alternate-reverse; }
.p-type .kb { fill: var(--canopy); }
@media (prefers-color-scheme: dark) { .p-type .kb { fill: #0C1712; } }
.p-type .key { fill: var(--sage); animation: t-key 1.1s steps(1) infinite; }
.s-clicking .eyes { animation: t-follow 2s ease-in-out infinite; }
.p-click .cur { fill: var(--charcoal); stroke: var(--cream); stroke-width: 3; stroke-linejoin: round; animation: t-cursor 2s ease-in-out infinite; }
.p-click .rip { fill: none; stroke: var(--copper); stroke-width: 4; transform-origin: center; animation: t-ripple 2s ease-out infinite; }
.s-looking .critter { animation: t-bob 1.2s ease-in-out infinite; }
.s-looking .eyes-in { transform: scale(1.2); }
.p-look .ln { stroke: var(--ink); transform-origin: center; animation: t-focus 1.6s ease-in-out infinite; }
.s-success .critter { animation: t-jump 1.4s ease-out infinite; }
.s-success .tail { animation: wag .5s ease-in-out infinite; }
.a-happy .ln, .a-shut .ln { stroke: var(--charcoal); }
.p-success polygon { fill: var(--copper); transform-origin: center; animation: t-pop 1.4s ease-out infinite; }
.p-success polygon:nth-child(2) { animation-delay: .25s; } .p-success polygon:nth-child(3) { animation-delay: .5s; } .p-success polygon:nth-child(4) { animation-delay: .75s; }
.s-sleeping .critter { animation: t-breathe 3.2s ease-in-out infinite; }
.s-sleeping .tail { animation: none; }
.p-sleep text { fill: var(--ink); font: 700 30px Georgia, serif; opacity: 0; animation: t-zzz 2.4s ease-in infinite; }
.p-sleep text:nth-child(2) { animation-delay: .8s; font-size: 24px; } .p-sleep text:nth-child(3) { animation-delay: 1.6s; font-size: 18px; }
.join .fx .ground { fill: #000; opacity: .3; }
.join .p-listen path { stroke: #A8BFA3; }

@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes wag { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg); } }
@keyframes twitch { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(8deg); } 94% { transform: rotate(0); } }
@keyframes t-bob { 50% { transform: translateY(-5px); } }
@keyframes t-look { 0%, 35%, 100% { transform: translate(0, 0); } 45%, 55% { transform: translate(-7px, -1px); } 65%, 75% { transform: translate(7px, -1px); } }
@keyframes t-lean { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-4deg) translateY(-4px); } }
@keyframes t-wave { 0%, 100% { opacity: .1; } 50% { opacity: 1; } }
@keyframes t-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes t-ponder { 0%, 100% { transform: translate(7px, -7px); } 50% { transform: translate(-7px, -7px); } }
@keyframes t-spin { 0% { transform: rotate(0) scale(.85); } 50% { transform: rotate(180deg) scale(1.1); } 100% { transform: rotate(360deg) scale(.85); } }
@keyframes t-bounce { to { transform: translateY(-6px); } }
@keyframes t-talk { from { transform: scale(1); } to { transform: scale(1.25, .8); } }
@keyframes t-step { to { transform: translateY(-7px); } }
@keyframes t-scan { from { transform: translate(-8px, -4px); } to { transform: translate(8px, -4px); } }
@keyframes t-scroll { to { transform: translateX(-288px); } }
@keyframes t-sweep { to { transform: translateX(170px); } }
@keyframes t-tap { to { transform: translateY(-9px); } }
@keyframes t-key { 0% { fill: var(--sage); } 50% { fill: var(--copper); } }
@keyframes t-follow { 0%, 100% { transform: translate(5px, -5px); } 40%, 60% { transform: translate(8px, 4px); } }
@keyframes t-cursor { 0%, 100% { transform: translate(20px, -90px); } 40% { transform: translate(0, 0); } 45% { transform: translate(0, 0) scale(.8); } 52%, 62% { transform: translate(0, 0); } }
@keyframes t-ripple { 0%, 44% { opacity: 0; transform: scale(.2); } 46% { opacity: .9; transform: scale(.3); } 75%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes t-focus { 50% { transform: scale(.96); } }
@keyframes t-jump { 0%, 60%, 100% { transform: translateY(0); } 12% { transform: scale(1.08, .9); } 32% { transform: translateY(-26px) scale(.95, 1.05); } }
@keyframes t-pop { 0% { transform: scale(0); opacity: 0; } 30% { transform: scale(1.2); opacity: 1; } 70%, 100% { transform: scale(.6) rotate(90deg); opacity: 0; } }
@keyframes t-breathe { 50% { transform: scaleY(.96); } }
@keyframes t-zzz { 0% { transform: translate(0, 8px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(14px, -24px); opacity: 0; } }

/* reveal on scroll (only when JS adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.legal { padding: 48px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(38px, 8vw, 56px); margin: 14px 0 12px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 40px; }
.legal .summary h2 { font-size: 22px; margin: 0 0 10px; }
.legal .summary ul { margin: 0; }
.legal .toc { margin: 0 0 40px; padding: 0; list-style: none; columns: 2 220px; column-gap: 32px; font-size: 15px; }
.legal .toc li { margin: 0 0 8px; break-inside: avoid; }
.legal h2 { font-size: 28px; margin: 48px 0 14px; scroll-margin-top: 90px; }
.legal h2.part { font-size: 15px; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-text); margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h3 { font: 600 18px/1.4 var(--sans); letter-spacing: 0; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.25em; margin: 12px 0; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--accent); }
.legal code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; background: var(--surface); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound .fox-box { width: 200px; margin: 0 auto 8px; }
.notfound h1 { font-size: clamp(36px, 7vw, 52px); margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
section.block.flush-top { padding-top: 0; }
.head.head-tight { margin-bottom: 28px; }

/* ---------- layout refinements ---------- */
.hero h1 em { white-space: nowrap; }
@media (min-width: 1000px) { .hero h1 { font-size: clamp(56px, 5.4vw, 74px); } }
.head { max-width: 880px; }
.steps3 .fox-box { width: 156px; }
.desktop { aspect-ratio: 16 / 11; }
.win { top: 6%; height: 80%; }
.sheet { font-size: clamp(7px, 1.25vw, 11.5px); }
.sheet th, .sheet td { height: 1.8em; padding: .25em .6em; }
.sheet thead th { height: 1.6em; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(52px, 4.7vw, 68px); }
}

/* ---------- hero: tighter, cleaner first screen ---------- */
.hero { padding: 24px 0 48px; }
.hero h1 { margin: 14px 0 16px; }
.hero .lede { margin-bottom: 26px; max-width: 30em; }
.hero .form-msg { margin-top: 8px; }
@media (min-width: 1000px) {
  .hero { padding: 64px 0 88px; }
  .hero .lede { font-size: 20px; }
}

/* ---------- contact ---------- */
.faq-more { text-align: center; margin-top: 28px; color: var(--muted); }
.contact-sec { padding: 64px 0 72px; background: var(--bg); }
@media (min-width: 1000px) { .contact-sec { padding: 88px 0 96px; } }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } }
.contact-intro h2 { font-size: clamp(30px, 6vw, 42px); margin: 12px 0 10px; }
.contact-intro p { color: var(--muted); }
form.contact {
  display: grid; gap: 14px; padding: 20px; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm);
}
@media (min-width: 560px) { form.contact { padding: 24px; } }
form.contact .field { display: grid; gap: 6px; position: relative; min-width: 0; }
form.contact label { font: 600 14px/1.3 var(--sans); }
form.contact textarea, form.contact input[type="email"] {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
form.contact textarea { min-height: 120px; resize: vertical; line-height: 1.5; padding-bottom: 26px; }
form.contact textarea:focus-visible, form.contact input[type="email"]:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
form.contact [aria-invalid="true"] { border-color: var(--err); }
form.contact input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
form.contact .count { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: var(--muted); pointer-events: none; font-variant-numeric: tabular-nums; }
form.contact .count.near { color: var(--accent-text); font-weight: 600; }
.contact-row { display: grid; gap: 12px; }
@media (min-width: 560px) { .contact-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.contact-row .btn { min-height: 48px; }
form.contact .form-msg { margin-top: 0; }
form.contact .ts { margin-top: 0; }
.contact-sec .success { max-width: 560px; }
