/* =============================================================
   Jopese — Apple-inspired design system
   Brand palette per concepts/Brand Assets.md
   Charcoal #343B43 · Soft Blue #77A9D8 · Light Gray #C9CBCD
   ============================================================= */

:root {
  /* Brand */
  --charcoal:      #343B43;
  --charcoal-700:  #1d2226;
  --charcoal-900:  #0c0e10;
  --charcoal-200:  #C7CDD3;
  --charcoal-100:  #E8EAEC;
  --charcoal-50:   #F6F7F8;

  --blue:          #5E93C6;
  --blue-700:      #2F5F99;
  --blue-100:      #D5E5F4;
  --blue-50:       #F0F6FC;

  --muzzle:        #C9CBCD;

  /* Apple-ish neutrals */
  --bg:            #ffffff;
  --bg-alt:        #f5f5f7;
  --bg-dark:       #0c0e10;
  --text:          #1d1d1f;
  --text-muted:    #5f6368;
  --hairline:      rgba(0, 0, 0, 0.08);
  --hairline-dark: rgba(255, 255, 255, 0.12);

  --success:       #5A9F7A;
  --warning:       #D9A55E;
  --danger:        #C2685A;

  /* Spacing/typography scale */
  --container:     1200px;
  --container-text: 760px;
  --container-narrow: 640px;
  --radius-sm:     6px;
  --radius:        14px;
  --radius-lg:     22px;
  --radius-xl:     32px;

  --shadow-sm:     0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03);
  --shadow:        0 8px 30px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:     0 30px 60px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.06);

  --font-display:  -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-text:     -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 9999;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--charcoal-900);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

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

.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;
}

a {
  color: var(--blue-700);
  text-decoration: none;
  transition: color 150ms ease, opacity 150ms ease;
}
a:hover { opacity: 0.7; }
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

::selection { background: var(--blue); color: white; }

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

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text);
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text);
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-700);
  margin: 0 0 16px;
}

.lede {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 680px;
}

.text-accent { color: var(--blue-700); }
.text-muted  { color: var(--text-muted); }
.center      { text-align: center; }
.center-inline { margin-left: auto; margin-right: auto; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.container-text {
  width: 100%;
  max-width: var(--container-text);
  margin: 0 auto;
  padding: 0 22px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 22px;
}

@media (min-width: 768px) {
  .container, .container-text, .container-narrow { padding: 0 32px; }
}

.section {
  padding: 88px 0;
}
@media (min-width: 768px) {
  .section { padding: 120px 0; }
}
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--bg-dark);
  color: #f5f5f7;
}
.section--dark .display-1,
.section--dark .display-2,
.section--dark .display-3 { color: #f5f5f7; }
.section--dark .text-muted { color: #a1a1a6; }
.section--dark a { color: #6cb3ff; }

/* Dark-section component overrides for contrast */
.section--dark .diff-item h3 { color: #f5f5f7; }
.section--dark .diff-item p { color: rgba(245,245,247,0.86); }
.section--dark .diff-item-mark {
  background: rgba(119, 169, 216, 0.15);
  color: var(--blue);
}
.section--dark .eyebrow { color: var(--blue); opacity: 0.95; }
.section--dark .glosario-card,
.section--dark .glosario-card h3 { color: var(--text); }
.section--dark .glosario-card p { color: var(--text-muted); }
.section--dark .steps-skip { color: rgba(245,245,247,0.78); }

/* ============== TOP NAV (Apple-style) ============== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 768px) {
  .nav-inner { padding: 0 32px; height: 64px; }
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav-brand img { width: 28px; height: 28px; }
.nav-brand:hover { opacity: 1; }

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 150ms ease, transform 150ms ease;
}
.nav-cta:hover { background: var(--charcoal); opacity: 1; transform: translateY(-1px); }

/* ============== BUTTONS (Apple-pill style) ============== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  white-space: normal;
  text-align: center;
  border-radius: 999px;
}

.btn-lg {
  font-size: 17px;
  padding: 16px 28px;
  min-height: 52px;
}
.btn-md {
  font-size: 15px;
  padding: 12px 22px;
  min-height: 44px;
}
.btn-sm {
  font-size: 14px;
  padding: 8px 18px;
  min-height: 36px;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover {
  background: #000;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-secondary:hover {
  background: var(--text);
  color: #fff;
  opacity: 1;
}

.btn-ghost {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(0,0,0,0.08); opacity: 1; }

.btn-pill-price {
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.25);
  font-weight: 400;
  opacity: 0.85;
  font-size: 15px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-700);
  font-weight: 500;
  font-size: 16px;
}
.link-arrow:after {
  content: "›";
  transition: transform 150ms ease;
  font-size: 22px;
  line-height: 1;
}
.link-arrow:hover:after { transform: translateX(3px); }

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

.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 64px 22px 88px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(119, 169, 216, 0.14), transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201, 203, 205, 0.18), transparent 65%),
    var(--bg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: calc(100vh - 64px);
    padding: 80px 32px 120px;
  }
}

.hero-mark {
  display: flex;
  justify-content: center;
  margin: 0 auto 28px;
  width: clamp(120px, 22vw, 220px);
  animation: heroFadeUp 700ms cubic-bezier(0.2, 0, 0, 1) both;
}
.hero-mark img { width: 100%; height: auto; }
.hero-mark-svg { width: 100%; height: auto; overflow: visible; }

/* Logo path reveal on first paint */
.hero-mark-svg .logo-head {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: logoDraw 1400ms 200ms cubic-bezier(0.2, 0, 0, 1) forwards;
}
.hero-mark-svg .logo-ear--left,
.hero-mark-svg .logo-ear--right,
.hero-mark-svg .logo-muzzle,
.hero-mark-svg .logo-nose,
.hero-mark-svg .logo-mouth-1,
.hero-mark-svg .logo-mouth-2 {
  opacity: 0;
  animation: logoFeatureFade 600ms 1100ms ease forwards;
}
.hero-mark-svg .logo-eye--left,
.hero-mark-svg .logo-eye--right {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation:
    logoFeatureFade 400ms 1500ms ease forwards,
    logoBlink 7s 4s ease-in-out infinite;
}

@keyframes logoDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes logoFeatureFade {
  to { opacity: 1; }
}
@keyframes logoBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 96%      { transform: scaleY(0.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark-svg .logo-head,
  .hero-mark-svg .logo-ear--left,
  .hero-mark-svg .logo-ear--right,
  .hero-mark-svg .logo-muzzle,
  .hero-mark-svg .logo-nose,
  .hero-mark-svg .logo-mouth-1,
  .hero-mark-svg .logo-mouth-2,
  .hero-mark-svg .logo-eye--left,
  .hero-mark-svg .logo-eye--right {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1;
  color: var(--text);
  margin: 0 0 12px;
  animation: heroFadeUp 700ms 80ms cubic-bezier(0.2, 0, 0, 1) both;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 18px;
  animation: heroFadeUp 700ms 160ms cubic-bezier(0.2, 0, 0, 1) both;
}
.hero-tagline span { color: var(--blue-700); }

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  animation: heroFadeUp 700ms 240ms cubic-bezier(0.2, 0, 0, 1) both;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: heroFadeUp 700ms 320ms cubic-bezier(0.2, 0, 0, 1) both;
}
@media (min-width: 600px) {
  .hero-cta { flex-direction: row; justify-content: center; gap: 14px; }
}

.hero-microcopy {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  animation: heroFadeUp 700ms 400ms cubic-bezier(0.2, 0, 0, 1) both;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroFadeUp 700ms 600ms cubic-bezier(0.2, 0, 0, 1) both;
}
.hero-scroll:after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark, .hero-wordmark, .hero-tagline, .hero-sub, .hero-cta, .hero-microcopy, .hero-scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============== FLOW LOOP (Step 1 -> 2 -> 3 with connectors) ============== */

.flow {
  padding: 56px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 768px) {
  .flow { padding: 72px 0; }
}

.flow-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .flow-track {
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
  }
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 1 auto;
  min-width: 0;
}

.flow-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.flow-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.flow-step-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
}
.flow-step-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 200px;
}

.flow-connector {
  width: 2px;
  height: 24px;
  background: var(--blue-100);
  position: relative;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.flow-connector::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-700);
  border-radius: 999px;
  animation: flowProgressV 4s ease-in-out infinite;
}
.flow-connector--2::after {
  animation-delay: 1.3s;
}

@keyframes flowProgressV {
  0%   { height: 0; top: 0; bottom: auto; }
  50%  { height: 100%; top: 0; bottom: auto; }
  51%  { height: 0; top: auto; bottom: 0; }
  100% { height: 0; top: auto; bottom: 0; }
}

@media (min-width: 768px) {
  .flow-connector {
    width: 80px;
    height: 2px;
  }
  .flow-connector::after {
    animation: flowProgressH 4s ease-in-out infinite;
  }
  .flow-connector--2::after {
    animation-delay: 1.3s;
  }
  @keyframes flowProgressH {
    0%   { width: 0; left: 0; right: auto; }
    50%  { width: 100%; left: 0; right: auto; }
    51%  { width: 0; left: auto; right: 0; }
    100% { width: 0; left: auto; right: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-connector::after { animation: none; height: 100%; width: 100%; }
}

/* ============== BIG STATEMENT (Apple-style massive type) ============== */

.statement {
  padding: 96px 0;
  text-align: center;
}
@media (min-width: 768px) {
  .statement { padding: 144px 0; }
}

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
  margin: 0 auto;
  max-width: 920px;
}
.statement-text span {
  display: inline-block;
  margin-right: 0.15em;
}
.statement-text .stmt-accent {
  color: var(--blue-700);
}

/* ============== TRUST STRIP ============== */

.trust {
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-alt);
}
.trust-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}
.trust-text strong { color: var(--text); font-weight: 600; }

/* ============== TILES (Apple-product-grid style) ============== */

.tiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .tiles-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
  }
  .tile--lg  { grid-column: span 6; }
  .tile--md  { grid-column: span 3; }
  .tile--sm  { grid-column: span 2; }
}

.tile {
  position: relative;
  display: block;
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 42px 32px;
  color: var(--text);
  overflow: hidden;
  text-align: left;
  transition: transform 250ms cubic-bezier(0.2, 0, 0, 1), box-shadow 250ms ease;
  min-height: 280px;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.tile--feature {
  background: linear-gradient(135deg, #1d2226 0%, #343B43 100%);
  color: #fff;
}
.tile--feature .tile-eyebrow,
.tile--feature h3,
.tile--feature p { color: #fff; }
.tile--feature .tile-eyebrow { color: var(--blue); opacity: 0.9; }

.tile--blue {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
}

.tile-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-700);
  margin-bottom: 10px;
}

.tile h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 12px;
}

.tile p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 18px;
  max-width: 36ch;
}
.tile--feature p { color: rgba(245,245,247,0.86); }

.tile-cta {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px 0;
}
.tile-cta:after {
  content: "›";
  font-size: 22px;
  line-height: 1;
  transition: transform 150ms ease;
}
.tile:hover .tile-cta:after { transform: translateX(3px); }
.tile--feature .tile-cta { color: var(--blue); }

.tile-price {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}
.tile--feature .tile-price {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}

/* Hero illustration block inside tile */
.tile-illus {
  margin-top: 24px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.tile-illus svg { max-height: 100%; }

/* ============== PERSONAS (audience cards) ============== */

.personas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}
@media (min-width: 768px) {
  .personas { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.persona {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 250ms cubic-bezier(0.2, 0, 0, 1), box-shadow 250ms ease;
}
.persona:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.persona-flag {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.persona h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}
.persona p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
.persona-pkg {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}
.persona-pkg span { color: var(--text-muted); font-weight: 500; }

/* ============== PROCESS / STEPS ============== */

.steps {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  counter-reset: step;
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .steps { gap: 28px; }
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }

.step-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blue-700);
  min-width: 1.5ch;
}
.step h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 10px;
}
.step p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 60ch;
}
.step strong { color: var(--text); font-weight: 600; }
.step-price {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 999px;
}

.steps-skip {
  margin: 32px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* ============== DIFFERENTIATORS ============== */

.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 56px;
}
@media (min-width: 768px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
}

.diff-item h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}
.diff-item p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}
.diff-item-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  margin-bottom: 16px;
  font-weight: 700;
}

/* ============== FOUNDER CREDENTIALS ============== */

.founder-credentials {
  list-style: none;
  padding: 0;
  margin: 32px 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 560px;
}
@media (min-width: 600px) {
  .founder-credentials { grid-template-columns: 1fr 1fr; gap: 14px; }
}
.founder-credentials li {
  position: relative;
  padding: 12px 16px 12px 36px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}
.founder-credentials li:before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--success);
  font-weight: 700;
}
.founder-credentials strong { color: var(--text); font-weight: 600; }

.founder-note {
  margin-top: 16px;
  font-size: 16px;
}

/* ============== HONESTY / NOT-LIST ============== */

.honesty-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 32px;
  display: grid;
  gap: 14px;
}
.honesty-list li {
  position: relative;
  padding-left: 28px;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
}
.honesty-list li strong {
  color: var(--text);
  font-weight: 600;
}
.honesty-list li:before {
  content: "·";
  position: absolute;
  left: 8px;
  top: -2px;
  color: var(--blue-700);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.honesty-followup {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 32px 0 0;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
}
.honesty-followup strong { color: var(--text); font-weight: 600; }

/* ============== FAQ ============== */

.faq {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after {
  content: "+";
  font-size: 28px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 250ms ease;
  line-height: 1;
}
.faq-item[open] summary:after {
  transform: rotate(45deg);
}
.faq-item p {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ============== FINAL CTA ============== */

.cta-final {
  padding: 96px 22px 120px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(119, 169, 216, 0.14), transparent 70%),
    var(--bg);
}
@media (min-width: 768px) {
  .cta-final { padding: 144px 32px 168px; }
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
  margin: 0 auto 20px;
  max-width: 820px;
}

.cta-final-sub {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.cta-final-sub strong { color: var(--text); font-weight: 600; }

/* ============== FOOTER (Apple-style) ============== */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
}

.footer-brand img { width: 32px; height: 32px; margin-bottom: 12px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.footer-brand-tag {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
}

.footer-col .footer-heading {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-col a:hover { color: var(--text); opacity: 1; }

.footer-bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}
.footer-bar strong { color: var(--text); font-weight: 600; }

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

.sticky-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 90;
  background: var(--text);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.sticky-cta:hover { opacity: 1; }



/* ============== CONTACTO PAGE ============== */

.contact-hero {
  padding: 80px 0 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(119, 169, 216, 0.10), transparent 65%),
    var(--bg);
}
@media (min-width: 768px) {
  .contact-hero { padding: 96px 0 40px; }
}

.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 22px 96px;
}
@media (min-width: 768px) {
  .contact-form-wrap { padding: 0 32px 144px; }
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 600px) {
  .contact-form { padding: 40px 36px; gap: 22px; }
}

.field { display: grid; gap: 6px; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.field-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(119, 169, 216, 0.18);
}

.field-radio-group {
  display: grid;
  gap: 8px;
}
@media (min-width: 600px) {
  .field-radio-group--inline { grid-template-columns: repeat(2, 1fr); }
  .field-radio-group--inline-3 { grid-template-columns: repeat(3, 1fr); }
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  transition: border-color 150ms ease, background 150ms ease;
}
.radio-card:hover { background: var(--bg-alt); }
.radio-card input { margin: 0; accent-color: var(--blue-700); }
.radio-card input:checked + span { font-weight: 600; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox-row input { margin-top: 4px; accent-color: var(--blue-700); }
.checkbox-row a { color: var(--blue-700); text-decoration: underline; }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.contact-side-cta {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  text-align: center;
}
.contact-side-cta h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
}
.contact-side-cta p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.form-fallback {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--blue-50);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.form-fallback a { font-weight: 600; }

/* ============== GRACIAS PAGE ============== */

.thanks {
  text-align: center;
  padding: 96px 22px 120px;
}
@media (min-width: 768px) { .thanks { padding: 144px 32px 168px; } }

.thanks-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 600;
  margin: 0 auto 24px;
  box-shadow: 0 12px 32px rgba(90, 159, 122, 0.3);
}

.thanks h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 20px;
}

.thanks-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 56px;
}
.thanks-sub strong { color: var(--text); font-weight: 600; }

.thanks-next {
  text-align: left;
  max-width: 540px;
  margin: 0 auto 40px;
  padding: 28px 28px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}
.thanks-next h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}
.thanks-next ol {
  margin: 0;
  padding-left: 22px;
  color: var(--text-muted);
}
.thanks-next ol li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.thanks-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (min-width: 600px) {
  .thanks-actions { flex-direction: row; justify-content: center; }
}

.thanks-fineprint {
  margin-top: 56px;
  font-size: 13px;
  color: var(--text-muted);
}

.legal-subtitle {
  margin: -10px 0 24px;
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.35;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============== FAQ PAGE ============== */

.faq-nav {
  position: sticky;
  top: 56px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
}
@media (min-width: 768px) {
  .faq-nav { top: 64px; padding: 14px 0; }
}

.faq-nav-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 4px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.faq-nav .container { position: relative; }
.faq-nav .container::after {
  content: '›';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 4px;
  width: 56px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  color: var(--blue-700);
  font-size: 26px;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.98) 62%);
}
.faq-nav-chips a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.faq-nav-chips a:hover {
  background: var(--text);
  color: #fff;
  opacity: 1;
}


@media (min-width: 768px) {
  .faq-nav-chips {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .faq-nav .container::after { display: none; }
}

@media (max-width: 767px) {
  .btn-lg { width: 100%; max-width: 342px; padding: 14px 20px; }
  .btn-lg .btn-pill-price {
    display: block;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    font-size: 14px;
    line-height: 1.2;
  }
  .nav-cta { min-height: 44px; }
  .breadcrumbs a, .cta-secondary { min-height: 44px; display: inline-flex; align-items: center; }
  .breadcrumbs span[aria-hidden="true"],
  .breadcrumbs .current-separator,
  .breadcrumbs span[aria-current] { display: none; }
  .legal-disclaimer { font-size: 14px; line-height: 1.7; }
  .freshness-stamp { font-size: 13px; line-height: 1.55; }
  .article-body { font-size: 18px; line-height: 1.78; }
  .footer-bar { font-size: 13px; line-height: 1.75; }
  .contact-hero .display-1 { font-size: clamp(42px, 11vw, 60px); }
}

.faq-section {
  padding: 64px 0;
}
@media (min-width: 768px) {
  .faq-section { padding: 88px 0; }
}
.faq-section--alt { background: var(--bg-alt); }

.faq-section .display-3 {
  margin-bottom: 32px;
}

.faq-section .faq {
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
}

/* ============== BREADCRUMBS ============== */

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.breadcrumbs a:hover { color: var(--blue-700); opacity: 1; }
.breadcrumbs span[aria-current] { color: var(--text); font-weight: 500; }

/* ============== LEGAL DISCLAIMER ============== */

.legal-disclaimer {
  margin: 32px auto 0;
  max-width: 720px;
  padding: 20px 22px;
  background: var(--blue-50);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  text-align: left;
}
.legal-disclaimer strong { color: var(--text); font-weight: 600; }

.freshness-stamp {
  margin: 16px auto 0;
  max-width: 720px;
  font-size: 13px;
  color: #505057;
  text-align: center;
  letter-spacing: 0.01em;
}
.freshness-stamp time { font-weight: 600; color: var(--text); }

/* ============== GLOSARIO HUB GRID ============== */

.glosario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 600px) {
  .glosario-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1000px) {
  .glosario-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.glosario-card {
  display: block;
  padding: 28px 26px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: transform 250ms cubic-bezier(0.2, 0, 0, 1), box-shadow 250ms ease;
  border: 1px solid transparent;
}
.glosario-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--hairline);
  opacity: 1;
}

.glosario-card-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-700);
  margin-bottom: 8px;
}

.glosario-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--text);
}

.glosario-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* ============== DIRECT-PAY CALLOUT ============== */

.direct-pay-callout {
  margin: 32px auto 0;
  max-width: 760px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.direct-pay-callout p { margin: 0; }
.direct-pay-callout strong { color: var(--text); font-weight: 600; }
.direct-pay-callout a {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.direct-pay-callout a:hover { opacity: 0.7; }

@media (min-width: 768px) {
  .direct-pay-callout {
    margin-top: 40px;
    padding: 24px 32px;
  }
}

/* ============== INTAKE FORM ============== */

.intake-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 auto 24px;
  padding: 0 22px;
  max-width: 720px;
}
.intake-step {
  flex: 1 1 auto;
  min-width: 70px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: default;
  transition: background 150ms ease, color 150ms ease;
  letter-spacing: 0.01em;
}
.intake-step.is-current {
  background: var(--text);
  color: white;
  cursor: default;
}
.intake-step.is-done {
  background: var(--blue-50);
  color: var(--blue-700);
  cursor: pointer;
}
.intake-step.is-done:hover {
  background: var(--blue-100);
}

.intake-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}
.intake-form legend {
  width: 100%;
  padding: 0;
  margin-bottom: 24px;
}
.intake-form legend h2 {
  margin: 4px 0 0;
}
.intake-form .eyebrow {
  display: block;
  margin-bottom: 4px;
}

.intake-section {
  display: block;
}
.intake-section[hidden] {
  display: none !important;
}

.intake-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.intake-nav .btn {
  flex: 0 0 auto;
}
.intake-nav #intake-next {
  margin-left: auto;
}

@media (max-width: 600px) {
  .intake-stepper {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .intake-step {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* ============== ARTICLE BODY (insights) ============== */

.article-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}
.article-body h2 { margin-top: 44px; margin-bottom: 18px; }
.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
  color: var(--text);
}
.article-body p { margin: 0 0 20px; }
.article-body ul {
  margin: 0 0 24px;
  padding-left: 24px;
}
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a {
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body a:hover { opacity: 0.7; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
  line-height: 1.5;
}
.article-body table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 2px solid var(--charcoal-200);
  background: var(--bg-alt);
}
.article-body table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--text);
}
.article-body table tr:hover td { background: var(--charcoal-50); }
.article-body table strong { font-weight: 600; }
.article-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
}
.article-table-wrap table { margin: 0; min-width: 560px; }
.article-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: var(--blue-50);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  font-size: 17px;
  color: var(--text);
}
.article-body blockquote p { margin: 0; }
.article-body hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 44px 0;
}
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============== 404 PAGE ============== */

.page-404 {
  text-align: center;
  padding: 120px 22px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-404 .display-1 { font-size: clamp(60px, 14vw, 140px); }
.page-404 p {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 32px;
}

/* ============== UTIL ============== */

.hidden-mobile { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: initial; } }

/* ============== SCROLL REVEAL ============== */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms cubic-bezier(0.2, 0, 0, 1), transform 700ms cubic-bezier(0.2, 0, 0, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.spacer-sm { height: 12px; }
.spacer { height: 24px; }
.spacer-lg { height: 48px; }


/* Search, article TOC, and related-term polish */
.faq-search-wrap {
  padding: 24px 0 8px;
  background: var(--bg);
}

.faq-search {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.faq-search:focus {
  outline: 3px solid rgba(77,133,194,0.22);
  border-color: var(--blue-700);
}

.article-toc {
  padding: 28px 0 0;
  background: var(--bg);
}

.article-toc .container-text {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-alt);
}

.article-toc-title {
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--text);
}

.article-toc ol {
  margin: 0;
  padding-left: 20px;
}

.article-toc li { margin: 8px 0; }

.related-terms {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.related-terms ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.related-terms a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  font-weight: 700;
}
