/* =========================================================
   Xtreme Gymnasium — Design System
   Japanese-influenced minimalism · Karoo light · sumi-e ink
   Palette: cream paper, sumi black, mud, sage, teal, beige
   ========================================================= */

:root {
  /* Ink & paper */
  --ink:        #1A1A1A;        /* sumi black */
  --ink-80:     rgba(26,26,26,0.80);
  --ink-soft:   #3A3A3A;
  --ink-mute:   #6A6259;
  --paper:      #FAF7F2;        /* washi cream */
  --paper-warm: #F2EDE3;        /* warmer cream */

  /* Beiges, sand */
  --sand:       #D4C9B5;
  --sand-light: #EDE5D2;
  --sand-deep:  #C4B89E;

  /* Mud — deep charcoal-mud for caption bands */
  --mud:        #3D342A;
  --mud-soft:   #5A4D3E;
  --mud-deep:   #2A241D;

  /* Sage — Lichen Green from the palette */
  --sage:       #7C8C6E;
  --sage-soft:  #96A589;
  --sage-deep:  #647358;

  /* Pebble — warm stone-grey for class card bodies */
  --pebble:      #A89E91;
  --pebble-soft: #BAB1A4;
  --pebble-deep: #8A8074;

  /* Teal — replaced with Lichen Green from the palette */
  --teal:       #7C8C6E;
  --teal-soft:  #96A589;
  --teal-deep:  #647358;

  /* Wood + neutral accents */
  --wood:       #7C6F5C;
  --wood-soft:  #A8997F;
  --gold:       #C9A961;
  --rule:       #E5DFD2;

  /* Typography */
  --serif:      'Cormorant Garamond', 'Shippori Mincho', Georgia, serif;
  --sans:       'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  /* Spacing rhythm — based on a vertical 8 px scale */
  --s-1:  0.5rem;
  --s-2:  1rem;
  --s-3:  1.5rem;
  --s-4:  2rem;
  --s-5:  3rem;
  --s-6:  5rem;
  --s-7:  8rem;
  --s-8:  12rem;

  /* Layout */
  --max:        1200px;
  --max-narrow: 760px;
  --radius:     2px;
  --shadow-soft: 0 1px 2px rgba(26,26,26,0.04), 0 8px 24px rgba(26,26,26,0.06);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--teal); }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 0 0 var(--s-3) 0;
}
.display { font-size: clamp(2.6rem, 5.5vw, 4.5rem); line-height: 1.05; font-style: italic; }
h1       { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.1; font-style: italic; }
h2       { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; }
h3       { font-size: 1.35rem; line-height: 1.3; }

p { margin: 0 0 var(--s-2) 0; }
p.lead { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.7; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wood);
  margin: 0 0 var(--s-3) 0;
  font-weight: 500;
}

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- Layout ---------- */
.container        { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-4); }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--s-4); }

section { padding: var(--s-7) 0; }
section.tight { padding: var(--s-5) 0; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-short { width: 64px; height: 1px; background: var(--wood); border: 0; margin: var(--s-3) auto; }

/* Sumi-e brush-stroke ornament — uses the brushstroke.png image */
.brush-symbol {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto var(--s-3);
  opacity: 0.85;
}
.quote-band.dark .brush-symbol { filter: invert(1); opacity: 0.75; }

/* ---------- Top navigation — solid cream, always visible ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2) var(--s-4);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 2px 14px rgba(26,26,26,0.06);
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 128px;           /* horizontal Logo-xtreme-side, +100% over previous */
  width: auto;
  background: transparent;
}
.nav.scrolled .nav-logo img { height: 96px; transition: height 0.3s ease; }
.nav-links {
  display: flex;
  gap: var(--s-4);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  height: 1px; width: 0;
  background: var(--ink);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  color: var(--ink); font-size: 1.4rem;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: var(--s-3) var(--s-4);
    box-shadow: 0 1px 0 var(--rule);
    gap: var(--s-2);
  }
  .nav-logo img { height: 80px; }
  .nav.scrolled .nav-logo img { height: 64px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn:hover { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); }

.btn-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ---------- Hero ---------- */
/* Pushed below the fixed nav so the image isn't cropped at top.
   Nav ≈ 160px desktop, ≈ 112px mobile (see @media below). */
.hero {
  position: relative;
  margin-top: 160px;
  min-height: calc(92vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}
@media (max-width: 760px) {
  .hero { margin-top: 112px; min-height: calc(92vh - 112px); }
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0.34) 100%);
}
.hero-inner { position: relative; max-width: 800px; padding: 0 var(--s-4); }
.hero h1 { color: var(--paper); margin-bottom: var(--s-4); }
.hero p.lead { color: rgba(250, 247, 242, 0.92); margin-bottom: var(--s-5); }
.hero .eyebrow { color: rgba(250, 247, 242, 0.72); }
.hero .btn-row { justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.75);
  opacity: 0.9;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px; height: 36px;
  background: rgba(250, 247, 242, 0.6);
  margin: var(--s-1) auto 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Page banner ---------- */
/* Top padding accounts for the fixed nav (~160px desktop, ~112px mobile) plus breathing room. */
.banner {
  padding: calc(160px + var(--s-3)) 0 var(--s-4) 0;
  text-align: center;
  background: var(--paper-warm);
}
@media (max-width: 760px) {
  .banner { padding-top: calc(112px + var(--s-3)); }
}
.banner-inner { max-width: 720px; margin: 0 auto; padding: 0 var(--s-4); }
.banner h1 { margin-bottom: var(--s-1); }
.banner .eyebrow { margin-bottom: var(--s-1); }
.banner p { max-width: 560px; margin-left: auto; margin-right: auto; color: var(--ink-soft); }

/* Sage variant — used on the Classes page banner (#8A9586) */
.banner.sage {
  background: var(--sage);
  color: var(--paper);
}
.banner.sage h1, .banner.sage p { color: var(--paper); }
.banner.sage .eyebrow { color: rgba(250, 247, 242, 0.82); }
.banner.sage .rule-short { background: rgba(250, 247, 242, 0.5); }

/* Teal variant — kept for reuse if needed */
.banner.teal {
  background: var(--teal);
  color: var(--paper);
}
.banner.teal h1, .banner.teal p { color: var(--paper); }
.banner.teal .eyebrow { color: rgba(250, 247, 242, 0.78); }
.banner.teal .rule-short { background: rgba(250, 247, 242, 0.5); }

/* Gold variant — Aged Gold #B8955A (kept for reuse) */
.banner.gold {
  background: #B8955A;
  color: var(--paper);
}
.banner.gold h1, .banner.gold p { color: var(--paper); }
.banner.gold .eyebrow { color: rgba(250, 247, 242, 0.85); }
.banner.gold .rule-short { background: rgba(250, 247, 242, 0.55); }

/* Warm Blush variant — #C9A98A (used on Book page) */
.banner.blush {
  background: #C9A98A;
  color: var(--ink);
}
.banner.blush h1, .banner.blush p { color: var(--ink); }
.banner.blush .eyebrow { color: rgba(26, 26, 26, 0.7); }
.banner.blush .rule-short { background: rgba(26, 26, 26, 0.45); }

/* ---------- Two-column block ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-5);
  align-items: center;
}
.two-col.flip { grid-template-columns: 1.4fr 1fr; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
@media (max-width: 760px) {
  .two-col, .two-col.flip { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* Portrait frame: contains a portrait image, sized to match adjacent text height */
.portrait-frame {
  max-width: 360px;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--paper-warm);
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ---------- Quote bands ---------- */
.quote-band {
  background: var(--sand-light);
  text-align: center;
  padding: var(--s-7) var(--s-4);
}
.quote-band.dark {
  background: var(--ink);
  color: var(--paper-warm);
}
.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.4;
  margin: 0 auto;
  max-width: 720px;
  color: inherit;
}
.quote-band cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--wood);
}
.quote-band.dark cite { color: var(--wood-soft); }

/* ---------- Spaces grid (2 × 2 — bigger cards) ---------- */
.spaces {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 600px) { .spaces { grid-template-columns: 1fr; } }

.space-card {
  position: relative;
  display: block;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.space-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.space-card .img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-warm);
}
.space-card .img img,
.space-card .img svg {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.space-card:hover .img img,
.space-card:hover .img svg { transform: scale(1.04); }

.space-card .caption {
  background: #3D3530;                    /* Charcoal */
  color: var(--paper-warm);
  padding: var(--s-4) var(--s-4);
  position: relative;
}
.space-card .caption h3 {
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  margin: 0 0 8px 0;
  letter-spacing: 0.01em;
}
.space-card .caption p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(250,247,242,0.88);
  margin: 0;
  letter-spacing: 0.02em;
}
/* Centered badge inside the image area (Sun Rock "Opening Soon") */
.space-card .img { position: relative; }
.space-card .img .badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(124, 140, 110, 0.92);  /* Lichen Green with slight transparency */
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  z-index: 2;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.30);
}

/* ---------- Hero pool feature (full-width image strip with overlay) ---------- */
.feature-pool {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: var(--paper);
  text-align: center;
  padding: var(--s-7) var(--s-4);
}
.feature-pool::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.30) 0%, rgba(26,26,26,0.55) 100%);
}
.feature-pool .inner {
  position: relative;
  max-width: 720px;
}
.feature-pool h2 { color: var(--paper); font-style: italic; }
.feature-pool .eyebrow { color: rgba(250, 247, 242, 0.78); }
.feature-pool p { color: rgba(250, 247, 242, 0.92); font-size: 1.1rem; line-height: 1.7; }

/* ---------- Differences ---------- */
.differences-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  margin: 0 0 var(--s-5) 0;
  letter-spacing: 0.01em;
}

.differences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  padding: var(--s-5) 0 var(--s-6) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 760px) { .differences { grid-template-columns: 1fr; } }
.differences .item .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--wood);
  margin-bottom: var(--s-1);
}
.differences .item p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ---------- Class cards (classes page) — mud-charcoal body ---------- */
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
@media (max-width: 980px) { .class-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .class-grid { grid-template-columns: 1fr; } }

.class-card {
  background: #C9A98A;                    /* Warm Blush */
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.class-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.class-card .img { aspect-ratio: 16 / 10; overflow: hidden; }
.class-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.class-card:hover .img img { transform: scale(1.04); }

.class-card .body {
  padding: var(--s-4);
  background: #C9A98A;                    /* Warm Blush */
  color: var(--ink);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.class-card .body h3 {
  color: var(--ink);
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.class-card .body .meta {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mud-deep);
  margin-bottom: var(--s-2);
}
.class-card .body p {
  margin: 0 0 var(--s-3) 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}
.class-card .body .services {
  list-style: none;
  margin: auto 0 0 0;
  padding: var(--s-3) 0 0 0;
  border-top: 1px solid rgba(26, 26, 26, 0.18);
}
.class-card .body .services li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  padding: 4px 0;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.class-card .body .services li::before {
  content: "—";
  color: var(--mud-deep);
  font-style: normal;
  flex: 0 0 auto;
}

/* ---------- Pricing cards ---------- */
.pricing-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
@media (max-width: 980px) { .pricing-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pricing-row { grid-template-columns: 1fr; } }

.price-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-3);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.price-card.highlight { background: var(--sand-light); border-color: var(--mud); }

.price-card .credits {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: var(--s-1);
}
.price-card .credits-label {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--wood); margin-bottom: var(--s-3);
}
.price-card hr { width: 30px; height: 1px; background: var(--wood); border: 0; margin: var(--s-2) auto var(--s-3); }
.price-card .benefit { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: var(--s-2); min-height: 2.4em; }
.price-card .price {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: var(--s-1);
}
.price-card .small {
  font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--ink-mute); margin-bottom: var(--s-3);
}
.price-card .btn { width: 100%; justify-content: center; padding: 12px; font-size: 0.78rem; }

/* Assessment card */
.assessment-card {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-5);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-4);
  align-items: center;
}
@media (max-width: 760px) { .assessment-card { grid-template-columns: 1fr; } }
.assessment-card .eyebrow { color: #C9A98A; }   /* Warm Blush */
.assessment-card h2 { color: var(--paper); }
.assessment-card .price-large {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4rem;
  line-height: 1;
  color: #C9A98A;                                 /* Warm Blush */
  text-align: right;
}
@media (max-width: 760px) { .assessment-card .price-large { text-align: left; } }
.assessment-card .price-meta {
  text-align: right;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper-warm); opacity: 0.8;
  margin-top: var(--s-1);
}
@media (max-width: 760px) { .assessment-card .price-meta { text-align: left; } }
.assessment-card p { color: var(--paper-warm); margin-bottom: var(--s-3); }

/* Note band — light info text under price cards */
.note-band {
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: var(--paper-warm);
  border-left: 3px solid var(--mud);
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-radius: var(--radius);
}
.note-band p { margin: 0; }

/* Bookamat embed wrapper */
.bookamat-embed {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.bookamat-embed iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
  background: transparent;
  border-radius: var(--radius);
}
.bookamat-embed iframe[data-bookamat-resize-ready="true"] { overflow: hidden; }

/* Info bands */
.info-band {
  background: var(--sage);
  color: var(--paper);
  padding: var(--s-4);
  border-radius: var(--radius);
  text-align: center;
}
.info-band p { margin: 0; line-height: 1.6; }

.download-block {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: var(--s-4);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.download-block .copy h3 { margin-bottom: 4px; }
.download-block .copy p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.download-block .btn-ghost:hover {
  background: #C9A98A;                  /* Warm Blush on hover */
  border-color: #C9A98A;
  color: var(--paper);
}
.download-block .badge-soon {
  display: inline-block;
  margin-left: var(--s-1);
  background: var(--teal);
  color: var(--paper);
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px;
  vertical-align: middle;
}

/* Section heading */
.section-heading { text-align: center; margin-bottom: var(--s-5); }
.section-heading .eyebrow { display: block; }

/* ---------- Booking page columns ---------- */
.book-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  align-items: stretch;
}
@media (max-width: 760px) { .book-columns { grid-template-columns: 1fr; } }

.book-col {
  padding: var(--s-5);
  border-radius: var(--radius);
  position: relative;
}
.book-col.member { background: var(--teal); color: var(--paper); }
.book-col.new    { background: var(--sand-light); color: var(--ink); }

.book-col h2 { color: inherit; margin-bottom: var(--s-1); }
.book-col .col-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  margin-bottom: var(--s-2);
  opacity: 0.8;
}
.book-col.new .col-eyebrow { color: var(--wood); }
.book-col.member .col-eyebrow { color: rgba(250,247,242,0.85); }

.steps { list-style: none; margin: 0 0 var(--s-4) 0; padding: 0; }
.step  {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.book-col.member .step { border-bottom-color: rgba(250,247,242,0.18); }
.step:last-child { border-bottom: 0; }
.step .step-num {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  line-height: 1;
  color: inherit;
  opacity: 0.55;
  min-width: 36px;
}
.step .step-body p { margin: 0; line-height: 1.55; color: inherit; }
.step .step-body strong { font-family: var(--serif); font-style: italic; font-size: 1.1rem; font-weight: 400; }

.book-col .btn { width: 100%; justify-content: center; }
.book-col.member .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.book-col.member .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.book-disclaimer {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--paper-warm);
  border-left: 3px solid var(--mud);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--paper-warm);
  padding: var(--s-6) 0 var(--s-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 760px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px)  { .footer-grid { grid-template-columns: 1fr; } }
footer h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s-2) 0;
}
footer .brand-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--paper);
  margin-bottom: var(--s-1);
}
footer p, footer a, footer li {
  color: var(--paper-warm);
  font-size: 0.92rem;
  line-height: 1.7;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer a:hover { color: var(--gold); }
.footer-fine {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(250,247,242,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: 0.78rem;
  color: var(--wood-soft);
}

/* ---------- Subtle paper texture ---------- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
main, footer { position: relative; z-index: 1; }
/* .nav is intentionally excluded — it stays position: fixed (declared above) so it remains pinned to the top while scrolling */

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Assessment form ---------- */
.assessment-form {
  display: grid;
  gap: var(--s-3);
  background: var(--paper-warm);
  padding: var(--s-5);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.assessment-form .field { display: grid; gap: 6px; }
.assessment-form label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wood);
  font-weight: 500;
}
.assessment-form input,
.assessment-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s ease;
}
.assessment-form input:focus,
.assessment-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.assessment-form textarea { resize: vertical; min-height: 96px; }
.assessment-form .btn { justify-self: start; }
.assessment-form .form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: italic;
}
.assessment-form .form-error {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.9rem;
  background: rgba(184, 90, 70, 0.12);
  color: #8a3c2c;
  border-left: 3px solid #b85a46;
  border-radius: var(--radius);
}
.assessment-form .form-error[hidden] { display: none; }

/* ---------- Legal prose (privacy / terms) ---------- */
.legal-prose h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
  color: var(--ink);
}
.legal-prose p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: var(--s-2);
}
.legal-prose a { color: var(--ink); text-decoration: underline; }
.legal-prose a:hover { color: #B8955A; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper-warm);
  padding: var(--s-3) var(--s-4);
  box-shadow: 0 -2px 18px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1 1 320px;
  color: var(--paper-warm);
}
.cookie-banner a { color: #C9A98A; text-decoration: underline; }
.cookie-banner a:hover { color: var(--paper); }
.cookie-banner-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 20px; font-size: 0.78rem; }
.cookie-banner .btn-light { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.cookie-banner .btn-light:hover { background: #C9A98A; border-color: #C9A98A; color: var(--ink); }
.cookie-banner .btn-ghost { color: var(--paper); border-color: rgba(250,247,242,0.5); background: transparent; }
.cookie-banner .btn-ghost:hover { background: rgba(250,247,242,0.1); }
.cookie-banner[hidden] { display: none; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}
