/* =====================================================
   PRYZE — HI-FI DESIGN SYSTEM (v4.0)
   Coral primary · IBM Plex Mono + Sentient · New palette
   ===================================================== */

:root {
  /* ----- Brand ----- */
  --coral: #DD5B4A;
  --coral-dark: #B23E2E;
  --coral-deep: #6F2418;
  --coral-soft: #FFDCDC;
  --coral-tint: #FFF0EE;

  /* ----- Neutrals ----- */
  --ink: #181614;
  --ink-soft: #3A3431;
  --mute: #7A726D;
  --mute-soft: #B4ACA6;
  --line: #E8E2DC;
  --line-soft: #F1ECE5;

  /* ----- Surfaces ----- */
  --white: #FFFFFF;
  --cream: #FBF7F1;
  --cream-deep: #F2EADF;
  --paper: #FAFAF7;

  /* ----- New palette ----- */
  --dodger: #298FFE;
  --dodger-soft: #DAE9FF;
  --lavender: #DAE9FF;
  --blush: #FFDCDC;
  --indigo: #751ADB;
  --indigo-soft: #E5D6FB;
  --slate: #8663D7;
  --slate-soft: #E4DCF6;

  /* ----- Semantic accents (restored) ----- */
  --field: #2F6F4E;        /* success green — "on track", "goal hit" */
  --field-soft: #DDEEE3;
  --gold: #C7942E;         /* warm amber — Gold tier, warmth */
  --gold-soft: #F5E8C5;
  --sky: #298FFE;          /* upgraded muted sky → Dodger Blue */
  --sky-soft: #DAE9FF;
  --reward-yellow: var(--reward-yellow); /* gift card / coin warm yellow used across reward gradients */

  /* ----- Focus ----- */
  --focus-ring: 0 0 0 3px rgba(221, 91, 74, 0.35), 0 0 0 5px rgba(255, 255, 255, 0.9);

  /* ----- Type ----- */
  --serif: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* ----- Radius ----- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* ----- Shadow ----- */
  --sh-sm: 0 2px 8px rgba(24, 22, 20, 0.04);
  --sh-md: 0 8px 24px rgba(24, 22, 20, 0.08);
  --sh-lg: 0 20px 48px rgba(24, 22, 20, 0.12);
  --sh-coral: 0 16px 40px rgba(221, 91, 74, 0.18);

  /* ----- Motion ----- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-med: 300ms;
  --t-slow: 500ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

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

.serif { font-family: var(--serif); font-weight: 400; }

.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.display em { font-style: normal; color: var(--coral); font-weight: 700; }

.h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  padding-bottom: 0.1em;
}
.h1 em { font-style: normal; color: var(--coral); font-weight: 700; }

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  padding-bottom: 0.1em;
}
.h2 em { font-style: normal; color: var(--coral); font-weight: 700; }

.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: -0.003em;
}

.body { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--mute); }
.body-xs { font-size: 12px; line-height: 1.5; color: var(--mute); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-dark);
  font-family: var(--sans);
}

/* =====================================================
   PAGE & LAYOUT
   ===================================================== */

.page { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.page-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

.section { padding: 112px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-lg { padding: 144px 0; }

.stack-2 > * + * { margin-top: 16px; }
.stack-3 > * + * { margin-top: 24px; }
.stack-4 > * + * { margin-top: 32px; }
.stack-6 > * + * { margin-top: 48px; }

.row { display: flex; align-items: center; gap: 16px; }
.row-tight { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; }

.center { text-align: center; }
.max-680 { max-width: 680px; }
.max-720 { max-width: 720px; margin-left: auto; margin-right: auto; }
.max-840 { max-width: 840px; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* =====================================================
   PILL / BADGE
   ===================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--coral-tint);
  color: var(--coral-dark);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid var(--coral-soft);
}
.pill-dot { width: 8px; height: 8px; background: var(--coral); border-radius: 50%; }
.pill-mute { background: var(--cream); color: var(--ink-soft); border-color: var(--line); }
.pill-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill-field { background: var(--field-soft); color: var(--field); border-color: rgba(47, 111, 78, 0.2); }
.pill-gold { background: var(--gold-soft); color: var(--coral-deep); border-color: rgba(199, 148, 46, 0.3); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), box-shadow 200ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), opacity 180ms var(--ease);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.005em;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active,
.btn.is-pressed { transform: translateY(1px) scale(0.985); transition-duration: 60ms; }
.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"],
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.3);
  pointer-events: none;
  transform: none;
  box-shadow: none;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 1px 2px rgba(120, 35, 25, 0.25),
    0 6px 16px rgba(221, 91, 74, 0.22);
}
.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 2px 4px rgba(120, 35, 25, 0.3),
    0 12px 28px rgba(221, 91, 74, 0.32);
}
.btn-primary:active,
.btn-primary.is-pressed {
  background: var(--coral-deep);
  transform: translateY(0) scale(0.985);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    inset 0 2px 4px rgba(0,0,0,0.18),
    0 2px 6px rgba(221, 91, 74, 0.18);
  transition-duration: 60ms;
}

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #000; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(24,22,20,0.18); }
.btn-ink:active, .btn-ink.is-pressed { transform: translateY(0) scale(0.985); box-shadow: inset 0 2px 6px rgba(0,0,0,0.4); transition-duration: 60ms; }

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(24,22,20,0.08); }
.btn-secondary:active,
.btn-secondary.is-pressed {
  background: var(--cream);
  border-color: var(--ink);
  transform: translateY(0) scale(0.985);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
  transition-duration: 60ms;
}

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--cream); }
.btn-ghost:active,
.btn-ghost.is-pressed { background: var(--cream-deep); transform: translateY(0) scale(0.985); transition-duration: 60ms; }

.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-xs { padding: 8px 14px; font-size: 12px; }

.btn-arrow { display: inline-flex; align-items: center; gap: 6px; transition: gap var(--t-fast) var(--ease); }
.btn-arrow:hover { gap: 10px; }

/* Text link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--coral-dark);
  font-size: 15px;
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.link-arrow:hover { color: var(--coral-deep); gap: 10px; }
.link-arrow .arr { display: inline-block; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .arr { transform: translateX(2px); }

/* =====================================================
   NAVIGATION (with mega-menu)
   ===================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 16px 0;
  background: transparent;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-shell {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 20px 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(24, 22, 20, 0.06);
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.nav.scrolled .nav-shell {
  box-shadow: 0 8px 28px rgba(24, 22, 20, 0.10);
  border-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-mark {
  width: 30px; height: 30px;
  background: url("pryze-mark.png") center / contain no-repeat;
  font-size: 0;
  flex-shrink: 0;
  transition: transform var(--t-med) var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-mark-img { transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.logo:hover .logo-mark-img { transform: rotate(-10deg) scale(1.08); }
.logo-img { height: 22px; width: auto; display: block; }
.logo-mark-img { height: 28px; width: auto; display: block; }
.footer .logo-img { filter: brightness(0) invert(1); }
.footer .logo-mark-img { filter: brightness(0) invert(1); }

.nav-primary { flex: 1; display: flex; justify-content: center; }
.nav-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 4px;
}
.nav-links > li { position: static; }

/* Top-level trigger (links + buttons) */
.nav-links > li > a,
.nav-links > li > button.nav-trigger {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.nav-links > li > a:hover,
.nav-links > li > button.nav-trigger:hover,
.nav-links > li:hover > a,
.nav-links > li:hover > .nav-trigger { color: var(--ink); }

/* Active underline indicator (under each item) */
.nav-links > li > a::after,
.nav-links > li > button.nav-trigger::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--coral);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-fast) var(--ease);
}
.nav-links > li:hover > a::after,
.nav-links > li:hover > .nav-trigger::after,
.nav-links > li:focus-within > a::after,
.nav-links > li:focus-within > .nav-trigger::after,
.nav-links > li > a.is-current::after,
.nav-links > li > .nav-trigger.is-current::after {
  transform: scaleX(1);
}
.nav-links > li > a.is-current,
.nav-links > li > .nav-trigger.is-current { color: var(--ink); }

.nav-links .caret {
  font-size: 10px;
  color: var(--mute-soft);
  transition: transform var(--t-fast) var(--ease);
  line-height: 1;
}
.nav-links > li:hover .caret,
.nav-links > li:focus-within .caret { transform: rotate(180deg); }

.mobile-section-body a.is-current { color: var(--coral-dark); font-weight: 600; }

/* Right-side actions */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-actions .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.nav-actions .nav-link:hover { color: var(--ink); }
.nav-actions .btn-primary { padding: 10px 18px; font-size: 13px; white-space: nowrap; }
.nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-signin:hover { color: var(--ink); }

/* ----- Mega menu (floating card below nav) ----- */
.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(24, 22, 20, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: calc(100% - 16px);
  max-width: 1280px;
  transition:
    opacity var(--t-med) var(--ease),
    visibility var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
  z-index: 95;
}
.mega-wide { width: calc(100% - 16px); max-width: 1280px; }
.nav-links > li:hover > .mega,
.nav-links > li:focus-within > .mega,
.mega:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* 3-column layout (Solutions-style) */
.mega-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.mega-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin: 0 0 6px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--coral);
  display: block;
}
.mega-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  transition: padding-left var(--t-fast) var(--ease);
}
.mega-link:last-child { border-bottom: none; }
.mega-link:hover { padding-left: 4px; }
.mega-link h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
  transition: color var(--t-fast) var(--ease);
}
.mega-link p {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.5;
  margin: 0;
}
.mega-link:hover h4 { color: var(--coral-dark); }

/* 4-card horizontal layout (Resources / Customers-style) */
.mega-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mega-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}
.mega-card:hover {
  border-color: var(--coral-soft);
  background: var(--coral-tint);
  transform: translateY(-2px);
}
.mega-card h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.mega-card p {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.5;
  margin: 0;
}
.mega-card .preview {
  margin-top: 12px;
  aspect-ratio: 16/9;
  background: var(--cream);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute-soft);
}
.mega-card:hover .preview { background: var(--white); }
.mega-card .preview svg { width: 40%; height: auto; opacity: 0.5; }

/* Legacy mega-grid (kept for any pages still using it) */
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: background var(--t-fast) var(--ease);
}
.mega-item:hover { background: var(--cream); }
.mega-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--coral-tint);
  color: var(--coral-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.mega-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.mega-item p {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.4;
}
.mega-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.mega-footer .featured {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}
.mega-footer .featured strong { color: var(--ink); font-weight: 600; }

/* Mobile nav hamburger */
.nav-hamburger {
  display: none;
  width: 40px; height: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all var(--t-fast) var(--ease);
}
.nav-hamburger:hover { border-color: var(--ink); }

/* Mobile overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 200;
  padding: 24px 32px;
  display: none;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.mobile-nav.open { display: flex; opacity: 1; }
.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.mobile-nav-close {
  width: 40px; height: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
}
.mobile-section {
  border-top: 1px solid var(--line-soft);
  padding: 8px 0;
}
.mobile-section summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-section summary::-webkit-details-marker { display: none; }
.mobile-section summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 20px;
  color: var(--mute);
  transition: transform var(--t-fast) var(--ease);
}
.mobile-section[open] summary::after { transform: rotate(45deg); }
.mobile-section-body { padding-bottom: 16px; }
.mobile-section-body a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  color: var(--ink-soft);
}
.mobile-section-body a:hover { color: var(--coral); }
.mobile-nav-cta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =====================================================
   CARDS
   ===================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--mute-soft);
}
.card-coral { background: var(--coral); color: var(--white); border: none; }
.card-coral .body, .card-coral .body-sm { color: rgba(255,255,255,0.85); }
.card-coral .eyebrow { color: rgba(255,255,255,0.7); }
.card-cream { background: var(--cream); border-color: transparent; }
.card-cream-deep { background: var(--cream-deep); border-color: transparent; }
.card-ink { background: var(--ink); color: var(--white); border: none; }
.card-ink .body, .card-ink .body-sm { color: rgba(255,255,255,0.7); }
.card-soft-coral { background: var(--coral-tint); border-color: var(--coral-soft); }
.card-soft-field { background: var(--field-soft); border-color: rgba(47, 111, 78, 0.15); }
.card-soft-gold { background: var(--gold-soft); border-color: rgba(199, 148, 46, 0.2); }
.card-soft-sky { background: var(--sky-soft); border-color: rgba(91, 139, 176, 0.2); }

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

.footer {
  background: var(--ink);
  color: var(--white);
  padding: 96px 0 32px;
  margin-top: 96px;
}
.footer .body, .footer .body-sm { color: rgba(255,255,255,0.6); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .logo { color: var(--white); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer h4 {
  font-size: 12px; font-weight: 600;
  margin-bottom: 16px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-family: var(--sans);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li {
  font-size: 14px; color: rgba(255,255,255,0.8);
  margin-bottom: 10px; cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.footer li:hover { color: var(--coral); }
.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); margin-left: 24px; transition: color var(--t-fast) var(--ease); }
.footer-bottom a:hover { color: var(--white); }
.footer-social { display: flex; gap: 8px; margin-top: 24px; }
.footer-social .s {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.footer-social .s:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-2px); }

/* =====================================================
   APP MOCK COMPONENTS
   ===================================================== */

.mock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: 20px;
  font-family: var(--sans);
}
.mock-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-title { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.mock-meta { font-size: 11px; color: var(--mute); font-weight: 500; }
.mock-points { text-align: left; min-width: 200px; }
.mock-points .label { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.mock-points .value { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--ink); margin-top: 8px; letter-spacing: -0.02em; }
.mock-points .delta { font-size: 12px; color: var(--field); font-weight: 600; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.mock-board { min-width: 260px; }
.mock-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.mock-row:last-child { border-bottom: none; }
.mock-row .rank { font-family: var(--serif); font-size: 16px; color: var(--coral); }
.mock-row .name { color: var(--ink); font-weight: 500; }
.mock-row .pts { font-size: 12px; color: var(--mute); font-weight: 600; }
.mock-row.top { background: var(--coral-tint); margin: 0 -8px; padding: 8px; border-radius: 8px; border: none; }
.mock-row.top .rank { color: var(--coral); }

.mock-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--field-soft);
  border: 1px solid rgba(47,111,78,0.2);
  border-radius: var(--r-md);
  min-width: 200px;
}
.mock-badge .icon {
  width: 36px; height: 36px;
  background: var(--field);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 4px;
}
.mock-badge .title { font-size: 14px; font-weight: 600; color: var(--field); }
.mock-badge .sub { font-size: 12px; color: var(--ink-soft); }

.mock-reward {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.mock-reward-img {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--reward-yellow), #DD5B4A);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
}
.mock-reward .name { font-size: 13px; font-weight: 600; color: var(--ink); }
.mock-reward .price { font-size: 12px; color: var(--mute); margin-top: 2px; }
.mock-reward .btn-redeem {
  margin-left: auto;
  background: var(--coral);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.mock-reward .btn-redeem:hover { background: var(--coral-dark); }

.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 12px; }
.mock-bars .bar { flex: 1; background: var(--coral-tint); border-radius: 3px 3px 0 0; min-height: 8px; }
.mock-bars .bar.hi { background: var(--coral); }
.mock-bars .bar.mid { background: var(--coral-soft); }

/* =====================================================
   STAT BLOCK
   ===================================================== */

.stat { text-align: left; }
.stat .value {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--coral);
}
.stat .value-ink { color: var(--ink); }
.stat .value em { font-style: italic; }
.stat .label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 12px;
  font-weight: 500;
  max-width: 200px;
}

/* =====================================================
   FORM CONTROLS
   ===================================================== */

.input, .field-input {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: all var(--t-fast) var(--ease);
}
.input:focus, .field-input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(221, 91, 74, 0.1);
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

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

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mute);
  padding: 24px 0 8px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--mute); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.crumbs a:hover { color: var(--coral-dark); }
.crumbs .sep { color: var(--line); user-select: none; }
.crumbs .current { color: var(--ink); font-weight: 600; }

/* =====================================================
   PAGE HERO (reused on subpages)
   ===================================================== */

.page-hero {
  padding: 48px 0 80px;
  position: relative;
  text-align: center;
}
.page-hero h1 { max-width: 800px; margin: 16px auto 0; }
.page-hero .lede { max-width: 640px; margin: 24px auto 0; }
.page-hero .actions { margin-top: 40px; display: flex; gap: 12px; justify-content: center; }

/* =====================================================
   CTA BANNER (reused)
   ===================================================== */

.cta-banner {
  background: var(--coral);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 96px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(255,255,255,0.15), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(0,0,0,0.1), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); position: relative; max-width: 720px; margin: 0 auto; }
.cta-banner h2 em { color: var(--gold-soft); }
.cta-banner .lede { color: rgba(255,255,255,0.88); max-width: 520px; margin: 20px auto 32px; position: relative; }
.cta-banner .actions { position: relative; display: flex; gap: 12px; justify-content: center; align-items: center; }
.cta-banner .btn-primary { background: var(--white); color: var(--coral); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.cta-banner .btn-primary:hover { background: var(--cream); color: var(--coral-dark); }
.cta-banner .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.3); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* =====================================================
   APP STORE BADGES
   ===================================================== */

.app-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 12px;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
}
.app-badge:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24,22,20,0.18);
}
.app-badge .glyph { font-size: 22px; line-height: 1; }
.app-badge .lbl { line-height: 1.1; text-align: left; }
.app-badge .lbl .small { display: block; font-size: 9px; opacity: 0.72; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.app-badge .lbl .big { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-top: 1px; }
.app-badge.outline { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.app-badge.outline:hover { border-color: var(--ink); background: var(--white); }
.app-badges-divider { font-size: 12px; color: var(--mute); font-weight: 500; padding: 0 4px; }

/* =====================================================
   INLINE CTA STRIPS (between content sections)
   ===================================================== */

.inline-cta {
  position: relative;
  text-align: center;
  padding: 56px 24px;
}
.inline-cta-text {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto 24px;
}
.inline-cta-text em { color: var(--coral); font-style: italic; }
.inline-cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.inline-cta .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral-dark);
  padding: 14px 8px;
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.inline-cta .btn-link:hover { gap: 10px; color: var(--coral-deep); }

/* Soft tinted card variant */
.inline-cta-card {
  max-width: 920px;
  margin: 32px auto;
  background: var(--coral-tint);
  border: 1px solid var(--coral-soft);
  border-radius: var(--r-md);
  padding: 48px 32px;
}

/* Dark variant */
.inline-cta-dark {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.inline-cta-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(221, 91, 74, 0.20), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(199, 148, 46, 0.12), transparent 60%);
  pointer-events: none;
}
.inline-cta-dark > * { position: relative; z-index: 1; }
.inline-cta-dark .inline-cta-text { color: var(--white); }
.inline-cta-dark .inline-cta-text em { color: var(--coral); }
.inline-cta-dark .btn-link { color: var(--coral-soft); }
.inline-cta-dark .btn-link:hover { color: var(--white); }

/* Section divider (used above/below inline CTAs in plain variant) */
.cta-divider {
  max-width: 240px;
  margin: 0 auto;
  height: 1px;
  background: var(--line);
}

/* Section-end CTA — feels like the natural close to a section, no card chrome */
.section-cta-end {
  margin-top: 56px;
  text-align: center;
}
.section-cta-end .lead-in {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.section-cta-end .lead-in em { color: var(--coral-dark); font-style: normal; font-weight: 600; }
.section-cta-end .actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
/* Dark-mode (e.g. inside .ladder) */
.ladder .section-cta-end .lead-in,
.pitch .section-cta-end .lead-in,
.inline-cta-dark .section-cta-end .lead-in { color: rgba(255,255,255,0.7); }
.ladder .section-cta-end .lead-in em,
.pitch .section-cta-end .lead-in em { color: var(--coral); }

/* =====================================================
   PROBLEM AGITATION (Before Pryze)
   ===================================================== */

.problem-section {
  padding: 96px 0;
  background: var(--cream);
}
.problem-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.problem-head h2 { margin-top: 16px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  position: relative;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.problem-card:hover { transform: translateY(-3px); border-color: var(--mute-soft); }
.problem-card .pc-stat {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.95;
  color: var(--coral-dark);
  letter-spacing: -0.03em;
  font-style: italic;
}
.problem-card .pc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.problem-card .pc-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 12px;
}
.problem-card .pc-source {
  font-size: 11px;
  color: var(--mute-soft);
  margin-top: 16px;
  font-style: italic;
}

@media (max-width: 980px) {
  .problem-section { padding: 64px 0; }
  .problem-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   CASE-STUDY TOC (sticky left sidebar)
   ===================================================== */

.cs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 24px;
}
.cs-toc {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 8px;
}
.cs-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
  padding-left: 12px;
}
.cs-toc-list { list-style: none; margin: 0; padding: 0; position: relative; }
.cs-toc-list::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--line);
  border-radius: 999px;
}
.cs-toc-link {
  display: block;
  padding: 8px 0 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: -0.005em;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition:
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    padding-left 180ms var(--ease),
    background 180ms var(--ease);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.cs-toc-link:hover { color: var(--ink); padding-left: 18px; }
.cs-toc-link.is-active {
  color: var(--coral-dark);
  border-left-color: var(--coral);
  padding-left: 18px;
  font-weight: 600;
}
.cs-toc-link .toc-meta {
  display: block;
  font-size: 11px;
  color: var(--mute);
  font-weight: 400;
  margin-top: 2px;
  letter-spacing: 0;
}
.cs-toc-link.is-active .toc-meta { color: var(--coral); }

@media (max-width: 980px) {
  .cs-layout { grid-template-columns: 1fr; gap: 0; }
  .cs-toc { display: none; }
}

/* =====================================================
   FOCUS STATES (a11y)
   ===================================================== */

*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--coral-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav-signin:focus-visible,
.app-badge:focus-visible,
.lead-pop-close:focus-visible,
.nav-hamburger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.nav-links > li > a:focus-visible,
.mega-item:focus-visible,
.mobile-section > summary:focus-visible {
  outline: 2px solid var(--coral-dark);
  outline-offset: 2px;
  border-radius: 6px;
}
.mega-item:focus-visible { background: var(--cream); }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  transform: translateY(-200%);
  transition: transform 200ms var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--coral-dark);
  outline-offset: 2px;
}

/* =====================================================
   MOTION — Scroll reveals
   ===================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > .reveal { transition-delay: calc(var(--i, 0) * 100ms); }

/* Section fade-in for any direct child of <main> using .section */
section.section,
section.section-sm,
section.section-lg {
  scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

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

.dot { width: 6px; height: 6px; background: var(--coral); border-radius: 50%; display: inline-block; }
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.tag-corner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.w-full { width: 100%; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

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

@media (max-width: 980px) {
  .nav-primary, .nav-signin { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 72px 0; }
  .section-lg { padding: 96px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat .value { font-size: 56px; }
  .page, .page-narrow { padding: 0 20px; }
  .cta-banner { padding: 64px 24px; }
}

@media (max-width: 600px) {
  .page-hero { padding: 32px 0 48px; }
  .footer-cols { grid-template-columns: 1fr; }
}


/* =====================================================
   SHARED PAGE COMPONENTS  (added for new pages)
   ===================================================== */

/* Generic page container helpers (mirror existing .page) */
.page { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.page-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); }
.lede { font-size: clamp(17px,1.5vw,20px); color: var(--mute); line-height: 1.6; }
.center { text-align: center; }

/* ---- Simple page header band ---- */
.page-head { padding: 120px 0 48px; }
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px,4.4vw,56px); line-height: 1.05; letter-spacing: -0.035em; }
.page-head .lede { margin-top: 18px; max-width: 640px; }

/* ===== Legal / long-form layout ===== */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; padding-bottom: 120px; }
.legal-toc { position: sticky; top: 110px; font-size: 14px; }
.legal-toc h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.legal-toc a { display: block; padding: 7px 0; color: var(--mute); border-left: 2px solid var(--line); padding-left: 14px; transition: color var(--t-fast), border-color var(--t-fast); }
.legal-toc a:hover { color: var(--ink); border-color: var(--coral); }
.legal-toc a.is-active { color: var(--ink); border-color: var(--coral); font-weight: 600; }
.legal-updated { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--coral-dark); background: var(--coral-tint); padding: 6px 14px; border-radius: var(--r-pill); }

/* Prose for legal + blog posts */
.prose { font-size: 17px; line-height: 1.72; color: var(--ink-soft); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); margin-top: 52px; scroll-margin-top: 110px; }
.prose h3 { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); margin-top: 32px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 8px 0; padding: 18px 26px; border-left: 3px solid var(--coral); background: var(--cream); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 19px; font-style: italic; color: var(--ink); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 8px; }
.data-table th, .data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); background: var(--cream); }
.data-table tr:last-child td { border-bottom: none; }

/* ===== Forms (contact / lead capture) ===== */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--sh-md); }
.field-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field-row label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field-row .opt { color: var(--mute-soft); font-weight: 400; }
.input, textarea.input { width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 16px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.input:focus, textarea.input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(221,91,74,0.1); }
textarea.input { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--mute); margin-top: 14px; display: flex; align-items: center; gap: 7px; }
.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--field); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.form-success h3 { font-family: var(--display); font-size: 24px; font-weight: 700; }
form.is-sent .form-body { display: none; }
form.is-sent .form-success { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Minimal nav (lead-magnet landing) ===== */
.mini-nav { position: sticky; top: 0; z-index: 100; padding: 18px 0; background: rgba(250,250,247,0.85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-soft); }
.mini-nav .inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.mini-nav .secure { font-size: 13px; color: var(--mute); }

/* ===== Changelog timeline ===== */
.cl-list { max-width: 760px; margin: 0 auto; padding-bottom: 120px; }
.cl-entry { display: grid; grid-template-columns: 150px 1fr; gap: 36px; padding: 36px 0; border-top: 1px solid var(--line); }
.cl-entry:first-child { border-top: none; }
.cl-when { font-size: 14px; font-weight: 600; color: var(--mute); padding-top: 2px; }
.cl-when .v { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: 2px; }
.cl-body h2 { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.cl-body ul { padding-left: 20px; color: var(--ink-soft); }
.cl-body li + li { margin-top: 6px; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cl-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; padding: 4px 11px; border-radius: var(--r-pill); }
.cl-tag.new { background: var(--field-soft); color: var(--field); }
.cl-tag.improved { background: var(--dodger-soft); color: var(--dodger); }
.cl-tag.fixed { background: var(--gold-soft); color: #8a6410; }
.cl-tag.removed { background: var(--coral-tint); color: var(--coral-dark); }

/* ===== 404 ===== */
.err { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 32px; }
.err .code { font-family: var(--display); font-weight: 800; font-size: clamp(96px,16vw,200px); line-height: 0.9; letter-spacing: -0.04em; color: var(--coral); }
.err h1 { font-family: var(--display); font-size: clamp(26px,3vw,38px); font-weight: 700; margin-top: 8px; }
.err p { color: var(--mute); margin-top: 14px; max-width: 460px; }
.err .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ===== Blog post ===== */
.post-head { padding: 120px 0 40px; max-width: 760px; margin: 0 auto; }
.post-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral); }
.post-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px,4.2vw,52px); line-height: 1.07; letter-spacing: -0.035em; margin: 16px 0 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--mute); align-items: center; }
.post-meta .dot { color: var(--mute-soft); }
.post-figure { aspect-ratio: 16/9; background: linear-gradient(160deg, var(--coral-tint), var(--cream)); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--mute-soft); font-size: 13px; margin: 8px 0; }
.post-cta { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: 36px 40px; margin: 44px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.post-cta h3 { font-family: var(--display); font-size: 22px; font-weight: 700; color: #fff; }
.post-cta p { color: rgba(255,255,255,0.7); margin-top: 6px; font-size: 15px; }
.post-cta form { display: flex; gap: 10px; flex-wrap: wrap; }
.post-cta .input { min-width: 220px; }
.related { border-top: 1px solid var(--line); padding: 56px 0 100px; }
.related h3 { font-family: var(--display); font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.post-card { display: block; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; background: var(--white); transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--coral-soft); }
.post-card .post-cat { font-size: 11px; }
.post-card h4 { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.25; margin: 8px 0; }
.post-card p { font-size: 13.5px; color: var(--mute); }

/* ===== Cookie consent banner ===== */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 560px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 22px 24px; transform: translateY(140%); transition: transform var(--t-med) var(--ease); }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.cookie-banner a { color: var(--coral-dark); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.cookie-actions .btn { padding: 9px 16px; font-size: 13.5px; }
.cookie-decline { background: none; border: none; color: var(--mute); font-size: 13.5px; font-weight: 600; text-decoration: underline; padding: 9px 4px; }

@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .cl-entry { grid-template-columns: 1fr; gap: 14px; }
  .page, .page-narrow { padding: 0 20px; }
}
