/* ============================================================
   Celebrate Realty / Arthur Radtke — Lower Cape Seller Funnel
   Design system + components + page styles
   Single-file CSS, no preprocessor, deployable as-is
   ============================================================ */

/* ===== 1. RESET & BASE ===== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-primary);
  background: var(--paper-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-amber);
  outline-offset: 2px;
}

/* ===== 2. DESIGN TOKENS ===== */

:root {
  /* V6 Coastal Editorial palette */
  --sand-cream: #ECE3CC;        /* warm oatmeal — primary section bg */
  --paper-white: #F6EFDE;       /* light cream — alt section bg */
  --ink-primary: #1A2531;       /* deep ink */
  --ink-muted: #5C6770;
  --navy: #102942;              /* hero + footer + tile variant */
  --navy-deep: #0A1F30;         /* deeper navy for shadow/depth */
  --sage: #91A89B;              /* dusty sage — accent + tile variant */
  --sage-deep: #6E8478;
  --gold-amber: #B8995F;        /* warm brass — CTAs + brand mark */
  --gold-amber-dark: #957845;
  --gold-amber-wash: rgba(184, 153, 95, 0.14);
  --seafoam-quiet: #91A89B;     /* alias for backward compat */
  --hairline: #D8CEB4;
  --lock-overlay: rgba(236, 227, 204, 0.55);
  --error-red: #B5443A;
  --success-green: #6E8478;

  /* Typography */
  --font-serif: 'Lyon', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Type scale (desktop) — bumped for 50+ readability per NN/g + Marketing Partners research */
  --fs-h1: 72px;
  --fs-h2: 44px;
  --fs-h3: 28px;
  --fs-h4: 22px;
  --fs-body-lg: 19px;
  --fs-body: 18px;
  --fs-small: 15px;
  --fs-caption: 13px;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 720px;
  --container-form: 640px;
  --radius-sm: 6px;
  --radius-md: 8px;

  /* Transitions */
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
}

@media (max-width: 768px) {
  :root {
    --fs-h1: 40px;
    --fs-h2: 30px;
    --fs-h3: 24px;
    --fs-h4: 20px;
    --fs-body-lg: 18px;
    --fs-body: 17px;
  }
}

/* ===== 3. TYPOGRAPHY ===== */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.2;
  margin: 0 0 var(--sp-4);
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.015em; line-height: 1.08; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.25; }

p {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-body);
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--ink-primary);
}

.muted {
  color: var(--ink-muted);
}

.eyebrow {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--sp-2);
}

em.transition-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ===== 4. LAYOUT ===== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

section {
  padding: var(--sp-16) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--sp-12) 0;
  }
}

.section-paper {
  background: var(--paper-white);
}

.section-sand {
  background: var(--sand-cream);
}

/* ===== 5. BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 26px;
  font-size: var(--fs-body);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--t-fast);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-amber);
  color: var(--ink-primary);
  border: 1px solid var(--gold-amber);
}

.btn-primary:hover {
  background: var(--gold-amber-dark);
  border-color: var(--gold-amber-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-primary);
  border: 1px solid var(--gold-amber);
}

.btn-secondary:hover {
  background: var(--gold-amber-wash);
}

.btn-tertiary {
  color: var(--ink-primary);
  padding: var(--sp-2) 0;
  background: transparent;
  border: none;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gold-amber);
  text-underline-offset: 4px;
}

.btn-tertiary:hover {
  color: var(--gold-amber-dark);
}

.btn-block,
.btn.btn-block {
  display: flex;
  width: 100%;
}

/* ===== 6. NAV ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper-white);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow var(--t-base);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--ink-primary);
}

.nav-logo small {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  color: var(--ink-muted);
  font-weight: 400;
  margin-left: var(--sp-2);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: var(--fs-small);
  color: var(--ink-primary);
  transition: color var(--t-fast);
}

.nav-links a:hover {
  color: var(--gold-amber-dark);
}

.nav-cta {
  padding: 10px 18px;
  font-size: var(--fs-small);
}

.nav-member-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 14px;
  background: var(--gold-amber-wash);
  border-radius: 24px;
  font-size: var(--fs-small);
  color: var(--ink-primary);
}

.nav-toggle {
  display: none;
  font-size: 24px;
  color: var(--ink-primary);
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper-white);
    padding: var(--sp-6);
    border-bottom: 1px solid var(--hairline);
    gap: var(--sp-4);
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: inline-flex; }
}

/* ===== 7. WELCOME BANNER (S0, unlocked state only) ===== */

.welcome-banner {
  background: var(--gold-amber-wash);
  border-bottom: 1px solid var(--gold-amber);
  padding: var(--sp-4) 0;
}

.welcome-banner-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-6);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.welcome-banner p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.55;
}

.welcome-banner strong {
  font-weight: 600;
}

.welcome-banner a {
  color: var(--ink-primary);
  text-decoration: underline;
  text-decoration-color: var(--gold-amber);
  text-underline-offset: 3px;
}

.welcome-banner-dismiss {
  font-size: 20px;
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 var(--sp-2);
}

.welcome-banner-dismiss:hover {
  color: var(--ink-primary);
}

/* ===== 8. HERO ===== */

.hero {
  padding: var(--sp-16) 0 var(--sp-12);
  background: var(--sand-cream);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
}

.hero-copy h1 {
  margin-bottom: var(--sp-6);
}

.hero-copy p {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  margin-bottom: var(--sp-6);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin: var(--sp-6) 0 var(--sp-4);
}

.hero-trust-line {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  font-style: italic;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-md);
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(26, 37, 49, 0.08);
}

.hero-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--sand-cream), var(--paper-white));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 64px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

.hero-photo figcaption {
  font-size: var(--fs-caption);
  color: var(--ink-muted);
  text-align: center;
  margin-top: var(--sp-3);
  letter-spacing: 0.04em;
}

/* ===== 9. TRUST STRIP ===== */

.trust-strip {
  background: var(--paper-white);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-6) 0;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  align-items: center;
}

.trust-tile {
  font-size: var(--fs-small);
  text-align: center;
  line-height: 1.5;
}

.trust-tile strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  .trust-strip-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }
  .trust-tile { font-size: var(--fs-caption); }
}

/* ===== 10. WHY DIFFERENT (S3) ===== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--hairline);
}

.why-item:last-child { border-bottom: none; }

.why-roman {
  font-family: var(--font-serif);
  font-size: var(--fs-body-lg);
  color: var(--gold-amber-dark);
  font-style: italic;
  line-height: 1.4;
}

.why-item h4 {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-body);
  font-family: var(--font-sans);
  font-weight: 600;
}

.why-item p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ===== 11. LIBRARY (S4) ===== */

.library-intro {
  margin-bottom: var(--sp-12);
  max-width: 720px;
}

.library-overview-line {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: var(--sp-8);
}

.library-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}

.library-subhead h3 {
  margin: 0;
}

.library-subhead small {
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

@media (max-width: 980px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .tile-grid { grid-template-columns: 1fr; }
}

.tile {
  position: relative;
  padding: var(--sp-6);
  background: var(--paper-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  transition: all var(--t-fast);
  cursor: pointer;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile:hover {
  border-color: var(--gold-amber);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 37, 49, 0.05);
}

.tile-number {
  font-family: var(--font-serif);
  font-size: var(--fs-caption);
  color: var(--gold-amber-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.tile-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  margin: 0 0 var(--sp-2);
  font-weight: 600;
  line-height: 1.25;
}

.tile-meta {
  font-size: var(--fs-caption);
  color: var(--ink-muted);
  margin: 0 0 var(--sp-3);
}

.tile-description {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0 0 var(--sp-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-gain {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sage-deep);
  margin: 0;
}
.tile-navy .tile-gain { color: var(--gold-amber); }
.tile-deep .tile-gain { color: var(--gold-amber); }
.tile-sage .tile-gain { color: var(--navy-deep); }

.tile-icon {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-size: 18px;
  opacity: 0.6;
}

.tile-icon-lock::before { content: "🔒"; }
.tile-icon-play::before { content: "▶"; color: var(--gold-amber-dark); }
.tile-icon-download::before { content: "↓"; color: var(--gold-amber-dark); font-weight: 700; }
.tile-icon-calendar::before { content: "📅"; }
.tile-icon-preview::before { content: "👁"; color: var(--gold-amber-dark); }

.tile-coming-soon {
  background: linear-gradient(135deg, var(--paper-white) 0%, #f3eee3 100%);
}

/* ===== Video thumbnail tiles ===== */
.tile.tile-video {
  padding: 0;
  background: var(--navy-deep);
  border-color: transparent;
  overflow: hidden;
  min-height: unset;
  justify-content: flex-start;
  text-align: left;
}

.tile.tile-video:hover {
  border-color: var(--gold-amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 37, 49, 0.18);
}

.tile-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
  flex-shrink: 0;
}

.tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tile.tile-video:hover .tile-thumb img {
  transform: scale(1.03);
}

.tile-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 31, 48, 0.35);
  font-size: 36px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tile.tile-video:hover .tile-thumb-overlay {
  opacity: 1;
}

.tile-thumb-overlay.thumb-overlay-lock {
  background: rgba(10, 31, 48, 0.55);
  opacity: 0.6;
  font-size: 28px;
}

.tile.tile-video .tile-body {
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
}

.tile.tile-video .tile-number {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-amber);
  margin-bottom: var(--sp-1);
}

.tile.tile-video .tile-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--sand-cream);
  line-height: 1.3;
  margin: 0 0 var(--sp-1);
}

.tile.tile-video .tile-meta {
  font-size: 12px;
  color: rgba(236, 227, 204, 0.55);
  margin: 0;
}

.tile.tile-video .tile-badge {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 2;
}

.tile.tile-video.tile-coming-soon .tile-thumb img {
  filter: grayscale(40%) brightness(0.8);
}

.tile.tile-video.tile-coming-soon .tile-thumb-overlay {
  opacity: 0.5;
}

.tile-coming-soon .tile-title,
.tile-coming-soon .tile-description {
  opacity: 0.85;
}

.tile-badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  padding: 2px 8px;
  background: var(--gold-amber);
  color: var(--ink-primary);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile-badge-new { background: var(--gold-amber); }
.tile-badge-coming { background: var(--ink-muted); color: var(--paper-white); }
.tile-badge-preview { background: var(--seafoam-quiet); color: var(--paper-white); }

/* Unlock CTA bar */
.unlock-bar {
  margin: var(--sp-8) 0 0;
  padding: var(--sp-8);
  background: var(--sand-cream);
  border-radius: var(--radius-md);
  text-align: center;
}

.unlock-bar h3 {
  margin: 0 0 var(--sp-3);
}

.unlock-bar p {
  margin: 0 0 var(--sp-6);
  color: var(--ink-muted);
}

.unlock-form {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.unlock-form input {
  flex: 1 1 220px;
}

/* ===== 12. MARKET READ (S5) ===== */

.market-read {
  max-width: 720px;
  margin: 0 auto;
}

.market-read .eyebrow {
  margin-bottom: var(--sp-3);
}

.market-read p {
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}

/* ===== 13. BY TOWN (S6) ===== */

.town-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.town-card {
  padding: var(--sp-8);
  background: var(--paper-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

.town-card h3 {
  margin: 0 0 var(--sp-3);
  display: inline-block;
  border-bottom: 2px solid var(--gold-amber);
  padding-bottom: 2px;
}

.town-card p {
  font-size: var(--fs-body);
  line-height: 1.6;
  margin: 0 0 var(--sp-4);
  color: var(--ink-primary);
}

.town-card a {
  font-size: var(--fs-small);
  color: var(--gold-amber-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== 14. SEGMENTER (S7) ===== */

.segmenter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

@media (max-width: 980px) {
  .segmenter-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .segmenter-grid { grid-template-columns: 1fr; }
}

.segmenter-tile {
  padding: var(--sp-6);
  background: var(--paper-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  transition: all var(--t-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.segmenter-tile:hover {
  border-color: var(--gold-amber);
  transform: translateY(-1px);
}

/* Set by ?situation= on load, or by clicking a tile — shows the visitor the
   page understood which situation the ad was about. */
.segmenter-tile.is-selected {
  border-color: var(--gold-amber);
  border-width: 2px;
  padding: calc(var(--sp-6) - 1px);
  background: var(--gold-amber-wash);
}

.segmenter-tile h4 {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
}

.segmenter-tile p {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
  margin: 0 0 var(--sp-4);
}

.segmenter-tile-cta {
  font-size: var(--fs-small);
  color: var(--gold-amber-dark);
  font-weight: 500;
}

/* Starting points panel (unlocked state) */
.starting-points-panel {
  margin-top: var(--sp-8);
  padding: var(--sp-8);
  background: var(--sand-cream);
  border-radius: var(--radius-md);
  display: none;
}

.starting-points-panel.is-open { display: block; }

.starting-points-panel h4 {
  margin: 0 0 var(--sp-4);
}

.starting-points-panel ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
}

.starting-points-panel li {
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--hairline);
}

.starting-points-panel li:last-child { border-bottom: none; }

/* ===== 15. MEET ARTHUR (S8) ===== */

.meet-arthur {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (max-width: 880px) {
  .meet-arthur {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
}

.meet-arthur-photo img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(26, 37, 49, 0.08);
}

.meet-arthur-photo figcaption {
  font-size: var(--fs-caption);
  color: var(--ink-muted);
  text-align: center;
  margin-top: var(--sp-3);
}

.meet-arthur-copy p {
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.meet-arthur-cta {
  margin-top: var(--sp-6);
}

.meet-arthur-cta + .meet-arthur-cta-note {
  margin-top: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--ink-muted);
  font-style: italic;
}

/* ===== 16. "WHEN YOU'RE READY" BAND (S8.5) ===== */

.when-ready-band {
  padding: var(--sp-12) 0;
  text-align: center;
  position: relative;
}

.when-ready-band::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--gold-amber);
  z-index: 0;
}

.when-ready-band em {
  position: relative;
  z-index: 1;
  padding: 0 var(--sp-6);
  background: var(--paper-white);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-h4);
  color: var(--ink-primary);
}

/* ===== 17. CUSTOM PLAN SECTION (S9) ===== */

.plan-section {
  background: var(--sand-cream);
}

.plan-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-8) 0 var(--sp-12);
}

@media (max-width: 880px) {
  .plan-steps { grid-template-columns: 1fr; }
}

.plan-step {
  padding: var(--sp-6);
  background: var(--paper-white);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--gold-amber);
}

.plan-step-roman {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--gold-amber-dark);
  font-style: italic;
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.plan-step h4 {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
}

.plan-step p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--ink-muted);
  line-height: 1.55;
}

.what-it-is-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
  padding: var(--sp-8);
  background: var(--paper-white);
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .what-it-is-block { grid-template-columns: 1fr; gap: var(--sp-4); }
}

.what-it-is-block p {
  margin: 0;
}

.what-it-is-block strong {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--gold-amber-dark);
}

.plan-section-cta {
  text-align: center;
}

/* ===== 18. FAQ (S10) ===== */

.faq-list {
  max-width: 880px;
  margin: var(--sp-8) auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-6) 0;
  background: none;
  border: none;
  text-align: left;
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--ink-primary);
  cursor: pointer;
  font-family: var(--font-sans);
}

.faq-question:hover { color: var(--gold-amber-dark); }

.faq-toggle {
  font-size: 20px;
  color: var(--gold-amber-dark);
  font-weight: 300;
  transition: transform var(--t-fast);
  flex-shrink: 0;
  margin-left: var(--sp-4);
}

.faq-item.is-open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 0 var(--sp-6);
  max-width: 680px;
}

.faq-item.is-open .faq-answer { display: block; }

.faq-answer p {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-primary);
  margin: 0;
}

/* ===== 19. FINAL CTA (S11) ===== */

.final-cta {
  background: var(--sand-cream);
  text-align: center;
}

.final-cta h2 { margin-bottom: var(--sp-4); }

.final-cta p {
  font-size: var(--fs-body-lg);
  color: var(--ink-primary);
  max-width: 560px;
  margin: 0 auto var(--sp-8);
}

.final-cta-row {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== 20. FOOTER ===== */

.site-footer {
  background: var(--ink-primary);
  color: var(--paper-white);
  padding: var(--sp-12) 0 var(--sp-6);
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

@media (max-width: 768px) {
  .site-footer .container { grid-template-columns: 1fr; gap: var(--sp-6); }
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-3);
}

.footer-contact p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: rgba(251, 249, 244, 0.85);
}

.footer-links h5 {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--sp-3);
  color: rgba(251, 249, 244, 0.7);
  font-family: var(--font-sans);
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: var(--sp-2); }

.footer-links a {
  font-size: var(--fs-small);
  color: rgba(251, 249, 244, 0.85);
  transition: color var(--t-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(251, 249, 244, 0.15);
  padding-top: var(--sp-6);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
  font-size: var(--fs-caption);
  color: rgba(251, 249, 244, 0.6);
  line-height: 1.6;
}

.footer-bottom p { margin: 0 0 var(--sp-2); font-size: var(--fs-caption); }

/* ===== 21. FORMS ===== */

label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-primary);
  margin-bottom: var(--sp-2);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="hidden"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink-primary);
  background: var(--paper-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-amber);
  outline: none;
}

input::placeholder, textarea::placeholder {
  color: var(--ink-muted);
  opacity: 0.7;
}

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

.form-help {
  font-size: var(--fs-caption);
  color: var(--ink-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.form-row {
  margin-bottom: var(--sp-4);
}

.form-row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

@media (max-width: 480px) {
  .form-row-inline { grid-template-columns: 1fr; }
}

.checkbox-row {
  display: flex;
  align-items: start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--paper-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-4);
}

.checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold-amber-dark);
}

.checkbox-row label {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 1.45;
}

.form-reassurance {
  font-size: var(--fs-caption);
  color: var(--ink-muted);
  text-align: center;
  margin-top: var(--sp-3);
  font-style: italic;
  line-height: 1.5;
}

.tcpa-line {
  font-size: var(--fs-caption);
  color: var(--ink-muted);
  margin-bottom: var(--sp-3);
  line-height: 1.5;
}

/* ===== 22. MODAL ===== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 37, 49, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  overflow-y: auto;
}

.modal-overlay.is-open { display: flex; }

.modal {
  background: var(--paper-white);
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  margin: auto;
}

.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-size: 24px;
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: var(--ink-primary); }

.modal h3 { margin-top: 0; }

/* PDF preview lightbox */
.pdf-preview-lightbox .modal {
  max-width: 720px;
}

.pdf-preview-pages {
  background: var(--sand-cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: var(--sp-6);
  text-align: center;
  margin-bottom: var(--sp-4);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  color: var(--ink-muted);
  font-style: italic;
}

.pdf-preview-overlay {
  padding: var(--sp-4);
  background: var(--gold-amber-wash);
  border-radius: var(--radius-sm);
  text-align: center;
}

.pdf-preview-overlay p {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-small);
  font-style: italic;
}

/* ===== 23. CONFIRMATION ===== */

.confirmation {
  text-align: center;
  padding: var(--sp-6) 0;
}

.confirmation-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--success-green);
  color: var(--paper-white);
  border-radius: 50%;
  font-size: 24px;
  margin-bottom: var(--sp-4);
}

/* ===== 24. UTILITY ===== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.mb-6 { margin-bottom: var(--sp-6); }
.hidden { display: none !important; }

/* Honeypot field — always hidden, must stay empty */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* State-based visibility */
[data-state-only="locked"] { display: var(--display-locked, block); }
[data-state-only="unlocked"] { display: var(--display-unlocked, none); }

body.hub-unlocked [data-state-only="locked"] { display: none; }
body.hub-unlocked [data-state-only="unlocked"] { display: block; }

/* ============================================================
   V6 COASTAL EDITORIAL — additional components
   ============================================================ */

/* Dark navy hero (replaces .hero for V6) */
.hero {
  background: var(--navy);
  color: var(--sand-cream);
  padding: var(--sp-16) 0 var(--sp-12);
  position: relative;
}
.hero h1,
.hero .h1 { color: var(--sand-cream); }
.hero p { color: rgba(236, 227, 204, 0.88); }
.hero .hero-trust-line { color: rgba(236, 227, 204, 0.6); }

.hero-copy p { font-size: var(--fs-body-lg); line-height: 1.55; }
.hero-copy ul li { color: rgba(236, 227, 204, 0.88) !important; }

/* CMA / squeeze form card on dark hero */
.hero .form-card,
.hero #hero-form-container,
.hero form#hero-form {
  background: var(--sand-cream);
  color: var(--ink-primary);
}
.hero #hero-form-container h3,
.hero form#hero-form h3,
.hero .form-card h3 { color: var(--ink-primary); }
.hero #hero-form-container .muted,
.hero form#hero-form .muted { color: var(--ink-muted); }

/* Eyebrow label on dark hero */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-amber);
  font-weight: 600;
  margin-bottom: var(--sp-3);
  display: block;
}

/* AR portrait (hero) */
.ar-mark-portrait {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto;
  display: block;
}

/* AR monogram brand mark (fallback) */
.ar-mark {
  width: 110px;
  height: 110px;
  background: var(--gold-amber);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}
.ar-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(26, 37, 49, 0.32);
  transform: translate(-50%, -50%) rotate(45deg);
}
.ar-mark-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 36px;
  color: var(--navy);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  background: var(--gold-amber);
  padding: 0 6px;
}
.ar-caption {
  color: rgba(236, 227, 204, 0.7);
  font-size: 11px;
  text-align: center;
  margin-top: var(--sp-3);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* Primary button override for V6 — tan brass instead of light gold */
.btn-primary {
  background: var(--gold-amber);
  color: var(--navy);
  border: 1px solid var(--gold-amber);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--gold-amber-dark);
  border-color: var(--gold-amber-dark);
  color: var(--sand-cream);
}

/* Secondary button on dark hero */
.hero .btn-secondary {
  background: transparent;
  color: var(--sand-cream);
  border: 1px solid rgba(236, 227, 204, 0.4);
}
.hero .btn-secondary:hover {
  background: rgba(236, 227, 204, 0.08);
  color: var(--sand-cream);
  border-color: var(--sand-cream);
}

/* Trust strip — restyled for V6 (lighter, on cream) */
.trust-strip {
  background: var(--paper-white);
  border-top: none;
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-6) 0;
}

/* Multi-color tile variants */
.tile.tile-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--sand-cream);
}
.tile.tile-navy .tile-title { color: var(--sand-cream); }
.tile.tile-navy .tile-description,
.tile.tile-navy .tile-meta { color: rgba(236, 227, 204, 0.75); }
.tile.tile-navy .tile-number { color: var(--gold-amber); }
.tile.tile-navy:hover { border-color: var(--gold-amber); transform: translateY(-1px); }

.tile.tile-sage {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--navy);
}
.tile.tile-sage .tile-title { color: var(--navy); }
.tile.tile-sage .tile-description,
.tile.tile-sage .tile-meta { color: rgba(16, 41, 66, 0.7); }
.tile.tile-sage .tile-number { color: rgba(16, 41, 66, 0.65); }
.tile.tile-sage:hover { border-color: var(--gold-amber); transform: translateY(-1px); }

.tile.tile-cream {
  background: var(--paper-white);
  border-color: var(--hairline);
  color: var(--ink-primary);
}

.tile.tile-deep {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: rgba(236, 227, 204, 0.92);
}
.tile.tile-deep .tile-title { color: var(--sand-cream); }
.tile.tile-deep .tile-description,
.tile.tile-deep .tile-meta { color: rgba(236, 227, 204, 0.7); }
.tile.tile-deep .tile-number { color: var(--gold-amber); }

/* When-ready band sits on cream now — adjust */
.when-ready-band {
  background: var(--sand-cream);
}
.when-ready-band em {
  background: var(--sand-cream);
}

/* Footer already navy-aligned; tighten for V6 */
.site-footer {
  background: var(--navy);
}

/* Hero photo soft frame for V6 */
.hero-photo img {
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.hero-photo figcaption {
  color: rgba(236, 227, 204, 0.65);
}

/* Welcome banner restyled for V6 */
.welcome-banner {
  background: var(--gold-amber-wash);
  border-bottom: 1px solid var(--gold-amber);
}

/* Plan section (S9) gets sand background to break up navy hero / cream sections */
.plan-section { background: var(--paper-white); }

/* Section-paper now means very light cream, section-sand means warm oatmeal */
.section-paper { background: var(--paper-white); }
.section-sand { background: var(--sand-cream); }

/* Why-item adjustments for V6 */
.why-roman {
  color: var(--gold-amber);
}

/* Town card hover */
.town-card {
  background: var(--paper-white);
  border-color: var(--hairline);
}
.town-card h3 {
  border-bottom-color: var(--gold-amber);
}
.town-card a {
  color: var(--gold-amber-dark);
}

/* Hot-path band (squeeze S5) — use sage-tinted background for V6 */
[style*="background:var(--gold-amber-wash)"] {
  background: rgba(145, 168, 155, 0.18) !important;
}

/* Final CTA on cream */
.final-cta { background: var(--sand-cream); }

/* ============================================================
   v3 CALIBRATION — form hygiene, sticky CTA, animations, new components
   ============================================================ */

/* Form field refinements — 56px tall, label-above-field, sage focus */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  height: 56px;
  padding: 0 16px;
  font-size: 17px;
  border: 1px solid var(--hairline);
  background: var(--paper-white);
  border-radius: 6px;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 16px;
  line-height: 1.55;
  resize: vertical;
}

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select {
    height: 60px;
    font-size: 16px; /* prevents iOS zoom */
  }
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage-deep);
  outline: 2px solid rgba(145, 168, 155, 0.4);
  outline-offset: 0;
  box-shadow: none;
}

/* Label above field — never placeholder-as-label */
.form-row label,
label.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.form-row label .required {
  color: var(--sage-deep);
  margin-left: 2px;
}

.form-row {
  margin-bottom: 20px;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-muted);
  opacity: 0.55;
  font-style: italic;
}

/* Submit button height to match fields */
.btn-primary,
.btn-secondary {
  min-height: 56px;
  font-size: 16px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    min-height: 60px;
  }
}

/* Trust line under form submit */
.form-trust-line {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-muted);
  opacity: 0.75;
  font-style: italic;
  line-height: 1.5;
}

.hero .form-trust-line {
  color: rgba(236, 227, 204, 0.7);
}

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--paper-white);
  border-top: 1px solid var(--hairline);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding: 12px 16px;
  transform: translateY(110%);
  transition: transform 300ms ease;
}

.mobile-sticky-cta.is-visible {
  transform: translateY(0);
}

.mobile-sticky-cta-trust {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.3;
}

.mobile-sticky-cta .btn-primary {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
}

.mobile-sticky-cta-dismiss {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

@media (max-width: 880px) {
  .mobile-sticky-cta { display: block; }
}

/* ============================================================
   SCROLL FADE-UP ANIMATION
   ============================================================ */

[data-fade-up] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(0.2, 0, 0, 1),
              transform 600ms cubic-bezier(0.2, 0, 0, 1);
  will-change: opacity, transform;
}

[data-fade-up].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-fade-up] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   MULTI-STEP FORM (CMA progressive)
   ============================================================ */

.progressive-form {
  background: var(--paper-white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-width: 480px;
  margin: 0 auto;
}

.progress-bar-wrapper {
  margin-bottom: 24px;
}

.progress-bar-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 8px;
}

.progress-bar-track {
  height: 3px;
  background: rgba(145, 168, 155, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 2px;
  transition: width 400ms ease;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: fadeInStep 300ms ease;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-step h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.form-step .step-subhead {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 20px;
}

/* Pill selector for condition / categorical fields */
.pill-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-selector button {
  flex: 1 1 auto;
  min-width: 100px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  transition: all 150ms ease;
}

.pill-selector button:hover {
  border-color: var(--sage-deep);
  background: rgba(145, 168, 155, 0.08);
}

.pill-selector button.is-selected {
  background: var(--sage);
  border-color: var(--sage-deep);
  color: var(--navy);
  font-weight: 600;
}

/* Number stepper */
.number-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper-white);
  padding: 0 8px;
  max-width: 160px;
}

.number-stepper button {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--sand-cream);
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-stepper button:hover {
  background: var(--sage);
  color: var(--navy);
}

.number-stepper input {
  flex: 1;
  height: 40px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-primary);
}

.number-stepper input:focus {
  outline: none;
  box-shadow: none;
}

/* Loading state after submit */
.form-loading {
  display: none;
  text-align: center;
  padding: 32px 16px;
}

.form-loading.is-active {
  display: block;
}

.form-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(145, 168, 155, 0.25);
  border-top-color: var(--sage-deep);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-loading-text {
  font-size: 14px;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}

/* ============================================================
   NET SHEET PREVIEW (CMA page)
   ============================================================ */

.net-sheet-section {
  background: var(--paper-white);
  padding: 64px 0;
}

.net-sheet-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

@media (max-width: 880px) {
  .net-sheet-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.net-sheet-mockup {
  background: var(--paper-white);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 32px;
  font-family: var(--font-serif);
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.net-sheet-mockup::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 35%, rgba(246, 239, 222, 0.4) 80%, rgba(246, 239, 222, 0.8) 100%);
  border-radius: 8px;
  pointer-events: none;
}

.net-sheet-mockup h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  text-align: center;
  margin: 0 0 4px;
  font-weight: 600;
}

.net-sheet-mockup .net-sheet-meta {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 20px;
}

.net-sheet-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px dotted var(--hairline);
}

.net-sheet-row.is-blurred span:last-child {
  filter: blur(4px);
  user-select: none;
}

.net-sheet-row.net-sheet-total {
  border-bottom: none;
  border-top: 2px solid var(--ink-primary);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
}

.net-sheet-row.net-sheet-total span:last-child {
  filter: none;
  color: var(--sage-deep);
}

.net-sheet-copy h2 {
  margin-bottom: 16px;
}

.net-sheet-copy p {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--ink-primary);
  margin-bottom: 16px;
}

.net-sheet-copy ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.net-sheet-copy li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
}

.net-sheet-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--sage-deep);
  border-bottom: 2px solid var(--sage-deep);
  transform: rotate(-45deg);
}

/* ============================================================
   MAP PROOF (CMA page)
   ============================================================ */

.map-proof-section {
  background: var(--sand-cream);
  padding: 64px 0;
  text-align: center;
}

.map-proof-section h2 {
  margin-bottom: 16px;
}

.map-proof-section .lead {
  max-width: 540px;
  margin: 0 auto 32px;
}

.map-proof-svg {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.map-proof-caption {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-muted);
}

/* ============================================================
   EYEBROW REFINEMENT — sage color
   ============================================================ */

.eyebrow {
  color: var(--sage);
  letter-spacing: 0.14em;
  font-size: 13px;
}

.hero .eyebrow {
  color: var(--sage);
}

/* ============================================================
   HUB HERO PHOTO BACKGROUND
   ============================================================ */

.hero.hero-photo-bg {
  position: relative;
  background-image: url('/assets/hero-cape-marsh.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--navy); /* fallback if image missing */
}

.hero.hero-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 41, 66, 0.75) 0%, rgba(16, 41, 66, 0.92) 100%);
  z-index: 0;
}

.hero.hero-photo-bg .container {
  position: relative;
  z-index: 1;
}


/* ── YouTube embed wrapper — keeps viewers on site ─────────────────────────
   Transparent overlay divs block the two areas that link out to YouTube:
   1. The title bar that appears on hover at the top of the player
   2. The YouTube watermark logo above the control bar (bottom-right)
   The overlays are invisible — the logo is still visible, just not clickable.
   Control bar (play/pause/volume/fullscreen) is fully accessible below.
   ─────────────────────────────────────────────────────────────────────── */
.yt-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.yt-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Blocks the hoverable title bar at the very top (links to YouTube channel) */
.yt-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 10;
  cursor: default;
}

/* Blocks the YouTube watermark logo (sits above the control bar, bottom-right) */
.yt-overlay-logo {
  position: absolute;
  bottom: 38px;
  right: 0;
  width: 135px;
  height: 30px;
  z-index: 10;
  cursor: default;
}


/* ---------------------------------------------------------------------------
   Responsive 3-up. Added because two grids on /library-access/ carried their
   column count as an INLINE style, which outranks every media query in this
   file — on a phone they stayed three columns about 95px wide and the copy
   wrapped one word per line. Use this class instead of inline grid columns.
   ------------------------------------------------------------------------- */
.lc-3up { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8, 32px); margin-top: var(--sp-8, 32px); }
@media (max-width: 768px) { .lc-3up { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 600px) { .lc-3up { grid-template-columns: 1fr; gap: 24px; } }


/* ── Mobile hero density (2026-09-04) ───────────────────────────────────────
   At 375px the hero ran roughly two full screens before the first form field:
   headline, lead paragraph and three bullets, with no field, button or CTA in
   the opening viewport. Most Meta traffic lands here, so the opening screen has
   to show the ask. Tightens type and spacing only — no DOM change. */
@media (max-width: 600px) {
  .hero-copy h1 { font-size: clamp(28px, 8.2vw, 38px); line-height: 1.12; margin-bottom: var(--sp-4); }
  .hero-copy > p { font-size: 16px; line-height: 1.5; margin-bottom: var(--sp-4); }
  .hero-copy ul { margin-bottom: 20px !important; }
  .hero-copy ul li { font-size: 15px !important; line-height: 1.45 !important; padding-top: 4px !important; padding-bottom: 4px !important; }
}

/* Segmenter tile selected state — the tiles now do something visible. */
.segmenter-tile.is-selected {
  border-color: var(--gold, #B8995F);
  box-shadow: inset 0 0 0 1px var(--gold, #B8995F);
}
