/* BrilliantTakes — shared styles.
   Dark is the default appearance, matching the app; a light appearance follows the system setting.
   Amber is the primary action colour and always carries the dark foreground (--on-accent).
   Green appears only as a restrained secondary accent and is never the only status cue. */

:root {
  color-scheme: dark;
  --bg: #0f1012;
  --panel: #16171a;
  --surface: #1e2023;
  --hover: #292b2f;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f5f5f7;
  --text-secondary: #b8bcc4;
  --accent: #e8ae49;
  --accent-hover: #f1bd61;
  --on-accent: #17120a;
  --link: #e8ae49;
  --green: #5fa37f;
  --danger: #e07a5f;
  --media-bg: #000;
  --content-max: 75rem;
  --reading-max: 65ch;
  --radius: 1rem;
  --header-h: 64px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f8f8f6;
    --panel: #ffffff;
    --surface: #efefeb;
    --hover: #e5e5df;
    --line: #d5d7dc;
    --line-strong: #b9bcc3;
    --text: #15171a;
    --text-secondary: #50565f;
    --link: #8a5f10;
    --green: #2f6a4c;
    --danger: #b3412a;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f8f6;
  --panel: #ffffff;
  --surface: #efefeb;
  --hover: #e5e5df;
  --line: #d5d7dc;
  --line-strong: #b9bcc3;
  --text: #15171a;
  --text-secondary: #50565f;
  --link: #8a5f10;
  --green: #2f6a4c;
  --danger: #b3412a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, video { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
p { margin: 0; }
ul { margin: 0; }

a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [role="tab"]:focus-visible, video:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 60;
  font-family: var(--display); font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

/* ---- type ---- */

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 4rem); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: clamp(2rem, 1.2rem + 2vw, 2.75rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 700; }
h1.page-title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); }

.eyebrow { font-family: var(--display); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
:root[data-theme="light"] .eyebrow { color: var(--link); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .eyebrow { color: var(--link); } }

.lede { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem); color: var(--text-secondary); max-width: var(--reading-max); }
.lede.compact { font-size: 1.0625rem; }
.small { font-size: 0.875rem; color: var(--text-secondary); }
.endcap { font-family: var(--display); font-weight: 700; color: var(--text); }
.note { font-size: 0.9375rem; color: var(--text-secondary); max-width: var(--reading-max); }

/* ---- layout ---- */

.shell { max-width: var(--content-max); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.reading { max-width: var(--reading-max); }

section.band { padding-block: clamp(2.5rem, 1.2rem + 5.5vw, 5.5rem); }
.band.rule { border-top: 1px solid var(--line); }
.band.panelled { background: var(--panel); }
.band[id], .demo { scroll-margin-top: calc(var(--header-h) + 8px); }

.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-tight { display: flex; flex-direction: column; gap: 12px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.grid-2 > *, .grid-3 > * { min-width: 0; }

/* ---- header ---- */

header.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
/* Brand logo (assets/brand): two images, one shown per the ACTUAL page theme (dark is the default; light follows the same rules as the colour tokens above). */
.brand-link { text-decoration: none; display: inline-flex; align-items: center; flex-shrink: 0; padding: 4px 8px; margin-left: -8px; min-height: 44px; border-radius: 8px; }
.brand-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.brand-logo { display: block; width: 240px; max-width: 100%; height: auto; }
.brand-logo.logo-on-light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand-logo.logo-on-dark { display: none; }
  :root:not([data-theme="dark"]) .brand-logo.logo-on-light { display: block; }
}
:root[data-theme="light"] .brand-logo.logo-on-dark { display: none; }
:root[data-theme="light"] .brand-logo.logo-on-light { display: block; }
:root[data-theme="dark"] .brand-logo.logo-on-light { display: none; }
:root[data-theme="dark"] .brand-logo.logo-on-dark { display: block; }
header.top .brand-logo { width: 240px; }
footer.site .brand-link { align-self: flex-start; }
footer.site .brand-logo { width: 190px; }
@media (max-width: 960px) { header.top .brand-logo { width: 200px; } }
@media (max-width: 480px) { header.top .brand-logo { width: 180px; } }
.brand-tm { align-self: flex-start; margin: 0.75em 0 0 -0.3em; font-family: var(--body); font-size: 0.75rem; line-height: 1; color: var(--text-secondary); }
footer.site .brand-tm { margin-top: 0.3em; }
.brand-mark { display: none; width: 44px; height: auto; }
/* Narrow phones: the Menu button becomes the usual three-line icon (its text stays for screen readers) so the full logo fits beside the Notify button;
   on the very narrowest screens the logo is replaced by the standalone mark, as the logo guide says (full logo is not shown below 180 px). */
@media (max-width: 480px) {
  header.top .shell { gap: 6px; padding-inline: 16px; }
  header.top .menu-btn { font-size: 0; min-width: 44px; padding: 0; position: relative; justify-content: center; }
  header.top .menu-btn::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  header.top .nav-cta { padding-inline: 12px; }
}
@media (max-width: 370px) {
  header.top .brand-logo { display: none !important; }
  header.top .brand-mark { display: block; }
  header.top .brand-tm { display: none; }
}

header.top .shell { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); position: relative; }

header.top nav#site-nav { display: flex; gap: 6px; align-items: center; margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
header.top nav#site-nav a.nav-link {
  color: var(--text-secondary); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; padding-inline: 12px; border-radius: 8px;
}
header.top nav#site-nav a.nav-link:hover, header.top nav#site-nav a.nav-link[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav-cta { white-space: nowrap; }
.menu-btn {
  display: none; min-height: 44px; min-width: 44px; padding: 0 14px;
  font: inherit; font-family: var(--display); font-weight: 600; font-size: 0.9375rem;
  background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer;
}
.menu-btn:hover { background: var(--hover); }

@media (max-width: 760px) {
  header.top .shell { gap: 8px; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  header.top nav#site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
    padding: 8px clamp(20px, 4vw, 48px) 14px;
  }
  header.top nav#site-nav.open { display: flex; }
  header.top nav#site-nav a.nav-link { min-height: 48px; font-size: 1.0625rem; border-radius: 0; border-bottom: 1px solid var(--line); padding-inline: 4px; }
  header.top nav#site-nav a.nav-link:last-child { border-bottom: 0; }
}
@media (max-width: 420px) {
  .nav-cta .cta-extra { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- buttons ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  border: 0; border-radius: 10px; cursor: pointer;
  text-decoration: none; transition: background 150ms ease;
}
.btn:hover, .btn:focus-visible, .btn:active, .btn:visited { color: var(--on-accent); }
.btn:hover { background: var(--accent-hover); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-quiet { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-quiet:hover, .btn-quiet:focus-visible, .btn-quiet:active, .btn-quiet:visited { color: var(--text); }
.btn-quiet:hover { background: var(--hover); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }

/* ---- hero ---- */

.hero { padding-block: clamp(2rem, 1rem + 5vw, 5rem) clamp(2.5rem, 1.2rem + 5.5vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero.has-media .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
@media (max-width: 900px) { .hero.has-media .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero .support-line { font-size: 0.9375rem; color: var(--text-secondary); font-weight: 500; }
.hero .support-line .sep { color: var(--green); padding-inline: 6px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-copy h1 { max-width: 20ch; }
.hero.has-media .hero-copy h1 { font-size: clamp(2.125rem, 1.1rem + 2.4vw, 3.25rem); }
.hero:not(.has-media) .hero-copy { max-width: 46rem; }

/* ---- forms ---- */

.signup { display: flex; flex-direction: column; gap: 10px; max-width: 32rem; }
.signup .row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"], .form input, .form textarea {
  flex: 1 1 15rem; min-width: 0; width: 100%;
  font: inherit; font-size: 1rem; min-height: 48px;
  padding: 12px 14px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.signup input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.signup .status, .form .status { font-size: 0.9375rem; min-height: 1.4em; }
.status[data-state="error"] { color: var(--danger); font-weight: 600; }
.status[data-state="confirmed"] { color: var(--green); font-weight: 600; }
.status[data-state="submitting"] { color: var(--text-secondary); }
.status[data-state="error"]::before { content: "Problem: "; }
.status[data-state="confirmed"]::before { content: "Done: "; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form { display: flex; flex-direction: column; gap: 14px; max-width: 34rem; }
.form label { font-family: var(--display); font-size: 0.875rem; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.form textarea { min-height: 7rem; resize: vertical; }

/* ---- cards & misc ---- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex; flex-direction: column; gap: 10px;
}
.band.panelled .card { background: var(--surface); }
.card p { color: var(--text-secondary); }
.card > a, .card p a { font-weight: 600; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 12px; }
.steps .step-head { display: flex; align-items: center; gap: 14px; }
.steps .step-head::before {
  content: counter(s);
  font-family: var(--display); font-weight: 800; font-size: 1rem;
  color: var(--on-accent); background: var(--accent);
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.steps .step-icon { width: 100%; max-width: 12rem; height: auto; color: var(--text-secondary); }
.steps strong { display: block; font-family: var(--display); font-size: 1.1875rem; }
.steps p { color: var(--text-secondary); }

.qa { display: flex; flex-direction: column; gap: 22px; max-width: var(--reading-max); }
.qa h3 { font-size: 1.0625rem; }
.qa p { color: var(--text-secondary); margin-top: 6px; }
.qa.wide { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 40px); }
@media (max-width: 800px) { .qa.wide { grid-template-columns: minmax(0, 1fr); } }


.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: minmax(0, 1fr); } }

footer.site { border-top: 1px solid var(--line); padding-block: 36px 48px; margin-top: clamp(32px, 5vw, 64px); }
footer.site .shell { display: flex; flex-direction: column; gap: 14px; }
footer.site nav { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 0.9rem; }
footer.site nav a { color: var(--text-secondary); min-height: 44px; display: inline-flex; align-items: center; }
footer.site .small { max-width: 60ch; }

/* ---- feature rows (How it works) ----
   DOM order is always text then demonstration, so small screens stack text first.
   Desktop: about 5fr text / 7fr media; .flip puts the media on the left. */

.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.demo.has-media .demo-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.demo.has-media.flip .demo-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.demo.has-media.flip .demo-grid > .copy { order: 2; }
.demo.has-media.flip .demo-grid > .media { order: 1; }
@media (max-width: 800px) {
  .demo.has-media .demo-grid, .demo.has-media.flip .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo.has-media.flip .demo-grid > .copy, .demo.has-media.flip .demo-grid > .media { order: 0; }
}
.demo .copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.demo .copy .lede { max-width: 40ch; }

details.disclosure { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; background: var(--panel); }
details.disclosure > summary { font-family: var(--display); font-weight: 600; cursor: pointer; min-height: 48px; display: flex; align-items: center; }
details.disclosure > :not(summary) { margin-bottom: 14px; }
details.disclosure p { color: var(--text-secondary); margin-top: 10px; }
details.disclosure ul { color: var(--text-secondary); padding-left: 1.2rem; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.band.panelled details.disclosure { background: var(--surface); }
.disclosure-stack { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }

/* ---- media component ---- */

.media { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.media-frame { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--media-bg); }
.media-frame video, .media-frame img { display: block; width: 100%; height: auto; object-fit: contain; background: var(--media-bg); border-radius: 0; }
.media figcaption { font-size: 0.875rem; color: var(--text-secondary); max-width: 60ch; }

/* Portrait outputs: contained, intrinsic width, controlled height, centred in their column. */
.media[data-orient="portrait"] .media-frame { width: auto; max-width: 100%; margin-inline: auto; }
.media[data-orient="portrait"] .media-frame video, .media[data-orient="portrait"] .media-frame img {
  width: auto; max-width: 100%; height: min(36rem, 80vh); object-fit: contain;
}
@media (max-width: 800px) {
  .media[data-orient="portrait"] .media-frame video, .media[data-orient="portrait"] .media-frame img { height: min(32rem, 72vh); }
}

.media-toggle {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  min-width: 44px; min-height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-family: var(--display); font-weight: 600; font-size: 0.875rem;
  background: rgba(15, 16, 18, 0.82); color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; cursor: pointer;
}
.media-toggle:hover { background: rgba(15, 16, 18, 0.95); }
.media-toggle svg { width: 14px; height: 14px; fill: currentColor; flex: none; }

.media-play {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.25); border: 0; cursor: pointer; color: #fff; font: inherit;
}
.media-play span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--on-accent); border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
}
.media-play svg { width: 16px; height: 16px; fill: currentColor; }
.media-play:hover span { background: var(--accent-hover); }

.media-error {
  position: absolute; inset: auto 0 0 0; z-index: 3; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 12px 14px; background: rgba(15, 16, 18, 0.92); color: #f5f5f7; font-size: 0.9375rem;
}
.media-error button { min-height: 44px; padding: 0 16px; font: inherit; font-weight: 600; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; cursor: pointer; }
.media-meta { font-size: 0.8125rem; color: var(--text-secondary); }
.media-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.875rem; }

/* poster-only teaser images */
.teaser-img { display: block; width: 100%; border-radius: calc(var(--radius) - 4px); border: 1px solid var(--line); background: var(--media-bg); object-fit: cover; }
.teaser-img[data-orient="landscape"] { aspect-ratio: 16 / 9; }
.teaser-img[data-orient="portrait"] { aspect-ratio: 9 / 16; max-height: 22rem; width: auto; margin-inline: auto; object-fit: contain; }
.card .teaser-img { margin-bottom: 4px; }

/* ---- finished-example selector ---- */

.tablist { display: flex; gap: 8px; flex-wrap: wrap; }
.tablist [role="tab"] {
  font-family: var(--display); font-weight: 600; font-size: 0.9375rem;
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--line-strong); border-radius: 999px;
  min-height: 44px; padding: 0 20px; cursor: pointer;
}
.tablist [role="tab"]:hover { background: var(--hover); color: var(--text); }
.tablist [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tabpanel {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: clamp(18px, 2.5vw, 28px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: center;
}
.tabpanel:not(.has-media) { grid-template-columns: minmax(0, 1fr); }
.tabpanel .panel-copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tabpanel .panel-copy h3 { font-size: 1.375rem; }
.tabpanel .fmt { font-family: var(--display); font-size: 0.8125rem; font-weight: 700; color: var(--green); letter-spacing: 0.04em; text-transform: uppercase; }
.tabpanel ul { color: var(--text-secondary); padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 800px) { .tabpanel { grid-template-columns: minmax(0, 1fr); } }

/* ---- privacy + founder, conversion ---- */

/* Founder story (index.html #our-story). Text-only by default; a photo column appears only when SITE_CONFIG.assets.founderPortrait is set. */
.band.story { background: color-mix(in srgb, var(--panel) 45%, var(--bg)); padding-block: clamp(3rem, 1.5rem + 5vw, 5rem); }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
.story-layout.has-photo { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; }
.story-text { max-width: 45rem; display: flex; flex-direction: column; gap: 16px; }
.story-text .eyebrow { margin: 0 0 -4px; font-size: 0.8125rem; }
.story-text h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem); line-height: 1.15; font-weight: 700; margin: 0 0 8px; text-wrap: balance; }
.story-text p { font-size: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem); line-height: 1.6; color: var(--text-secondary); margin: 0; max-width: 66ch; }
.story-text p.story-close { color: var(--text); font-weight: 600; margin-top: 8px; }
.story-photo { margin: 0; }
.story-photo img { display: block; width: 100%; height: auto; border-radius: 12px; object-fit: cover; }
@media (max-width: 800px) { .story-layout.has-photo { grid-template-columns: minmax(0, 1fr); } .story-photo { max-width: 24rem; } }
.preview-note { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px 16px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* comparison table (homepage #compare): a real table on wide screens, stacked cards on phones */
.table-wrap { max-width: 62rem; }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-top: 1px solid var(--line); }
table.compare thead th { border-top: 0; font-family: var(--display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em; color: var(--text-secondary); background: var(--panel); }
table.compare tbody th { font-family: var(--display); font-weight: 700; width: 18%; }
table.compare td { color: var(--text-secondary); width: 41%; }
table.compare tr.ours th, table.compare tr.ours td { color: var(--text); background: var(--panel); }
@media (max-width: 700px) {
  table.compare, table.compare tbody, table.compare tr, table.compare th, table.compare td { display: block; width: auto; }
  table.compare { background: none; border: 0; border-radius: 0; }
  table.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.compare tbody { display: flex; flex-direction: column; gap: 14px; }
  table.compare tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 0; }
  table.compare th, table.compare td { border-top: 0; padding: 10px 16px; }
  table.compare tbody th { width: auto; font-size: 1.0625rem; }
  table.compare td::before { content: attr(data-label); display: block; font-family: var(--display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--text-secondary); margin-bottom: 2px; }
  table.compare tr.ours { background: var(--panel); }
}

/* numbered and plain lists inside the demo copy blocks */
.copy ol.views, .copy ul.plain { display: flex; flex-direction: column; gap: 8px; padding-left: 1.25rem; color: var(--text-secondary); max-width: var(--reading-max); }
.copy ol.views li::marker { font-family: var(--display); font-weight: 700; color: var(--text); }
.copy ol.views strong, .copy ul.plain strong { color: var(--text); }
