:root {
  --ink: #10243f;
  --paper: #f7f4ee;
  --paper-2: #efeae1;
  --action: #0e6b4f;
  --action-ink: #f7f4ee;
  --muted: #3d4d63;
  --line: rgba(16, 36, 63, 0.16);
  --morning: #fff4d6;
  --morning-ink: #6b4700;
  --evening: #eee9ff;
  --evening-ink: #3a2e8a;
  --shadow: 0 24px 60px rgba(8, 16, 32, 0.28);
  --sans: "Figtree", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 244, 214, 0.16), transparent 50%),
    var(--ink);
}
body, a, button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.shell {
  width: min(1120px, calc(100% - 24px));
  margin: 16px auto 28px;
  padding: 22px 22px 32px;
  background:
    repeating-linear-gradient(-18deg, transparent, transparent 12px, rgba(16, 36, 63, 0.035) 12px, rgba(16, 36, 63, 0.035) 13px),
    var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.shell::before,
.shell::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(16, 36, 63, 0.45);
  pointer-events: none;
}
.shell::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.shell::after { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 18px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  min-height: 48px;
}
.mark-seal {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--action);
  box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1.5px var(--action);
}
.nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-left: auto; }
.nav a, .text-link {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.lang { display: flex; gap: 6px; }
.lang button, .button, .taken {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  min-height: 48px;
  min-width: 48px;
}
.lang button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: var(--action);
  color: var(--action-ink);
  text-decoration: none;
  font-weight: 600;
}
.button:hover, .lang button:hover, .nav a:hover { filter: brightness(1.05); }
:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 18px 8px 12px;
}
.eyebrow, .section-kicker span, .legal, .dose-meta time, .phone-bar {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--action); margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0 0 16px; }
.lede { font-size: 1.2rem; max-width: 38rem; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.proof, .note, .price, footer p { color: var(--muted); }
.proof { margin-top: 18px; max-width: 36rem; }

.phone {
  margin: 0;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.phone-bar, .dose-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.phone-bar { margin-bottom: 12px; color: var(--muted); }
.phone-tools { display: flex; gap: 12px; }
.dose {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
}
.dose h2 { font-size: 1.25rem; margin: 10px 0 4px; }
.dose p { margin: 0 0 12px; color: var(--muted); }
.dose.quiet { opacity: 0.72; }
.chip { border-radius: 999px; padding: 4px 10px; font-size: 0.85rem; font-weight: 600; }
.chip.morning { background: var(--morning); color: var(--morning-ink); }
.chip.evening { background: var(--evening); color: var(--evening-ink); }
.taken {
  width: 100%;
  border: 0;
  background: var(--action);
  color: var(--action-ink);
  font-weight: 700;
  font-size: 1.15rem;
}
figcaption { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }

section { padding: 28px 8px; scroll-margin-top: 96px; }
.section-kicker { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; margin-bottom: 18px; }
.section-kicker span { color: var(--action); }
.section-kicker h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
.split, .facts, .plans, .status { display: grid; gap: 14px; }
.split, .plans { grid-template-columns: 1fr 1fr; }
.facts, .status { grid-template-columns: 1fr 1fr; }
article, .status div, .limits, .faq details {
  background: color-mix(in srgb, var(--paper-2) 70%, white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}
article h3 { margin: 0 0 8px; font-size: 1.25rem; }
article p, .status dd { margin: 0; }
.note { margin: 14px 0 0; }

.steps, .timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.steps li, .timeline li {
  border-top: 2px solid var(--action);
  padding-top: 12px;
}
.steps strong, .timeline time { display: block; margin-bottom: 6px; }
.timeline time { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--action); }

.plan ul, .limits { margin: 0; padding-left: 1.1rem; }
.plan li, .limits li { margin: 8px 0; }
.plan.paid { background: var(--ink); color: var(--paper); }
.plan.paid .eyebrow, .plan.paid .price { color: #d7e4dc; }
.price { margin: 16px 0 0; }

.limits { list-style: disc; }
.status { align-items: stretch; }
.status dt { font-weight: 600; margin-bottom: 6px; }
.status div:last-child { grid-column: 1 / -1; background: #fff8e8; }

.faq { display: grid; gap: 8px; }
.faq details { padding: 0; }
.faq summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  font-weight: 600;
}
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

.close {
  margin-top: 8px;
  padding: 28px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
}
.close h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 8px; }
.close p { max-width: 36rem; }
.close .button { margin-top: 8px; }

footer { padding: 8px 8px 0; display: grid; gap: 6px; }
footer p { margin: 0; }

@media (max-width: 860px) {
  .hero, .split, .plans, .facts, .steps, .status { grid-template-columns: 1fr; }
  .top { flex-wrap: nowrap; padding-bottom: 8px; }
  .mark, .lang { flex: none; }
  .nav {
    order: 0;
    width: auto;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .shell { width: min(100% - 12px, 1120px); padding: 16px 14px 24px; border-radius: 20px; }
  h1 { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .lang button, .nav a { transition: none; }
}
