/* Static information pages (about, science, FAQ, legal, landing).
   They load styles.css first for the themes and fonts, then this file, which
   turns the app-shell body back into an ordinary scrolling document. */

body.page {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  display: block;
  -webkit-user-select: text;
  user-select: text;
}

.page a { color: var(--accent-2); text-underline-offset: 2px; }
.page a:hover { text-decoration-thickness: 2px; }
.page a:focus-visible, .page summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; padding: 8px 12px;
  background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 8px; z-index: 10;
}
.skip-link:focus { top: 8px; }

.site-head {
  max-width: 1080px; margin: 0 auto; width: 100%;
  padding: max(14px, env(safe-area-inset-top)) 16px 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px;
}
.site-brand { display: block; line-height: 0; text-decoration: none; margin-right: auto; }
.site-brand .wordmark { height: 36px; width: 98.8px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }
.site-nav a { padding: 10px 0; }
/* Buttons use the theme's blue with the page color as text, so contrast holds in every theme. */
.site-cta {
  background: var(--accent-2); color: var(--bg) !important; text-decoration: none; padding: 9px 18px;
  border-radius: 999px; font-weight: 700; font-size: 0.95rem; white-space: nowrap;
}
.site-cta:hover { opacity: 0.9; }

.page main {
  display: block; position: static; max-width: 760px; margin: 0 auto;
  padding: 24px 16px 48px; line-height: 1.65; font-size: 1.05rem;
}
.page h1, .page h2, .page h3, .hero2 h1 { font-family: var(--font-display); font-weight: 600; }
.page h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.2; margin: 8px 0 12px; }
.page h2 { font-size: 1.45rem; line-height: 1.3; margin: 2.2em 0 0.5em; }
.page h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }
.page p, .page ul, .page ol { margin: 0.8em 0; }
.page li { margin: 0.3em 0; }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 0; }
.meta { color: var(--muted); font-size: 0.9rem; }

.callout {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent-2);
  border-radius: var(--radius); padding: 12px 16px; margin: 1.4em 0;
}
.callout.warn { border-left-color: var(--accent); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--control); color: var(--muted); vertical-align: middle;
}
.badge.supported { background: color-mix(in srgb, #2e9d5b 25%, var(--control)); color: var(--text); }
.badge.mixed { background: color-mix(in srgb, #d6a21f 28%, var(--control)); color: var(--text); }
.badge.unsupported { background: color-mix(in srgb, var(--accent) 28%, var(--control)); color: var(--text); }

.page table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 0.97rem; }
.page th, .page td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.page th { background: var(--card); }
.table-wrap { overflow-x: auto; }

.page details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 16px; margin: 10px 0; }
.page summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.page details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }

.refs { padding-left: 1.4em; font-size: 0.97rem; }
.refs li { margin: 0.8em 0; }

.hero { padding: 24px 0 8px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.btn-link {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--control); color: var(--text) !important; border: 1px solid var(--border);
}
.btn-link.primary { background: var(--accent-2); color: var(--bg) !important; border-color: transparent; }
.btn-link.lg { padding: 14px 28px; font-size: 1.08rem; }
.btn-link:hover { opacity: 0.9; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1.2em 0; }
.cards > div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.cards h3 { margin-top: 0; }
.cards p { margin-bottom: 0; }

.draft-banner {
  background: color-mix(in srgb, var(--accent) 18%, var(--card)); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 12px 16px; margin: 0 0 1.4em;
}
.placeholder { background: color-mix(in srgb, #d6a21f 30%, transparent); padding: 0 3px; border-radius: 3px; }

.site-foot {
  max-width: 1080px; margin: 0 auto; padding: 28px 16px max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
.site-foot nav a { padding: 6px 0; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

@media (max-width: 640px) {
  .page main { font-size: 1rem; }
  .site-head { gap: 0 14px; }
  .site-cta { order: 2; }
  .site-nav { order: 3; flex-basis: 100%; gap: 0 16px; }
}
@media print {
  .site-head, .site-foot nav, .skip-link { display: none; }
}

/* ---- Marketing pages (landing, pricing) ---- */
.page main.wide { max-width: none; padding: 0; font-size: 1.05rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section > .wrap > h2:first-child { margin-top: 0; }
.section-lede { color: var(--muted); max-width: 62ch; margin: 0 0 1.4em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 0 0 8px; }

.hero2 { padding: 48px 0 40px; }
.hero2 .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero2 h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); margin: 0 0 14px; letter-spacing: -0.01em; }
.hero2 .lede { margin: 0 0 22px; }
.hero2 .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.trust-line { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 0.92rem; }
.trust-line li { margin: 0; }
.trust-line li + li::before { content: "\00b7\00a0\00a0"; color: var(--muted); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 28px 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature h3 { font-size: 1.5rem; margin: 0 0 10px; }
.feature p { margin: 0 0 0.8em; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--control); color: var(--muted); border: 1px solid var(--border); }
.tag.pro { color: var(--text); border-color: var(--accent-2); }

.steps { list-style: none; padding: 0; margin: 1.2em 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-2); color: var(--bg); font-weight: 700; margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { border: 0; border-bottom: 1px solid var(--border); padding: 12px 14px; }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--card); font-size: 1.05rem; }
.compare .yes { font-weight: 700; color: var(--accent-2); }
.compare .no { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 20%; }
.price-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin: 18px 0 0; }
.price-row strong { font-size: 1.15rem; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.trust > div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.trust h3 { margin: 0 0 6px; font-size: 1.05rem; }
.trust p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.cta-band { text-align: center; padding: 56px 0 64px; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0 0; }

.page h2:first-child, .section h2 { scroll-margin-top: 16px; }
@media (max-width: 820px) {
  .hero2 .wrap, .feature { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 40px 0; }
  .hero2 { padding: 28px 0 24px; }
}
@media (max-width: 420px) {
  .compare th, .compare td { padding: 10px 8px; font-size: 0.93rem; }
  .compare td:not(:first-child), .compare th:not(:first-child) { width: 22%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- Surface and shape language (see the end of src/styles/styles.css) ---------- */
.hero2 { background: var(--grad-wash); }
.cta-band { background-image: var(--grad-wash); }
.cards > div, .steps li, .trust > div, .page details, .compare { box-shadow: var(--shadow-sm); }
.shot { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.tag { padding: 3px 11px; border-radius: var(--radius-pill); }
.tag.pro { color: var(--accent-2); border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 10%, transparent); }
.btn-link { border-radius: var(--radius-pill); }
.btn-link.primary { box-shadow: var(--glow-soft); }

/* Labels and callouts (design audit): the eyebrow style stays for pages that still have one but loses its capitals; callouts get a full border. */
.eyebrow, .badge { text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 600; }
.callout { border: 1px solid color-mix(in srgb, var(--accent-2) 40%, var(--border)); border-radius: var(--radius); background: color-mix(in srgb, var(--accent-2) 7%, var(--card)); }
.trust-line { gap: 6px 22px; }
.trust-line li + li::before { content: none; }
