:root {
  --night: #17302f;
  --night-deep: #0f2221;
  --lamp: #e0a93f;
  --bg: #eef1ee;
  --surface: #f8faf8;
  --ink: #16282b;
  --muted: #52676a;
  --line: #d0d9d5;
  --btn: #17302f;
  --btn-ink: #f2f5f2;
  --focus: #b07a1a;
  --good: #2f6b52;
  --warn: #9a3b2e;
  --display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a1b;
    --surface: #152325;
    --ink: #e7eeeb;
    --muted: #9aafab;
    --line: #243639;
    --btn: #e0a93f;
    --btn-ink: #1a1405;
    --focus: #e0a93f;
    --good: #7fb59a;
    --warn: #e08f80;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 7vw, 3.7rem); }
h2 { font-size: clamp(1.65rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 22px; }
.wide { max-width: 1040px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid var(--btn); background: var(--btn); color: var(--btn-ink);
  font: 600 1rem var(--sans); cursor: pointer; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.block { width: 100%; }
input[type='email'], textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
.msg { min-height: 1.5em; margin: 10px 0 0; font-size: 0.95rem; }
.msg.err { color: var(--warn); }
.msg.ok { color: var(--good); }

/* hero: always night, the one memorable moment */
.hero { background: var(--night); color: #e9f0ed; padding: 22px 0 72px; }
.hero .muted { color: #a8bdb8; }
.hero .btn { background: var(--lamp); border-color: var(--lamp); color: #1a1405; }
.hero input[type='email'] { background: var(--night-deep); border-color: #2f4d4a; color: #e9f0ed; }
.hero .msg.err { color: #f0a090; }
.hero .msg.ok { color: #9ed3b9; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 44px; }
.brand { font: 400 1.3rem var(--display); text-decoration: none; }
.nav a.link { font-size: 0.95rem; color: #cfe0db; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; } }
.signup { display: grid; gap: 10px; margin-top: 28px; max-width: 460px; }
@media (min-width: 520px) { .signup.row { grid-template-columns: 1fr auto; } }
.orb-wrap { position: relative; display: grid; place-items: center; width: 100%; max-width: 330px; aspect-ratio: 1; margin: 0 auto; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #3b5a57; }
.orb { position: absolute; inset: 14%; border-radius: 50%; background: var(--lamp); transform: scale(0.55); }
.orb-label { position: relative; font: 400 1.15rem var(--display); color: #1a1405; }
.orb-note { text-align: center; margin-top: 18px; font-size: 0.92rem; }

/* sections */
section.block { padding: 72px 0 0; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 34px; height: 34px;
  border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center;
  font: 400 1rem var(--display);
}
.steps strong { display: block; font-weight: 600; }
.feature { padding: 18px 0; border-top: 1px solid var(--line); }
.feature h3 { margin-bottom: 0.3em; }
.feature p { margin: 0; color: var(--muted); }
.sample { border-left: 3px solid var(--lamp); padding: 4px 0 4px 20px; margin: 24px 0 0; }
.sample p { margin: 0 0 0.8em; }
.plans { margin-top: 24px; }
.plan { display: grid; gap: 4px 24px; padding: 20px 0; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .plan { grid-template-columns: 1fr auto; } }
.plan .price { font: 400 1.6rem var(--display); }
.plan p { margin: 0; color: var(--muted); }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; font-weight: 400; }
details[open] summary::after { content: '\2212'; }
details p { margin: 12px 0 0; color: var(--muted); }
footer { margin-top: 80px; padding: 32px 0 48px; border-top: 1px solid var(--line); }
footer p { margin: 0 0 0.6em; }

/* app */
.app-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.app-main { padding: 28px 0 130px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; z-index: 5;
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0);
}
.tabbar button {
  flex: 1; min-height: 60px; background: none; border: 0; color: var(--muted);
  font: 600 0.85rem var(--sans); cursor: pointer;
}
.tabbar button[aria-current='page'] { color: var(--ink); box-shadow: inset 0 3px 0 var(--lamp); }
.kicker { color: var(--muted); font-size: 0.95rem; margin: 0 0 6px; }
.practice { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.practice h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.practice p { margin: 0; }
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 4px; }
.moods button {
  min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); font: 600 1.1rem var(--sans); cursor: pointer;
}
.moods button[aria-pressed='true'] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.scale { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.field-label { display: block; font-weight: 600; margin: 18px 0 6px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 18px 0; }
.days button {
  aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line); background: transparent;
  color: var(--ink); font: 600 0.95rem var(--sans); cursor: pointer;
}
.days button.done { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.days button.next { border-color: var(--lamp); box-shadow: inset 0 0 0 1.5px var(--lamp); }
.days button.locked { opacity: 0.4; cursor: default; }
.card-row { border-top: 1px solid var(--line); padding: 14px 0; }
.card-row:last-child { border-bottom: 1px solid var(--line); }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 0 0 24px; }
.notice p:last-child { margin-bottom: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pacer { display: grid; place-items: center; padding: 28px 0 8px; }
.pacer .orb-wrap { max-width: 240px; }
.pacer .orb { background: var(--lamp); transition: transform 4s ease-in-out; }
.pacer .orb-ring { border-color: var(--line); }
.pacer-left { text-align: center; color: var(--muted); font-size: 0.95rem; min-height: 1.6em; }
.toolkit h2 { margin-top: 44px; }
.toolkit ol { padding-left: 1.2em; }
.toolkit li { margin-bottom: 0.7em; }
.quote { border-left: 3px solid var(--lamp); padding-left: 16px; margin: 0 0 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.switch { display: flex; align-items: center; gap: 10px; }
.switch input { width: 22px; height: 22px; accent-color: var(--btn); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .pacer .orb { transition: none !important; }
}
