/* ZOZA — zozamed.com
   Palette follows the app: slate neutrals, sky-600 (#0284c7) as the brand
   blue, and the teal end of the app icon's gradient as a second accent. */

:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --brand: #0284c7;
  --brand-strong: #0369a1;
  --brand-soft: #e0f2fe;
  --teal: #0d9488;
  --good: #16a34a;
  --good-soft: #dcfce7;
  --amber: #f59e0b;
  --grad: linear-gradient(135deg, #0ea5e9 0%, #0284c7 45%, #1e40af 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .22);
  --radius: 20px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --bg-alt: #0b1222;
    --surface: #0f172a;
    --surface-2: #1e293b;
    --border: #1e293b;
    --text: #f1f5f9;
    --text-2: #cbd5e1;
    --text-3: #94a3b8;
    --brand: #38bdf8;
    --brand-strong: #7dd3fc;
    --brand-soft: rgba(56, 189, 248, .12);
    --teal: #2dd4bf;
    --good: #4ade80;
    --good-soft: rgba(74, 222, 128, .14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::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(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links .nav-cta { background: var(--text); color: var(--bg); }
.nav-links .nav-cta:hover { background: var(--text); color: var(--bg); opacity: .88; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(14, 165, 233, .20), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -50% -25%; width: 800px; height: 800px;
  background: radial-gradient(closest-side, rgba(20, 184, 166, .14), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) { .hero { padding: 88px 0 104px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }

.hero h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 800; margin: 20px 0 18px; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(18px, 2.2vw, 20px); color: var(--text-2); max-width: 34em; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--text-3); }

/* ---------- Store badges ----------
   Placeholders until the listings are live. Apple and Google both require
   their official badge artwork once the links are real — swap these for the
   downloaded SVGs at that point. */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 10px 20px 10px 16px;
  background: #000; color: #fff; border: 1px solid #3f3f46; border-radius: 12px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.store svg { width: 28px; height: 28px; flex: none; }
.store .small { display: block; font-size: 11px; line-height: 1.2; opacity: .85; }
.store .big { display: block; font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.store .soon {
  position: absolute; top: -9px; right: -8px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--amber); color: #1c1917; padding: 3px 8px; border-radius: 999px;
}

/* ---------- Phone mockup ---------- */

.phone-stage { display: flex; justify-content: center; }
.phone {
  width: min(330px, 100%);
  background: #0b1222; border-radius: 48px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #1e293b;
  transform: rotate(2deg);
}
.screen {
  background: #f8fafc; color: #0f172a; border-radius: 38px; overflow: hidden;
  padding: 18px 16px 22px; font-size: 13px; line-height: 1.45;
}
@media (prefers-color-scheme: dark) { .screen { background: #020617; color: #f1f5f9; } }
.island { width: 96px; height: 26px; background: #0b1222; border-radius: 999px; margin: -6px auto 14px; }
.screen-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.screen-head h4 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.screen-head p { color: #64748b; font-size: 12px; }
.streak { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; background: rgba(245, 158, 11, .14); color: #b45309; padding: 4px 10px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .streak { color: #fbbf24; } }
.qcard { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 14px; }
@media (prefers-color-scheme: dark) { .qcard { background: #0f172a; border-color: #1e293b; } }
.qtag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0284c7; margin-bottom: 6px; }
.qstem { font-weight: 600; margin-bottom: 12px; }
.opt { display: flex; gap: 8px; align-items: center; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 10px; margin-top: 6px; font-weight: 500; }
@media (prefers-color-scheme: dark) { .opt { border-color: #1e293b; } }
.opt b { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 7px; background: #f1f5f9; font-size: 11px; }
@media (prefers-color-scheme: dark) { .opt b { background: #1e293b; } }
.opt.right { border-color: #16a34a; background: #dcfce7; color: #14532d; }
.opt.right b { background: #16a34a; color: #fff; }
@media (prefers-color-scheme: dark) { .opt.right { background: rgba(74, 222, 128, .12); color: #bbf7d0; border-color: #22c55e; } }
.why { margin-top: 10px; font-size: 12px; color: #475569; border-left: 3px solid #16a34a; padding-left: 10px; }
@media (prefers-color-scheme: dark) { .why { color: #cbd5e1; } }
.mini-progress { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; color: #64748b; }
.mini-progress .bar { flex: 1; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
@media (prefers-color-scheme: dark) { .mini-progress .bar { background: #1e293b; } }
.mini-progress .bar span { display: block; height: 100%; width: 64%; background: var(--grad); border-radius: inherit; }

/* ---------- Sections ---------- */

section { padding: 80px 0; scroll-margin-top: 64px; }
.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 42px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 18px; }

/* Audience strip */
.audience { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.audience .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.audience span.label { font-size: 14px; color: var(--text-3); font-weight: 600; margin-right: 6px; }
.chip { font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }

/* Feature grid */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 16px; }
.feature .tag { display: inline-block; margin-left: 6px; vertical-align: 2px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--good); background: var(--good-soft); padding: 2px 8px; border-radius: 999px; }

/* Categories */
.cats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(6, 1fr); } }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 10px 16px;
  font-weight: 700; font-size: 14px;
}
.cat img { width: 72px; height: 72px; border-radius: 16px; }

/* Mastery explainer */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--grad); color: #fff; }
.steps h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.steps p { color: var(--text-2); font-size: 16px; }

.mastery-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.mastery-card h3 { font-size: 15px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.mrow { display: grid; grid-template-columns: 150px 1fr 44px; gap: 12px; align-items: center; margin-top: 12px; font-size: 15px; font-weight: 600; }
@media (max-width: 480px) { .mrow { grid-template-columns: 112px 1fr 40px; font-size: 14px; } }
.mrow .bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.mrow .bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.mrow .pct { text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 14px; }
.mastery-card .note { margin-top: 20px; font-size: 13px; color: var(--text-3); }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 960px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.plan.best { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .plan .ribbon { color: #082f49; } }
.plan h3 { font-size: 17px; font-weight: 700; color: var(--text-2); }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan .per { color: var(--text-3); font-size: 15px; }
.plan .save { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--good); background: var(--good-soft); padding: 3px 10px; border-radius: 999px; }
.pricing-notes { max-width: 720px; margin: 28px auto 0; text-align: center; color: var(--text-3); font-size: 14px; }
.free-callout { max-width: 960px; margin: 0 auto 28px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; text-align: center; background: var(--good-soft); color: var(--text); border-radius: 16px; padding: 14px 18px; font-weight: 600; }

/* Download CTA */
.cta {
  background: var(--grad); color: #fff; border-radius: 28px; padding: 48px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.cta img.cta-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.cta p { margin-top: 12px; color: #e0f2fe; font-size: 18px; }
.cta .stores { justify-content: center; }
.cta .store { border-color: rgba(255, 255, 255, .35); }

/* Support */
.support-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .support-grid { grid-template-columns: repeat(3, 1fr); } }
.support-grid .feature h3 { font-size: 18px; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--border); padding: 40px 0 48px; font-size: 14px; color: var(--text-3); }
footer .wrap { display: grid; gap: 24px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.disclaimer { max-width: 640px; margin-top: 10px; }

/* ---------- Legal page ---------- */

.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 800; }
.legal .updated { color: var(--text-3); margin-top: 10px; font-size: 15px; }
.legal .intro { font-size: 19px; color: var(--text-2); margin-top: 24px; }
.toc { margin: 32px 0 8px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.toc strong { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2 240px; column-gap: 32px; font-size: 15px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.legal h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; scroll-margin-top: 84px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); }

/* ---------- Question of the Day (qotd.js) ---------- */

.qotd {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); max-width: 760px; margin: 0 auto;
}
@media (min-width: 640px) { .qotd { padding: 32px; } }
.qotd-status { color: var(--text-3); text-align: center; padding: 24px 0; }
.qotd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.qotd-date, .qotd-cat { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.qotd-date { background: var(--brand-soft); color: var(--brand); }
.qotd-cat { background: var(--surface-2); color: var(--text-2); }
.qotd-stem { font-size: 18px; font-weight: 600; line-height: 1.55; }
.qotd-stem p + p, .qotd-explanation p + p { margin-top: 10px; }
.qotd-stem ul, .qotd-explanation ul { margin: 10px 0; padding-left: 22px; }
.qotd-hint { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--teal); }
.qotd-options { display: grid; gap: 10px; margin-top: 20px; }
.qotd-opt {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left;
  font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 14px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.qotd-opt b {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 8px; background: var(--surface-2); font-size: 14px;
}
.qotd-opt span { padding-top: 2px; }
.qotd-opt:hover:not(:disabled) { border-color: var(--brand); }
.qotd-opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.qotd-opt[aria-pressed="true"] b { background: var(--brand); color: #fff; }
.qotd-opt:disabled { cursor: default; }
.qotd-opt.is-right { border-color: var(--good); background: var(--good-soft); }
.qotd-opt.is-right b { background: var(--good); color: #fff; }
.qotd-opt.is-wrong { border-color: #dc2626; background: rgba(220, 38, 38, .08); }
.qotd-opt.is-wrong b { background: #dc2626; color: #fff; }
.qotd-submit {
  margin-top: 20px; width: 100%; font: inherit; font-weight: 800; font-size: 16px;
  color: #fff; background: var(--grad); border: 0; border-radius: 14px; padding: 14px; cursor: pointer;
}
.qotd-submit:disabled { opacity: .45; cursor: not-allowed; }
.qotd-verdict { margin-top: 22px; font-size: 20px; font-weight: 800; }
.qotd-verdict.right { color: var(--good); }
.qotd-verdict.wrong { color: #dc2626; }
@media (prefers-color-scheme: dark) { .qotd-verdict.wrong { color: #f87171; } }
.qotd-explanation { margin-top: 10px; color: var(--text-2); border-left: 3px solid var(--good); padding-left: 14px; }
.qotd-cta {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-2); border-radius: 14px; padding: 16px 18px;
}
.qotd-cta p { color: var(--text-2); font-size: 15px; flex: 1 1 260px; }
.qotd-cta a {
  font-weight: 800; text-decoration: none; color: var(--bg); background: var(--text);
  padding: 10px 16px; border-radius: 10px; white-space: nowrap;
}
.qotd-cta a:hover { color: var(--bg); opacity: .88; }
