/* ============================================================
   Lectern — landing page
   Warm paper & ink. Literary, calm, made for readers.
   Light = ivory paper, dark = evening reading lamp.
   System serifs only — no web fonts, no external calls.
   ============================================================ */

:root {
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --reader-paper: #FAF6EA;
  --reader-ink: #2A2722;
}

/* ---- Light: warm ivory paper ---- */
[data-theme="light"] {
  --bg: #F7F1E3;
  --bg-2: #F1E8D6;
  --surface: #FDFAF1;
  --surface-2: #FBF6E9;
  --border: rgba(74,56,32,.14);
  --border-2: rgba(74,56,32,.24);
  --text: #2A2620;
  --text-dim: #5C5447;
  --text-faint: #6B6253;
  --status-ok: #2E7D52;
  --status-error: #B23C2A;
  --accent: #8F5226;          /* warm terracotta-amber ink (AA on paper) */
  --accent-2: #7C4A6A;        /* muted plum, used sparingly */
  --accent-ink: #FDF7EC;
  --accent-soft: rgba(143,82,38,.12);
  --header-bg: rgba(247,241,227,.82);
  --shadow: 0 20px 46px -30px rgba(74,48,18,.42);
  color-scheme: light;
}

/* ---- Dark: evening reading lamp, warm espresso ---- */
[data-theme="dark"] {
  --bg: #15110C;
  --bg-2: #1B1610;
  --surface: #211A12;
  --surface-2: #281F15;
  --border: rgba(255,238,214,.10);
  --border-2: rgba(255,238,214,.18);
  --text: #ECE2D0;
  --text-dim: #AB9E89;
  --text-faint: #998D79;
  --status-ok: #4FBE85;
  --status-error: #E8806B;
  --accent: #E0A35C;          /* brass / candlelight glow */
  --accent-2: #C99FC0;        /* soft plum */
  --accent-ink: #1A130B;
  --accent-soft: rgba(224,163,92,.16);
  --header-bg: rgba(21,17,12,.74);
  --shadow: 0 20px 52px -28px rgba(0,0,0,.85);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* the faintest warmth toward the edges, like aged paper */
  background-image: radial-gradient(120% 80% at 50% -10%, var(--accent-soft), transparent 60%);
  background-attachment: fixed;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.14; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.95rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.accent { color: var(--accent); font-style: italic; }

/* Eyebrow — a literary kicker, not a dev label */
.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem; font-weight: 500; letter-spacing: .005em;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: currentColor; opacity: .55; vertical-align: middle;
  margin-right: 12px; margin-bottom: 4px;
}
.section-head .eyebrow::before { display: none; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-weight: 600; font-size: .96rem; border-radius: 11px; padding: 12px 20px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 15px; font-size: .9rem; }
.btn-lg { padding: 15px 24px; font-size: 1.02rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-play { background: var(--text); color: var(--bg); padding: 10px 20px; gap: 12px; border-radius: 12px; }
.btn-play:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-play span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn-play small { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.btn-play strong { font-size: 1.02rem; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  background: var(--header-bg); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 700; letter-spacing: 0; font-size: 1.3rem; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: 16px; }
.nav > a { color: var(--text-dim); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav > a:hover { color: var(--accent); }

/* Header dropdowns (Guides / Compare) */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-weight: 500; font-size: .95rem;
  color: var(--text-dim); background: none; border: 0; padding: 0; cursor: pointer;
  transition: color .2s;
}
.nav-drop-btn:hover,
.nav-drop:hover .nav-drop-btn,
.nav-drop.open .nav-drop-btn,
.nav-drop:focus-within .nav-drop-btn { color: var(--accent); }
.nav-drop-btn .caret { transition: transform .2s var(--ease); }
.nav-drop:hover .nav-drop-btn .caret,
.nav-drop.open .nav-drop-btn .caret,
.nav-drop:focus-within .nav-drop-btn .caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px; display: grid; gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 60;
}
/* invisible bridge across the gap so hover doesn't drop the menu */
.nav-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nav-menu,
.nav-drop.open .nav-menu,
.nav-drop:focus-within .nav-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  display: block; padding: 9px 12px; border-radius: 8px; white-space: nowrap;
  color: var(--text-dim); font-size: .92rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--accent-soft); color: var(--accent); outline: none; }
@media (prefers-reduced-motion: reduce) {
  .nav-menu, .nav-drop-btn .caret { transition: none; }
}

/* Language selector (globe menu, right-aligned so it never overflows) */
.lang-drop .nav-drop-btn { gap: 4px; }
.lang-drop .nav-drop-btn span { font-weight: 600; font-size: .82rem; letter-spacing: .02em; }
.lang-drop .nav-menu { left: auto; right: 0; min-width: 160px; transform: translateX(0) translateY(6px); }
.lang-drop:hover .nav-menu, .lang-drop.open .nav-menu, .lang-drop:focus-within .nav-menu { transform: translateX(0) translateY(0); }
.lang-drop .nav-menu a[aria-current="true"] { color: var(--accent); font-weight: 700; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  transition: border-color .2s, transform .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Hamburger — hidden on desktop, shown in the mobile media query */
.nav-toggle {
  display: none; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle-bars { position: relative; width: 18px; height: 14px; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .22s var(--ease), opacity .18s var(--ease), top .22s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle-bars span { transition: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(46px, 7vw, 88px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero h1 { letter-spacing: -0.01em; }
.lede {
  color: var(--text-dim); font-family: var(--font-serif); font-size: 1.24rem; line-height: 1.62; margin-top: 22px;
}
/* Drop cap — the page opens like a chapter */
.lede::first-letter {
  float: left; font-family: var(--font-serif); font-weight: 700; color: var(--accent);
  font-size: 3.4em; line-height: .72; padding: 4px 10px 0 0;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 24px 0 0; color: var(--text-faint); font-size: .9rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Phone / reader mockup ---------- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: 296px; aspect-ratio: 296 / 612; border-radius: 40px; padding: 11px;
  background: #2b2118; border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.phone-screen { height: 100%; border-radius: 30px; overflow: hidden; background: var(--reader-paper); color: var(--reader-ink); display: flex; flex-direction: column; }
img.phone-screen { display: block; width: 100%; object-fit: cover; object-position: top center; }

/* ---------- Screenshot gallery ---------- */
.shots-row { display: flex; justify-content: center; align-items: flex-start; gap: 34px 30px; flex-wrap: wrap; }
.shot { width: 260px; margin: 0; }
.shot .phone { width: 260px; border-radius: 36px; padding: 9px; }
.shot .phone-screen { border-radius: 26px; }
.shot figcaption { text-align: center; margin-top: 16px; color: var(--text-dim); font-size: .92rem; }
.shot figcaption strong { display: block; font-family: var(--font-serif); color: var(--text); font-weight: 700; font-size: 1.04rem; margin-bottom: 2px; }
/* Mini-reader bits used by the "how it's written" showcase */
.r-ornament { text-align: center; letter-spacing: .5em; color: #b9af9f; margin: 6px 0 14px; font-size: .9rem; user-select: none; }
.r-verse { display: flex; flex-direction: column; }
.r-verse span { text-align: left !important; }

/* ---------- Format strip ---------- */
.formats { padding: 30px 0; border-bottom: 1px solid var(--border); }
.formats-label { text-align: center; color: var(--text-faint); font-family: var(--font-serif); font-style: italic; font-size: 1rem; margin-bottom: 16px; }
.format-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 0; }
.format-list li { font-weight: 600; font-size: .86rem; color: var(--text-dim); padding: 7px 15px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); }

/* ---------- Sections ---------- */
.section { padding: clamp(54px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 660px; margin: 0 auto clamp(34px, 5vw, 52px); text-align: center; }
.section-head .eyebrow { font-size: 1.06rem; }
/* a small printer's ornament under each section title */
.section-head h2 { position: relative; padding-bottom: 22px; }
.section-head h2::after {
  content: "❧"; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  color: var(--accent); font-size: 1.1rem; opacity: .8;
}
.section-sub { color: var(--text-dim); font-size: 1.08rem; margin-top: 14px; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: .96rem; }
.card-more { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 600; font-style: italic; color: var(--accent); }

/* ---------- Split feature band (Listen / Sync deep dives) ---------- */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.band.reverse .band-visual { order: -1; }
.band-copy { max-width: 520px; }
.band h2 { margin-bottom: 14px; }
.band > .band-copy > p { color: var(--text-dim); font-size: 1.05rem; }
.feat-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.feat-list li { position: relative; padding-left: 30px; color: var(--text-dim); font-size: .98rem; }
.feat-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 6px;
  background: var(--accent-soft);
}
.feat-list li::after {
  content: ""; position: absolute; left: 5px; top: 8px; width: 9px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* visual panels for bands */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.panel-title { font-family: var(--font-serif); font-style: italic; font-size: .95rem; color: var(--text-faint); margin-bottom: 16px; }

/* Listen panel — now-playing style */
.np-row { display: flex; align-items: center; gap: 14px; }
.np-cover { width: 56px; height: 56px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.np-meta strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; }
.np-meta span { color: var(--text-dim); font-size: .85rem; }
.np-line { margin: 18px 0 6px; height: 4px; border-radius: 4px; background: var(--border-2); overflow: hidden; }
.np-line i { display: block; width: 42%; height: 100%; background: var(--accent); }
.np-sentence { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.62; margin-top: 16px; color: var(--text); }
.np-sentence mark { background: var(--accent-soft); color: inherit; border-radius: 4px; padding: 0 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.chip { font-size: .76rem; color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; }

/* Sync panel — device row */
.sync-grid { display: grid; gap: 12px; }
.sync-node { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.sync-node svg { color: var(--accent); flex: none; }
.sync-node strong { font-size: .92rem; display: block; }
.sync-node span { font-size: .8rem; color: var(--text-faint); }
.sync-node .ok { margin-left: auto; font-size: .72rem; color: var(--accent); font-weight: 600; font-style: italic; }

/* ---------- Showcase mini readers ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.showcase-copy { max-width: 520px; }
.showcase-demo { display: grid; gap: 18px; }
.mini-reader { margin: 0; background: var(--reader-paper); color: var(--reader-ink); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.mini-reader figcaption { font-family: var(--font-serif); font-style: italic; font-size: .86rem; font-weight: 500; color: #5C5447; background: rgba(0,0,0,.03); padding: 9px 16px; border-bottom: 1px solid var(--border); }
.mini-page { font-family: var(--font-serif); padding: 18px 20px; font-size: 1rem; line-height: 1.6; }
.mini-page p { margin: 0 0 9px; text-align: justify; }
.mini-page .r-verse span { text-align: left; }
.mini-page .r-ornament { margin: 4px 0 11px; }

/* ---------- Everything-else grid ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; }
.ev-col h3 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; color: var(--accent); margin-bottom: 14px; }
.ev-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ev-col li { color: var(--text-dim); font-size: .92rem; line-height: 1.4; }

/* ---------- Privacy ---------- */
.privacy-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.privacy-badge { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.privacy p { color: var(--text-dim); font-size: 1.1rem; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 2px 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 30px 15px 0; position: relative; font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.35rem; color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-dim); padding: 0 0 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 46px; align-items: start; }
.contact-copy { max-width: 420px; }
.contact-email { display: inline-block; margin-top: 20px; font-family: var(--font-serif); font-weight: 700; font-size: 1.12rem; color: var(--accent); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text-dim); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px; padding: 11px 13px; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form .btn { width: 100%; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: var(--status-ok); }
.form-status.err { color: var(--status-error); }

/* ---------- Final CTA ---------- */
.cta-final { padding: clamp(60px, 9vw, 110px) 0; border-top: 1px solid var(--border); }
.cta-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-mark { margin-bottom: 16px; }
.cta-inner p { color: var(--text-dim); font-family: var(--font-serif); font-style: italic; font-size: 1.16rem; margin: 12px 0 26px; }
.cta-inner .btn { margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.footer-nav a { color: var(--text-dim); font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { width: 100%; color: var(--text-faint); font-size: .85rem; margin: 6px 0 0; }
.footer-legal a { color: var(--text-dim); border-bottom: 1px solid var(--border-2); }
.footer-legal a:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .theme-toggle { transition: none; }
  body { background-attachment: scroll; background-image: none; }
}

/* ============================================================
   SEO / AI layer — shared components
   Definition blocks, spec tables, comparison tables, sub-pages.
   Same warm-paper system; no new colours, no external calls.
   ============================================================ */

/* ---------- Breadcrumb (sub-pages) ---------- */
.breadcrumb { font-size: .86rem; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); }

/* ---------- Sub-page hero (guides & comparisons) ---------- */
.subhero { padding: clamp(40px, 6vw, 74px) 0 clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--border); }
.subhero-inner { max-width: 760px; }
.subhero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.subhero .lede { max-width: 640px; }
.subhero .lede::first-letter { float: none; font-size: inherit; color: inherit; padding: 0; font-weight: inherit; }
.subhero .hero-cta { margin-top: 24px; }

/* ---------- Definition block ("What is …?") ----------
   A calm, quotable card. Ideal for AI extraction & featured snippets. */
.definition {
  background: var(--surface); border: 1px solid var(--border-2); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow); max-width: 820px;
}
.definition h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); padding-bottom: 0; margin-bottom: 12px; }
.definition h2::after { display: none; }
.definition p { color: var(--text-dim); font-family: var(--font-serif); font-size: 1.14rem; line-height: 1.6; }
.definition p + p { margin-top: 12px; }
.definition strong { color: var(--text); font-weight: 700; }

/* ---------- Spec list — machine-extractable facts ----------
   Rendered as a description list so it reads cleanly to crawlers/AI. */
.spec { display: grid; gap: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.spec > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--border); }
.spec > div:first-child { border-top: 0; }
.spec dt { font-weight: 600; color: var(--text-faint); font-size: .9rem; margin: 0; }
.spec dd { margin: 0; color: var(--text); font-size: .96rem; }

/* ---------- Extractable "feature atom" cards ----------
   Input / Feature / Output / Requirement — atomic and quotable. */
.atoms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.atom { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.atom h3 { font-size: 1.06rem; margin-bottom: 12px; }
.atom dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
.atom dt { color: var(--text-faint); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.atom dd { margin: 0; color: var(--text-dim); font-size: .92rem; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.cmp caption { text-align: left; color: var(--text-faint); font-size: .86rem; font-style: italic; padding: 12px 16px; }
.cmp th, .cmp td { text-align: left; padding: 13px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.cmp thead th { border-top: 0; font-family: var(--font-serif); font-size: 1rem; color: var(--text); background: var(--surface-2); position: sticky; top: 0; }
.cmp thead th.is-us { color: var(--accent); }
.cmp tbody th { font-weight: 600; color: var(--text-dim); font-size: .92rem; }
.cmp td.yes { color: var(--status-ok); font-weight: 600; }
.cmp td.no { color: var(--text-faint); }
.cmp td .q { display: block; font-size: .82rem; color: var(--text-faint); font-weight: 400; margin-top: 2px; }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: var(--accent-soft); }

/* ---------- Long-form prose (guides) ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 8px; }
.prose h3 { font-family: var(--font-serif); font-size: 1.3rem; margin: 34px 0 10px; }
.prose p { color: var(--text-dim); font-size: 1.05rem; margin: 0 0 16px; }
.prose p strong { color: var(--text); }
.prose ul { color: var(--text-dim); font-size: 1.05rem; padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 18px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.prose a.inline { color: var(--accent); border-bottom: 1px solid var(--border-2); }
.prose a.inline:hover { border-color: var(--accent); }

/* ---------- Related-pages links ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.related a:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.related strong { display: block; font-family: var(--font-serif); font-size: 1.1rem; color: var(--text); margin-bottom: 4px; }
.related span { color: var(--text-dim); font-size: .9rem; }
.related a::after { content: " →"; color: var(--accent); font-style: italic; }

/* ---------- "Who should use what" verdict cards ---------- */
.verdicts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.verdict { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.verdict h3 { color: var(--accent); font-family: var(--font-serif); margin-bottom: 8px; }
.verdict p { color: var(--text-dim); font-size: .96rem; }

/* ---------- Utilities (replace ad-hoc inline styles) ---------- */
.center-row { text-align: center; margin-top: 26px; }
.mt-gap { margin-top: 26px; }
.mt-lg { margin-top: 22px; }
.mt-md { margin-top: 18px; }
.mt-sm { margin-top: 8px; }
.my-lg { margin: 26px 0; }
.my-md { margin: 18px 0 8px; }
.stack-narrow { max-width: 820px; }
.wide-prose { max-width: 900px; }

/* ---------- Capability chips (features teaser) ---------- */
.cap-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 0 0 26px; }
.cap-chips li { font-weight: 600; font-size: .9rem; color: var(--text-dim); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }

/* Features page reuses the everything grid; its column titles are real headings */
.ev-col h2 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; color: var(--accent); margin-bottom: 14px; }

/* ---------- Simplified contact ---------- */
.contact-simple { max-width: 560px; margin: 0 auto; text-align: center; }
.contact-simple .contact-email { display: inline-block; }

/* Make [hidden] win over component display rules (author beats UA specificity) */
[hidden] { display: none !important; }

/* ---------- Rating badge ---------- */
.rating-badge { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 12px; margin: 0 auto 30px; }
.rating-badge .stars { color: var(--accent); letter-spacing: 2px; font-size: 1.15rem; }
.rating-badge .rating-num { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text); }
.rating-badge .rating-num strong { font-size: 1.5rem; }
.rating-badge .rating-count { color: var(--text-faint); font-size: .92rem; }

/* ---------- Social proof / reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 14px; font-family: var(--font-serif); font-size: 1.06rem; line-height: 1.55; color: var(--text); }
.review blockquote::before { content: "\201C"; color: var(--accent); font-size: 1.4em; line-height: 0; vertical-align: -0.28em; margin-right: 2px; }
.review figcaption { color: var(--text-faint); font-size: .88rem; margin-top: auto; }

/* ---------- Price note ---------- */
.price-note { color: var(--text-faint); font-size: .9rem; margin-top: 14px; }
.price-note strong { color: var(--text); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-visual { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .band, .showcase { grid-template-columns: 1fr; gap: 30px; }
  .band.reverse .band-visual { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }

  /* ---- Mobile menu ---- */
  .nav-toggle { display: grid; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin-left: 0;
    padding: 8px 22px 16px; background: var(--surface);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 13px 2px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  /* Accordion behaviour scoped to the primary nav, so the language selector
     in header-actions keeps its normal dropdown on mobile. */
  .nav .nav-drop { border-bottom: 1px solid var(--border); }
  .nav .nav-drop-btn { width: 100%; justify-content: space-between; padding: 13px 2px; font-size: 1rem; }
  .nav .nav-menu {
    position: static; transform: none; min-width: 0; padding: 2px 0 8px 14px;
    background: none; border: 0; box-shadow: none; display: none;
  }
  .nav .nav-menu::before { display: none; }
  .nav .nav-drop.open .nav-menu { display: grid; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav .nav-menu a { padding: 10px 8px; }

  .atoms, .verdicts { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 3px; padding: 12px 16px; }
  .spec dt { font-size: .82rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .ev-grid { grid-template-columns: 1fr; gap: 24px; }
  .header-cta { display: none; }
  .phone { width: 260px; }
  .footer-nav { margin-left: 0; }
}

/* ---- RTL (Arabic) ----------------------------------------------------------
   dir="rtl" op <html> spiegelt automatisch tekst-uitlijning en flex-volgorde;
   hieronder alleen de FYSIEKE properties (margin/padding/left/right/text-align)
   die het browser-default niet meeneemt. */
[dir="rtl"] .nav { margin-left: 0; margin-right: 16px; }
[dir="rtl"] .header-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .footer-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .r-verse span,
[dir="rtl"] .mini-page .r-verse span { text-align: right !important; }
[dir="rtl"] .feat-list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .feat-list li::before { left: auto; right: 0; }
[dir="rtl"] .feat-list li::after { left: auto; right: 5px; }
[dir="rtl"] .prose ul { padding-left: 0; padding-right: 0; }
[dir="rtl"] .prose ul li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .prose ul li::before { left: auto; right: 2px; }
[dir="rtl"] .faq summary::after { right: auto; left: 0; }
[dir="rtl"] .lang-drop .nav-menu { left: 0; right: auto; }
[dir="rtl"] .cmp caption,
[dir="rtl"] .cmp th,
[dir="rtl"] .cmp td { text-align: right; }
[dir="rtl"] .sync-node .ok { margin-left: 0; margin-right: auto; }
[dir="rtl"] .review blockquote::before { margin-right: 0; margin-left: 2px; }
[dir="rtl"] .callout,
[dir="rtl"] .prose blockquote { border-left: 0; border-right: 3px solid var(--accent); }
@media (max-width: 560px) {
  [dir="rtl"] .footer-nav { margin-right: 0; }
}
