/* ============================================
   FUEGO REMODEL — MINIMAL EDITORIAL UI
   Quiet Editorial, Choreographed (Build Package v1.2)
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

:root {
  /* Color Palette from Context.json */
  --color-ink: #0B0B0C;
  --color-ink-muted: #2B2B2E;
  --color-paper: #FFFFFF;
  --color-paper-soft: #F6F7F8;
  --color-paper-tint: #EFF1F2;
  --color-border: #E6E8EB;
  --color-border-soft: #EEF0F2;
  --color-shadow: rgba(11, 11, 12, 0.08);
  --color-shadow-soft: rgba(11, 11, 12, 0.04);
  --color-success: #1B7F5A;
  --color-warning: #B7791F;
  --color-danger: #B42318;

  /* Semantic Colors */
  --text-primary: var(--color-ink);
  --text-secondary: var(--color-ink-muted);
  --text-on-dark: var(--color-paper);
  --bg-page: var(--color-paper);
  --bg-section: var(--color-paper-soft);
  --bg-card: var(--color-paper);
  --bg-muted: var(--color-paper-tint);
  --border-default: var(--color-border);
  --border-muted: var(--color-border-soft);
  --border-soft: var(--color-border-soft);
  --focus-ring: var(--color-ink);
  --button-primary-bg: var(--color-ink);
  --button-primary-text: var(--color-paper);
  --button-secondary-bg: var(--color-paper);
  --button-secondary-text: var(--color-ink);
  --button-secondary-border: var(--color-border);

  /* Typography from Context.json */
  --font-ui-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-editorial-serif: Fraunces, ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Typography Scale from Context.json */
  --font-display-size: 68px; /* §2.5-A raised hero display max (was 56) */
  --font-display-line-height: 1.02;
  --font-display-letter-spacing: -0.025em;
  --font-display-weight: 500;

  --font-h1-size: 44px;
  --font-h1-line-height: 1.08;
  --font-h1-letter-spacing: -0.02em;
  --font-h1-weight: 500;

  --font-h2-size: 32px;
  --font-h2-line-height: 1.15;
  --font-h2-letter-spacing: -0.01em;
  --font-h2-weight: 500;

  --font-h3-size: 24px;
  --font-h3-line-height: 1.2;
  --font-h3-letter-spacing: -0.01em;
  --font-h3-weight: 500;

  --font-body-size: 16px;
  --font-body-line-height: 1.55;
  --font-body-letter-spacing: 0;
  --font-body-weight: 400;

  --font-small-size: 14px;
  --font-small-line-height: 1.5;
  --font-small-letter-spacing: 0;
  --font-small-weight: 400;

  --font-micro-size: 12px;
  --font-micro-line-height: 1.4;
  --font-micro-letter-spacing: 0.02em;
  --font-micro-weight: 500;

  /* Spacing Scale (8px base) from Context.json */
  --spacing-0: 0;
  --spacing-1: 8px;
  --spacing-2: 16px;
  --spacing-3: 24px;
  --spacing-4: 32px;
  --spacing-5: 40px;
  --spacing-6: 48px;
  --spacing-7: 64px;
  --spacing-8: 80px;
  --spacing-9: 96px;
  --spacing-10: 128px;

  /* Layout Defaults */
  --page-padding-desktop: 48px;
  --page-padding-mobile: 20px;
  --section-vertical: 96px;
  --section-vertical-tight: 64px;
  --card-padding: 24px;
  --card-padding-tight: 16px;
  --form-row-gap: 12px;
  --grid-gap: 24px;

  /* Border Radius from Context.json */
  --radius-pill: 999px;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  /* Shadows from Context.json */
  --shadow-none: none;
  --shadow-soft: 0 10px 30px rgba(11, 11, 12, 0.06);
  --shadow-card: 0 1px 2px rgba(11, 11, 12, 0.04), 0 8px 24px rgba(11, 11, 12, 0.07);
  --shadow-floating: 0 2px 4px rgba(11, 11, 12, 0.05), 0 18px 60px rgba(11, 11, 12, 0.12);

  /* Stroke */
  --stroke-hairline: 1px;

  /* Motion */
  --motion-fast: 120ms;
  --motion-base: 180ms;
  --motion-slow: 260ms;
  --motion-reveal: 560ms;
  --easing-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --easing-exit: cubic-bezier(0.4, 0, 1, 1);

  /* Layout */
  --container-max: 1200px;
  --grid-gutter: 24px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui-sans);
  font-size: var(--font-body-size);
  line-height: var(--font-body-line-height);
  letter-spacing: var(--font-body-letter-spacing);
  font-weight: var(--font-body-weight);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* Depth pass: fine grain texture over the whole page (static raster tile, non-interactive) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("../Website-Images/grain.png");
  background-size: 96px 96px;
}

::selection {
  background-color: var(--color-ink);
  color: var(--color-paper);
}

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

picture {
  display: block;
}

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

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

ul {
  list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--spacing-1) var(--spacing-2);
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.display {
  font-family: var(--font-editorial-serif);
  font-size: clamp(2.5rem, 5.5vw, var(--font-display-size));
  line-height: var(--font-display-line-height);
  letter-spacing: var(--font-display-letter-spacing);
  font-weight: var(--font-display-weight);
  margin-bottom: var(--spacing-3);
}

.accent-serif {
  font-family: var(--font-editorial-serif);
  font-style: italic;
}

.h1 {
  font-size: clamp(1.75rem, 4vw, var(--font-h1-size));
  line-height: var(--font-h1-line-height);
  letter-spacing: var(--font-h1-letter-spacing);
  font-weight: var(--font-h1-weight);
  margin-bottom: var(--spacing-2);
}

.h2 {
  font-size: clamp(1.5rem, 3vw, var(--font-h2-size));
  line-height: var(--font-h2-line-height);
  letter-spacing: var(--font-h2-letter-spacing);
  font-weight: var(--font-h2-weight);
  margin-bottom: var(--spacing-2);
}

.h3 {
  font-size: var(--font-h3-size);
  line-height: var(--font-h3-line-height);
  letter-spacing: var(--font-h3-letter-spacing);
  font-weight: var(--font-h3-weight);
  margin-bottom: var(--spacing-2);
}

.body {
  font-size: var(--font-body-size);
  line-height: var(--font-body-line-height);
  letter-spacing: var(--font-body-letter-spacing);
  font-weight: var(--font-body-weight);
  color: var(--text-secondary);
  max-width: 62ch;
}

.kicker {
  font-size: var(--font-micro-size);
  line-height: var(--font-micro-line-height);
  letter-spacing: var(--font-micro-letter-spacing);
  font-weight: var(--font-micro-weight);
  text-transform: none;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-1);
}

/* §2.5-A quiet editorial signature: 24px hairline rule before section kickers */
.section .kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--color-border);
  margin-right: 8px;
  vertical-align: middle;
}

.panel--ink .kicker::before {
  background-color: rgba(255, 255, 255, 0.35);
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  font-size: var(--font-micro-size);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--spacing-2);
}

.badge--neutral {
  background-color: var(--bg-muted);
  color: var(--text-secondary);
}

.badge--ink {
  background-color: var(--color-ink);
  color: var(--color-paper);
}

.caps {
  font-size: var(--font-small-size);
  color: var(--text-secondary);
  margin-top: var(--spacing-1);
  padding-top: var(--spacing-1);
  border-top: var(--stroke-hairline) solid var(--border-default);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-padding-desktop);
}

.section {
  padding: var(--section-vertical) 0;
}

.section--tight {
  padding: var(--section-vertical-tight) 0;
}

.section--soft {
  background-color: var(--bg-section);
  background-image: linear-gradient(180deg, var(--color-paper-soft) 0%, #F2F3F5 100%);
}

/* Anchored jumps: padded sections land flush behind the 64px sticky nav, so their
   own 96px top padding reads as a clean 32px of breathing room below the nav */
section[id] {
  scroll-margin-top: 0;
}

/* Hero is the page top — keep the brand-link jump clamping to y=0 */
#hero {
  scroll-margin-top: 80px;
}

/* Un-padded anchor targets (dark partner panel, audit form) clear the nav + 24px */
#partner,
#quote-form {
  scroll-margin-top: 88px;
}

/* Agents section - continuation of process, not new section */
.agents {
  padding-top: var(--section-vertical-tight);
}

/* Soften kicker in agents section to feel like continuation */
.agents .kicker {
  opacity: 0.7;
  margin-bottom: var(--spacing-1);
}

.section__header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-7);
  gap: var(--spacing-4);
}

/* A header's right-side button keeps its label on one line */
.section__header > .button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Depth pass: oversized ghosted section numerals (editorial signature) */
.section-num {
  position: absolute;
  right: 0;
  top: -28px;
  font-family: var(--font-editorial-serif);
  font-size: clamp(96px, 14vw, 200px);
  line-height: 0.8;
  font-weight: 500;
  color: var(--color-ink);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}

/* Packages header carries a right-side button — shift its numeral clear of it */
#packages .section-num {
  right: 200px;
}

/* Process section - more breathing room after subhead */
.process .section__header {
  margin-bottom: var(--spacing-8);
}

/* Section intro text - larger and more authoritative */
.section__header .body {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 65ch;
}

/* Packages section - tighter vertical hierarchy */
.packages .section__header .h1 {
  margin-bottom: var(--spacing-3);
}

.packages .section__header {
  margin-bottom: var(--spacing-4);
}

/* ============================================
   NAVIGATION
   ============================================ */

.top-nav {
  position: sticky;
  top: 0;
  background-color: var(--bg-page);
  border-bottom: var(--stroke-hairline) solid var(--border-soft);
  z-index: 100;
  height: 64px;
  transition: background-color var(--motion-base) var(--easing-standard), box-shadow var(--motion-base) var(--easing-standard);
}

/* §2.5-D nav after 8px scroll: blur + hairline shadow */
.top-nav.is-scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--page-padding-desktop);
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
  font-family: var(--font-ui-sans);
  font-weight: 600;
  font-size: 14px;
}

.brand__logo {
  height: 32px;
  width: auto;
}

.brand__text {
  color: var(--text-primary);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--spacing-1);
}

.nav__bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-ink);
  transition: all var(--motion-base) var(--easing-standard);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.nav__links a {
  font-family: var(--font-ui-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--motion-base) var(--easing-standard);
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__links a:active {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: var(--stroke-hairline);
}

/* §2.5-D scrollspy: active section link underlined */
.nav__links a.is-active {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* Full phone number only inside the mobile menu */
.nav__cta-num {
  display: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 10px 16px;
  font-family: var(--font-ui-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--motion-base) var(--easing-standard);
  text-align: center;
  gap: 8px;
}

.button--block {
  width: 100%;
}

.button--secondary {
  background-color: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  border: var(--stroke-hairline) solid var(--button-secondary-border);
}

.button--secondary:hover {
  background-color: var(--bg-muted);
}

.button--ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: none;
}

.button--ghost:hover {
  background-color: var(--bg-muted);
}

.button--primary,
.button:not(.button--ghost):not(.button--secondary):not(.button--paper):not(.button--ghost-dark) {
  background-color: var(--button-primary-bg);
  background-image: linear-gradient(180deg, #1C1C1F 0%, #0B0B0C 100%);
  color: var(--button-primary-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button--primary:hover,
.button:not(.button--ghost):not(.button--secondary):not(.button--paper):not(.button--ghost-dark):hover {
  background-color: var(--color-ink-muted);
  background-image: linear-gradient(180deg, #2B2B2E 0%, #1A1A1C 100%);
}

/* Paper button (used on the dark partner panel) */
.button--paper {
  background-color: var(--color-paper);
  color: var(--color-ink);
}

.button--paper:hover {
  background-color: var(--color-paper-soft);
}

/* Ghost on dark */
.button--ghost-dark {
  background-color: transparent;
  color: var(--color-paper);
  border: var(--stroke-hairline) solid rgba(255, 255, 255, 0.3);
}

.button--ghost-dark:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* §2.5-D button micro-interactions: hover lift, active press */
@media (hover: hover) {
  .button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
  }

  .button--ghost:hover {
    box-shadow: none;
  }
}

.button:active {
  transform: scale(0.98);
}

/* Primary CTA arrow nudge */
.button__arrow {
  display: inline-block;
  transition: transform var(--motion-fast) var(--easing-standard);
}

.button--primary:hover .button__arrow {
  transform: translateX(2px);
}

/* Submit success state (§2.5-D form feedback) */
.button--success,
.button--success:hover {
  background-color: var(--color-success);
  background-image: none;
  color: #ffffff;
}

.button:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-3);
  align-items: center;
}

/* CTA hierarchy - secondary CTAs visually softened (quiet ghost, NOT demoted) */
.cta-row .button--ghost {
  font-size: 13px;
  opacity: 0.9;
}

.cta-row .button--ghost:hover {
  opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding-top: var(--spacing-4);
  padding-bottom: var(--spacing-7);
  background-image: linear-gradient(180deg, #FAFBFB 0%, var(--color-paper) 30%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-7);
  align-items: center;
  min-height: calc(85vh - 64px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
  gap: 0;
}

/* Badge: small and quiet above the H1 */
.hero__content .badge {
  font-size: var(--font-micro-size);
  padding: 6px 10px;
  margin-bottom: var(--spacing-3);
  opacity: 0.7;
  background-color: var(--bg-muted);
}

/* Headline dominance - raised display scale (§2.5-A) */
.hero__content .display {
  color: var(--text-primary);
  margin-bottom: var(--spacing-3);
}

.hero__content .body {
  margin-bottom: var(--spacing-2);
}

/* Full-prominence CTA row (§2.5-A: demotion killed) */
.hero__content .cta-row {
  margin-top: var(--spacing-3);
  margin-bottom: var(--spacing-2);
  gap: var(--spacing-2);
}

.hero__meta {
  font-size: var(--font-micro-size);
  color: var(--text-secondary);
  margin-top: var(--spacing-1);
  margin-bottom: 0;
  opacity: 0.6;
  line-height: 1.5;
}

.hero__media {
  margin: 0;
  position: relative;
}

/* Depth pass: offset tint frame behind the hero photo */
.hero__media::before {
  content: "";
  position: absolute;
  top: 28px;
  right: -28px;
  bottom: 52px;
  left: 28px;
  background: linear-gradient(135deg, var(--color-paper-tint), var(--color-paper-soft));
  border-radius: var(--radius-xl);
  z-index: 0;
}

.hero__media picture {
  position: relative;
  z-index: 1;
}

.hero__media img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 6px rgba(11, 11, 12, 0.05), 0 28px 72px rgba(11, 11, 12, 0.14);
}

/* Depth pass: proof chip overlapping the hero photo */
.hero__chip {
  position: absolute;
  left: -20px;
  bottom: 56px;
  z-index: 2;
  background-color: var(--bg-page);
  border: var(--stroke-hairline) solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-floating);
}

.hero__chip-value {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}

.hero__chip-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hero__media figcaption {
  margin-top: var(--spacing-2);
  font-size: var(--font-micro-size);
  color: var(--text-secondary);
  opacity: 0.6;
  text-align: left;
}

/* §2.5-C1 hero entrance choreography (load, not scroll; image is LCP, never animated) */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero__content > * {
    opacity: 0;
    animation: hero-enter 500ms var(--easing-standard) forwards;
  }

  html.js .hero__content > :nth-child(1) { animation-delay: 0ms; }
  html.js .hero__content > :nth-child(2) { animation-delay: 80ms; }
  html.js .hero__content > :nth-child(3) { animation-delay: 160ms; }
  html.js .hero__content > :nth-child(4) { animation-delay: 240ms; }
  html.js .hero__content > :nth-child(5) { animation-delay: 320ms; }

  html.js .hero__chip {
    opacity: 0;
    animation: hero-enter 500ms var(--easing-standard) 420ms forwards;
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   §2.5-B REVEAL SYSTEM (below-fold scroll reveals)
   ============================================ */

html.js .reveal,
html.js .reveal-group > * {
  opacity: 0;
  transform: translateY(16px);
}

html.js .reveal.is-visible,
html.js .reveal-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--motion-reveal) var(--easing-standard), transform var(--motion-reveal) var(--easing-standard);
}

/* 70ms child stagger */
.reveal-group.is-visible > :nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible > :nth-child(2) { transition-delay: 70ms; }
.reveal-group.is-visible > :nth-child(3) { transition-delay: 140ms; }
.reveal-group.is-visible > :nth-child(4) { transition-delay: 210ms; }
.reveal-group.is-visible > :nth-child(5) { transition-delay: 280ms; }
.reveal-group.is-visible > :nth-child(6) { transition-delay: 350ms; }
.reveal-group.is-visible > :nth-child(7) { transition-delay: 420ms; }
.reveal-group.is-visible > :nth-child(8) { transition-delay: 490ms; }
.reveal-group.is-visible > :nth-child(9) { transition-delay: 560ms; }
.reveal-group.is-visible > :nth-child(10) { transition-delay: 630ms; }
.reveal-group.is-visible > :nth-child(11) { transition-delay: 700ms; }
.reveal-group.is-visible > :nth-child(12) { transition-delay: 770ms; }

/* ============================================
   GHOST MODE SECTION (§3.2)
   ============================================ */

.flow {
  display: flex;
  align-items: stretch;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-6);
}

.flow__node {
  flex: 1;
  background-color: var(--bg-card);
  border: var(--stroke-hairline) solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--spacing-2);
}

.flow__title {
  font-size: var(--font-small-size);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.flow__sub {
  font-size: var(--font-micro-size);
  font-weight: 400;
  color: var(--text-secondary);
}

.flow__arrow {
  align-self: center;
  flex-shrink: 0;
  color: var(--color-ink-muted);
  font-size: 18px;
  line-height: 1;
}

.flow__arrow::before {
  content: "→";
}

/* §2.5-C2 the diagram draws itself: nodes pop in sequence, arrows grow after their node */
html.js .flow .flow__node {
  opacity: 0;
  transform: scale(0.96);
}

html.js .flow .flow__arrow {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

html.js .flow.is-visible .flow__node {
  opacity: 1;
  transform: none;
  transition: opacity 300ms var(--easing-standard), transform 300ms var(--easing-standard);
}

html.js .flow.is-visible .flow__arrow {
  opacity: 1;
  transform: scaleX(1);
  transition: opacity 240ms var(--easing-standard), transform 240ms var(--easing-standard);
}

.flow.is-visible > :nth-child(1) { transition-delay: 0ms; }
.flow.is-visible > :nth-child(2) { transition-delay: 120ms; }
.flow.is-visible > :nth-child(3) { transition-delay: 120ms; }
.flow.is-visible > :nth-child(4) { transition-delay: 240ms; }
.flow.is-visible > :nth-child(5) { transition-delay: 240ms; }
.flow.is-visible > :nth-child(6) { transition-delay: 360ms; }
.flow.is-visible > :nth-child(7) { transition-delay: 360ms; }

/* Without/with contrast table */
.contrast {
  background-color: var(--bg-card);
  border: var(--stroke-hairline) solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.contrast__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contrast__row + .contrast__row {
  border-top: var(--stroke-hairline) solid var(--border-soft);
}

.contrast__cell {
  padding: var(--spacing-2) var(--spacing-3);
  font-size: 15px;
  line-height: 1.5;
}

.contrast__cell--without {
  background-color: var(--color-paper-tint);
  color: var(--text-secondary);
}

.contrast__cell--with {
  background-color: var(--color-paper);
  color: var(--text-primary);
}

.contrast__row--head .contrast__cell {
  font-size: var(--font-small-size);
  font-weight: 600;
}

.contrast__row--head .contrast__cell--without {
  color: var(--text-secondary);
}

/* §2.5-C3 rows land as without→with punchline pairs */
html.js .contrast .contrast__cell {
  opacity: 0;
  transform: translateY(8px);
}

html.js .contrast.is-visible .contrast__cell {
  opacity: 1;
  transform: none;
  transition: opacity 360ms var(--easing-standard), transform 360ms var(--easing-standard);
}

.contrast.is-visible .contrast__row:nth-child(1) .contrast__cell--without { transition-delay: 0ms; }
.contrast.is-visible .contrast__row:nth-child(1) .contrast__cell--with { transition-delay: 120ms; }
.contrast.is-visible .contrast__row:nth-child(2) .contrast__cell--without { transition-delay: 90ms; }
.contrast.is-visible .contrast__row:nth-child(2) .contrast__cell--with { transition-delay: 210ms; }
.contrast.is-visible .contrast__row:nth-child(3) .contrast__cell--without { transition-delay: 180ms; }
.contrast.is-visible .contrast__row:nth-child(3) .contrast__cell--with { transition-delay: 300ms; }
.contrast.is-visible .contrast__row:nth-child(4) .contrast__cell--without { transition-delay: 270ms; }
.contrast.is-visible .contrast__row:nth-child(4) .contrast__cell--with { transition-delay: 390ms; }
.contrast.is-visible .contrast__row:nth-child(5) .contrast__cell--without { transition-delay: 360ms; }
.contrast.is-visible .contrast__row:nth-child(5) .contrast__cell--with { transition-delay: 480ms; }

.ghost-mode__closing {
  margin-top: var(--spacing-4);
}

/* ============================================
   QUOTE FORM
   ============================================ */

.quote-widget {
  background-color: var(--bg-section);
  padding: var(--card-padding);
  border-radius: var(--radius-lg);
  border: var(--stroke-hairline) solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* In the contact section (paper-soft bg) the widget sits on card white */
.contact .quote-widget {
  background-color: var(--bg-card);
  border-color: var(--border-default);
  box-shadow: var(--shadow-card);
}

.quote-widget__kicker {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--font-micro-letter-spacing);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2);
}

.quote-widget__fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: var(--font-small-size);
  font-weight: 500;
  color: var(--text-primary);
}

/* §3.8 anxiety microcopy under the phone field */
.field__helper {
  font-size: var(--font-micro-size);
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.8;
  line-height: 1.4;
}

.field input,
.field select,
.field textarea {
  height: 40px;
  min-width: 0;
  padding: 0 14px;
  border: var(--stroke-hairline) solid var(--border-default);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui-sans);
  font-size: var(--font-small-size);
  background-color: var(--bg-card);
  transition: border-color var(--motion-base) var(--easing-standard), box-shadow var(--motion-base) var(--easing-standard);
}

.field textarea {
  height: auto;
  padding: 10px 14px;
  resize: vertical;
  min-height: 80px;
  border-radius: var(--radius-md);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px rgba(11, 11, 12, 0.15);
}

/* §3.8 next-step microcopy under the submit button */
.form-microcopy {
  font-size: var(--font-micro-size);
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-top: var(--spacing-1);
  line-height: 1.4;
}

/* §3.8 trust at the point of commitment */
.form-trust {
  margin-top: var(--spacing-2);
  padding-top: var(--spacing-2);
  border-top: var(--stroke-hairline) solid var(--border-soft);
}

.form-trust__line {
  font-size: var(--font-micro-size);
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 4px;
}

.form-trust__line:last-child {
  margin-bottom: 0;
}

.form-status {
  margin-top: var(--spacing-1);
  border-radius: var(--radius-md);
  font-size: var(--font-small-size);
}

.form-status:not(:empty) {
  padding: var(--spacing-1);
}

.form-status--success {
  background-color: rgba(27, 127, 90, 0.1);
  color: var(--color-success);
}

.form-status--error {
  background-color: rgba(180, 35, 24, 0.1);
  color: var(--color-danger);
}

/* ============================================
   PACKAGES SECTION (§3.3)
   ============================================ */

.packages__capacity {
  font-size: var(--font-small-size);
  color: var(--text-secondary);
  opacity: 0.8;
  margin-top: var(--spacing-1);
}

.packages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--grid-gap);
  margin-bottom: var(--spacing-6);
  align-items: start;
}

.card {
  background-color: var(--bg-card);
  border: var(--stroke-hairline) solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-base) var(--easing-standard), box-shadow var(--motion-base) var(--easing-standard);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-floating);
}

.pricing {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Featured tier: slightly deeper RESTING shadow (§2.5-D, no pulsing) */
.pricing--featured {
  background-color: var(--bg-section);
  border-color: var(--border-default);
  border-width: 1px;
  padding: var(--card-padding);
  box-shadow: 0 12px 36px rgba(11, 11, 12, 0.10);
}

/* Tier badge - subtle, low contrast */
.pricing .badge {
  margin-bottom: var(--spacing-1);
  opacity: 0.8;
}

.pricing .badge--ink {
  opacity: 1;
}

/* Package name - largest text, editorial spacing */
.pricing h3 {
  font-size: var(--font-h3-size);
  line-height: 1.1;
  letter-spacing: var(--font-h3-letter-spacing);
  font-weight: var(--font-h3-weight);
  margin-bottom: 4px;
  margin-top: 0;
}

/* Price - separate line; underline grows in on card hover (§2.5-D) */
.pricing__price {
  position: relative;
  align-self: flex-start;
  font-size: var(--font-h2-size);
  line-height: 1.0;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  margin-top: 0;
  padding-bottom: 4px;
}

.pricing__price::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--color-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--easing-standard);
}

.pricing:hover .pricing__price::after {
  transform: scaleX(1);
}

/* Outcome description - subtitle weight */
.pricing__description {
  font-size: var(--font-body-size);
  line-height: 1.4;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--spacing-3);
  margin-top: 0;
}

/* Subtle dividers */
.pricing__divider {
  height: 1px;
  background-color: var(--border-soft);
  margin: 0;
  border: none;
}

/* Inclusions list - medium spacing before list */
.pricing .list {
  margin: var(--spacing-3) 0;
  padding: 0;
}

.pricing .list li {
  padding-left: var(--spacing-3);
  position: relative;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: var(--font-body-size);
  line-height: 1.4;
}

.pricing .list li::before {
  content: "•";
  position: absolute;
  left: var(--spacing-1);
  color: var(--text-secondary);
  font-weight: 400;
  opacity: 0.5;
  font-size: 1.2em;
}

/* §3.3 ROI line - the one serif moment inside each card, "the evidence line" */
.pricing__roi {
  font-family: var(--font-editorial-serif);
  font-style: italic;
  font-size: var(--font-small-size);
  line-height: 1.5;
  color: var(--text-secondary);
  border-top: var(--stroke-hairline) solid var(--border-soft);
  padding-top: var(--spacing-1);
  margin-bottom: 0;
}

/* Scope & caps block - muted, professional */
.pricing__scope {
  margin-top: var(--spacing-2);
  margin-bottom: var(--spacing-4);
}

.pricing__scope .caps {
  font-size: var(--font-micro-size);
  line-height: 1.4;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* CTA - aligned to bottom of card with consistent spacing */
.pricing .button {
  margin-top: auto;
  margin-bottom: 0;
  width: 100%;
  min-height: 40px;
  height: 40px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================
   PROOF/TRUST SECTION (§3.5)
   ============================================ */

/* Guarantee feature panel: paper-soft, 4px ink left rule, the page's most quotable block */
.guarantee-panel {
  background-color: var(--bg-section);
  background-image: linear-gradient(135deg, #F6F7F8 0%, #F0F2F3 100%);
  border-left: 4px solid var(--color-ink);
  border-radius: var(--radius-lg);
  padding: var(--spacing-4) var(--spacing-5);
  margin-bottom: var(--spacing-6);
}

.guarantee-panel__headline {
  font-family: var(--font-editorial-serif);
  font-size: clamp(1.25rem, 2.5vw, var(--font-h3-size));
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 58ch;
  margin: var(--spacing-1) 0 var(--spacing-2);
}

.trust-grid {
  margin-bottom: var(--spacing-5);
}

.trust-card__title {
  font-size: var(--font-body-size);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-1);
}

.trust-card .body {
  font-size: 15px;
  margin-bottom: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--grid-gap);
  margin-bottom: var(--spacing-7);
}

.image-card {
  background-color: var(--bg-card);
  border: var(--stroke-hairline) solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-base) var(--easing-standard), box-shadow var(--motion-base) var(--easing-standard);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.image-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-floating);
}

/* Overflow-hidden frame so the §2.5-D image zoom stays clipped */
.image-card picture {
  overflow: hidden;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.image-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 600ms var(--easing-standard);
}

.image-card:hover img {
  transform: scale(1.04);
}

.image-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--spacing-4) var(--card-padding-tight) var(--card-padding-tight) var(--card-padding-tight);
}

/* Emphasize outcome titles - results should lead */
.image-card__body .h3 {
  font-weight: 600;
  margin-bottom: var(--spacing-2);
  margin-top: 0;
  line-height: 1.15;
}

/* Consistent description spacing */
.image-card__body .body {
  margin-bottom: 0;
  margin-top: 0;
  flex-grow: 1;
}

.proof__caption {
  text-align: center;
  font-size: var(--font-micro-size);
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: calc(-1 * var(--spacing-4));
}

/* ============================================
   PROCESS SECTION (§3.4)
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--grid-gap);
}

.step {
  display: flex;
  gap: var(--spacing-3);
  align-items: flex-start;
}

/* Lower visual hierarchy of steps - evidence, not primary content */
.step .h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
}

.step .body {
  font-size: 15px;
  opacity: 0.85;
}

.step__number {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.6;
  line-height: 1;
  flex-shrink: 0;
  background-color: var(--bg-muted);
  border: var(--stroke-hairline) solid transparent;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 300ms var(--easing-standard), color 300ms var(--easing-standard), border-color 300ms var(--easing-standard), opacity 300ms var(--easing-standard);
}

/* §3.4 + §2.5-C4: the agent's two appearances (steps 1 & 3) carry ink-filled circles.
   The fill transitions in on reveal — the design demonstrates the claim. */
.step--you .step__number {
  background-color: var(--color-ink);
  color: var(--color-paper);
  opacity: 1;
}

html.js .steps:not(.is-visible) .step--you .step__number {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--color-ink);
}

.step--you .h3 {
  color: var(--text-primary);
}

/* ============================================
   AGENTS SECTION (§3.6)
   ============================================ */

/* Objection neutralizers: 2×2 grid of quiet cards */
.neutralizers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  margin-bottom: var(--spacing-6);
}

.neutralizer {
  box-shadow: none;
}

.neutralizer:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.neutralizer__q {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: var(--spacing-1);
}

.neutralizer .body {
  font-size: 15px;
  margin-bottom: 0;
}

/* Partner Program panel: the single dark ink moment on the page */
.panel--ink {
  background-color: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  margin-bottom: var(--spacing-4);
}

.panel__kicker {
  color: var(--color-paper);
  opacity: 0.7;
}

.agents .panel__kicker {
  opacity: 0.7;
}

.panel__title {
  color: var(--color-paper);
  max-width: 24ch;
}

.panel__body {
  font-size: var(--font-body-size);
  line-height: var(--font-body-line-height);
  color: rgba(255, 255, 255, 0.85);
  max-width: 62ch;
  margin-bottom: var(--spacing-2);
}

.panel__subline {
  font-size: var(--font-small-size);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-4);
}

.panel--ink .cta-row {
  margin-bottom: 0;
}

/* §2.5-C5 the page's one deliberate pause: CTA row staggers in after the panel */
html.js .panel--ink .panel__cta-row {
  opacity: 0;
}

html.js .panel--ink.is-visible .panel__cta-row {
  opacity: 1;
  transition: opacity 400ms var(--easing-standard) 250ms;
}

/* Stats card (§2.5-C7: simple stagger only, no counters) */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-3);
  padding: var(--card-padding);
  background-color: var(--bg-card);
  border: var(--stroke-hairline) solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.stats:hover {
  transform: none;
  box-shadow: none;
}

.stat {
  text-align: center;
}

.stat__value {
  font-size: var(--font-h2-size);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-1);
}

.stat__label {
  font-size: var(--font-small-size);
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================
   FAQ/ACCORDION (§3.7)
   ============================================ */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accordion__item {
  border-top: var(--stroke-hairline) solid var(--border-soft);
}

.accordion__item:first-child {
  border-top: none;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-2) 0;
  text-align: left;
  font-size: var(--font-body-size);
  font-weight: 600;
  color: var(--text-primary);
  background-color: transparent;
  transition: background-color var(--motion-base) var(--easing-standard);
}

.accordion__trigger:hover {
  background-color: var(--bg-muted);
}

.accordion__icon {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  transition: transform var(--motion-base) var(--easing-standard);
  flex-shrink: 0;
  margin-left: var(--spacing-2);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--motion-slow) var(--easing-standard), padding var(--motion-slow) var(--easing-standard);
  padding: 0;
}

.accordion__item.is-open .accordion__panel {
  padding-bottom: var(--spacing-2);
}

/* §2.5-D content fade on open */
.accordion__panel > * {
  opacity: 0;
  transition: opacity 150ms var(--easing-standard);
}

.accordion__item.is-open .accordion__panel > * {
  opacity: 1;
  transition-delay: 80ms;
}

.accordion__panel .body {
  margin-bottom: var(--spacing-2);
  line-height: 1.65;
  font-size: 15px;
  opacity: 0.85;
}

.accordion__item.is-open .accordion__panel .body {
  opacity: 0.85;
}

.accordion__panel .list {
  margin-top: var(--spacing-2);
}

.accordion__panel .list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Subtle trust anchor at bottom of FAQ */
.faq__trust-anchor {
  text-align: center;
  font-size: var(--font-micro-size);
  color: var(--text-secondary);
  opacity: 0.5;
  margin-top: var(--spacing-5);
  margin-bottom: 0;
  padding-top: var(--spacing-3);
  border-top: var(--stroke-hairline) solid var(--border-soft);
}

/* License number styling - visually distinct */
.license-number {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============================================
   CONTACT / FINAL CTA SECTION (§3.8)
   ============================================ */

.outro {
  background-color: var(--bg-section);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--spacing-7);
  align-items: start;
}

/* Form controls (the long package <select>) must never widen the column tracks */
.contact__grid > * {
  min-width: 0;
}

.contact__copy .body {
  margin-bottom: var(--spacing-3);
}

.contact__sms a,
.contact__lines a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--text-primary);
}

.contact__lines {
  margin-bottom: 0;
}

/* ============================================
   STICKY MOBILE CTA (§4)
   ============================================ */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: var(--spacing-1);
  padding: 8px var(--page-padding-mobile);
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  background-color: var(--bg-page);
  border-top: var(--stroke-hairline) solid var(--border-default);
  box-shadow: var(--shadow-floating);
  transform: translateY(100%);
  transition: transform var(--motion-slow) var(--easing-standard);
}

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

.sticky-cta .button {
  flex: 1 1 50%;
  min-height: 48px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--bg-section);
  color: var(--text-primary);
  padding: var(--spacing-6) 0;
  margin-top: var(--spacing-9);
  border-top: var(--stroke-hairline) solid var(--border-default);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--spacing-6);
}

.footer .brand {
  margin-bottom: var(--spacing-2);
}

.footer .brand__text {
  color: var(--text-primary);
}

.footer .kicker {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2);
}

.footer .body {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-1);
}

.footer a {
  color: var(--text-secondary);
  transition: color var(--motion-base) var(--easing-standard);
}

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

/* ============================================
   CALLOUT
   ============================================ */

.callout {
  background-color: var(--bg-section);
  background-image: linear-gradient(135deg, var(--color-paper-soft) 0%, var(--color-paper-tint) 100%);
  padding: var(--card-padding);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-4);
  border: var(--stroke-hairline) solid var(--border-default);
  margin-top: var(--spacing-7);
}

/* Guarantee + expansion strips sit closer to the pricing grid */
.packages .callout {
  margin-top: var(--spacing-3);
}

.callout .body {
  max-width: 75ch;
}

/* ============================================
   LISTING REFRESHES SECTION (v1.3)
   ============================================ */

.refreshes .section__header {
  margin-bottom: var(--spacing-6);
}

.refresh-grid {
  margin-bottom: var(--spacing-2);
}

.refresh-card picture {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-3);
  flex-shrink: 0;
}

.refresh-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 600ms var(--easing-standard);
}

.refresh-card:hover img {
  transform: scale(1.04);
}

.refresh-card__num {
  font-family: var(--font-editorial-serif);
  font-size: 36px;
  line-height: 1;
  color: var(--color-ink);
  opacity: 0.12;
  margin-bottom: var(--spacing-2);
}

.refresh-card .h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-1);
}

.refresh-card .body {
  font-size: 15px;
  margin-bottom: var(--spacing-3);
}

.refresh-card__scope {
  margin-top: auto;
  padding-top: var(--spacing-2);
  border-top: var(--stroke-hairline) solid var(--border-soft);
  font-size: var(--font-micro-size);
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.75;
}

.refreshes__close {
  max-width: 800px;
}

.refreshes__pricing {
  font-family: var(--font-editorial-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-4);
}

.refreshes__statement {
  font-family: var(--font-editorial-serif);
  font-size: clamp(1.25rem, 2.4vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-4);
}

.refreshes__micro {
  font-size: var(--font-micro-size);
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: calc(-1 * var(--spacing-1));
}

/* ============================================
   FULL-BLEED PHOTO BAND (depth pass)
   ============================================ */

.photo-band {
  position: relative;
  height: 44vh;
  min-height: 280px;
  max-height: 520px;
  overflow: hidden;
}

.photo-band picture,
.photo-band img {
  width: 100%;
  height: 100%;
}

.photo-band img {
  object-fit: cover;
  object-position: center 30%;
}

.photo-band__caption {
  position: absolute;
  left: var(--page-padding-desktop);
  bottom: var(--spacing-3);
  margin: 0;
  background-color: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: var(--stroke-hairline) solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: var(--font-micro-size);
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
  .container {
    padding: 0 var(--page-padding-mobile);
  }

  .nav__inner {
    padding: 0 var(--page-padding-mobile);
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-5);
    min-height: 0;
  }

  .hero__media img {
    max-height: 480px;
  }

  .packages__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-page);
    border-top: var(--stroke-hairline) solid var(--border-soft);
    flex-direction: column;
    padding: var(--spacing-3);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--motion-base) var(--easing-standard), opacity var(--motion-base) var(--easing-standard), visibility var(--motion-base) var(--easing-standard);
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Mobile menu shows the number in full (§4) */
  .nav__cta-num {
    display: inline;
  }

  .section.hero {
    padding-top: var(--spacing-2);
    padding-bottom: var(--spacing-6);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-3);
    min-height: 0;
  }

  /* Mobile: image first (max-height-constrained), then badge/H1/sub/CTAs (§3.1) */
  .hero__media {
    order: -1;
  }

  .hero__media img {
    max-height: 38vh;
    width: 100%;
  }

  .hero__media figcaption {
    margin-top: var(--spacing-1);
  }

  .hero__content .badge {
    margin-bottom: var(--spacing-2);
  }

  .hero__content .display {
    margin-bottom: var(--spacing-2);
  }

  .hero__content .cta-row {
    margin-top: var(--spacing-2);
    margin-bottom: var(--spacing-1);
  }

  .quote-widget__fields {
    grid-template-columns: 1fr;
  }

  /* Ensure form inputs are properly sized on mobile */
  .field input,
  .field select,
  .field textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px;
  }

  /* Ensure buttons are touch-friendly */
  .button {
    min-height: 44px;
    padding: 12px 20px;
  }

  .packages__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }

  .stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }

  .section__header {
    flex-direction: column;
  }

  .neutralizers {
    grid-template-columns: 1fr;
  }

  .panel--ink {
    padding: var(--spacing-4);
  }

  .callout {
    flex-direction: column;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-5);
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--section-vertical-tight) 0;
  }

  /* Mobile sections carry 64px top padding — land 24px below the nav for the same
     breathing room the desktop landings get from their 96px padding */
  section[id] {
    scroll-margin-top: 24px;
  }

  /* Ghost Mode flow stacks vertically with ↓ arrows (§3.2) */
  .flow {
    flex-direction: column;
    gap: var(--spacing-1);
  }

  .flow__arrow {
    align-self: center;
  }

  .flow__arrow::before {
    content: "↓";
  }

  html.js .flow .flow__arrow {
    transform: scaleY(0);
    transform-origin: center top;
  }

  html.js .flow.is-visible .flow__arrow {
    transform: scaleY(1);
  }

  /* Contrast rows stack as without→with pairs (§3.2) */
  .contrast__row {
    grid-template-columns: 1fr;
  }

  .contrast__cell--with {
    border-top: var(--stroke-hairline) dashed var(--border-soft);
  }

  /* Sticky mobile CTA active; keep the footer/license line clear of it (§4) */
  .sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }

  /* Depth pass, mobile adjustments */
  .hero__media::before {
    display: none;
  }

  .hero__chip {
    left: 12px;
    bottom: 52px;
  }

  .section-num {
    font-size: 72px;
    top: -16px;
    opacity: 0.05;
  }

  #packages .section-num {
    right: 0;
  }

  .photo-band {
    height: 34vh;
    min-height: 220px;
  }

  .photo-band__caption {
    left: var(--page-padding-mobile);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--page-padding-mobile);
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .button {
    width: 100%;
  }

  /* Keep H1 + primary CTA inside the first screen (§3.1) */
  .hero__media img {
    max-height: 28vh;
  }

  .hero__content .body {
    margin-bottom: var(--spacing-1);
  }

  .section__header {
    gap: var(--spacing-2);
  }

  .packages__grid {
    gap: var(--spacing-3);
  }

  .image-card img {
    height: 150px;
  }

  .guarantee-panel {
    padding: var(--spacing-3);
  }

  .quote-widget {
    padding: var(--card-padding-tight);
  }
}

/* ============================================
   ACCESSIBILITY (§2.5-E guardrails)
   ============================================ */

/* Reduced motion: every reveal/choreography element is visible immediately */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  html.js .reveal,
  html.js .reveal-group > *,
  html.js .flow .flow__node,
  html.js .flow .flow__arrow,
  html.js .contrast .contrast__cell,
  html.js .panel--ink .panel__cta-row,
  html.js .hero__content > *,
  html.js .hero__chip {
    opacity: 1 !important;
    transform: none !important;
  }

  html.js .steps:not(.is-visible) .step--you .step__number {
    background-color: var(--color-ink);
    color: var(--color-paper);
    border-color: var(--color-ink);
  }

  .card:hover,
  .image-card:hover {
    transform: none;
  }

  .image-card:hover img {
    transform: none;
  }
}

/* Focus styles for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
