@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&family=Lato:ital,wght@0,400;0,700;1,400&display=swap");

/* ============================================================
   Ezana Learning — calm, flat, ink-light.
   The site follows the kits' design language: white pages,
   thin rules, one accent, no decoration. Body face is Lato —
   the same face the kits are set in.
   ============================================================ */

:root {
  --bg: #faf7f1;
  --card: #ffffff;
  --text: #1f2a44;
  --muted: #55607a;
  --line: rgba(31, 42, 68, 0.14);
  --line-soft: rgba(31, 42, 68, 0.09);
  --navy: #1f2a44;
  --sage: #6d897c;
  --sage-soft: rgba(109, 137, 124, 0.12);
  --gold: #a97f35;
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1120px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 50;
}

.skip-link:focus {
  left: 16px;
}

.page-shell {
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner,
.footer-inner {
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner {
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "E";
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-tagline {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--gold);
}

.nav a.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border-bottom: 0;
}

.nav a.nav-cta:hover,
.nav a.nav-cta:focus-visible {
  background: #2c3a5e;
  color: #fff;
}

.locale-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.locale-picker__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.locale-picker__select {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  max-width: 11rem;
}

.locale-picker__select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.button,
.button-secondary,
.button-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--sans);
}

.button {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--navy);
}

.button:hover,
.button:focus-visible {
  background: #2c3a5e;
}

.button-secondary {
  background: var(--card);
  color: var(--navy);
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--navy);
}

.button-link {
  color: var(--navy);
  padding: 0;
  background: transparent;
  border: 0;
  text-decoration: underline;
}

button {
  cursor: pointer;
  border: 0;
  font: inherit;
}

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

.hero {
  padding: 4rem 0 2.5rem;
}

.eyebrow {
  display: inline-block;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.page-title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.12;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  max-width: 22ch;
  margin-top: 0.9rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 24ch;
}

.lead,
.section-lead,
.page-intro {
  color: var(--muted);
  max-width: 66ch;
}

.lead {
  font-size: 1.12rem;
  margin: 1.2rem 0 0;
}

.section-lead {
  margin: 0;
}

.page-intro {
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.credo {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
  max-width: 34em;
  margin: 1.4rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.story {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 38em;
  margin: 0.8rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 2.4rem 0;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.page-hero {
  padding: 3rem 0 1.6rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .meta,
.meta {
  display: inline-block;
  color: var(--sage);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.feature-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line-soft);
}

.feature-list li:first-child {
  border-top: 0;
}

.feature-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  margin-top: 0.55rem;
  background: var(--gold);
  flex: 0 0 auto;
}

/* ---------- process steps ---------- */

.timeline {
  display: grid;
  gap: 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-soft);
}

.timeline-step:first-child {
  border-top: 0;
}

.step-num {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
}

.step-content h3 {
  margin: 0 0 0.25rem;
}

.step-content p {
  margin: 0;
  color: var(--muted);
}

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 700;
  font-family: var(--serif);
  margin: 0;
}

.price small {
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--muted);
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.price-list li {
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

/* ---------- sample kits ---------- */

.ab-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.ab-side {
  min-width: 0;
}

.ab-side figure {
  margin: 0;
}

.ab-side img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.ab-side figcaption {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.ab-side figcaption strong {
  color: var(--text);
}

.kit-block {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line-soft);
}

.kit-block:first-of-type {
  border-top: 0;
}

.kit-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
}

.kit-head h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0;
}

.kit-facts {
  color: var(--muted);
  font-size: 0.92rem;
}

.kit-desc {
  color: var(--muted);
  max-width: 70ch;
  margin: 0.6rem 0 1rem;
}

.kit-gallery {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.8rem;
  scroll-snap-type: x mandatory;
}

.kit-gallery a {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.kit-gallery img {
  height: 300px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.kit-gallery a:hover img,
.kit-gallery a:focus-visible img {
  border-color: var(--navy);
}

.kit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.4rem;
}

.gallery-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

/* ---------- gallery scroll arrows (added by viewer.js) ---------- */

.gallery-wrap {
  position: relative;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.15rem;
  z-index: 2;
  box-shadow: 0 1px 6px rgba(31, 42, 68, 0.18);
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  border-color: var(--navy);
}

.gallery-nav.prev {
  left: -0.5rem;
}

.gallery-nav.next {
  right: -0.5rem;
}

/* ---------- full-screen kit reader (viewer.js) ---------- */

body.reader-open {
  overflow: hidden;
}

.reader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: #182034;
}

.reader-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  color: #fff;
}

.reader-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-count {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
  font-size: 0.95rem;
}

.reader-zoom {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.reader-zoom-in,
.reader-zoom-out {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.reader-zoom-in:hover:not(:disabled),
.reader-zoom-out:hover:not(:disabled),
.reader-zoom-in:focus-visible,
.reader-zoom-out:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}

.reader-zoom-in:disabled,
.reader-zoom-out:disabled {
  opacity: 0.3;
  cursor: default;
}

.reader-zoom-level {
  min-width: 3.4ch;
  text-align: center;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.reader-pdf {
  flex: 0 0 auto;
  color: #fff;
  text-decoration: underline;
  font-size: 0.9rem;
}

.reader-close {
  flex: 0 0 auto;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
}

.reader-close:hover,
.reader-close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.reader-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0 0.7rem;
}

.reader-frame {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  overflow: auto;
}

.reader-frame img {
  margin: auto; /* centres when smaller than the frame, scrolls cleanly when zoomed */
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  background: #fff;
  cursor: zoom-in;
  -webkit-user-select: none;
  user-select: none;
}

.reader.is-zoomed .reader-frame img {
  cursor: grab;
}

.reader.is-zoomed .reader-frame img:active {
  cursor: grabbing;
}

.reader-arrow {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.35rem;
}

.reader-arrow:hover:not(:disabled),
.reader-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}

.reader-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.reader-hint {
  margin: 0;
  padding: 0.55rem 1rem 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .reader-pdf,
  .reader-zoom-level {
    display: none; /* small screens: keep the bar tight — title, counter, +/−, close */
  }

  .reader-stage {
    gap: 0.4rem;
    padding: 0 0.4rem;
  }

  .reader-arrow {
    width: 2.6rem;
    height: 2.6rem;
  }

  .reader-hint {
    display: none;
  }
}

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

.faq {
  display: grid;
  gap: 0;
  max-width: 60rem;
}

.faq details {
  border-top: 1px solid var(--line-soft);
  padding: 0;
}

.faq details:first-child {
  border-top: 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--sage);
  flex: 0 0 auto;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .faq-a {
  color: var(--muted);
  margin: 0;
  padding: 0 0 1.1rem;
  max-width: 68ch;
}

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

form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-weight: 400;
  color: var(--text);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 42, 68, 0.35);
  outline-offset: 1px;
  border-color: var(--navy);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.subtle-band {
  margin: 1.2rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--sage-soft);
  border: 1px solid var(--line-soft);
}

.quote {
  margin: 0;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--sage);
  background: var(--card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}

/* ---------- footer ---------- */

.footer {
  margin-top: 3rem;
  padding: 1.6rem 0 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  justify-content: flex-end;
  max-width: 34rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-credo {
  font-family: var(--serif);
  color: var(--text);
  max-width: 44ch;
  margin: 0.7rem 0 0;
  font-size: 1.02rem;
  line-height: 1.5;
}

.footer-note {
  max-width: 46ch;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .grid-3,
  .grid-4,
  .price-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 2.6rem;
  }
}

@media (max-width: 720px) {
  .ab-compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .hero-actions,
  .form-actions {
    width: 100%;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .kit-gallery img {
    height: 240px;
  }
}

/* ============================================================
   Questionnaire wizard
   ============================================================ */
.wizard {
  scroll-margin-top: 96px; /* clear the sticky header when scrolling back to the step top */
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  padding: 1.6rem;
}

.wizard-progress {
  margin-bottom: 1.5rem;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 42, 68, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--navy);
  transition: width 280ms ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.step-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.step-dot {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
}

.step-dot.is-reachable {
  border-color: var(--sage);
  background: var(--sage-soft);
  color: var(--sage);
}

.step-dot.is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.step-dot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.continuing-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: baseline;
  padding: 0.6rem 0.95rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--sage-soft);
  border: 1px solid var(--line-soft);
  font-size: 0.9rem;
}

.continuing-note .button-link {
  font-size: 0.9rem;
  text-decoration: underline;
}

.step-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
}

.step-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  line-height: 1.15;
  margin: 0.35rem 0 0.3rem;
}

.step-intro {
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.q-block {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line-soft);
}
.q-block:first-of-type {
  border-top: 0;
}

.q-label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.q-help {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.1rem 0 0.7rem;
}

.q-max {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sage);
  background: var(--sage-soft);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  vertical-align: middle;
}

.options {
  display: grid;
  gap: 0.6rem;
}
.options.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.options.scale {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font-weight: 400;
}
.option:hover {
  border-color: var(--sage);
}
.option input {
  width: auto;
  margin: 0.2rem 0 0;
  accent-color: var(--navy);
  flex: 0 0 auto;
}
.option.is-checked {
  border-color: var(--navy);
  background: var(--sage-soft);
  box-shadow: 0 0 0 1px var(--navy) inset;
}
.option.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.option .opt-text {
  line-height: 1.4;
}

.q-block input[type="text"],
.q-block textarea {
  margin-top: 0.2rem;
}
.inline-fields {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}
.wizard-actions .spacer {
  flex: 1 1 auto;
}

.wizard-error {
  color: #a4423a;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.8rem;
}

.mode-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mode-card {
  text-align: left;
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.mode-card:hover {
  border-color: var(--navy);
}
.mode-card h3 {
  margin: 0;
  font-size: 1.15rem;
}
.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}
.mode-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
}

.mode-card.is-recommended {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy) inset;
}

.mode-card .tag-strong {
  align-self: start;
  background: var(--navy);
  color: #fff;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.review-list {
  display: grid;
  gap: 0.85rem;
  margin: 0.9rem 0 0.3rem;
}

.review-group {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 0.85rem 1.05rem;
}

.review-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.review-group-head h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}

.review-group-head .button-link {
  font-size: 0.85rem;
  text-decoration: underline;
  flex: 0 0 auto;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.42rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
}

.review-q {
  color: var(--muted);
}

.review-a {
  font-weight: 700;
}

.review-pre {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.55;
  background: rgba(31, 42, 68, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  max-height: 340px;
  overflow: auto;
  color: var(--text);
}

.saved-banner {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--sage-soft);
  border: 1px solid var(--sage);
  font-weight: 700;
}

@media (max-width: 640px) {
  .options.cols-2,
  .mode-grid,
  .inline-fields,
  .review-row {
    grid-template-columns: 1fr;
  }

  .review-row {
    gap: 0.1rem;
  }
  .wizard-actions .button,
  .wizard-actions .button-secondary {
    width: auto;
  }
}
