/* ============================================================
   PERFECT SEEN — Design System
   Style: Trust & Authority  |  Navy + Signal Amber
   Tokens → Base → Layout → Components → Sections → Responsive
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand */
  --c-primary:        #1E3A8A;
  --c-primary-deep:   #16306F;
  --c-primary-ink:    #122754;
  --c-on-primary:     #FFFFFF;
  --c-secondary:      #1E40AF;
  --c-accent:         #B45309;   /* 5.02:1 on white — AA for normal text */
  --c-accent-deep:    #92400E;
  --c-accent-soft:    #FEF3C7;

  /* Neutrals */
  --c-bg:             #FFFFFF;
  --c-bg-alt:         #F8FAFC;
  --c-bg-sunken:      #F1F5F9;
  --c-fg:             #0F172A;
  --c-fg-muted:       #475569;   /* 7.5:1 on white */
  --c-fg-subtle:      #64748B;   /* 4.8:1 on white */
  --c-border:         #E2E8F0;
  --c-border-strong:  #CBD5E1;
  --c-ring:           #1E3A8A;
  --c-success:        #15803D;
  --c-destructive:    #DC2626;

  /* Dark surface (hero / footer) */
  --c-dark:           #0B1B3F;
  --c-dark-2:         #102450;
  --c-dark-fg:        #E8EEF9;
  --c-dark-muted:     #9DB0D4;
  --c-dark-border:    rgba(255,255,255,.12);

  /* Type */
  --font-display: 'EB Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --fs-xs:    0.8125rem;  /* 13 */
  --fs-sm:    0.9375rem;  /* 15 */
  --fs-base:  1.0625rem;  /* 17 — generous body, reads premium */
  --fs-lg:    1.1875rem;
  --fs-xl:    1.375rem;
  --fs-2xl:   1.75rem;
  --fs-3xl:   2.25rem;
  --fs-4xl:   3rem;
  --fs-5xl:   3.75rem;
  --fs-6xl:   4.5rem;

  --lh-tight: 1.08;
  --lh-snug:  1.28;
  --lh-body:  1.65;

  /* Space — density 5/10 (standard) */
  --space-1:  .25rem;  --space-2: .5rem;   --space-3: .75rem;
  --space-4:  1rem;    --space-5: 1.5rem;  --space-6: 2rem;
  --space-7:  2.5rem;  --space-8: 3rem;    --space-9: 4rem;
  --space-10: 5rem;    --space-11: 6.5rem; --space-12: 8rem;

  /* Form */
  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 12px rgba(15,23,42,.07), 0 1px 3px rgba(15,23,42,.05);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.04);
  --shadow-xl: 0 24px 56px rgba(11,27,63,.16), 0 8px 16px rgba(11,27,63,.06);

  --container: 1180px;
  --container-narrow: 760px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 220ms;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-fg);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  color: var(--c-fg);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.5vw, var(--fs-6xl)); }
h2 { font-size: clamp(1.875rem, 3.6vw, var(--fs-4xl)); }
h3 { font-size: clamp(1.25rem, 2vw, var(--fs-2xl)); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
p  { text-wrap: pretty; }

a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent-deep); }

:focus-visible {
  outline: 3px solid var(--c-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
::selection { background: var(--c-primary); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-primary); color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(var(--space-9), 9vw, var(--space-12)); }
.section--tight { padding-block: clamp(var(--space-8), 6vw, var(--space-10)); }
.section--alt { background: var(--c-bg-alt); }
.section--sunken { background: var(--c-bg-sunken); }
.section--dark { background: var(--c-dark); color: var(--c-dark-fg); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--c-dark-muted); }

.grid { display: grid; gap: var(--space-6); }
/* Grid items default to min-width:auto, so a wide child (a <pre>, a long URL)
   forces the whole track wider than the viewport. This is the fix. */
.grid > *, .hero-grid > *, .pricing-grid > *, .check-grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stack > * + * { margin-top: var(--space-4); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- 4. TYPOGRAPHIC UTILITIES ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-accent-deep);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--c-accent); flex: none;
}
.section--dark .eyebrow,
.hero .eyebrow { color: #F3C577; }              /* 7.7:1 on the hero navy */
.section--dark .eyebrow::before,
.hero .eyebrow::before { background: #F3C577; }

.lede {
  font-size: clamp(var(--fs-lg), 2.1vw, var(--fs-xl));
  line-height: 1.55; color: var(--c-fg-muted);
}
.section--dark .lede { color: var(--c-dark-muted); }

.section-head { max-width: 46rem; margin-bottom: var(--space-9); }
.section-head.text-center { margin-inline: auto; }

.muted { color: var(--c-fg-muted); }
.subtle { color: var(--c-fg-subtle); font-size: var(--fs-sm); }
.mono { font-family: var(--font-mono); font-size: .875em; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .005em; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-primary-deep); color: #fff; box-shadow: var(--shadow); }

.btn--accent { background: var(--c-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--c-accent-deep); color: #fff; box-shadow: var(--shadow); }

.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-border-strong); }
.btn--outline:hover { border-color: var(--c-primary); background: var(--c-bg-alt); color: var(--c-primary); }

.btn--ghost-light { background: rgba(255,255,255,.07); color: #fff; border-color: var(--c-dark-border); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); }

.btn--lg { min-height: 56px; padding: var(--space-4) var(--space-7); font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row--center { justify-content: center; }

/* ---------- 6. HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--c-border); box-shadow: var(--shadow-xs); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; flex: none; min-height: 44px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600;
  color: var(--c-primary-ink); letter-spacing: -.02em;
}
.brand-tag {
  font-size: .625rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-fg-subtle);
}

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav ul { display: flex; align-items: center; gap: var(--space-6); list-style: none; padding: 0; margin: 0; }
/* `:not(.btn)` matters: `.nav a` (0,1,1) outranks `.btn--primary` (0,1,0),
   so without it the nav CTA renders muted-grey on navy (1.37:1) and gets a
   stray underline bar. */
.nav a:not(.btn) {
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-fg-muted);
  text-decoration: none; padding: var(--space-2) 0; position: relative;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:not(.btn):hover, .nav .current-menu-item > a:not(.btn) { color: var(--c-primary-ink); }
.nav a:not(.btn):hover::after, .nav .current-menu-item > a:not(.btn)::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: var(--space-3); flex: none; }

/* The CTA inside .nav is the MOBILE copy — .header-cta holds the desktop one.
   Without this, both render side by side above 860px. */
.nav > .btn { display: none; }

.nav-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--c-border); border-radius: var(--radius);
  cursor: pointer; color: var(--c-fg);
}
.nav-toggle:hover { background: var(--c-bg-alt); }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--c-dark) 0%, #0E2149 45%, #16306F 100%);
  color: var(--c-dark-fg);
  padding-block: clamp(var(--space-10), 11vw, var(--space-12));
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(30,64,175,.40) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(var(--space-7), 5vw, var(--space-10)); align-items: center;
}
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: italic; color: #F3C577;
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 7px; text-decoration-color: rgba(243,197,119,.4);
}
.hero-lede {
  font-size: clamp(var(--fs-lg), 1.9vw, var(--fs-xl));
  line-height: 1.6; color: var(--c-dark-muted);
  margin-top: var(--space-5); max-width: 34rem;
}
.hero-actions { margin-top: var(--space-7); }
.hero-note {
  margin-top: var(--space-5); font-size: var(--fs-sm); color: var(--c-dark-muted);
  display: flex; align-items: center; gap: var(--space-2);
}
.hero-note svg { color: #6EE7B7; }

/* Hero visual: the "AI answer card" */
.answer-card {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform 500ms var(--ease);
}
.answer-card:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.answer-card__bar {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--c-bg-sunken); border-bottom: 1px solid var(--c-border);
}
.answer-card__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border-strong); }
.answer-card__url {
  margin-left: var(--space-2); font-family: var(--font-mono);
  font-size: var(--fs-xs); color: var(--c-fg-muted);   /* 6.9:1 on #F1F5F9 */
}
.answer-card__body { padding: var(--space-5); }
.answer-card__q {
  font-size: var(--fs-sm); color: var(--c-fg-subtle);
  padding-bottom: var(--space-4); margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--c-border);
}
.answer-card__q strong { color: var(--c-fg); font-weight: 600; }
.answer-card__a { font-size: var(--fs-sm); line-height: 1.6; color: var(--c-fg-muted); }
.cite {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-accent-soft); color: var(--c-accent-deep);
  font-weight: 600; padding: 1px 7px; border-radius: var(--radius-sm);
  font-size: .9375em; white-space: nowrap;
}
.cite--dim { background: var(--c-bg-sunken); color: var(--c-fg-muted); font-weight: 500; }
.answer-card__foot {
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: 1px solid var(--c-border);
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-xs); color: var(--c-fg-subtle);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-success);
  box-shadow: 0 0 0 0 rgba(21,128,61,.55); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(21,128,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); }
}

/* ---------- 8. CARDS ---------- */
.card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--c-fg-muted); font-size: var(--fs-sm); }

.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: #EEF2FF; color: var(--c-primary);
  display: grid; place-items: center; margin-bottom: var(--space-5);
}
.card-icon--accent { background: var(--c-accent-soft); color: var(--c-accent-deep); }

/* Numbered process steps */
.step { position: relative; padding-left: var(--space-8); }
.step__n {
  position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.step p { color: var(--c-fg-muted); font-size: var(--fs-sm); }

/* ---------- 9. PRICING ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6); align-items: start; max-width: 900px; margin-inline: auto;
}
.price-card {
  position: relative; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: var(--space-7); display: flex; flex-direction: column; height: 100%;
}
.price-card--featured {
  border: 2px solid var(--c-primary);
  box-shadow: var(--shadow-lg); padding-top: var(--space-8);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--c-primary); color: #fff;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 100px; white-space: nowrap;
}
.price-card__name { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--c-fg-subtle); }
.price-card__amount {
  font-family: var(--font-display); font-size: var(--fs-5xl); font-weight: 600;
  color: var(--c-fg); letter-spacing: -.03em; line-height: 1;
  margin-block: var(--space-4) var(--space-1); font-variant-numeric: tabular-nums;
}
.price-card__amount span { font-size: var(--fs-lg); font-weight: 400; color: var(--c-fg-subtle);
  font-family: var(--font-body); letter-spacing: 0; }
.price-card__desc { color: var(--c-fg-muted); font-size: var(--fs-sm); margin-bottom: var(--space-6);
  padding-bottom: var(--space-6); border-bottom: 1px solid var(--c-border); }
.price-card .btn { margin-top: auto; }

.feature-list { list-style: none; padding: 0; margin: 0 0 var(--space-7); display: grid; gap: var(--space-3); }
.feature-list li { display: flex; gap: var(--space-3); font-size: var(--fs-sm); line-height: 1.5; color: var(--c-fg-muted); }
.feature-list svg { color: var(--c-success); margin-top: 3px; flex: none; }

/* ---------- 10. DELIVERABLE / CHECK LIST ---------- */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-7); }
.check-item { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.55; }
.check-item svg { color: var(--c-primary); margin-top: 4px; flex: none; }
.check-item strong { color: var(--c-fg); font-weight: 600; display: block; }
.check-item span { color: var(--c-fg-muted); }

/* Code / schema sample */
.code-block {
  background: #0B1B3F; color: #D7E3FA; border-radius: var(--radius-lg);
  padding: var(--space-5); overflow-x: auto; max-width: 100%; min-width: 0;
  font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.75;
  border: 1px solid rgba(255,255,255,.08);
}
.code-block .k { color: #7FB4FF; }
.code-block .s { color: #A5E8B8; }
.code-block .c { color: #7A8CB0; font-style: italic; }

/* ---------- 11. FAQ ---------- */
.faq { max-width: var(--container-narrow); margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--c-border);
  padding: var(--space-4) 0;
}
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5);
  cursor: pointer; list-style: none;
  min-height: 44px; padding-block: var(--space-2);   /* 44px tap target */
  font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600;
  color: var(--c-fg); line-height: var(--lh-snug);
  transition: color var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-primary); }
.faq summary::after {
  content: ''; flex: none; width: 13px; height: 13px; margin-top: 8px;
  border-right: 2px solid var(--c-fg-subtle); border-bottom: 2px solid var(--c-fg-subtle);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin-top: var(--space-4); color: var(--c-fg-muted); font-size: var(--fs-sm); max-width: 62ch; }
.faq details p + p { margin-top: var(--space-3); }

/* ---------- 12. CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-dark) 0%, #17316E 100%);
  color: #fff; border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-10));
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: var(--space-4); }
.cta-band p { color: var(--c-dark-muted); max-width: 44rem; margin-inline: auto; margin-bottom: var(--space-7); }

/* ---------- 13. FORMS ---------- */
.form-field { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.form-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-fg); }
.form-field .hint { font-size: var(--fs-xs); color: var(--c-fg-subtle); font-weight: 400; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  font-family: var(--font-body); font-size: var(--fs-base); color: var(--c-fg);
  background: #fff; border: 1px solid var(--c-border-strong); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-field textarea { min-height: 130px; resize: vertical; line-height: 1.6; padding-top: var(--space-3); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(30,58,138,.14);
}
.form-field input:invalid:not(:placeholder-shown) { border-color: var(--c-destructive); }
.form-note { font-size: var(--fs-xs); color: var(--c-fg-subtle); line-height: 1.6; }

/* ---------- 14. FOOTER ---------- */
.site-footer { background: var(--c-dark); color: var(--c-dark-muted); padding-block: var(--space-9) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-7); }
.site-footer h4 {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.site-footer a { color: var(--c-dark-muted); text-decoration: none; font-size: var(--fs-sm);
  transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: var(--c-dark-muted); }
.footer-about { font-size: var(--fs-sm); line-height: 1.65; margin-top: var(--space-4); max-width: 30rem; }
.footer-bottom {
  margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: 1px solid var(--c-dark-border);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  font-size: var(--fs-xs);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 15. CONTENT (blog/pages) ---------- */
.entry-content { max-width: 68ch; }
.entry-content > * + * { margin-top: var(--space-5); }
.entry-content h2 { margin-top: var(--space-8); }
.entry-content h3 { margin-top: var(--space-6); }
.entry-content ul, .entry-content ol { padding-left: var(--space-6); display: grid; gap: var(--space-2); }
.entry-content blockquote {
  border-left: 3px solid var(--c-accent); padding-left: var(--space-5);
  font-family: var(--font-display); font-size: var(--fs-xl); font-style: italic; color: var(--c-fg-muted);
}
.page-hero { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border);
  padding-block: clamp(var(--space-8), 7vw, var(--space-10)); }
.page-hero h1 { font-size: clamp(2.25rem, 4.5vw, var(--fs-5xl)); }
.page-hero .lede { margin-top: var(--space-4); max-width: 44rem; }

/* Breadcrumbs */
.crumbs { font-size: var(--fs-xs); color: var(--c-fg-subtle); margin-bottom: var(--space-5); }
.crumbs a { color: var(--c-fg-subtle); text-decoration: none; }
.crumbs a:hover { color: var(--c-primary); text-decoration: underline; }
.crumbs span { margin-inline: var(--space-2); }

/* ---------- 16. REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .answer-card { transform: none; max-width: 520px; }
  .answer-card:hover { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-7) var(--space-6); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 76px 0 auto; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-4) var(--space-5) var(--space-6);
    max-height: calc(100dvh - 76px); overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--c-border); }
  .nav a:not(.btn) { display: block; padding: var(--space-4) 0; font-size: var(--fs-lg); }
  .nav a:not(.btn)::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: var(--space-5); }
  .nav a:not(.btn) { white-space: normal; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .check-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --fs-base: 1rem; }
  .container { padding-inline: var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .price-card { padding: var(--space-5); }
  .price-card--featured { padding-top: var(--space-7); }
}

/* ---- Utility guards ---- */
/* [hidden] must win over any display rule — the nav toggle icons rely on it. */
[hidden] { display: none !important; }

.hero-visual { min-width: 0; }
@media (max-width: 1024px) { .hero-visual { display: flex; justify-content: center; } }

.nav-toggle__open, .nav-toggle__close { display: inline-flex; }

.page-links {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-7); font-size: var(--fs-sm);
}
.page-links a, .page-links > span {
  min-width: 40px; min-height: 40px; padding: var(--space-2) var(--space-3);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  text-decoration: none;
}
.page-links a:hover { border-color: var(--c-primary); background: var(--c-bg-alt); }

/* Core pagination (index.php) */
.pagination { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pagination .page-numbers {
  min-width: 44px; min-height: 44px; padding: var(--space-2) var(--space-3);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  text-decoration: none; font-size: var(--fs-sm);
}
.pagination .page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--c-primary); background: var(--c-bg-alt); }

/* ---- 18. PRINT ---- */

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
}
