:root {
  --pine: #073B37;
  --green: #0B5E57;
  --mint: #7EE2D4;
  --mint-wash: #EAF4F2;
  --amber: #F4B860;
  --amber-deep: #E39B2E;
  --ink: #16302D;
  --muted: #4A5E5A;
  --line: #D3E4E0;
  --white: #FFFFFF;
  --display: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mint-wash);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
}
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.nowrap { white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--pine); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: -0.5px; }
.brand img { width: 38px; height: 38px; }
.brand .io { color: var(--mint); }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: #D5EEE9; text-decoration: none; font-size: 17px; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- Hero ---------- */
.hero { background: var(--pine); color: var(--white); overflow: hidden; position: relative; }
.hero::after { /* the amber capsule from the logo, very large, half off the page */
  content: ""; position: absolute; width: 620px; height: 250px; border-radius: 125px;
  background: var(--green); right: -90px; top: 300px; transform: rotate(-45deg); z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6.4vw, 78px); line-height: 0.98; letter-spacing: -2.5px; margin: 0 0 24px; }
.hero h1 .line1, .hero h1 .line2 { display: block; }
.hero h1 .line2 { color: var(--amber); }
.hero .lede { font-size: 22px; line-height: 1.5; color: #DCF1EC; max-width: 30ch; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.button { display: inline-block; text-decoration: none; font-weight: 700; font-size: 18px; padding: 15px 26px; border-radius: 999px; }
.button.primary { background: var(--amber); color: var(--pine); }
.button.primary:hover { background: #F7C67C; }
.button.ghost { color: var(--white); border: 2px solid rgba(255,255,255,.45); }
.button.ghost:hover { border-color: var(--white); }
.soon { font-size: 16px; color: #B9DED7; margin: 18px 0 0; }

/* ---------- Phone demo ---------- */
.demo { position: relative; justify-self: center; width: 300px; max-width: 100%; }
.phone {
  background: var(--white); color: var(--ink); border-radius: 40px; padding: 18px 16px 22px;
  border: 10px solid #0A2724; box-shadow: 0 30px 60px rgba(2, 20, 18, .45);
}
.phone-top { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 6px 12px; }
.phone-top strong { font-family: var(--display); font-size: 24px; letter-spacing: -0.5px; }
.phone-top span { font-size: 14px; color: var(--muted); }
.dose { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--mint-wash); margin-bottom: 10px; }
.dose .time { font-weight: 700; font-size: 15px; color: var(--green); width: 46px; flex: none; }
.dose .what { flex: 1; font-size: 15px; line-height: 1.3; }
.dose .what b { display: block; font-size: 16px; }
.tick { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2.5px solid var(--green); display: grid; place-items: center; }
.tick svg { width: 16px; height: 16px; opacity: 0; }
.dose.done .tick { background: var(--green); }
.dose.done .tick svg { opacity: 1; }
.dose.later { background: #F4F8F7; }
.dose.later .time, .dose.later .what { color: var(--muted); }

.toast {
  position: absolute; left: -64px; right: 24px; bottom: -34px;
  background: var(--amber); color: var(--pine); border-radius: 22px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: center; box-shadow: 0 18px 40px rgba(2, 20, 18, .35);
  font-size: 15px; line-height: 1.35;
}
.toast img { width: 34px; height: 34px; flex: none; }
.toast b { display: block; font-size: 16px; }

/* One orchestrated moment: the 8:00 dose gets ticked, then the family is told. */
@media (prefers-reduced-motion: no-preference) {
  .dose.animate .tick { animation: fill .35s ease-out 1.3s both; }
  .dose.animate .tick svg { animation: show .2s ease-out 1.5s both; }
  .toast { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) 2.2s both; }
}
@keyframes fill { from { background: transparent; } to { background: var(--green); } }
@keyframes show { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
main.home { padding-top: 96px; padding-bottom: 40px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -1.2px; margin: 0 0 32px; max-width: 18ch; }

/* How it works: a real three-step sequence, drawn as capsules */
.steps { list-style: none; margin: 0 0 104px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border-radius: 36px; padding: 30px 28px 32px; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--amber); color: var(--pine); font-family: var(--display); font-weight: 800; font-size: 26px; margin-bottom: 18px;
}
.steps h3 { font-family: var(--display); font-size: 25px; line-height: 1.15; letter-spacing: -0.4px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--muted); }

/* For you / for your family */
.duo { display: grid; grid-template-columns: 1fr 1fr; border-radius: 40px; overflow: hidden; margin-bottom: 104px; }
.duo > div { padding: 44px clamp(24px, 4vw, 52px) 48px; }
.duo .you { background: var(--white); }
.duo .family { background: var(--green); color: var(--white); }
.duo h3 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -0.8px; margin: 0 0 20px; }
.duo ul { margin: 0; padding: 0; list-style: none; }
.duo li { padding: 12px 0 12px 34px; position: relative; border-top: 1px solid var(--line); }
.duo .family li { border-top-color: rgba(255,255,255,.2); }
.duo li::before { content: ""; position: absolute; left: 0; top: 20px; width: 18px; height: 10px; border-radius: 5px; background: var(--amber); transform: rotate(-45deg); }

/* Trust */
.trust { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; margin-bottom: 96px; }
.trust .section-title { margin-bottom: 18px; }
.trust p.big { font-size: 22px; line-height: 1.5; margin: 0; max-width: 34ch; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 16px 0; border-bottom: 2px solid var(--line); font-size: 19px; }
.facts li:first-child { border-top: 2px solid var(--line); }
.facts b { color: var(--green); }

/* Closing band */
.closing { background: var(--amber); border-radius: 40px; padding: 48px clamp(24px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 72px; }
.closing h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -1px; margin: 0; color: var(--pine); max-width: 16ch; }
.closing p { margin: 8px 0 0; color: var(--pine); }
.closing .button.primary { background: var(--pine); color: var(--white); }
.closing .button.primary:hover { background: var(--green); }

.tuki { margin-bottom: 72px; }
.tuki .doc h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 42px); letter-spacing: -1px; }
.disclaimer { font-size: 16px; color: var(--muted); max-width: 70ch; margin: 0 0 24px; }

/* ---------- Long-form pages (privacy, support) ---------- */
main.wrap.page { padding-top: 48px; padding-bottom: 64px; max-width: 880px; }
.doc { background: var(--white); border-radius: 32px; padding: 32px clamp(20px, 5vw, 48px); }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 46px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 16px; margin: 0 0 24px; }
.doc h2 { font-family: var(--display); font-size: 26px; line-height: 1.2; letter-spacing: -0.4px; margin: 40px 0 12px; }
.doc h3 { font-size: 20px; margin: 26px 0 6px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 17px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--mint-wash); color: var(--pine); }
.table-scroll { overflow-x: auto; }
.lang-switch { font-size: 16px; margin: 0 0 16px; }
.note { background: var(--mint-wash); border-radius: 20px; padding: 20px 22px; color: var(--pine); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: #B9DED7; padding: 32px 0 44px; font-size: 16px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--white); }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 96px; gap: 40px; }
  .hero::after { width: 460px; height: 180px; border-radius: 90px; right: -160px; top: auto; bottom: 120px; }
  .demo { width: 280px; }
  .toast { left: -24px; right: -12px; }
  .steps { grid-template-columns: 1fr; }
  .duo, .trust { grid-template-columns: 1fr; }
  .trust { gap: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero .lede { font-size: 20px; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
  .doc td { border-bottom: 0; padding: 8px 14px; }
  .doc td:first-child { background: var(--mint-wash); color: var(--pine); font-weight: 700; padding-top: 10px; }
}
