/* landing.css — the marketing page. Tokens and primitives are in /shared/base.css. */

.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.head-nav { display: flex; gap: 4px; flex: 1; }
.head-nav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.head-nav a:hover { background: var(--surface-2); color: var(--ink); }

/* Hero: dark in both themes, drawn art behind the copy. */
.hero { position: relative; overflow: hidden; background: #06162a; color: #eef4fb; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); isolation: isolate; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #06162a 0%, rgba(6, 22, 42, .88) 38%, rgba(6, 22, 42, .25) 75%, rgba(6, 22, 42, .1) 100%); }
.hero-inner { max-width: 1120px; }
.hero-eyebrow { color: #5eead4; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); letter-spacing: -.03em; line-height: 1.05; max-width: 15ch; color: #fff; }
.hero-lead { margin-top: 18px; font-size: clamp(17px, 2vw, 20px); color: #c4d3e4; max-width: 40ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .btn-primary { background: #2dd4bf; border-color: #2dd4bf; color: #04201d; }
.hero .btn-primary:hover { background: #5eead4; border-color: #5eead4; }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.hero-note { margin-top: 14px; font-size: 14px; color: #93a8bf; }

/* Sections */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.025em; max-width: 24ch; }
.section-lead { margin-top: 12px; color: var(--ink-2); font-size: 17px; max-width: 60ch; }

/* Library: four drawn panels */
.lib-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.lib { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.lib:hover { border-color: var(--brand); transform: translateY(-2px); }
.lib img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #000; }
.lib-text { padding: 18px 20px 20px; display: grid; gap: 4px; align-content: start; }
.lib h3 { font-size: 20px; }
.lib p { color: var(--ink-2); font-size: 15px; }
.lib-count { color: var(--brand-strong); font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; min-height: 1.4em; }

.lib-try { margin-top: 8px; justify-self: start; font-weight: 650; font-size: 14px; color: var(--brand-strong); }
.lib-try::after { content: " →"; }

/* Header actions */
.head-actions { display: flex; gap: 8px; margin-left: auto; }
.btn-quiet { background: transparent; border-color: transparent; }
.btn-quiet:hover { background: var(--surface-2); }

/* Example case dialog: the app's case view in a frame */
dialog.demo { width: min(1180px, calc(100vw - 32px)); height: min(860px, calc(100vh - 32px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-2); overflow: hidden; }
dialog.demo[open] { display: flex; flex-direction: column; }
dialog.demo::backdrop { background: rgba(6, 22, 42, .7); }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.demo-title { flex: 1; font-size: 15px; }
.demo-close { width: 40px; height: 40px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-2); font-size: 18px; cursor: pointer; }
.demo-close:hover { background: var(--surface-2); }
.demo-frame { flex: 1; width: 100%; border: 0; background: var(--bg); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 20px; margin-top: 28px; }
.price-card { padding: 26px; display: grid; gap: 10px; align-content: start; }
.price-card h3 { font-size: 19px; }
.price-pro { border-color: var(--brand); box-shadow: var(--shadow-2); }
.price { font-size: 38px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-line { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.price-card .btn { justify-self: start; }

.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--muted); }
.foot-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-inner > div { display: grid; gap: 6px; max-width: 62ch; }
.foot-inner strong { color: var(--ink); font-size: 16px; }
.foot-disclaimer { font-size: 13px; }
.site-foot nav { display: grid; gap: 8px; align-content: start; }

/* Legal and 404 */
.doc { padding: 56px 0 80px; }
.doc .container { max-width: 760px; display: grid; gap: 16px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 21px; margin-top: 18px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .notice { background: var(--warn-soft); color: var(--warn); padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc-meta { font-size: 14px; color: var(--muted) !important; margin-top: -8px; }
.doc-lede { padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink) !important; }
.doc-links { display: grid; gap: 12px; }
.doc-links a { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
.doc-links a:hover { border-color: var(--brand); }
.doc-links strong { color: var(--brand-strong); }

@media (max-width: 900px) {
  .head-nav { display: none; }
  .head-inner { justify-content: space-between; }
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(180deg, rgba(6, 22, 42, .55) 0%, rgba(6, 22, 42, .9) 55%, #06162a 100%); }
  .hero-art { object-position: 30% 50%; }
  .lib-grid { grid-template-columns: minmax(0, 1fr); }
  .lib img { aspect-ratio: 16 / 9; }
  dialog.demo { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .head-actions .btn { padding-inline: 12px; }
  .head-inner { gap: 12px; }
}
@media (max-width: 440px) {
  .site-head .brand-mark span { display: none; }
  .head-actions { gap: 4px; }
}

.price-foot { margin-top: 18px; font-size: 14px; }
.hero-lead a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.faq { max-width: 780px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 68ch; }

/* MRCP guide (/mrcp) */
.guide .crumbs { font-size: 14px; color: var(--muted); }
.guide .crumbs a { color: var(--muted); }
.guide h2 { scroll-margin-top: 80px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 18px; }
.toc strong { font-size: 14px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; columns: 2; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.facts > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.blueprint { width: 100%; border-collapse: collapse; font-size: 15px; }
.blueprint th, .blueprint td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.blueprint th { font-size: 13px; color: var(--muted); font-weight: 600; }
.blueprint.counts td:last-child, .blueprint.counts th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.blueprint.stations td:first-child { width: 2.5em; font-variant-numeric: tabular-nums; }
.guide .faq { max-width: none; }
.sources { font-size: 15px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* ── UX review and SEO pass, 2026-11-19 (docs/UX_SEO_REVIEW.md) ─────────── */
/* Library cards: "Try a case" on one line across the row. */
.lib-text { display: flex; flex-direction: column; }
.lib-try { margin-top: auto; padding-top: 8px; align-self: flex-start; }

/* How a case works */
.how-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how { padding: 22px; display: grid; gap: 8px; align-content: start; }
.how h3 { font-size: 19px; }
.how p { color: var(--ink-2); font-size: 15px; }
.how-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: 15px; }

/* Where the answers come from */
.prov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.prov { padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.prov .tag { justify-self: start; }
.prov p { color: var(--ink-2); font-size: 15px; }
.prov-more { margin-top: 20px; color: var(--ink-2); }
.prov-more a { font-weight: 650; }

/* Pricing: the renewal said beside the price. */
.price-renew { margin-top: -6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* MRCP guide: four facts in one row, three in one row. */
.guide .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

@media (max-width: 900px) {
  /* Phone and tablet: the page links stay, on a row of their own under the brand. */
  .head-inner { flex-wrap: wrap; row-gap: 0; }
  .head-nav { display: flex; order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -12px; padding-bottom: 4px; }
  .head-nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
  .how-grid, .prov-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  /* The taller header does not follow the reader down a phone screen. */
  .site-head { position: static; }
}
@media (max-width: 560px) {
  .toc li a { display: inline-block; padding: 7px 0; }
}
/* Validation page: the three tags */
.prov-list { display: grid; gap: 12px; margin: 0; }
.prov-list > div { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prov-list dt .tag { font-size: 13px; }
.prov-list dd { margin: 0; color: var(--ink-2); }
/* Round 2 */
.price-card { grid-template-rows: auto auto auto 1fr auto; }
.price-card .btn { align-self: end; }
.lib[data-demo="sounds"] img { object-fit: contain; background: #fff; }
.guide .doc-lede a { white-space: nowrap; }
.faq details { padding: 0; }
.faq summary { padding-block: 16px; min-height: 44px; box-sizing: border-box; }
.faq details p { margin: 0 0 16px; }
@media (max-width: 640px) {
  .demo-close { flex: 0 0 44px; width: 44px; height: 44px; }
  .demo-bar .btn { min-height: 44px; }
}
@media (max-width: 560px) {
  .toc li a { display: flex; align-items: center; min-height: 44px; padding: 0; }
}

/* Guide pages (About, MRCP): a dark banner on the home page's drawn art, then the text. */
.page-hero { position: relative; overflow: hidden; background: #06162a; color: #eef4fb; padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 60px); isolation: isolate; }
.page-hero .hero-art { object-position: 100% 50%; }
.page-hero-alt .hero-art { object-position: 0% 50%; transform: scaleX(-1); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #06162a 0%, rgba(6, 22, 42, .92) 50%, rgba(6, 22, 42, .55) 80%, rgba(6, 22, 42, .3) 100%); }
.page-hero .container { max-width: 1120px; display: grid; gap: 12px; }
.page-hero .crumbs, .page-hero .crumbs a { color: #93a8bf; font-size: 14px; }
.page-hero .hero-eyebrow { margin: 6px 0 0; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.02em; line-height: 1.12; max-width: 30ch; }
.page-lede { color: #c4d3e4; font-size: clamp(16px, 1.8vw, 19px); max-width: 72ch; margin: 4px 0 0; }
.page-lede a { color: #5eead4; text-decoration: underline; text-underline-offset: 3px; }
.guide-body { padding-top: 36px; }
.guide-body .container { max-width: 1120px; }
.guide-body h2 { margin-top: 26px; }
.guide-body h2::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--brand); margin-bottom: 12px; }
.guide-body .how-grid-doc, .guide-body .prov-grid-doc { margin-top: 4px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-figures { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; }
.guide-figure { margin: 4px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.guide-figure img { display: block; width: 100%; height: auto; }
.guide-figure figcaption { padding: 8px 12px; font-size: 13px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.guide-figure-wide { max-width: 720px; }
.guide-cta { margin-top: 12px; }
@media (max-width: 720px) {
  .page-hero::before { background: linear-gradient(180deg, rgba(6, 22, 42, .5) 0%, rgba(6, 22, 42, .78) 45%, rgba(6, 22, 42, .9) 100%); }
  .page-hero .hero-art, .page-hero-alt .hero-art { object-position: 70% 50%; }
  .guide-body .how-grid-doc, .guide-body .prov-grid-doc, .guide-figures { grid-template-columns: minmax(0, 1fr); }
}

/* Sources page: one table per tag */
.guide-body h3 { font-size: 17px; margin-top: 8px; }
.sources-table td:first-child { width: 42%; font-weight: 600; color: var(--ink); }
.sources-table td:last-child { color: var(--ink-2); }
.guide-body h2 .tag { font-size: 15px; padding: 5px 12px; }
.table-note { margin: -8px 0 0; font-size: 13px; }
/* Phones: every link a finger can hit (44px), incl. footer links, breadcrumbs and the logo. */
@media (max-width: 640px) {
  .site-foot nav { gap: 0; }
  .site-foot nav a { display: flex; align-items: center; min-height: 44px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-head .brand-mark { min-height: 44px; min-width: 44px; }
}
