/* Layout: short, calm pages; quiet sticky nav; space and soft bands instead of boxes. */
:root {
  --bg: #F7F3EC;
  --surface: #FFFDF8;
  --band: #EFE8DC;
  --ink: #1F2A2E;
  --muted: #56616A;
  --line: #E2D9CA;
  --accent: #9E4522;
  --accent-soft: #F3E1D6;
  --on-accent: #FFFDF8;
  --deep: #1F2A2E;
  --on-deep: #F7F3EC;
  --deep-accent: #E8A27F;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --max: 1120px;
  --text: 60ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161D20; --surface: #1D272B; --band: #1A2326; --ink: #EFE9DF; --muted: #A9B3B1;
    --line: #2E3B40; --accent: #E8A27F; --accent-soft: #3A2A22; --on-accent: #1F2A2E;
    --deep: #26343A; --on-deep: #EFE9DF; --deep-accent: #E8A27F; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161D20; --surface: #1D272B; --band: #1A2326; --ink: #EFE9DF; --muted: #A9B3B1;
  --line: #2E3B40; --accent: #E8A27F; --accent-soft: #3A2A22; --on-accent: #1F2A2E;
  --deep: #26343A; --on-deep: #EFE9DF; --deep-accent: #E8A27F; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
img { max-width: 100%; }
.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; }
h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
a { color: inherit; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Wordmark: the A and the I carry the accent, so "AI" sits inside the word */
.mark { font-family: var(--display); font-weight: 600; font-size: 1.35rem; text-decoration: none; letter-spacing: -0.01em; }
.mark b { color: var(--accent); font-weight: 600; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.nav .mark { margin-right: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 0.95rem; color: var(--muted); transition: color .15s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }
.nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font: 700 0.9rem var(--body); padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu ul {
  position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-width: 190px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.menu ul a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.menu ul a:hover { background: var(--band); }
@media (max-width: 820px) {
  .nav > .wrap > ul { display: none; }
  .menu { display: block; }
  .nav .btn.small { display: none; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 700 0.95rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 13px 20px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { padding: 10px 16px; font-size: 0.88rem; }
.more { font-weight: 700; font-size: 0.95rem; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Home hero */
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding-block: 64px 72px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; animation: rise .7s ease both; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.five { width: 100%; max-width: 400px; justify-self: center; aspect-ratio: 1; animation: rise .9s .1s ease both; }
.five .ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 7; }
.five .link { stroke: var(--line); stroke-width: 1.5; }
.five .you { fill: var(--accent); }
.five .you-label { fill: var(--on-accent); font: 700 15px var(--body); }
.five .p { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.five .p-dot { fill: var(--accent-soft); }
.five .glow { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; animation: glow 10s ease-in-out infinite; }
.five .glow:nth-of-type(2) { animation-delay: 2s; }
.five .glow:nth-of-type(3) { animation-delay: 4s; }
.five .glow:nth-of-type(4) { animation-delay: 6s; }
.five .glow:nth-of-type(5) { animation-delay: 8s; }
@keyframes glow { 0%, 14%, 100% { opacity: 0; transform: scale(.6); } 6% { opacity: .9; transform: scale(1); } }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 56px; gap: 36px; }
  .five { max-width: 280px; }
}

/* Home pillars: three doors into the deeper pages */
.pillars .wrap { padding-block: 8px 72px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; transition: transform .2s ease, border-color .2s;
}
.pillar:hover { transform: translateY(-2px); border-color: var(--accent); }
.pillar p { color: var(--muted); }
.pillar .more { margin-top: auto; padding-top: 6px; }
@media (max-width: 820px) { .pillar-grid { grid-template-columns: 1fr; } }

/* Inner page header */
.page-head .wrap { padding-block: 64px 48px; display: flex; flex-direction: column; gap: 18px; animation: rise .6s ease both; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; }

/* Sections */
section { scroll-margin-top: 80px; }
.section .wrap { padding-block: 72px; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.band { background: var(--band); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; min-width: 0; }
.stat .num { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat cite { font-style: normal; font-size: 0.82rem; color: var(--muted); }
.close-line { font-family: var(--display); font-size: clamp(1.2rem, 2.3vw, 1.5rem); line-height: 1.4; max-width: 36ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 24px; } }

/* Steps: a real sequence, so they are numbered */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 10px; min-width: 0; counter-increment: step; }
.steps li::before {
  content: counter(step); font-family: var(--display); font-size: 1.1rem; color: var(--accent);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent);
  display: grid; place-items: center; margin-bottom: 6px;
}
.steps p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.feature svg, .checks svg, .pillar svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Checklist (safety) */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-width: 820px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.checks li:first-child { padding-top: 0; }
.checks svg { width: 22px; height: 22px; stroke-width: 2; margin-top: 3px; }
.checks div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.checks p { color: var(--muted); }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; list-style: none; margin: 0; padding: 0; }
.promises li { padding-block: 20px; border-top: 1px solid var(--line); font-size: 1.08rem; display: flex; gap: 14px; align-items: baseline; }
.promises li span { color: var(--accent); font-family: var(--display); font-size: 1.2rem; }
@media (max-width: 700px) { .promises { grid-template-columns: 1fr; } }
.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.money div { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.money p { color: var(--muted); }
@media (max-width: 760px) { .money { grid-template-columns: 1fr; gap: 20px; } }

/* Founder letter */
.letter {
  max-width: 720px; display: flex; flex-direction: column; gap: 20px;
  font-family: var(--display); font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.55;
}
.sign { font-family: var(--body); font-size: 0.95rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.sign strong { color: var(--ink); font-size: 1.05rem; }

/* Waitlist + call-to-action band (deep panel) */
.deep-card {
  background: var(--deep); color: var(--on-deep); border-radius: 24px;
  padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.deep-card h2 { color: var(--on-deep); }
.deep-card h2 em, .deep-card .eyebrow { color: var(--deep-accent); }
.deep-card .lede { color: color-mix(in srgb, var(--on-deep) 72%, transparent); }
.deep-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.deep-card.slim { grid-template-columns: 1fr auto; }
.deep-card .btn { background: var(--deep-accent); border-color: var(--deep-accent); color: #1F2A2E; }
@media (max-width: 820px) { .deep-card, .deep-card.slim { grid-template-columns: 1fr; } }
.cta .wrap { padding-block: 24px 96px; }
.waitlist .wrap { padding-block: 16px 96px; }

form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--on-deep) 70%, transparent); }
.field { display: flex; flex-direction: column; gap: 6px; }
input, select {
  font: 400 1rem var(--body); padding: 14px 16px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--on-deep) 25%, transparent);
  background: color-mix(in srgb, var(--on-deep) 8%, transparent); color: var(--on-deep); width: 100%;
}
select option { color: #1F2A2E; background: #FFFDF8; }
input::placeholder { color: color-mix(in srgb, var(--on-deep) 45%, transparent); }
form .btn { margin-top: 6px; }
.form-msg { font-size: 0.92rem; color: var(--deep-accent); min-height: 1.4em; }

/* Footer */
footer .wrap { padding-block: 36px 52px; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; border-top: 1px solid var(--line); }
footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
footer a { text-decoration: none; color: var(--muted); font-size: 0.92rem; }
footer a:hover { color: var(--ink); }
footer p { color: var(--muted); font-size: 0.88rem; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Home: compact safety grid */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; list-style: none; margin: 0; padding: 0; }
.safety-grid li { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.safety-grid svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.safety-grid p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .safety-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .safety-grid { grid-template-columns: 1fr; } }

/* Is / isn't */
.isnt { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.isnt > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.isnt h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 500; }
.isnt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.isnt li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: baseline; }
.isnt li span { font-weight: 700; color: var(--accent); }
.isnt li.no span { color: var(--muted); }
.isnt strong { display: block; }
.isnt li p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) { .isnt { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 20px; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: var(--text); }

/* Is / isn't: green checks, red crosses (warm tones that sit with the palette) */
:root { --yes: #2E7D4F; --no: #B8412F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --yes: #74C995; --no: #EE8A78; } }
:root[data-theme="dark"] { --yes: #74C995; --no: #EE8A78; }
.isnt li { grid-template-columns: 26px 1fr; }
.isnt li span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.85rem; color: var(--yes); background: color-mix(in srgb, var(--yes) 14%, transparent);
  align-self: start; margin-top: 1px;
}
.isnt li.no span { color: var(--no); background: color-mix(in srgb, var(--no) 14%, transparent); }
