/*
 * Plainzy marketing site styles. Colours come ONLY from tokens.css (Cobalt, AAA-checked by
 * scripts/check-contrast.js); this file adds layout, type and components.
 * System fonts on purpose: no external font requests, nothing to load or to disclose in the privacy policy.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow, .container.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 12px 18px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { background: var(--nav-bg); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; line-height: 1; padding: 0; }
.wordmark span { color: var(--accent-mid); }
.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 10px; }
.site-nav a:hover { background: var(--bg-3); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent-mid); border-radius: 10px 10px 0 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 10px; }
.header-signin:hover { background: var(--bg-3); }

.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle:hover { background: var(--bg-3); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

@media (max-width: 640px) {
  .header-inner { gap: 4px 8px; }
  .header-actions { gap: 2px; }
  .header-signin { padding: 0 8px; }
  .header-actions .btn-small { padding: 0 14px; }
  .site-nav { order: 3; width: 100%; margin: 0 -14px; padding-bottom: 4px; }
  .site-nav a { padding: 0 12px; }
}

/* ---------- buttons ---------- */
button, input, select, textarea { font: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent-mid); }
.btn-secondary:hover { background: var(--accent-light); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .95rem; }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--mid); max-width: 38em; }
.eyebrow { display: inline-block; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-light); border: 1px solid var(--accent-border); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-3); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .lede { margin-bottom: 0; }
.kicker { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* ---------- hero ---------- */
.hero { padding: 44px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 28px 0 18px; }
.hero-note { color: var(--mid); font-size: .95rem; margin: 0; }
.trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--mid); font-size: .95rem; font-weight: 600; }
.trust li::before { content: "\2713"; color: var(--ok); font-weight: 800; margin-right: 8px; }
@media (max-width: 900px) { .hero { padding: 48px 0 56px; } .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; box-shadow: 0 1px 2px rgba(15,22,38,.04), 0 12px 32px -12px rgba(15,22,38,.18); }
:root[data-theme="dark"] .card { box-shadow: 0 12px 32px -12px rgba(0,0,0,.6); }
.sample { padding: 24px; }
.sample-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sample-label { font-size: .875rem; font-weight: 700; color: var(--mid); text-transform: uppercase; letter-spacing: .06em; }
.score { display: flex; align-items: center; gap: 14px; }
.score-num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--risk-medium); color: var(--badge-text-on-medium); font-weight: 800; font-size: 1.5rem; }
.score-text strong { display: block; font-size: 1rem; }
.score-text span { color: var(--mid); font-size: .9rem; }
.flags { display: grid; gap: 12px; }
.flag { border-radius: 14px; padding: 14px 16px; border: 1px solid; }
.flag strong { display: block; margin-bottom: 2px; }
.flag p { margin: 0; font-size: .95rem; }
.flag-red { background: var(--danger-bg); border-color: var(--danger-border); color: var(--ink); }
.flag-red strong { color: var(--danger); }
.flag-amber { background: var(--warn-bg); border-color: var(--warn-border); color: var(--ink); }
.flag-amber strong { color: var(--warn); }
.flag-green { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ink); }
.flag-green strong { color: var(--ok); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 28px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; margin-bottom: 16px; }
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; color: var(--mid); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- chat ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.chat { padding: 24px; display: grid; gap: 14px; }
.bubble { padding: 14px 18px; border-radius: 18px; max-width: 92%; font-size: .98rem; }
.bubble small { display: block; font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; color: var(--mid); }
.bubble-you { background: var(--primary); color: var(--on-primary); justify-self: end; border-bottom-right-radius: 6px; }
.bubble-you small { color: var(--on-primary); opacity: 1; }
.bubble-ai { background: var(--bg-3); color: var(--ink); border-bottom-left-radius: 6px; }
.ask-list { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 10px; }
.ask-list li { padding: 12px 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; font-weight: 600; }

/* ---------- before / after ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }
.pane { padding: 28px; }
.pane h3 { font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); margin-bottom: 14px; }
.pane-raw blockquote { margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--mid); line-height: 1.7; }
.pane-plain { border-color: var(--accent-border); background: var(--accent-light); }
.pane-plain h3 { color: var(--accent); }
.pill { display: inline-block; font-size: .875rem; font-weight: 700; background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.say { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--accent-border); }
.say strong { display: block; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }

.notice { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); margin-top: 32px; }
.notice p { margin: 0; color: var(--mid); max-width: none; }
.prose .notice { margin-top: 8px; }
.page-head .meta { margin-bottom: 0; }
.notice strong { color: var(--ink); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 32px; display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--accent-mid); position: relative; }
.plan-tag { position: absolute; top: -14px; left: 28px; background: var(--primary); color: var(--on-primary); font-size: .875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.plan h2, .plan h3 { font-size: 1.4rem; margin-bottom: .2em; }
.plan-desc { color: var(--mid); margin-bottom: 18px; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 1.05rem; font-weight: 600; color: var(--mid); letter-spacing: 0; }
.price-note { color: var(--mid); font-size: .95rem; margin: 8px 0 22px; min-height: 3em; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B5A26' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; border: 1px solid var(--ok-border); }
:root[data-theme="dark"] .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238EE3AF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238EE3AF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); } }
.plan .btn { width: 100%; }
.plan-aside { font-size: .95rem; color: var(--mid); margin: 0 0 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; min-height: 44px; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2.5px solid var(--accent-mid); border-bottom: 2.5px solid var(--accent-mid); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--mid); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: var(--on-primary); text-align: center; padding: 72px 0; }
.cta-band h2 { color: var(--on-primary); }
.cta-band p { color: var(--on-primary); opacity: .92; max-width: 34em; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .btn { background: var(--on-primary); color: var(--primary); }
.cta-band .btn:hover { filter: none; background: var(--accent-light); }

/* ---------- prose pages (legal, guides, support, 404) ---------- */
.page-head { padding: 64px 0 24px; }
.page-head .lede { margin-bottom: 0; }
.prose { padding-bottom: 80px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .meta { color: var(--mid); font-size: .95rem; }
.crumbs { font-size: .95rem; margin-bottom: 12px; }

.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.guide-card { display: flex; flex-direction: column; height: 100%; padding: 28px; text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--accent-mid); }
.guide-card .tag { align-self: flex-start; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-light); border: 1px solid var(--accent-border); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.guide-card h2 { font-size: 1.25rem; letter-spacing: -.01em; }
.guide-card p { color: var(--mid); margin: 0 0 16px; flex: 1; }
.guide-card .more { color: var(--accent); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--hairline); padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 380px; }
.footer-brand p { color: var(--mid); margin: 8px 0 0; }
.footer-note { font-size: .9rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 0 40px; align-content: start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: var(--mid); font-size: .9rem; margin-top: 32px; }

@media print {
  .site-header, .site-footer, .cta-band, .skip { display: none; }
  body { background: #fff; color: #000; }
}

/* =====================================================================
 * Laptop / wide-screen pass
 * Base container is 1200px; 1600px+ screens get 1360px. Reading columns (legal, guides) stay narrow.
 * ===================================================================== */
@media (min-width: 1600px) {
  .container { max-width: 1360px; }
  body { font-size: 1.125rem; }
  .hero-grid { gap: 80px; }
}
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .section { padding: 88px 0; }
  .section-head { max-width: 760px; }
}
/* hero must show headline, button and the whole example card on a 1366x768 screen */
@media (min-width: 900px) and (max-height: 860px) {
  .hero { padding: 32px 0 44px; }
  h1 { font-size: clamp(2.2rem, 3.6vw, 3rem); }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero-actions { margin: 22px 0 14px; }
  .trust { margin-top: 18px; }
}

/* how it works: one horizontal row with a line joining the steps */
@media (min-width: 861px) {
  .step { position: relative; }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 50px; left: 84px; right: -24px; height: 2px; background: var(--accent-border); z-index: 0; }
  .step::before { position: relative; z-index: 1; }
}

/* wide before/after with an arrow between the panes */
@media (min-width: 861px) {
  .compare { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
  .compare-arrow { display: grid; place-items: center; color: var(--accent-mid); font-size: 2rem; font-weight: 800; }
}
.compare-arrow { display: none; }
@media (min-width: 861px) { .compare-arrow { display: grid; } }

/* ---------- audience cards ---------- */
.audiences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .audiences { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .audiences { grid-template-columns: 1fr; } }
.audience { padding: 28px; display: flex; flex-direction: column; }
.audience p { color: var(--mid); }
.audience ul { margin: 0 0 24px; padding-left: 1.2em; flex: 1; }
.audience li { margin-bottom: .4em; }
.audience .btn { align-self: flex-start; }

/* ---------- "what we look at" ---------- */
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .looks { grid-template-columns: 1fr; } }
.look { padding: 28px; }
.look h3 { margin-bottom: .6em; }
.look ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.look li { font-size: .92rem; font-weight: 600; background: var(--accent-light); border: 1px solid var(--accent-border); color: var(--ink); padding: 6px 12px; border-radius: 999px; }

/* ---------- privacy points ---------- */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }
.point { padding: 24px; }
.point h3 { font-size: 1.05rem; margin-bottom: .4em; }
.point p { margin: 0; color: var(--mid); font-size: .97rem; }

/* ---------- paste box ---------- */
.try { padding: 32px; max-width: 880px; margin: 0 auto; }
.try label { display: block; font-weight: 700; margin-bottom: 10px; }
.try textarea { width: 100%; min-height: 150px; resize: vertical; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--border-2); background: var(--bg); color: var(--ink); font: inherit; line-height: 1.5; }
.try textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.try-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 16px; }
.try-note { color: var(--mid); font-size: .92rem; margin: 0; flex: 1; min-width: 220px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- wider FAQ on home ---------- */
@media (min-width: 1100px) { .faq-wide { max-width: 900px; } }

/* =====================================================================
 * Guides: sticky sidebar on desktop, article body styles
 * ===================================================================== */
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 80px; align-items: start; }
.guide-side { position: sticky; top: 92px; }
.guide-side .side-title { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); margin: 0 0 8px; }
.guide-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.guide-side a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.3; }
.guide-side a:hover { background: var(--bg-3); }
.guide-side a[aria-current="page"] { background: var(--accent-light); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent-mid); }
.guide { max-width: 740px; }
.guide h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.guide .meta { color: var(--mid); font-size: .95rem; margin-bottom: 28px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .guide-side { display: none; }
}
.article-body h2 { font-size: 1.5rem; margin-top: 2em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-risk, .article-callout { border-radius: 14px; padding: 16px 20px; margin: 1.4em 0; border: 1px solid; }
.article-risk { background: var(--danger-bg); border-color: var(--danger-border); }
.article-callout { background: var(--accent-light); border-color: var(--accent-border); }
.article-cta { background: var(--surface); border: 2px solid var(--accent-mid); border-radius: 20px; padding: 28px; margin: 2.4em 0 1em; }
.article-cta h3 { margin-top: 0; }
.article-cta p { color: var(--mid); }
.article-cta .btn { margin-top: 4px; }
.guide-disclaimer { margin-top: 24px; }
.guide h2.keep { font-size: 1.3rem; margin-top: 2em; }
.guide-related { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-related .guide-card { padding: 22px; }
.guide-related .guide-card h3 { font-size: 1.1rem; margin-bottom: 12px; flex: 1; }
@media (min-width: 1100px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } .guide-related { grid-template-columns: repeat(2, 1fr); } }

/* ---------- vector icons (inline SVG sprite in layout.html; colour follows the text) ---------- */
.ico { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.eyebrow, .tag { display: inline-flex; align-items: center; gap: 8px; }
.article-risk .ico { color: var(--danger); margin-right: 2px; }
.article-callout .ico { color: var(--accent); margin-right: 2px; }

/* ---------- support page ---------- */
.contact { padding: 28px; margin-bottom: 8px; }
.contact h2 { margin-top: 0; font-size: 1.3rem; }
.contact p:last-child { margin-bottom: 0; color: var(--mid); }
.prose .faq { margin-bottom: 16px; }

/* ---------- WCAG 2.2 AAA 1.4.8: measure of 80 characters or fewer ---------- */
.prose p, .prose li, .guide p, .guide li, .article-body p, .article-body li { max-width: 62ch; }
.article-risk p, .article-callout p, .article-cta p { max-width: 62ch; }

/* Dark mode: a bright slab is glaring, so the closing band becomes a dark panel with a blue edge. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-band { background: var(--surface); color: var(--ink); border-block: 1px solid var(--accent-border); }
  :root:not([data-theme="light"]) .cta-band h2, :root:not([data-theme="light"]) .cta-band p { color: var(--ink); }
  :root:not([data-theme="light"]) .cta-band .btn { background: var(--primary); color: var(--on-primary); }
}
:root[data-theme="dark"] .cta-band { background: var(--surface); color: var(--ink); border-block: 1px solid var(--accent-border); }
:root[data-theme="dark"] .cta-band h2, :root[data-theme="dark"] .cta-band p { color: var(--ink); }
:root[data-theme="dark"] .cta-band .btn { background: var(--primary); color: var(--on-primary); }

/* Guide call-to-action buttons have long labels: full width and centred on phones. */
@media (max-width: 520px) { .article-cta .btn { display: flex; justify-content: center; text-align: center; width: 100%; } }

/* Product demo video */
.demo { margin: 0; }
.demo video { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; border-radius: 16px; border: 1px solid var(--hairline); background: var(--surface); }
.demo figcaption { max-width: 640px; margin: 16px auto 0; }
.demo summary { cursor: pointer; font-weight: 700; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.demo ol { margin: 8px 0 0; padding-left: 1.4em; }
.demo li { margin-bottom: 8px; max-width: 62ch; }
/* Heading above each clip in the pair, so people know what it shows before pressing play */
.demo-title { margin: 0 0 14px; font-size: 1.15rem; line-height: 1.3; text-align: center; }
.demo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.demo-pair .demo video, .demo-pair .demo figcaption { max-width: 100%; }
@media (max-width: 720px) { .demo-pair { grid-template-columns: 1fr; } .demo-pair .demo video, .demo-pair .demo figcaption { max-width: 640px; } }
/* Demo and the next section share a background, so keep the combined gap modest */
#see-it { padding-bottom: 24px; }
.plan-intro { font-weight: 700; margin: 0 0 8px; color: var(--ink); }
/* keep reading columns at reading width on wide screens (beats the 1360px .container override) */
.container.narrow { max-width: 760px; }
