:root {
  --bg: #f4ecdd; --surface: #ede3cf; --surface-raised: #e5d8bf;
  --hairline: rgba(92, 74, 54, 0.14); --text: #4a3f33; --text-muted: #8d7d68;
  --accent: #8f7fd9; --accent-soft: rgba(143, 127, 217, 0.16); --on-accent: #fbf7ee;
  --soprano: #cf7fa3; --alto: #c9945a; --tenor: #679f7e; --bass: #6d90bf;
  --radius: 12px; --shadow: 0 24px 60px rgba(74, 63, 51, 0.22);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #332d27; --surface: #3d362e; --surface-raised: #494037;
    --hairline: rgba(238, 226, 206, 0.12); --text: #ece4d3; --text-muted: #b0a38e;
    --accent: #b1a3e6; --accent-soft: rgba(177, 163, 230, 0.2); --on-accent: #2e2838;
    --soprano: #e0a3bf; --alto: #dfb287; --tenor: #93c4a6; --bass: #97b3d6;
    --shadow: 0 24px 60px rgba(15, 12, 9, 0.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--on-accent); border: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-soft); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--hairline); }

/* header (site nav only — scoped so the nested <header class="legal__head">
   in termos.html doesn't inherit sticky and pin the document title) */
body > header { position: sticky; top: 0; z-index: 10;
  background: var(--bg); border-bottom: 1px solid var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  font-variant-caps: small-caps; letter-spacing: 0.07em; color: var(--text); text-decoration: none; }

/* hero */
.hero { padding: 72px 0 40px; position: relative; }

/* featured corner ribbon (top-right, diagonal) */
.ribbon { position: absolute; top: 0; right: 0; width: 190px; height: 190px; overflow: hidden;
  pointer-events: none; z-index: 5; }
.ribbon span { position: absolute; display: block; width: 270px; top: 44px; right: -60px; padding: 7px 0;
  transform: rotate(45deg); background: var(--accent); color: var(--on-accent);
  white-space: nowrap; text-align: center; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 600; color: var(--accent); margin: 0 0 16px; }
h1 { font-family: var(--serif); font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.1;
  margin: 0 0 20px; letter-spacing: -0.01em; }
.lede { font-size: 1.16rem; color: var(--text-muted); margin: 0 0 28px; max-width: 42ch; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-note { font-size: 0.92rem; color: var(--text-muted); }
.hero__shot img { width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--hairline); box-shadow: var(--shadow); display: block; }

/* voice legend */
.legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 40px 0 0; padding-top: 28px;
  border-top: 1px solid var(--hairline); }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.dot { width: 11px; height: 11px; border-radius: 50%; }

/* stats band */
.stats { padding: 36px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-family: var(--serif); font-weight: 700; line-height: 1; color: var(--accent);
  font-size: clamp(2.2rem, 5vw, 3rem); }
.stat__label { font-size: 0.95rem; color: var(--text-muted); }

/* sections */
section { padding: 64px 0; }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 8px; text-align: center; }
.section-sub { text-align: center; color: var(--text-muted); margin: 0 auto 44px; max-width: 52ch; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 30px; }
.features .card h3 { font-size: 1.2rem; margin: 0 0 12px; }
.features .card p { margin: 0; color: var(--text-muted); }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent); margin-bottom: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step;
  position: relative; }
/* A connector line ties the three badges into one flow (desktop only). */
.steps::before { content: ''; position: absolute; top: 30px; left: 16.6%; right: 16.6%;
  height: 2px; background: var(--hairline); }
.step { position: relative; text-align: center; }
.step::before { counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--surface-raised); border: 2px solid var(--accent);
  color: var(--accent); font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.step h3 { font-size: 1.15rem; margin: 0 0 8px; }
.step p { max-width: 30ch; margin: 0 auto; color: var(--text-muted); }

/* final cta */
.final { text-align: center; }
.final .card { padding: 56px 30px; }

/* legal document (terms / privacy) — the site's own space, not the app's */
.legal { max-width: 46rem; margin: 0 auto; padding: 56px 0 24px;
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; }
.legal__head { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.legal__head h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 6px; }
.legal__meta { font-family: var(--sans); font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.legal__section { margin-bottom: 32px; }
.legal__section h2 { font-size: 1.25rem; margin: 0 0 10px; }
.legal__section p { margin: 0 0 14px; }

/* waitlist */
.waitlist { text-align: center; }
.waitlist-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: center; }
.waitlist-col { padding: 40px 32px; background: var(--surface-raised); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.waitlist-col__title { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 10px; }
.waitlist-col__sub { color: var(--text-muted); margin: 0 0 24px; }
.waitlist-form { display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 380px; margin: 0 auto; }
.waitlist-form__email { width: 100%; padding: 13px 16px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.waitlist-form__email::placeholder { color: var(--text-muted); }
.waitlist-form__email:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.waitlist-form__submit { width: 100%; }
.waitlist-note { max-width: 42ch; margin: 16px auto 0; font-size: 0.85rem; color: var(--text-muted); }
.waitlist-status { min-height: 1.3em; margin: 10px 0 0; font-size: 0.95rem; color: var(--text-muted); }
.waitlist-status--ok { color: var(--tenor); }
.waitlist-status--err { color: var(--soprano); }

/* footer */
footer { border-top: 1px solid var(--hairline); padding: 40px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--text-muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot__copy { font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .features, .steps, .waitlist-cols { grid-template-columns: 1fr; }
  .hero__shot { order: -1; }
}
