/* The American Quiz — DPA marketing prototype
   MARCO differentiation pass: ink/paper rooms, jewelry green, adult civics tone.
   Brand tokens from live CSS / brief. Yavin body lock. Do not invent. */

:root {
  --ink: #0F2027;
  --ink-mid: #203A43;
  --navy: #193366;
  --navy-deep: #0F2027;
  --green: #29a35c;
  --green-hover: #228a4d;
  --alert: #df2020;
  --paper: #ffffff;
  --paper-soft: #f4f6f7;
  --slate: #16262e;
  --muted: #4a5f6a;
  --border: rgba(15, 32, 39, 0.12);
  --border-strong: rgba(15, 32, 39, 0.22);
  --tint: rgba(25, 51, 102, 0.06);
  --tint-green: rgba(41, 163, 92, 0.10);
  --overlay: rgba(0, 0, 0, 0.62);
  --text: 1.25rem;
  --text-lh: 1.6;
  --wrap: 82%;
  --wrap-max: 1120px;
  --wrap-max-wide: 1480px;
  --measure: 38rem;
  --radius: 6px;
  --shadow-lite: 0 8px 28px rgba(15, 32, 39, 0.08);
  --shadow: 0 14px 40px rgba(15, 32, 39, 0.12);
  --header-h: 72px;
  --proto-h: 44px;
  --room-pad: clamp(5.5rem, 9vw, 9.5rem);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text);
  line-height: var(--text-lh);
  color: var(--ink);
  background: var(--paper);
  padding-top: var(--proto-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.55em;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.4rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.wrap {
  width: var(--wrap);
  max-width: var(--wrap-max);
  margin-inline: auto;
}
.wrap-wide {
  width: var(--wrap);
  max-width: var(--wrap-max-wide);
  margin-inline: auto;
}
.modules-room > .wrap,
#why-us > .wrap {
  max-width: var(--wrap-max-wide);
}

.measure { max-width: var(--measure); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* —— Prototype banner —— */
.proto-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; padding: 8px 20px;
  font-size: .78rem; line-height: 1.4;
  border-bottom: 2px solid var(--green);
}
.proto-banner strong {
  color: var(--green); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: var(--proto-h);
  z-index: 900;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: var(--header-h);
  padding: 0.45rem 0;
}
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-link img {
  height: auto;
  width: min(240px, 64vw);
  max-height: 48px;
  object-fit: contain;
  transition: filter .22s ease;
}
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.05rem 0.5rem;
}
.site-nav a, .site-nav button.nav-text {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  background: none; border: none; cursor: pointer;
  font-family: inherit;
  padding: 0.3rem 0.1rem;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav button.nav-text:hover { color: var(--green); }
.site-nav a.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.site-nav a.nav-cta:hover { background: var(--green-hover); }
.site-nav a.nav-ghost {
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
}
.lang-toggle {
  display: inline-flex; gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
  font-size: 0.75rem;
}
.lang-toggle a, .lang-toggle span {
  padding: 0.22rem 0.48rem;
  border-radius: calc(var(--radius) - 1px);
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.lang-toggle .is-active {
  background: var(--navy);
  color: #fff;
}

/* Hero chrome: transparent/ink over full-bleed; solid paper after scroll */
body.has-hero-chrome .site-header {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
body.has-hero-chrome .site-header.is-solid {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(15,32,39,0.04);
}
body.has-hero-chrome .site-header:not(.is-solid) .site-nav a,
body.has-hero-chrome .site-header:not(.is-solid) .site-nav button.nav-text {
  color: rgba(255,255,255,0.92);
}
body.has-hero-chrome .site-header:not(.is-solid) .site-nav a:hover,
body.has-hero-chrome .site-header:not(.is-solid) .site-nav button.nav-text:hover {
  color: #8fd4a8;
}
body.has-hero-chrome .site-header:not(.is-solid) .site-nav a.nav-ghost {
  border-color: rgba(255,255,255,0.45);
  color: #fff !important;
}
body.has-hero-chrome .site-header:not(.is-solid) .lang-toggle {
  border-color: rgba(255,255,255,0.35);
}
body.has-hero-chrome .site-header:not(.is-solid) .lang-toggle a,
body.has-hero-chrome .site-header:not(.is-solid) .lang-toggle span:not(.is-active) {
  color: rgba(255,255,255,0.75);
}
body.has-hero-chrome .site-header:not(.is-solid) .nav-toggle {
  background: rgba(15,32,39,0.35);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
body.has-hero-chrome .site-header:not(.is-solid) .logo-link img {
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.28)) drop-shadow(0 2px 10px rgba(0,0,0,0.55));
}
body.has-hero-chrome .hero {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(3.5rem, 10vh, 7rem));
  min-height: calc(100vh - var(--proto-h));
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem var(--wrap);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .site-nav a, .site-nav button.nav-text {
    display: block; width: 100%; text-align: left; padding: 0.55rem 0;
    color: var(--ink-mid) !important;
  }
  body.has-hero-chrome .site-header:not(.is-solid) .site-nav {
    background: var(--ink);
    border-bottom-color: rgba(255,255,255,0.12);
  }
  body.has-hero-chrome .site-header:not(.is-solid) .site-nav a,
  body.has-hero-chrome .site-header:not(.is-solid) .site-nav button.nav-text {
    color: rgba(255,255,255,0.92) !important;
  }
  body.has-hero-chrome .site-header:not(.is-solid) .site-nav a.nav-cta {
    color: #fff !important;
  }
}

/* —— Buttons (green = jewelry; sharp 6px — no pills) —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset;
}
.btn-green:hover { background: var(--green-hover); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #142952; color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.75);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1.75rem;
  align-items: center;
}
.btn-row.peer .btn { min-width: 11.5rem; }

/* —— Rooms / bands (architectural ink ↔ paper) —— */
.section,
.room {
  padding: var(--room-pad) 0;
}
.section-alt,
.room-soft { background: var(--paper-soft); }
.room-ink {
  background: var(--ink);
  color: rgba(255,255,255,0.92);
}
.room-ink h1, .room-ink h2, .room-ink h3 { color: #fff; }
.room-ink p, .room-ink li { color: rgba(255,255,255,0.88); }
.room-slate {
  background: var(--slate);
  color: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.room-slate h1, .room-slate h2, .room-slate h3 { color: #fff; }
.room-slate p, .room-slate li { color: rgba(255,255,255,0.86); }
.room-navy,
.section-navy {
  background: linear-gradient(160deg, var(--ink) 0%, var(--navy) 100%);
  color: #fff;
}
.room-navy h1, .room-navy h2, .room-navy h3,
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.room-navy p, .room-navy li,
.section-navy p, .section-navy li { color: rgba(255,255,255,0.92); }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.85rem;
}
.room-ink .eyebrow,
.room-slate .eyebrow,
.room-navy .eyebrow,
.section-navy .eyebrow { color: #8fd4a8; }
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: var(--measure);
}
.room-ink .lede,
.room-slate .lede,
.section-navy .lede { color: rgba(255,255,255,0.82); }
.rule {
  width: 3rem;
  height: 2px;
  background: var(--green);
  margin: 0 0 1.5rem;
  border: 0;
}
.room-ink .rule, .room-slate .rule { background: var(--green); }

/* —— Hero: full-bleed ink room —— */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: clamp(4.5rem, 12vh, 8rem) 0 clamp(5rem, 12vh, 9rem);
  min-height: calc(100vh - var(--proto-h) - var(--header-h));
  display: flex;
  align-items: center;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(0,0,0,0.78) 0%, rgba(15,32,39,0.72) 42%, rgba(15,32,39,0.45) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero h1 {
  color: #fff;
  margin-bottom: 0.35em;
  max-width: 14ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero .subhead {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  margin: 0 0 1.15rem;
  max-width: 28rem;
  letter-spacing: -0.01em;
}
.hero p { color: rgba(255,255,255,0.88); max-width: var(--measure); }
.pillars {
  display: flex; flex-wrap: wrap; gap: 0.55rem 1.35rem;
  margin: 1.5rem 0 0.25rem;
  list-style: none; padding: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 1.15rem;
}
.pillars li {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9);
  padding-left: 0.85rem;
  border-left: 2px solid var(--green);
}
.hero-art {
  position: relative;
  justify-self: end;
}
.hero-art img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(0,0,0,0.55));
}
.milestone {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  max-width: 34rem;
  border-left: 2px solid rgba(41,163,92,0.7);
  padding-left: 1rem;
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 3.5rem 0 4.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; justify-self: center; }
}

/* —— Meet Carlos: character moment —— */
.carlos-room {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.carlos-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.carlos-visual {
  position: relative;
}
.carlos-portrait {
  width: 100%;
  max-width: 480px;
  border-radius: 0;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--paper-soft);
}
.carlos-quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-mid);
  max-width: 28rem;
  line-height: 1.45;
}
.carlos-quote cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.carlos-figs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 360px;
}
.carlos-figs figure {
  margin: 0; text-align: center;
}
.carlos-figs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--paper-soft);
}
.carlos-figs figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.3;
  font-weight: 600;
}
.carlos-copy h2 { max-width: 12ch; }
.carlos-copy p { max-width: var(--measure); color: var(--ink-mid); }
@media (max-width: 800px) {
  .carlos-grid { grid-template-columns: 1fr; }
  .carlos-portrait { max-width: 360px; }
}

/* —— Modules: journey / path in slate room —— */
.modules-room .modules-intro {
  max-width: var(--measure);
  margin-bottom: 2.75rem;
}
.modules-room .tagline-band {
  text-align: left;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0;
  color: #8fd4a8;
  border: none;
}
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.journey-step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin: 0;
}
.journey-step .num {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--green);
  padding-top: 0.2rem;
}
.journey-step h3 {
  font-size: 1.2rem;
  margin: 0 0 0.25em;
  color: #fff;
}
.journey-step p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 36rem;
}
.journey-step.final {
  background: transparent;
  border-bottom: none;
  margin-top: 0.25rem;
  padding-top: 1.6rem;
  border-top: 2px solid rgba(41,163,92,0.55);
}
.journey-step.final .num { color: #b8e6c8; }
.journey-step.final h3 { color: #fff; }
@media (min-width: 900px) {
  .journey {
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
    border-top: none;
  }
  .journey-step {
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: none;
  }
  .journey-step.final {
    grid-column: 1 / -1;
    border-top: 2px solid rgba(41,163,92,0.55);
    margin-top: 0.5rem;
  }
}

/* legacy module-grid kept for modules.html */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.module-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-lite);
  transition: border-color .15s, box-shadow .15s;
}
.module-card:hover {
  border-color: rgba(41,163,92,0.45);
  box-shadow: var(--shadow);
}
.module-card .num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.module-card h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.module-card p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.module-card.final {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}
.module-card.final h3 { color: #fff; }
.module-card.final p { color: rgba(255,255,255,0.85); }
.module-card.final .num { color: #b8e6c8; }
.tagline-band {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.5rem;
  color: var(--navy);
}

/* —— Inside every module: MARCO media rooms (not SaaS checklist) —— */
.inside-modules { padding-bottom: 0; }
.inside-modules > .wrap-wide.inside-head {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.media-room {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--border);
}
.media-room:nth-child(even) { background: var(--paper-soft); }
.media-room-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.media-room.reverse .media-room-inner { grid-template-columns: 1fr 1.05fr; }
.media-room.reverse .media-room-visual { order: 2; }
.media-room.reverse .media-room-copy { order: 1; }
.media-room-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--paper-soft);
  box-shadow: var(--shadow-lite);
}
.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.media-pair img { aspect-ratio: 3 / 4; }
@media (max-width: 520px) {
  .media-pair { grid-template-columns: 1fr; }
  .media-pair img { aspect-ratio: 4 / 3; }
}
.media-room-copy h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0 0 0.85rem;
  max-width: 18ch;
}
.media-room-copy .room-lede {
  color: var(--muted);
  margin: 0 0 1.15rem;
  max-width: 34rem;
}
.dense-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.dense-list li {
  position: relative;
  margin: 0;
  padding: 0.72rem 0 0.72rem 1.15rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.45;
}
.dense-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--green);
}
.inside-modules .inside-close {
  padding: clamp(2.5rem, 5vw, 4rem) 0 var(--room-pad);
}
.inside-modules .inside-close p {
  margin: 0;
  max-width: var(--measure);
  font-size: 1.1rem;
  color: var(--ink-mid);
}
@media (max-width: 820px) {
  .media-room-inner,
  .media-room.reverse .media-room-inner {
    grid-template-columns: 1fr;
  }
  .media-room.reverse .media-room-visual,
  .media-room.reverse .media-room-copy { order: unset; }
}

/* legacy checklist (modules.html / older pages) */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  border-top: 1px solid var(--border);
}
.check-grid li {
  position: relative;
  padding: 1rem 0.5rem 1rem 1.75rem;
  margin: 0;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
}
.check-grid li::before {
  content: "";
  position: absolute; left: 0; top: 1.35rem;
  width: 0.55rem; height: 0.55rem;
  background: var(--green);
  border-radius: 1px;
}

/* —— Tools: editorial UI tiles —— */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 2.5rem 0;
  background: var(--border);
  border: 1px solid var(--border);
}
.tool-card {
  background: var(--paper);
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
}
.tool-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--paper-soft);
}
.tool-card h3 {
  font-size: 1.05rem;
  padding: 1.1rem 1.15rem 1.25rem;
  margin: 0;
  font-weight: 600;
}
@media (max-width: 900px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* —— Why / real life: architectural rows, not SaaS cards —— */
.why-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.why-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
  align-items: start;
}
.why-list .idx {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green);
  padding-top: 0.35rem;
}
.why-list h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.3em;
}
.why-list p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}
/* legacy why-grid for other pages */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  margin-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.why-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 1.35rem 1.1rem 1.35rem 0;
}
.why-card h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.35em;
}
.why-card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* —— Pricing: editorial tiers (cards OK) —— */
.pricing-hero-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-top: 3px solid var(--green);
  border-radius: 0;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lite);
  max-width: 440px;
  margin: 2rem 0;
}
.pricing-hero-card .badge {
  display: inline-block;
  background: transparent;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--green);
}
.pricing-hero-card .period {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.price-row {
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
  margin: 0.5rem 0 0.75rem;
}
.price-row .amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-row .cadence { color: var(--muted); font-weight: 500; }
.credits-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  padding: 0.35rem 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border-strong);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.trust-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  list-style: none; padding: 0; margin: 1.25rem 0 0;
}
.trust-chips li {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-mid);
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}
.trust-chips li::before {
  content: "· ";
  color: var(--green);
  font-weight: 800;
}
.renewal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin: 1.75rem 0;
  background: var(--border);
  border: 1px solid var(--border);
}
.renewal-card {
  background: var(--paper);
  border: none;
  border-radius: 0;
  padding: 1.5rem 1.5rem;
}
.renewal-card h3 { margin-bottom: 0.25em; }
.topup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 1.25rem 0;
  background: var(--border);
  border: 1px solid var(--border);
}
.topup-card {
  text-align: center;
  border: none;
  border-radius: 0;
  padding: 1.35rem 0.75rem;
  background: var(--paper);
  position: relative;
}
.topup-card.popular {
  border-color: transparent;
  box-shadow: inset 0 3px 0 var(--green);
}
.topup-card .pop {
  position: absolute; top: 0.65rem; left: 50%; transform: translateX(-50%);
  background: transparent; color: var(--green);
  font-size: 0.7rem; font-weight: 700;
  padding: 0; border-radius: 0;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.topup-card .credits { font-weight: 800; font-size: 1.35rem; color: var(--ink); margin-top: 1rem; }
.topup-card .dollars { font-size: 1.5rem; font-weight: 700; color: var(--ink-mid); margin-top: 0.25rem; }
@media (max-width: 640px) {
  .topup-grid { grid-template-columns: 1fr; }
}
.credits-explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 1.25rem 0;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (max-width: 700px) {
  .credits-explain { grid-template-columns: 1fr; }
}
.credit-type {
  background: var(--paper);
  border-radius: 0;
  padding: 1.25rem 1.35rem;
  border: none;
}
.fine-print {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1.25rem;
  max-width: 48rem;
}
.disclaimer-strip {
  background: var(--ink);
  border-top: none;
  border-bottom: none;
  padding: 1.5rem 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
}
.disclaimer-strip ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
}
.disclaimer-strip li { margin: 0; }

/* —— Forms —— */
.auth-shell {
  min-height: 70vh;
  display: flex; align-items: center;
  padding: 3rem 0;
  background: var(--paper-soft);
}
.auth-card {
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: var(--shadow-lite);
  width: 100%;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(41,163,92,0.35);
  border-color: var(--green);
}
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}
.form-success {
  display: none;
  background: var(--tint-green);
  border: 1px solid rgba(41,163,92,0.35);
  color: var(--ink);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.form-success.is-visible { display: block; }
.oauth-row {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin: 1rem 0;
}
.oauth-row button {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.oauth-row button:hover { border-color: var(--navy); }
.divider {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--muted); font-size: 0.9rem; margin: 1.15rem 0;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* —— Legal —— */
.legal-page { padding: 3rem 0 4rem; }
.legal-toc {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.legal-toc ol { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.legal-toc a { text-decoration: none; font-weight: 500; }
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  font-size: 0.95rem; color: var(--muted);
  margin: 1rem 0 1.5rem;
}
.legal-section { margin: 2rem 0; scroll-margin-top: calc(var(--proto-h) + var(--header-h) + 1rem); }
.legal-section h2 { font-size: 1.35rem; color: var(--navy); }

/* —— FAQ —— */
.faq-list { max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}
.faq-item h3 { font-size: 1.15rem; margin-bottom: 0.4em; color: var(--ink); }
.faq-item p, .faq-item li { color: var(--ink-mid); }
.faq-note {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* —— Sample reader —— */
.sample-chrome {
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 0;
  border-bottom: 2px solid var(--green);
}
.sample-chrome .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.sample-chrome a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.sample-chrome a:hover { color: #b8e6c8; }
.sample-intro {
  background: var(--paper-soft);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.sample-frame-wrap {
  background: #0a1216;
  min-height: 75vh;
}
.sample-frame-wrap iframe {
  width: 100%;
  height: 80vh;
  min-height: 640px;
  border: 0;
  display: block;
  background: #fff;
}

/* —— Brand gate —— */
.swatch-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin: 1.5rem 0;
}
.swatch {
  width: 140px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
}
.swatch .chip { height: 72px; }
.swatch figcaption {
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  margin: 0;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  margin: 1.5rem 0;
  background: var(--border);
  border: 1px solid var(--border);
}
.asset-grid figure {
  margin: 0;
  background: var(--paper);
  border: none;
  border-radius: 0;
  padding: 0.85rem;
  text-align: center;
}
.asset-grid img {
  max-height: 120px;
  margin: 0 auto 0.5rem;
  object-fit: contain;
}
.asset-grid figcaption { font-size: 0.8rem; color: var(--muted); }

/* Brand room demos */
.room-demo {
  margin: 2rem 0;
  border: 1px solid var(--border);
}
.room-demo .room-demo-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  margin: 0;
}
.room-demo .room-demo-body {
  padding: 2.5rem 1.75rem;
}
.room-demo.ink .room-demo-body {
  background: var(--ink);
  color: #fff;
}
.room-demo.ink h3 { color: #fff; margin: 0 0 0.5em; }
.room-demo.ink p { color: rgba(255,255,255,0.85); margin: 0; max-width: 28rem; }
.room-demo.slate .room-demo-body {
  background: var(--slate);
  color: #fff;
}
.room-demo.slate h3 { color: #fff; margin: 0 0 0.5em; }
.room-demo.slate p { color: rgba(255,255,255,0.85); margin: 0; }
.room-demo.paper .room-demo-body {
  background: var(--paper);
}
.room-demo.paper h3 { margin: 0 0 0.5em; }
.room-demo.paper p { margin: 0; color: var(--muted); max-width: 28rem; }

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.88);
  padding: 2.75rem 0 2.25rem;
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer a { color: rgba(255,255,255,0.88); text-decoration: none; }
.site-footer a:hover { color: #b8e6c8; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.35rem;
  list-style: none; padding: 0; margin: 0 0 1.5rem;
}
.footer-nav li { margin: 0; }
.footer-nav button {
  background: none; border: none; padding: 0;
  color: rgba(255,255,255,0.88);
  font: inherit; font-weight: 500; cursor: pointer;
}
.footer-nav button:hover { color: #b8e6c8; }
.footer-copy {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.footer-lang {
  margin-top: 1rem;
  display: flex; gap: 0.75rem;
  font-size: 0.9rem;
}

/* —— Dialog —— */
.dialog-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 32, 39, 0.62);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.dialog-backdrop.is-open { display: flex; }
.dialog {
  background: var(--paper);
  border-radius: var(--radius);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.75rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  position: relative;
  border: 1px solid var(--border);
}
.dialog h2 { font-size: 1.45rem; margin-bottom: 0.35em; }
.dialog-close {
  position: absolute; top: 0.75rem; right: 0.85rem;
  border: none; background: transparent;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  color: var(--muted);
}
.dialog-close:hover { color: var(--ink); }

/* —— Closing CTA —— */
.closing-cta { text-align: left; }
.closing-cta h2 { max-width: 16ch; }
.closing-cta p { max-width: var(--measure); }
.closing-cta .btn-row { justify-content: flex-start; }

/* —— Brand page table —— */
.token-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 2rem;
}
.token-table th, .token-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.token-table th { background: var(--paper-soft); color: var(--navy); }

.page-hero {
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--ink);
  color: #fff;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--green);
}
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero .lede { color: rgba(255,255,255,0.88); }
