/* Doserra marketing site. No build step: tokens + components, mobile first. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.623714ac1d99.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.101877a7a906.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #0b7f73;
  --brand-strong: #0a645b;
  --brand-soft: #e3f6f3;
  --sky: #2dd4bf;
  --sun: #ffb627;
  --night-1: #071a2e;
  --night-2: #0b2540;
  --night-3: #0f4a5c;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --line: #e2e8f0;
  --text: #111827;
  --muted: #536072;
  --on-dark: #ffffff;
  --on-dark-muted: #b4c3d6;
  --ok: #19a463;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(17 24 39 / 4%), 0 12px 32px -12px rgb(17 24 39 / 14%);
  --shadow-lg: 0 30px 80px -20px rgb(10 14 20 / 45%);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-alt: #121922;
    --surface: #161e29;
    --line: #253244;
    --text: #eef2f7;
    --muted: #9eacbf;
    --brand-soft: #0d3a38;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 50%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(10 14 20 / 72%);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  color: var(--on-dark);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 8%); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--on-dark-muted); font-weight: 700; font-size: .85rem; padding: 8px 10px; border-radius: 999px; text-transform: uppercase; display: flex; gap: 6px; align-items: center; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: #fff; background: rgb(255 255 255 / 8%); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 170px; }
.lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem; }
.lang li a:hover, .lang li a[aria-current="true"] { background: var(--brand-soft); }
.lang li small { color: var(--muted); text-transform: uppercase; font-weight: 700; }
.menu-toggle { display: inline-flex; flex: none; background: none; border: 0; color: #fff; padding: 8px; border-radius: 10px; cursor: pointer; }
.mobile-nav { display: none; padding: 8px var(--gutter) 20px; border-top: 1px solid rgb(255 255 255 / 8%); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; color: #fff; text-decoration: none; font-weight: 650; padding: 12px 4px; border-bottom: 1px solid rgb(255 255 255 / 7%); }
.btn.header-cta { display: none; }
.nav a { white-space: nowrap; }
@media (min-width: 760px) { .btn.header-cta { display: inline-flex; } }
@media (min-width: 1180px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s, box-shadow .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgb(20 184 166 / 70%); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-light { background: #fff; color: var(--night-2); }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / 22%); background: rgb(255 255 255 / 4%); }
.btn-ghost:hover { background: rgb(255 255 255 / 10%); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.play-dot { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }

/* Store buttons: two-line labels like the official badges, readable on dark and light. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid rgb(255 255 255 / 18%);
  transition: transform .15s ease, box-shadow .15s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgb(0 0 0 / 60%); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: .7rem; font-weight: 600; opacity: .85; letter-spacing: .02em; }
.store strong { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.store[hidden] { display: none; }
.store-note { font-size: .88rem; color: var(--on-dark-muted); margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(900px 520px at 85% 10%, rgb(20 184 166 / 35%), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgb(63 198 243 / 30%), transparent 60%),
    linear-gradient(160deg, var(--night-1) 0%, var(--night-2) 55%, var(--night-3) 100%);
  margin-top: -69px; padding: calc(69px + clamp(32px, 5vw, 64px)) 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 18px; }
.hero .eyebrow { color: var(--on-dark-muted); background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%); padding: 7px 14px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgb(255 182 39 / 20%); }
.hero h1 { margin-bottom: 18px; font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.hero h1 .accent { display: block; font-weight: 600; color: var(--on-dark-muted); font-size: .62em; letter-spacing: -0.02em; margin-top: .35em; line-height: 1.2; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #d6e8fa; max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-bottom: 24px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; color: var(--on-dark-muted); font-size: .92rem; font-weight: 600; }
.trust li { display: inline-flex; gap: 8px; align-items: center; }
.trust svg { color: #7ee2b0; width: 18px; height: 18px; }

.device-stage { position: relative; justify-self: center; width: min(320px, 78vw); padding-bottom: 36px; }
.device {
  position: relative; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #1d3550, #0a0d12);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 12%);
  transform: rotate(-2deg);
}
.device img { border-radius: 34px; width: 100%; aspect-ratio: 1000 / 2174; object-fit: cover; object-position: top; background: #f3f6fa; }
.float-card {
  position: absolute; border-radius: 18px; padding: 14px 16px; color: #fff;
  background: linear-gradient(135deg, #19b3a2, #0a645b); box-shadow: 0 24px 50px -18px rgb(8 12 20 / 70%);
  border: 1px solid rgb(255 255 255 / 18%);
  animation: float 6s ease-in-out infinite;
}
.float-card.now { left: -18%; top: 54%; width: 64%; }
.float-card .label { font-size: .64rem; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; opacity: .8; display: flex; gap: 6px; align-items: center; }
.float-card .row { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: 6px; }
.float-card .subject { font-weight: 800; font-size: 1.05rem; line-height: 1.15; }
.float-card .meta { font-size: .78rem; opacity: .85; }
.float-card .count { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; text-align: right; }
.float-card .count small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: 0; opacity: .8; }
.toast {
  position: absolute; right: -12%; bottom: 0; width: 74%; display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 18px; background: #f1f5f9; color: #172a3a;
  box-shadow: 0 24px 50px -18px rgb(8 12 20 / 60%); backdrop-filter: blur(10px);
  animation: float 7s ease-in-out -2s infinite; font-size: .86rem; font-weight: 600; line-height: 1.3;
}
.toast img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.toast small { display: block; color: #475569; font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float-card, .toast { animation: none; } html { scroll-behavior: auto; } }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .device-stage { justify-self: end; margin-right: 8%; width: 300px; }
}

/* Stats bar sits on the bottom edge of the hero, like flowstaff. */
.stats { position: relative; color: var(--on-dark); background: linear-gradient(180deg, transparent, rgb(255 255 255 / 3%)); border-top: 1px solid rgb(255 255 255 / 10%); }
.hero + .stats-wrap, .stats-wrap { background: var(--night-3); background: linear-gradient(180deg, #163252, #13263d); }
.stats ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
.stats li { text-align: center; }
.stats strong { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.stats span { font-size: .86rem; color: var(--on-dark-muted); font-weight: 600; }
@media (min-width: 760px) { .stats ul { grid-template-columns: repeat(var(--n, 4), 1fr); } .stats li + li { border-left: 1px solid rgb(255 255 255 / 10%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head .intro { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head.left { margin-inline: 0; text-align: left; }

.cards { display: grid; gap: 18px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: relative;
}
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.icon-tile svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.badge { position: absolute; top: 22px; right: 22px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #fff4d6; color: #7a5200; }
.card a.more { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-weight: 700; text-decoration: none; }

/* Problem -> solution cards */
.problem .q { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.015em; margin: 0 0 12px; color: var(--text); }
.problem .a { display: flex; gap: 10px; color: var(--muted); }
.problem .a svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(var(--n, 4), 1fr); } }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps .num { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.note { text-align: center; color: var(--muted); max-width: 720px; margin: 32px auto 0; font-size: .98rem; }

/* Showcase (alternating text + screenshot) */
.showcase { display: grid; gap: 40px; align-items: center; }
.showcase .shot { justify-self: center; width: min(320px, 78vw); border-radius: 36px; padding: 9px; background: linear-gradient(145deg, #1d3550, #0a0d12); box-shadow: var(--shadow-lg); }
.showcase .shot img { border-radius: 28px; width: 100%; }
.showcase ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.showcase li { display: flex; gap: 12px; font-weight: 600; }
.showcase li svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.showcase p { color: var(--muted); font-size: 1.08rem; }
@media (min-width: 900px) {
  .showcase { grid-template-columns: 1fr 1fr; gap: 72px; }
  .showcase.reverse .shot { order: -1; }
}

/* Privacy band */
.privacy-band { color: var(--on-dark); background: linear-gradient(140deg, var(--night-1), var(--night-2) 60%, #183457); border-radius: 32px; padding: clamp(32px, 6vw, 64px); display: grid; gap: 32px; position: relative; overflow: hidden; }
.privacy-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgb(20 184 166 / 35%), transparent 70%); }
.privacy-band .eyebrow { color: var(--on-dark-muted); }
.privacy-band p { color: #cfe6fb; }
.privacy-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); position: relative; z-index: 1; }
.privacy-band li { background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 10%); border-radius: 18px; padding: 18px; }
.privacy-band li strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.privacy-band li span { color: var(--on-dark-muted); font-size: .9rem; font-weight: 600; }
@media (min-width: 900px) { .privacy-band { grid-template-columns: 1.1fr 1fr; align-items: center; } }

/* Pricing */
.plans { display: grid; gap: 18px; max-width: 920px; margin-inline: auto; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(var(--n, 2), 1fr); } }
.plan { border-radius: 26px; padding: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.highlighted { border: 2px solid var(--brand); position: relative; }
.plan .name { font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; margin: 8px 0 0; line-height: 1.1; }
.plan .period { color: var(--muted); font-weight: 600; margin: 4px 0 0; }
.plan .plan-note { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.footnote { text-align: center; color: var(--muted); font-size: .9rem; max-width: 680px; margin: 26px auto 0; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 750; font-size: 1.06rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform .2s; color: var(--brand); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { color: var(--muted); padding-bottom: 20px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Final CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(36px, 6vw, 72px); color: var(--on-dark); background: radial-gradient(600px 300px at 90% 0%, rgb(20 184 166 / 45%), transparent 60%), linear-gradient(135deg, #085a52, var(--brand) 55%, #22c3b0); display: grid; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3f0ff; font-size: 1.1rem; }
.cta-band .store-note { color: #e3f0ff; }
.qr-card { display: none; background: #fff; color: var(--text); border-radius: 22px; padding: 18px; text-align: center; width: 200px; justify-self: end; box-shadow: var(--shadow-lg); }
.qr-card .qr { width: 160px; height: 160px; margin: 0 auto 10px; }
.qr-card small { font-weight: 700; color: var(--muted); font-size: .8rem; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } .qr-card { display: block; } }

/* Article cards */
.posts { display: grid; gap: 20px; }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.post-card .meta { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: .97rem; margin: 0 0 16px; }
.post-card .read { margin-top: auto; font-weight: 700; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }
.center-link { text-align: center; margin-top: 36px; }

/* Blog index */
.page-hero { color: var(--on-dark); background: linear-gradient(160deg, var(--night-1), var(--night-2) 60%, var(--night-3)); margin-top: -69px; padding: calc(69px + clamp(40px, 6vw, 72px)) 0 clamp(40px, 6vw, 72px); }
.page-hero p { color: #d6e8fa; font-size: 1.12rem; max-width: 40em; margin: 0; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { display: inline-flex; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 650; font-size: .92rem; text-decoration: none; }
.chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.htmx-request.loading-dim, .htmx-request .loading-dim { opacity: .5; transition: opacity .2s; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* Article */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .86rem; color: var(--on-dark-muted); }
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--on-dark-muted); font-size: .92rem; font-weight: 600; margin-top: 18px; }
.article-layout { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 72px); }
@media (min-width: 1040px) { .article-layout { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; } }
.prose { font-size: 1.08rem; line-height: 1.75; min-width: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); color: var(--muted); }
.prose .lede { font-size: 1.22rem; color: var(--text); font-weight: 500; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--brand-soft); margin: 1.6em 0; }
.callout svg { flex: none; color: var(--brand); margin-top: 3px; }
.callout p:last-child { margin: 0; }
.callout.warning { background: #fff4d6; color: #4b3500; }
.howto { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.howto li { counter-increment: s; position: relative; padding: 18px 20px 18px 64px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin: 0 !important; }
.howto li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: .95rem; }
.howto strong { display: block; margin-bottom: 2px; }
.inline-cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: 20px; margin: 2em 0; background: linear-gradient(135deg, var(--night-2), var(--night-3)); color: #fff; }
.inline-cta p { margin: 0; font-weight: 700; font-size: 1.05rem; flex: 1 1 260px; display: flex; gap: 14px; align-items: center; }
.inline-cta img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 18px; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; text-align: center; }
.toc { position: sticky; top: 92px; align-self: start; display: grid; gap: 18px; }
.toc nav { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--surface); }
.toc h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .93rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.side-cta { border-radius: 18px; padding: 22px; background: linear-gradient(160deg, var(--night-2), var(--night-3)); color: #fff; text-align: center; }
.side-cta img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px; }
.side-cta p { color: var(--on-dark-muted); font-size: .92rem; }
.side-cta .stores { justify-content: center; }
.side-cta .store { min-height: 48px; padding: 6px 14px 6px 12px; }
@media (max-width: 1039px) { .toc { position: static; } .toc nav { display: none; } }

/* Legal / text pages */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-1); color: var(--on-dark-muted); padding: 64px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer-grid > :first-child { grid-column: auto; } }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h2 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 8%); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* Sticky mobile download bar (appears after the hero) */
.mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 18px; background: rgb(10 14 20 / 92%); color: #fff; backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .3s ease; }
.mobile-bar.show { transform: translateY(0); }
.mobile-bar img { width: 38px; height: 38px; border-radius: 10px; }
.mobile-bar span { flex: 1; font-weight: 700; font-size: .92rem; line-height: 1.2; }
.mobile-bar small { display: block; color: var(--on-dark-muted); font-weight: 600; font-size: .78rem; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px var(--gutter); }
@media (max-width: 899px) { .site-footer { padding-bottom: 110px; } }

/* ---------- Medication plan maker ---------- */
.tool-hero .trust { margin-top: 18px; }
.tool-section { padding-top: clamp(28px, 4vw, 48px); }
.plan-tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1000px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .86rem; font-weight: 700; color: #d6e8fa; }
.field .control { min-width: 0; overflow: hidden; display: flex; align-items: center; border-radius: 14px; background: #fff; color: var(--text); border: 2px solid transparent; transition: border-color .15s; }
.field .control:focus-within { border-color: var(--sky); }
.field input { flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.05rem; font-weight: 700; padding: 11px 14px; color: #111827; outline: none; }
.field-row { display: grid; gap: 12px; }
.plan-form { display: grid; gap: 16px; padding: clamp(18px, 3vw, 26px); border-radius: 26px; background: linear-gradient(160deg, var(--night-1), var(--night-2) 70%, var(--night-3)); color: #fff; box-shadow: var(--shadow-lg); }
.plan-form .field-row { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.field select { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.05rem; font-weight: 700; padding: 12px 14px; color: #111827; outline: none; }
.field input[type="date"] { font-size: 1rem; }
.plan-rows { display: grid; gap: 8px; }
.plan-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) repeat(4, 3.1em) minmax(0, 1.8fr); gap: 6px; align-items: center; }
.plan-row input { width: 100%; min-width: 0; border: 2px solid transparent; border-radius: 10px; background: #fff; color: #111827; font: inherit; font-size: .95rem; font-weight: 600; padding: 9px 10px; outline: none; }
.plan-row input:focus { border-color: var(--sky); }
.plan-row input.amount::placeholder { color: transparent; }
.plan-row input.amount { text-align: center; padding: 9px 4px; }
.plan-row-head span { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); text-align: center; }
.plan-row-head span:first-child, .plan-row-head span:nth-child(2), .plan-row-head span:last-child { text-align: left; }
@media (max-width: 640px) {
  .plan-row { grid-template-columns: repeat(4, 1fr); padding: 10px; border-radius: 14px; background: rgb(255 255 255 / 6%); }
  .plan-row input:nth-child(1), .plan-row input:nth-child(2), .plan-row input:last-child { grid-column: 1 / -1; }
  .plan-row-head { display: none; }
  .plan-row input.amount::placeholder { color: #8a96a8; font-size: .8rem; }
}
.form-hint { margin: 0; font-size: .86rem; color: var(--on-dark-muted); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-form .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 30%); }
.js .plan-form button[type="submit"] { display: none; }

.plan-sheet { position: relative; background: #fff; color: #111827; border-radius: 20px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); box-shadow: var(--shadow); transition: opacity .15s; }
.plan-sheet.htmx-request { opacity: .55; }
.sheet-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 2px solid #111827; padding-bottom: 10px; margin-bottom: 14px; }
.sheet-head img { border-radius: 9px; }
.sheet-title { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.sheet-meta { margin: 2px 0 0; font-size: .85rem; color: #536072; font-weight: 600; }
.sheet-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sheet-table th, .sheet-table td { border: 1px solid #cbd5e1; padding: 8px 8px; text-align: left; vertical-align: middle; }
.sheet-table thead th { background: #f1f5f9; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.sheet-table td.num { text-align: center; font-weight: 800; font-size: 1.05rem; min-width: 3.2em; }
.plan-table tbody th { font-weight: 800; }
.log-table thead th { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.log-table thead th span { display: block; font-size: .66rem; color: #536072; }
.log-table thead th:first-child { text-align: left; }
.log-table tbody th { min-width: 11em; font-weight: 600; }
.log-table tbody th small { display: block; color: #536072; font-size: .78rem; }
.log-table td { text-align: center; padding: 6px 4px; }
.tick { display: inline-block; width: 18px; height: 18px; border: 1.5px solid #64748b; border-radius: 5px; }
.sheet-empty { color: #536072; margin: 24px 0; }
.sheet-foot, .sheet-disclaimer { margin: 12px 0 0; font-size: .82rem; color: #536072; }
.sheet-disclaimer { font-style: italic; }
.sheet-nudge { margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--text); display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.sheet-nudge img { border-radius: 8px; flex: none; }
.sheet-nudge a { font-weight: 800; }
@media (prefers-color-scheme: dark) { .sheet-nudge { color: #e6f6f3; } }

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  html, body { background: #fff !important; }
  body * { visibility: hidden; }
  #plan-sheet, #plan-sheet * { visibility: visible; }
  #plan-sheet { position: absolute; inset: 0 auto auto 0; width: 100%; border: 0; box-shadow: none; padding: 0; }
  .sheet-nudge, .sheet-scroll { overflow: visible; }
  .sheet-nudge { display: none; }
  .sheet-table { font-size: 10.5pt; }
  .sheet-table th, .sheet-table td { border-color: #555; }
  .log-table td { padding: 7px 3px; }
}
.medical-note { margin: 40px 0 0; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-alt); font-size: .92rem; color: var(--muted); }
.medical-note p { margin: 0 0 8px; }
.medical-note p:last-child { margin: 0; }
.medical-note strong { color: var(--text); }
