/* certmonk.app landing page. Fonts, buttons, header, footer and store badges are in css/chrome.css
   (shared with the guides). Palette and type: docs/planning/MARKETING_PLAN_2026_09_27.md §23.
   Self-hosted fonts (font-src 'self'), no scripts, no inline styles. */
:root {
  --bg: #ffffff; --bg-subtle: #f6faf7; --surface: #ffffff; --border: #e1ebe5;
  --ink: #16292c; --muted: #4f6467; --deep: #0b2a26; --primary: #1f7a5e; --primary-hover: #17664f;
  --mint: #c4ead3; --mint-soft: #e7f6ee; --jade: #22c58b; --ember: #ff9a3c; --ember-deep: #b4460f; --gold: #ffd36e;
  --hero: linear-gradient(135deg, #0b2a26 0%, #123c36 60%, #1f7a5e 100%);
  --shadow-sm: 0 1px 2px rgba(11,42,38,.06), 0 1px 3px rgba(11,42,38,.08);
  --shadow-md: 0 8px 24px rgba(11,42,38,.10);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1a19; --bg-subtle: #15302c; --surface: #15302c; --border: #24453f; --ink: #e6f1ec; --muted: #a9bdb7; --primary: #34c08f; --primary-hover: #58cfa4; --mint-soft: #1d3f38; }
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 "Inter", system-ui, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; max-width: 70ch; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ember-deep); outline-offset: 3px; border-radius: 8px; box-shadow: 0 0 0 6px rgba(255,154,60,.35); }

.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.fine { font-size: 14px; color: var(--muted); }
.sub { color: var(--muted); font-size: 19px; }
.mono, .code { font-family: "JetBrains Mono", ui-monospace, monospace; font-feature-settings: "tnum"; }
.code { font-size: 13px; color: var(--muted); }

/* Hero */
.hero { background: var(--cm-hero); color: #fff; padding: 48px 0 72px; }
.hero :focus-visible { outline-color: var(--gold); box-shadow: none; }
.hero .eyebrow { color: var(--gold); }
.hero .fine { color: #c9ddd5; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } .hero { padding: 72px 0 88px; } }
.lead { font-size: 20px; color: #e6f1ec; }
.glow { color: var(--gold); }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); font-weight: 700; color: #bfe3d3; margin: 10px 0 14px; line-height: 1.35; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero .badges { margin-bottom: 18px; }

/* Hero question card: a real sample, radio buttons and CSS only (:has and :checked) */
.q { background: #fff; color: #10231f; border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.q .meta { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 14px; color: #42665a; margin: -22px -22px 16px; padding: 14px 22px; background: #0b2a26; color: #fff; border-radius: 18px 18px 0 0; }
.q .meta span:last-child { color: var(--gold); font-weight: 600; }
.q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q legend { font: 600 16.5px/1.45 "Inter", system-ui, sans-serif; padding: 0; margin-bottom: 14px; }
.q label { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1.5px solid #d3e0d9; border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-size: 15.5px; line-height: 1.4; }
.q input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q label b { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: #f1f6f3; font-size: 13px; }
.q label:hover { border-color: #1f7a5e; }
.q label:has(input:focus-visible) { outline: 3px solid #b4460f; outline-offset: 2px; }
.q label:has(input:checked) { border-color: #b3261e; background: #fdf1f0; }
.q label:has(input:checked) b { background: #b3261e; color: #fff; }
.q label.right:has(input:checked) { border-color: #1f7a5e; background: #e9f6ef; }
.q fieldset:has(input:checked) label.right { border-color: #1f7a5e; background: #e9f6ef; }
.q fieldset:has(input:checked) label.right b { background: #1f7a5e; color: #fff; }
.q .why { display: none; margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #f1f6f3; font-size: 15px; }
.q .why p { margin: 0 0 .6em; max-width: none; }
.q .why p:last-child { margin: 0; }
.q .w { display: none; }
.q fieldset:has(input:checked) ~ .why { display: block; }
.q fieldset:has(#o-a:checked) ~ .why .w-a, .q fieldset:has(#o-b:checked) ~ .why .w-b, .q fieldset:has(#o-c:checked) ~ .why .w-c { display: block; }
.q .next { display: none; margin-top: 14px; }
.q fieldset:has(input:checked) ~ .next { display: inline-flex; }
.q .hint { font-size: 13px; color: #5a6f67; margin: 12px 0 0; }
.q fieldset:has(input:checked) ~ .hint { display: none; }
@supports not selector(:has(*)) { .q .why, .q .w, .q .next { display: block; } .q .hint { display: none; } }
@media (prefers-reduced-motion: no-preference) { .q label { transition: background-color .15s, border-color .15s; } }

/* Sections */
.section { padding-top: 80px; padding-bottom: 80px; }
.band { background: var(--bg-subtle); }
.grid3, .grid2 { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } .grid2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); }
.card p { color: var(--muted); margin: 0; }
.featured { border: 2px solid var(--primary); }
.ico-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--mint-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; }
.ticks li { padding: 6px 0 6px 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* Real screenshots in a phone frame */
.phones { display: grid; gap: 44px; margin-top: 36px; justify-items: center; }
@media (min-width: 760px) { .phones { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.shot { margin: 0; text-align: center; max-width: 300px; }
.phone { width: min(100%, 250px); aspect-ratio: 9 / 19.3; border-radius: 34px; padding: 9px; background: #0d1117; box-shadow: 0 1px 0 #2a323c inset, 0 30px 50px -28px rgba(8,20,30,.55); position: relative; margin: 0 auto 18px; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 64px; height: 16px; margin-left: -32px; border-radius: 10px; background: #0d1117; z-index: 2; }
.phone img { display: block; width: 100%; height: 100%; border-radius: 26px; object-fit: cover; object-position: top; background: #fff; }
.shot figcaption strong { display: block; font: 700 19px/1.3 "Plus Jakarta Sans", "Inter", sans-serif; margin-bottom: 4px; }
.shot figcaption span { color: var(--muted); font-size: 16px; }

/* Certifications: compact chips grouped by vendor */
.group-title { font-size: 19px; margin: 36px 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.group-title span { font: 600 14px/1 "Inter", sans-serif; color: var(--muted); }
.vrow { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--border); }
@media (min-width: 760px) { .vrow { grid-template-columns: 150px 1fr; gap: 20px; align-items: start; } }
.vrow h4 { margin: 7px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.chips .code { margin-left: 6px; }
.chips a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Cert Pass price */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 4px; }
.price b { font: 800 clamp(44px, 7vw, 60px)/1 "Plus Jakarta Sans", "Inter", sans-serif; letter-spacing: -.03em; color: var(--primary); }
.price span { color: var(--muted); font-weight: 600; }
.bundle { font-weight: 700; margin: 0 0 18px; color: var(--ink); }
.card .bundle { color: var(--ink); }

.cta-band { background: var(--cm-hero); color: #fff; padding: 72px 0; text-align: center; }
.cta-band h2 { margin-bottom: 24px; }
.cta-band .badges { justify-content: center; margin-top: 24px; }

/* 404 */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 main { flex: 1 0 auto; background: var(--cm-hero); color: #fff; display: flex; align-items: center; padding: 56px 0; }
.page-404 .badges { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
