:root {
  color-scheme: light;
  --ink: #12242c;
  --muted: #657078;
  --paper: #f7f4ee;
  --wash: #eee9e0;
  --line: #d8d2c6;
  --brand: #1b4453;
  --brand-soft: #d7e4e6;
  --warning: #7f4b00;
  --warning-bg: #fff4d8;
  --shadow: 0 18px 45px rgba(12, 27, 37, 0.08);
  --fuel: #b8703a;
  --water: #3d7ea6;
  --energy: #5b7f3a;
  --sleep: #6a5a94;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, #dfece5 0, transparent 32rem),
    var(--wash);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 1rem; }

.draft-banner {
  padding: 0.55rem 1rem;
  background: var(--warning-bg);
  color: var(--warning);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 650;
}

header {
  border-bottom: 1px solid rgba(220, 227, 221, 0.85);
  background: rgba(255, 254, 250, 0.84);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bar {
  width: min(1080px, calc(100% - 2rem));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.14rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

nav, .language { display: flex; align-items: center; gap: 1rem; }
nav a, .language a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 620;
  text-decoration: none;
}
nav a[aria-current="page"], nav a:hover, .language a:hover { color: var(--ink); }

.language {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  gap: 0.6rem;
}

main {
  width: min(820px, calc(100% - 2rem));
  margin: 3rem auto 5rem;
}

.hero {
  margin-bottom: 1.5rem;
  padding: clamp(1.7rem, 5vw, 3.4rem);
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.025em; }
h1 { margin: 0 0 1rem; font-size: clamp(2.1rem, 7vw, 3.55rem); }
h2 { margin: 2.4rem 0 0.8rem; font-size: 1.45rem; }
h3 { margin: 1.8rem 0 0.6rem; font-size: 1.1rem; }
p { margin: 0.75rem 0; }

.hero > p:last-child, .lede { color: var(--muted); font-size: 1.08rem; }

.document {
  padding: clamp(1.5rem, 5vw, 3.4rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(24, 44, 34, 0.045);
}

.document > :first-child { margin-top: 0; }
.document ul, .document ol { padding-left: 1.35rem; }
.document li { margin: 0.45rem 0; }
.document strong { font-weight: 720; }
.document hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
.document blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  background: var(--brand);
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.button.secondary { background: var(--brand-soft); color: var(--brand); }

.notice {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid #ebd4a5;
  border-radius: 0.8rem;
  background: var(--warning-bg);
  color: #61400d;
}

code {
  padding: 0.12rem 0.33rem;
  border-radius: 0.35rem;
  background: #edf1ee;
  font-size: 0.92em;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  width: min(1080px, calc(100% - 2rem));
  margin: auto;
  padding: 1.8rem 0 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }

@media (max-width: 760px) {
  .bar { align-items: flex-start; flex-direction: column; padding: 0.9rem 0; gap: 0.65rem; }
  .bar-right { width: 100%; display: flex; justify-content: space-between; gap: 0.75rem; overflow-x: auto; }
  nav { gap: 0.75rem; }
  .language { padding-left: 0.7rem; }
  main { margin-top: 1.4rem; }
  .footer-inner { flex-direction: column; }
}

.home {
  width: min(1120px, calc(100% - 2rem));
  margin: 2.4rem auto 5rem;
  display: flex;
  flex-direction: column;
  gap: 4.2rem;
}

.home h1 {
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  letter-spacing: -0.045em;
}
.home h2 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
}
.home .lede { max-width: 40rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.hero-copy .cta-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-grid, .stack { display: grid; gap: 1rem; }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--paper);
}
.card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.privacy-band, .invite {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--paper);
}
.privacy-band ul { margin: 0.8rem 0 0; padding-left: 1.2rem; }
.privacy-band li { margin: 0.45rem 0; }
.invite p { color: var(--muted); max-width: 40rem; }

.wellness {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.device { margin: 0; }
.device figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  padding: 0.55rem 0.55rem 0.7rem;
  border-radius: 2rem;
  background: #1a1c1d;
  box-shadow: var(--shadow);
}
.phone-chrome { display: flex; justify-content: center; padding: 0.35rem 0 0.2rem; }
.notch {
  width: 5.4rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #0c0d0e;
}
.phone-screen {
  min-height: 520px;
  padding: 0.7rem 0.7rem 0.6rem;
  border-radius: 1.45rem;
  background: var(--wash);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.phone-top { display: flex; flex-direction: column; gap: 0.1rem; }
.phone-top span { color: var(--muted); font-size: 0.68rem; }
.phone-top strong { font-size: 1.05rem; }

.focus-card {
  padding: 0.7rem 0.75rem;
  border-radius: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.focus-card .eyebrow { margin-bottom: 0.25rem; }
.focus-title { margin: 0; font-size: 0.92rem; font-weight: 720; }
.focus-card p { margin: 0.25rem 0 0; font-size: 0.72rem; color: var(--muted); }

.section-kicker {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.dial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.dial {
  padding: 0.4rem 0.3rem 0.45rem;
  border-radius: 0.9rem;
  background: var(--paper);
  text-align: center;
}
.dial svg { width: 100%; height: auto; max-width: 108px; }
.dial-value { font-size: 13px; font-weight: 750; fill: currentColor; }
.dial-context { font-size: 6.5px; fill: currentColor; fill-opacity: 0.55; }
.dial-name { font-size: 0.62rem; font-weight: 650; }
.dial-why { font-size: 0.58rem; color: var(--muted); line-height: 1.3; }

.axis {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.2rem 0.15rem;
  border-top: 3px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  color: var(--muted);
  font-size: 0.58rem;
}

.composer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding-top: 0.35rem;
}
.composer span {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 18%, var(--paper));
}
.composer .mic {
  width: 2.35rem;
  height: 2.35rem;
  background: var(--brand);
}

.chat-screen { min-height: 420px; }
.chat-status {
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
}
.bubble {
  max-width: 86%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  font-size: 0.78rem;
  line-height: 1.45;
}
.bubble.user {
  margin-left: auto;
  background: color-mix(in srgb, var(--brand) 16%, var(--paper));
}
.bubble.assistant { background: var(--paper); border: 1px solid var(--line); }

@media (max-width: 860px) {
  .hero, .split, .card-grid { grid-template-columns: 1fr; }
  .hero .device { order: -1; }
}

@media print {
  body { background: white; }
  header, .draft-banner, .skip-link, .actions, footer { display: none; }
  main, .home { width: 100%; margin: 0; }
  .hero, .document { border: 0; box-shadow: none; padding: 0; }
  .hero { margin-bottom: 2rem; display: block; }
  a { color: inherit; text-decoration: none; }
}
