:root {
  --bg: #F6F3EE;
  --paper: #FBF9F5;
  --white: #FFFFFF;
  --ink: #1E2320;
  --muted: #646a64;
  --green: #2E5A4C;
  --green-dark: #1C2A25;
  --green-ink: #DCE7E1;
  --mint: #E3ECE6;
  --line: #DDD7CC;
  --flag: #B5482F;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
svg { flex: none; }
em { font-style: italic; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); }
h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin-top: 20px; }
.eyebrow { font-size: 15px; color: var(--muted); margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 999px; padding: 10px 20px; white-space: nowrap; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #244a3e; }
.arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.appstore { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 12px; padding: 10px 20px 10px 16px; }
.appstore svg { width: 26px; height: 26px; fill: currentColor; }
.appstore span { display: grid; font-size: 19px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.appstore small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; opacity: .85; }
.appstore:hover { background: #000; }
.appstore-light { background: var(--bg); color: var(--ink); }
.appstore-light:hover { background: #fff; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 238, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { border-radius: 8px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

/* Device */
.device { position: relative; border-radius: 46px; padding: 9px; background: #232826; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 30px 60px -20px rgba(30, 35, 32, .35); }
.device img { border-radius: 37px; width: 100%; height: auto; }
.device-col { justify-self: center; width: min(340px, 100%); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 128px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); line-height: .98; letter-spacing: -0.03em; font-weight: 400; text-wrap: balance; }
.hero h1 em { color: var(--green); }
.hero-lead { margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 33em; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fine { font-size: 14px; line-height: 1.45; color: var(--muted); }
.hero-phone { justify-self: end; width: min(360px, 100%); }

/* Shared split */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 112px); align-items: center; }
.split-reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.copy > p { margin-top: 22px; color: var(--muted); max-width: 34em; }
.copy > p em { color: var(--ink); }
.kicker { font-size: 15px; color: var(--green); margin-bottom: 16px; margin-top: 0 !important; }
.note { font-size: 14px; }

/* Match */
.match { padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--line); }
.ledger { margin-top: 32px; border-top: 1px solid var(--ink); }
.ledger div { display: grid; grid-template-columns: 12em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-weight: 600; font-size: 16px; }
.ledger dt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: 2px; }
.ledger dd { font-size: 16px; color: var(--muted); }

/* Routine */
.routine { padding: clamp(72px, 10vw, 136px) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.routine-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 6vw, 96px); align-items: end; }
.routine-head p { color: var(--muted); }
.routine-body { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.slots { display: grid; gap: 48px; }
.slot h3 { font-size: 28px; font-style: italic; font-weight: 400; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.slot ol { counter-reset: step; }
.slot li { counter-increment: step; display: grid; grid-template-columns: 2.4em 9em 1fr; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.slot li::before { content: counter(step); font-family: var(--serif); font-size: 22px; color: var(--green); }
.step { font-weight: 600; }
.rule { color: var(--muted); font-size: 16px; }

/* Flare-ups */
.flare { padding: clamp(72px, 10vw, 136px) 0; background: var(--green-dark); color: var(--green-ink); }
.flare h2 { color: #F6F3EE; max-width: 15em; }
.flare-head p { margin-top: 24px; max-width: 36em; color: #B9C8C1; }
.flare-shots { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 300px)) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.flare .device { background: #0F1714; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.flare-shots figure:nth-child(2) { transform: translateY(-48px); }
.flare-facts { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.25); align-self: center; }
.flare-facts li { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #B9C8C1; font-size: 16px; }
.flare-facts strong { color: #F6F3EE; font-weight: 600; }
.pdf { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.pdf img { border-radius: 6px; background: #fff; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.pdf figcaption { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; color: #F6F3EE; font-style: italic; }

/* Ingredients */
.words { padding: clamp(72px, 10vw, 136px) 0; }
.entry { margin-top: 36px; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); max-width: 34em; }
.entry-word { font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.entry-meta { margin-top: 10px; font-size: 14px; color: var(--muted); font-style: italic; }
.entry-def { margin-top: 16px; }

/* FAQ */
.faq { padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.faq-contact { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.faq-contact a { color: var(--green); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--green); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
.faq-list a { color: var(--green); }

/* CTA */
.cta { background: var(--green); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #F6F3EE; max-width: 14em; font-weight: 400; }

/* Footer */
.footer { background: var(--green-dark); color: #C9D4CE; padding: 48px 0 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; }
.brand-light .brand-name { color: #F6F3EE; }
.footer-links { display: flex; gap: 28px; }
.footer-links a, .footer-cols a { text-decoration: none; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 14px; color: #9FB0A8; }
.footer-bottom a { color: #E4E9E6; }
.footer :focus-visible { outline-color: #9FC4B3; }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; padding: 80px 0 120px; }
.notfound h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: -1.5px; max-width: 720px; }
.notfound .lead { max-width: 520px; margin-bottom: 36px; }

/* Legal pages */
.legal { padding: 56px 0 120px; }
.legal-wrap { max-width: 860px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; letter-spacing: -1.4px; }
.legal-date { color: var(--muted); font-size: 15px; margin: 16px 0 40px; }
.legal h2 { font-size: 28px; letter-spacing: -.4px; margin: 48px 0 16px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; }
.legal p + p { margin-top: 16px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin: 16px 0; }
.legal a { color: var(--green); }
.legal code { font-size: .9em; background: var(--mint); border-radius: 4px; padding: 1px 5px; }
.legal mark { background: #F6E3C7; border-radius: 4px; padding: 0 3px; }
.legal-table { margin: 20px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line); }
.legal th { border-top: 0; background: var(--mint); font-weight: 600; font-size: 13px; letter-spacing: .3px; }
.legal td:first-child { font-weight: 500; }

/* Narrower screens */
@media (max-width: 960px) {
  .hero-grid, .split, .split-reverse, .routine-head, .routine-body, .faq-grid, .pdf { grid-template-columns: minmax(0, 1fr); }
  .hero-phone { justify-self: start; width: min(300px, 80%); }
  .split .device-col { order: 2; }
  .flare-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flare-facts { grid-column: 1 / -1; }
  .flare-shots figure:nth-child(2) { transform: none; }
  .routine-body .device-col { justify-self: start; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner { padding-top: 12px; padding-bottom: 12px; }
  .btn { padding: 9px 16px; font-size: 14px; }
  .ledger div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .slot li { grid-template-columns: 2em minmax(0, 1fr); }
  .slot li .rule { grid-column: 2; }
  .device { border-radius: 36px; padding: 7px; }
  .device img { border-radius: 29px; }
  .footer-bottom { flex-direction: column; }
  .legal { padding: 32px 0 72px; }
  .legal h2 { font-size: 24px; margin-top: 40px; }
  .legal p, .legal li { font-size: 16px; }
  .legal thead { display: none; }
  .legal tr { display: block; border-top: 1px solid var(--line); padding: 14px 16px; }
  .legal tr:first-child { border-top: 0; }
  .legal td { display: block; border: 0; padding: 0; }
  .legal td + td { margin-top: 8px; }
  .legal td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--muted); }
}
