/* The Book Monger — site styles
   White-dominant editorial theme. Accent sampled from the logo: oxblood #8B0D0D.
   Blush is a tint for small elements only (table headers, hover states), never a section background. */

:root {
  --red: #8b0d0d;
  --red-deep: #5e0808;
  --white: #ffffff;
  --blush: #f7ece9;
  --ink: #1a1212;
  --muted: #6e5f5c;
  --border: #e8d9d4;

  --bg: var(--white);
  --bg-alt: var(--white);
  --tint: var(--blush);
  --card: var(--white);
  --text: var(--ink);
  --text-muted: var(--muted);
  --accent: var(--red);
  --accent-hover: var(--red-deep);
  --line: var(--border);
  --on-accent: var(--white);
  --shadow: 0 10px 28px rgba(94, 8, 8, 0.12);

  --font-display: "Instrument Serif", "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --header-h: 76px;
}

[data-theme="dark"] {
  --bg: #140c0c;
  --bg-alt: #140c0c;
  --tint: #241616;
  --card: #201414;
  --text: #f5ece8;
  --text-muted: #c9b8b3;
  --accent: #e07a7a;
  --accent-hover: #eb9a9a;
  --line: #3a2626;
  --on-accent: #140c0c;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* No italics anywhere */
em, i, cite, address, dfn, var { font-style: normal; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

strong, b { font-weight: 700; }

p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--text);
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(3rem, 9vw, 6.4rem); line-height: 0.95; text-transform: uppercase; }
h2 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: clamp(1.6rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: 0.01em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}
.wrap--narrow { max-width: 820px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Labels, eyebrows, rules ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title { margin-bottom: 0.35em; }
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 20px;
  background: var(--accent);
}
.center { text-align: center; }
.center .section-title::after,
.section-title.center::after { margin-left: auto; margin-right: auto; }

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 680px;
}
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
}
.btn--outline:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Buttons on solid red sections */
.btn--light { background: #fff; color: var(--red); border-color: #fff; }
.btn--light:hover { background: var(--blush); border-color: var(--blush); color: var(--red-deep); }
.btn--ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--red); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.center .btn-row,
.cta-band .btn-row { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }
.logo-dark { display: none !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.header-cta { display: none; min-height: 42px; padding: 9px 18px; }

/* Mobile menu */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  padding: 24px 22px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}
.site-nav.is-open { transform: none; visibility: visible; }
.site-nav .nav-list li { border-bottom: 1px solid var(--line); }
.site-nav .nav-list a { display: block; padding: 16px 4px; font-size: 0.9rem; }
.nav-mobile-cta { margin-top: 24px; width: 100%; }
body.menu-open { overflow: hidden; }

@media (min-width: 1180px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static;
    transform: none;
    visibility: visible;
    padding: 0;
    background: transparent;
    overflow: visible;
  }
  .site-nav .nav-list { display: flex; gap: 22px; }
  .site-nav .nav-list li { border: 0; }
  .site-nav .nav-list a { padding: 6px 0; font-size: 0.74rem; }
  .nav-mobile-cta { display: none; }
  .header-cta { display: inline-flex; }
}

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section--rule { background: var(--bg); border-top: 1px solid var(--line); }
.section--red { background: var(--red); color: #fff; }
.section--red h1,
.section--red h2,
.section--red h3 { color: #fff; }
.section--red .eyebrow { color: #fff; opacity: 0.9; }
.section--red .section-title::after { background: #fff; }
.section--red .lead,
.section--red p { color: #fff; }
.section--red a:not(.btn) { color: #fff; }
[data-theme="dark"] .section--red { background: var(--red-deep); }

@media (min-width: 900px) {
  .section { padding: 104px 0; }
}

/* ---------- Hero ---------- */

.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 0.3em; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: 1.18rem; }

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.hero-panel h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 16px; height: 9px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.section--red .check-list li { border-color: rgba(255, 255, 255, 0.25); }
.section--red .check-list li::before { border-color: #fff; }

.cross-list li::before {
  width: 16px; height: 3px;
  top: 22px;
  border: 0;
  background: var(--accent);
  transform: none;
}

@media (min-width: 960px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 64px; }
}

.page-hero { padding: 72px 0 60px; background: var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.2rem); }
.page-hero .lead { font-size: 1.15rem; margin-bottom: 0; }

/* ---------- Trust strip ---------- */

.trust-strip { background: var(--bg); color: var(--text); padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 14px;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.trust-list .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--accent);
}
@media (min-width: 820px) {
  .trust-list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .trust-list li + li { border-left: 1px solid var(--line); padding-left: 28px; }
}

/* ---------- Cards ---------- */

.grid { display: grid; gap: 24px; margin-top: 44px; }
@media (min-width: 700px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .eyebrow { margin-bottom: 10px; }
.card-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}
.section--red .card p,
.section--red .card h3 { color: var(--text); }
.card-link {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.service-card dl { margin: 18px 0 0; }
.service-card dt {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 16px;
}
.service-card dd { margin: 4px 0 0; color: var(--text); }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.82;
  color: var(--accent);
}
.step h3 { margin-bottom: 0.3em; }
.step p { margin: 0; color: var(--text-muted); }
@media (min-width: 760px) {
  .step { grid-template-columns: 130px 1fr; gap: 32px; padding: 36px 0; }
  .step-num { font-size: 7.5rem; }
}

.steps--compact { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .steps--compact { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .steps--compact .step { grid-template-columns: 1fr; gap: 10px; border: 0; border-top: 4px solid var(--accent); padding: 22px 0 0; }
  .steps--compact .step-num { font-size: 4.4rem; }
  .steps--compact .step h3 { font-size: 1.45rem; }
}

/* ---------- Portfolio ---------- */

.feature-card h3 { font-size: 1.55rem; line-height: 1.15; }
.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.meta { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0; }

.feature-card { padding-top: 0; overflow: hidden; }
.feature-card .badge { margin-top: 22px; }
.shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  margin: 0 -26px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f2f2f2;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.shot:hover img { transform: scale(1.03); }
.shot::after {
  content: "View full page";
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: rgba(26, 18, 18, 0.82);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.book { margin: 0 0 4px; font-size: 1.02rem; }
.card-actions { margin-top: auto; padding-top: 22px; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 0.74rem; }

/* Lightbox */
.lightbox {
  width: min(1000px, calc(100vw - 24px));
  max-width: none;
  height: calc(100vh - 24px);
  max-height: none;
  padding: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(20, 12, 12, 0.78); }
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.lightbox-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.lightbox-scroll img { width: 100%; height: auto; }

/* Pre-recorded samples: Google Drive video players, always a full 16:9 frame.
   No fixed heights here; the frame's height comes only from aspect-ratio. */
.trust-strip + .section--rule { border-top: 0; }
.sample-note { font-size: 0.92rem; color: var(--text-muted); margin: 0; }
.samples-player { max-width: 1000px; margin: 40px auto 0; }
.sample-tabs { display: none; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.js-samples .sample-tabs { display: flex; }
.sample-row { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 760px) { .sample-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.video-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  min-width: 0;
  border-top: 4px solid var(--accent);
  background: var(--card);
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.video-card h3 {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 14px 0 0;
  line-height: 1.4;
}
.video-open {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.video-open::after { content: " \2197"; }
.video-frame {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.verify-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  font-weight: 600;
}
.verify-line::before {
  content: "";
  flex: 0 0 auto;
  width: 28px; height: 4px;
  background: var(--accent);
}

/* ---------- Pricing ---------- */

.table-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); background: var(--card); }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table th,
.price-table td { padding: 20px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table thead th {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--tint);
}
.price-table tbody tr:hover { background: var(--tint); }
.price-table tbody th { font-weight: 700; width: 32%; }
.price {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}

/* Stack table into cards on small screens */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .price-table { min-width: 0; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { border: 0; padding: 8px 20px; }
  .price-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
  }
}

.note-box {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  background: var(--tint);
  border-radius: var(--radius);
}
.note-box p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */

.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; background: var(--accent); color: var(--on-accent); }
.faq summary:hover { color: var(--accent); background: var(--tint); }
.faq-body { padding: 0 4px 24px; max-width: 760px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Prose / legal ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }

.details-list { margin: 32px 0 0; border-top: 1px solid var(--line); }
.details-list div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details-list dt {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.details-list dd { margin: 0; font-size: 1.1rem; }
@media (min-width: 700px) { .details-list div { grid-template-columns: 240px 1fr; gap: 24px; align-items: baseline; } }

/* ---------- Forms ---------- */

.form-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .form-layout { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; } }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 24px;
}
@media (min-width: 700px) { .form-card { padding: 40px 38px; } }

.field { margin-bottom: 22px; }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

label,
legend {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text);
}
.optional { color: var(--text-muted); font-weight: 600; letter-spacing: 0.06em; }

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #bfaaa4;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] select,
[data-theme="dark"] textarea { border-color: #5a3d3d; background: #140c0c; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.choice-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative;
  display: block;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.choice input { position: absolute; left: 16px; top: 19px; width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.choice strong { display: block; font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.choice:hover { background: var(--tint); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.55;
}
.consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 14px; }
.form-error { color: #b00020; font-weight: 600; margin-top: 14px; }
[data-theme="dark"] .form-error { color: #ff9b9b; }

.thanks {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--card);
  padding: 34px 30px;
}
.thanks h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.thanks:focus { outline: none; }

.aside-block + .aside-block { margin-top: 32px; }
.aside-block h2 { font-size: 1.8rem; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 900px; margin-left: auto; margin-right: auto; font-size: clamp(2.3rem, 5.8vw, 4rem); }
.cta-band p { max-width: 640px; margin-left: auto; margin-right: auto; font-size: 1.12rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--red-deep); color: #fff; padding: 72px 0 32px; }
[data-theme="dark"] .site-footer { background: #0d0707; border-top: 4px solid var(--red-deep); }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { height: 128px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: rgba(255, 255, 255, 0.88); max-width: 340px; font-size: 0.98rem; }
.site-footer h2 {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; font-size: 0.96rem; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .big { font-family: var(--font-display); font-size: clamp(7rem, 22vw, 14rem); line-height: 0.8; color: var(--accent); }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
