/* ========================================
   0. Fonts (self-hosted, from Google Fonts: latin + latin-ext only; ₹ is in latin-ext).
   Variable files, so each covers every weight we use. font-display: swap.
   ======================================== */
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/inter-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/inter-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ========================================
   1. Theme Tokens - Fresh Lime
   Light (default) + Dark (pure black)
   ======================================== */
:root {
  /* Surfaces (light is the default, so the page is light even if JS fails) */
  --bg-primary: #fafaf9;
  --bg-secondary: #f4f4f2;
  --bg-card: #ffffff;

  /* Borders */
  --border-color: #e7e5e4;
  --border-light: #d6d3d1;

  /* Text */
  --text-primary: #0a0a0a;
  --text-secondary: #57534e;
  --text-muted: #78716c;

  /* Accent */
  --accent: #bef264;            /* marker/highlight backgrounds, dots, fills */
  --accent-ink: #4d7c0f;        /* darker green for readable text */
  --accent-soft: rgba(77, 124, 15, 0.08);
  --on-accent: #000000;         /* text on top of lime */

  /* Features title letter wave */
  --feat-idle: #e2e0dd;
  --feat-wave: #4d7c0f;
  --feat-active: #0a0a0a;
  --feat-past: #a8a29e;

  /* Process artifacts: the two offset sheets behind each framed artifact */
  --pr-sheet-near: #ebe9e5;
  --pr-sheet-far: #f2f1ee;

  /* Buttons */
  --btn-bg: #0a0a0a;
  --btn-text: #ffffff;
  --btn-hover: #262626;

  /* Status */
  --error: #dc2626;
  --error-soft: rgba(220, 38, 38, 0.08);

  /* Fonts */
  --font-primary: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: "Inter", sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(5rem, 10vw, 8rem);
  --nav-space: 5rem;            /* fixed navbar's resting height */

  /* Effects (only used where noted) */
  --toast-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);   /* hero notifications only */

  /* Motion */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Paper object (Solution resume sheet): fixed colours, same in both themes */
  --paper: #f6f3ec;
  --ink: #1a1a1a;
  --ink-muted: #6b6760;
  --ink-faint: #dcd6ca;
  --red-pen: #d7263d;
  --on-red-pen: #ffffff;
  --paper-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 18px 40px rgba(0, 0, 0, 0.22);
  --font-hand: var(--font-secondary); /* small handwritten-style notes: Inter italic (no Caveat download) */
}

/* .gs.is-checkout: while Razorpay is open our full-screen layer uses the dark tokens in BOTH themes,
   so Razorpay sits on a black screen (the original look). Nothing else on the page changes. */
[data-theme="dark"],
.gs.is-checkout {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #121212;

  --border-color: #222222;
  --border-light: #333333;

  --text-primary: #f2f2f2;
  --text-secondary: #b5b5b5;
  --text-muted: #8a8a8a;

  --accent: #bef264;
  --accent-ink: #bef264;
  --accent-soft: rgba(190, 242, 100, 0.12);
  --on-accent: #000000;

  --feat-idle: #2a2a2a;
  --feat-wave: #bef264;
  --feat-active: #f2f2f2;
  --feat-past: #5a5a5a;

  --pr-sheet-near: #1c1c1c;
  --pr-sheet-far: #101010;

  --btn-bg: #bef264;
  --btn-text: #000000;
  --btn-hover: #d4f78f;

  --error: #f87171;
  --error-soft: rgba(248, 113, 113, 0.12);

  --toast-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Smooth theme switch */
body,
section,
nav,
footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   Lenis smooth scroll base styles (inlined from lenis@1.3.26/dist/lenis.css)
   ======================================== */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

/* ========================================
   2. Reset
   (No scroll-behavior: smooth - Lenis handles scrolling)
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* No browser scroll anchoring: pins and re-splits change heights above the viewport,
   and anchoring would move the page behind Lenis' back */
html {
  overflow-anchor: none;
  overflow-x: hidden; /* fallback */
  overflow-x: clip;   /* iOS Safari: clip doesn't create a scroll container, so nothing scrolls sideways */
  -webkit-tap-highlight-color: transparent; /* no grey flash on tap; :focus-visible styles stay */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Page scroll locked (mobile menu, Get Started modal): no background scroll or bounce on iOS */
html.is-scroll-locked,
html.is-scroll-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

/* ========================================
   3. Base Typography
   ======================================== */
body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* fallback */
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

h3,
h4 {
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  text-wrap: pretty;
}

::selection {
  background-color: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

/* Thin scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) var(--bg-primary);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}

/* ========================================
   4. Layout Utilities
   ======================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  /* Landscape iPhones: keep content clear of the notch / Dynamic Island */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}

/* Hidden visually, still read by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   5. Reusable Components
   Flat only: no glows, gradients or shadow effects.
   ======================================== */

/* Marker - signature highlighter, wraps cleanly across lines */
.marker {
  background-color: var(--accent);
  color: var(--on-accent);
  padding: 0 0.2em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Section label - small uppercase tag with an accent dot */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.btn-primary {
  background-color: var(--btn-bg);
  color: var(--btn-text);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
  }
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    border-color: var(--text-primary);
  }
}

/* ========================================
   6. Animation Base States
   Elements start hidden only when JS is running (html.js),
   so the page still works if scripts fail to load.
   ======================================== */
html.js [data-reveal] {
  opacity: 0;
}

html.js [data-split] {
  visibility: hidden;
}

/* Respect users who prefer less motion: show everything immediately */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
  }

  html.js [data-split] {
    visibility: visible;
  }
}

/* ========================================
   7. Navbar
   Solid colour when scrolled: no blur, shadow or glow.
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-block: 1.25rem;
  padding-top: max(1.25rem, env(safe-area-inset-top)); /* clear of the status bar when edge-to-edge */
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    padding 0.3s ease, transform 0.3s ease;
}

.navbar.is-scrolled,
.navbar.is-menu-open {
  background-color: var(--bg-primary);
  border-bottom-color: var(--border-color);
}

.navbar.is-scrolled {
  padding-block: 0.85rem;
  padding-top: max(0.85rem, env(safe-area-inset-top));
}

.navbar.is-hidden {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: no-preference) {
  html.js .navbar {
    visibility: hidden; /* initNavEntrance reveals it */
  }
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo wordmark */
.nav-logo {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-logo-muted {
  color: var(--text-muted);
}

.nav-logo-strong {
  color: var(--text-primary);
}

/* Primary links (identical markup on every page; initNavbar marks the current one) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.nav-link[aria-current="page"],
.nav-dd-trigger[aria-expanded="true"] {
  color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--text-primary);
  }
}

/* Current page: a 2px lime underline */
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--nav-current, var(--accent));
}

[data-theme="light"] .navbar,
[data-theme="light"] .mobile-menu {
  --nav-current: var(--accent-ink); /* plain lime is too faint on the light background */
}

.nav-chevron {
  flex: none;
  transition: transform 0.25s ease;
}

[aria-expanded="true"] > .nav-chevron {
  transform: rotate(180deg);
}

/* ---- Recruiter Magnet dropdown ---- */
.nav-dd {
  position: relative;
}

/* "The preview panel": links on the left, a preview of the hovered link on the right.
   initNavbar centres it on the trigger (clamped to the viewport) and unfolds it. */
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0; /* set by initNavbar */
  z-index: 2;
  display: grid;
  grid-template-columns: 55fr 45fr;
  width: 560px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.nav-dd-panel[hidden] {
  display: none;
}

/* Invisible bridge over the 14px gap, so the pointer can cross it */
.nav-dd::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 15px;
}

.nav-dd-links {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding: 0.75rem;
  border-right: 1px solid var(--border-light);
}

.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  outline: none;
  transition: background-color var(--transition-fast);
}

.nav-dd-num {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-dd-label {
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

/* A small stroke arrow slides in on the right */
.nav-dd-arrow {
  flex: none;
  color: var(--text-primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dd-item:hover,
.nav-dd-item:focus-visible {
  background-color: color-mix(in srgb, var(--text-primary) 4%, transparent);
}

.nav-dd-item:hover .nav-dd-label,
.nav-dd-item:focus-visible .nav-dd-label {
  color: var(--text-primary);
}

.nav-dd-item:hover .nav-dd-num,
.nav-dd-item:focus-visible .nav-dd-num,
.nav-dd-item.is-current .nav-dd-num,
.mm-sub-link.is-current .nav-dd-num {
  color: var(--accent-ink);
}

.nav-dd-item:hover .nav-dd-arrow,
.nav-dd-item:focus-visible .nav-dd-arrow {
  opacity: 1;
  transform: none;
}

.nav-dd-preview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem;
}

/* The preview text: one item at a time, rolled through a mask */
.nav-dd-pv {
  position: relative;
  min-height: calc(0.7rem * 1.4 + 0.45rem + 3 * 1.25rem * 1.2);
  overflow: hidden;
}

.nav-dd-pv-item.is-out {
  position: absolute;
  inset: 0 0 auto;
}

.nav-dd-pv-label {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-dd-pv-line {
  display: -webkit-box;
  margin-top: 0.45rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* The key phrase: the site's small lime marker, drawn left to right */
.nav-dd-mark {
  padding: 0 0.15em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center;
  background-size: 100% 86%;
  color: var(--on-accent);
}

.nav-dd-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-dd-cta {
  width: 100%;
  margin-top: 0.55rem;
  justify-content: center;
}

/* Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme toggle: both icons stacked, swapped with rotate + fade */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background-color: transparent;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    border-color: var(--text-primary);
  }
}

.theme-toggle svg {
  grid-area: 1 / 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

/* Navbar CTA */
.nav-cta {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
}

/* Hamburger: two lines that morph into an X */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background-color: transparent;
  color: var(--text-primary);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform var(--transition-normal);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile menu: full-screen overlay below the navbar (--menu-top set by JS on open) */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--menu-top, var(--nav-height, 72px));
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: var(--gutter);
  padding-bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  background-color: var(--bg-primary);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
}

.mm-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  background: none;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: left;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.mm-link[aria-current="page"],
.mm-trigger[aria-expanded="true"] {
  color: var(--text-primary);
}

/* Current page: the lime underline, under the text only */
.mm-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.7rem;
  width: 2.5rem;
  height: 2px;
  border-radius: 1px;
  background-color: var(--nav-current, var(--accent));
}

.mm-trigger .nav-chevron {
  width: 20px;
  height: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .mm-link:hover {
    color: var(--text-primary);
  }
}

/* Recruiter Magnet's sub-links (an accordion; initNavbar animates the height) */
.mm-sub {
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.mm-sub[hidden] {
  display: none;
}

.mm-sub-link {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0 0.7rem 0.25rem;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.mm-sub-link:first-child {
  padding-top: 1rem;
}

.mm-sub-foot {
  padding: 0.75rem 0 1.25rem;
}

.mm-sub-cta {
  min-height: 48px;
}

.mobile-menu-cta {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 991.98px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 380px) {
  .nav-logo {
    font-size: 1rem;
  }
}

/* ========================================
   8. Hero
   Left: who it's for, what it is, the outcome. Right: a recruiter search where "you"
   climb to #1 and the calls start. One decoration only: a faded dot grid.
   ======================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* spare height goes between the content and the logos */
  gap: 6rem; /* room above "Get calls from recruiters at …" */
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-height, 72px) + 3rem);
  padding-bottom: 2.5rem;
  background-color: var(--bg-primary);
}

/* Dot grid texture, fading out toward the bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 35%, transparent 85%);
  mask-image: linear-gradient(to bottom, black 0%, black 35%, transparent 85%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4rem;
  align-items: center;
  width: 100%;
}

/* ---- Text column ---- */
.hero-kicker {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-kicker .marker {
  white-space: nowrap;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.4rem, min(3.7vw, 6.2vh), 4.4rem); /* fallback: iOS < 15.4 */
  font-size: clamp(2.4rem, min(3.7vw, 6.2svh), 4.4rem); /* 3–4 lines in the half-width column */
  line-height: 1.05;
  margin-block: 1.1rem 1.25rem;
}

/* Marker drawn as a background that grows left → right.
   86% height keeps it inside the line box (SplitText masks clip at the line). */
.hero-marker {
  padding: 0 0.2em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center;
  background-size: 100% 86%;
  color: var(--on-accent);
  transition: color 0.4s ease;
}

html.js .hero-marker {
  background-size: 0% 86%;
  color: var(--text-primary);
}

html.js .hero-marker.is-drawn {
  background-size: 100% 86%;
  color: var(--on-accent);
}

.hero-subtitle {
  max-width: 540px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn-arrow {
    transform: translateX(4px);
  }
}

/* ---- Visual: recruiter search card ---- */
.hero-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  perspective: 1200px;
}

.hero-visual {
  padding: 1.4rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.hv-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hv-dots {
  display: flex;
  gap: 6px;
}

.hv-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-light);
}

.hv-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  overflow: hidden;
}

.hv-search svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.hv-query {
  position: relative;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.hv-ghost {
  visibility: hidden;
}

.hv-typing {
  position: absolute;
  top: 0;
  left: 0;
}

.hv-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background-color: var(--accent-ink);
}

/* Filters: one line of small pills */
.hv-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.hv-chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--text-secondary);
}

.hv-chip.is-key {
  color: var(--text-primary);
}

.hv-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hv-meta {
  margin: 0.85rem 0 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.hv-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Fixed row height so the climb can swap rows slot-for-slot */
.hv-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 60px;
  padding: 0 0.85rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.hv-rank {
  flex-shrink: 0;
  width: 2.25rem;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}

.hv-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-family: var(--font-primary);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Skeleton name/role bars */
.hv-lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hv-line {
  display: block;
  width: var(--w, 50%);
  height: 7px;
  border-radius: 4px;
  background-color: var(--border-color);
}

.hv-match {
  flex-shrink: 0;
  min-width: 2.6rem;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* The visitor's row */
.hv-row-you {
  z-index: 2;
  transition: border-color 0.4s ease;
}

.hv-row-you .hv-avatar {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.hv-row-you .hv-match {
  color: var(--text-primary);
}

.hv-row-you.is-top {
  border-color: var(--accent);
}

.hv-row-you.is-climbing .hv-rank,
.hv-row-you.is-top .hv-rank {
  color: var(--accent-ink);
}

.hv-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.25;
}

.hv-info strong {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hv-role {
  max-width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-opt {
  max-width: 100%;
  margin-top: 0.15rem;
  padding: 0 0.35rem;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  font-size: 0.68rem;
  font-style: normal;
  line-height: 1.4;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-tag {
  flex-shrink: 0;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background-color: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Call notifications ---- */
.hv-toasts {
  position: absolute;
  right: -1.25rem;
  bottom: -1.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 260px;
}

.hv-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--toast-shadow); /* the only shadow on the page */
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
}

.hv-toast-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--on-accent);
}

/* ---- Logo marquee ---- */
/* .hero is a flex column and .container's auto margins stop it stretching, so without an
   explicit width the strip would size to the track's max-content width (wider than mobile) */
.hero-logos {
  width: 100%;
  min-width: 0;
}

/* "Live caller ID": a plain sentence; the company in the marker follows the strip's centre */
.hero-logos-title {
  margin-bottom: 2.75rem;
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: var(--text-secondary);
}

.hero-logos-title .mobile-only {
  display: none;
}

/* Rings (double pulse) each time the company changes */
.cid-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.6rem;
  vertical-align: 0.12em;
  border-radius: 50%;
  background-color: var(--accent);
}

/* The marker box; its window's width tweens to each name, so the line never jumps */
.cid-name {
  display: inline-block;
  padding: 0 0.3em;
  vertical-align: bottom;
  border-radius: 3px;
  font-weight: 800;
  color: var(--on-accent);
  background-color: var(--accent);
}

.cid-window {
  position: relative;
  display: inline-block;
  height: 1.5em;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
}

.cid-word {
  display: block;
}

.cid-window.is-live .cid-word {
  position: absolute;
  top: 0;
  left: 0;
}

/* Edge fade is a mask (alpha only), not a colour gradient */
.marquee {
  width: 100%;
  max-width: 100%;
  padding-block: 4px; /* room for the hover scale */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
}

/* padding-right = gap, so each group is exactly half the track */
.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4.5rem;
  padding-right: 4.5rem;
}

/* Logos keep their own colours. The artwork files are the white-on-dark variants, so
   light mode darkens the ones tagged data-light-logo, and dark mode whitens mono dark artwork
   (data-dark-logo) or flips lightness on multi-colour ones (data-dark-mix). */
/* Opacity + scale (centre highlight, hover) are set by JS */
.marquee-group img {
  flex-shrink: 0;
  width: auto;
  max-width: 150px;
  height: 44px;
  object-fit: contain;
}

[data-theme="dark"] .marquee-group img[data-dark-logo] {
  filter: brightness(0) invert(1);
}

/* Multi-colour logos with dark type: flip lightness, keep the hues */
[data-theme="dark"] .marquee-group img[data-dark-mix] {
  filter: invert(1) hue-rotate(180deg);
}

/* Very wide wordmarks get a little more room so they don't shrink to a sliver */
.marquee-group img[data-wide] {
  max-width: 190px;
}

[data-theme="light"] .marquee-group img[data-light-logo] {
  filter: brightness(0);
}

/* ---- Start states (JS timeline reveals these) ---- */
html.js .hero-kicker,
html.js .hero-subtitle,
html.js .hero-actions,
html.js .hero-visual,
html.js .hv-toast,
html.js .hero-logos {
  visibility: hidden;
}

/* ---- Short desktop viewports (1280×720 laptops): keep everything on one screen ---- */
@media (min-width: 1100px) and (max-height: 820px) {
  .hero {
    gap: 4.5rem;
    padding-top: calc(var(--nav-height, 72px) + 1.75rem);
    padding-bottom: 1.75rem;
  }

  .hero-title {
    margin-block: 0.8rem 1rem;
  }

  .hero-actions {
    margin-top: 1.4rem;
  }

  .hero-visual {
    padding: 1.1rem;
  }

  .hv-topbar {
    margin-bottom: 0.7rem;
  }

  .hv-search {
    padding-block: 0.6rem;
  }

  .hv-meta {
    margin: 0.6rem 0 0.5rem;
  }

  .hv-results {
    gap: 0.4rem;
  }

  .hv-row {
    height: 54px;
  }

  .hv-toasts {
    bottom: -1rem;
    gap: 0.45rem;
  }

  .hv-toast {
    padding-block: 0.5rem;
  }

  .hero-logos-title {
    margin-bottom: 2rem;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1099.98px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr); /* plain 1fr can't shrink below its content on phones */
    gap: 3.5rem;
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual-wrap {
    max-width: 480px;
    margin-inline: auto;
    justify-self: center;
    text-align: left;
  }

  /* Notifications sit inside the card, under the results, full card width */
  .hv-toasts {
    position: static;
    width: auto;
    margin-top: 0.9rem;
    gap: 8px;
  }

  .hv-toast-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Hero buttons: content width, side by side when they fit */
  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    width: auto;
    padding: 0.95rem 1.75rem;
  }
}

@media (max-width: 991.98px) {
  .marquee-group {
    gap: 3.5rem;
    padding-right: 3.5rem;
  }

  .marquee-group img {
    height: 36px;
    max-width: 124px;
  }
}

@media (max-width: 575.98px) {
  .marquee-group {
    gap: 2.5rem;
    padding-right: 2.5rem;
  }

  .marquee-group img {
    height: 30px;
    max-width: 104px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  /* Caller ID on two lines: "Get calls from" / "recruiters at [Company]" */
  .hero-logos-title {
    margin-bottom: 1.75rem;
    font-size: 1rem;
  }

  .hero-logos-title .mobile-only {
    display: inline;
  }

  .hero-visual {
    padding: 1rem;
  }

  .hv-search {
    font-size: 0.82rem;
  }

  /* Filters stay on one line: smaller pills, then a sideways scroll with a soft right edge */
  .hv-filters {
    gap: 0.3rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent);
    mask-image: linear-gradient(to right, black 85%, transparent);
  }

  .hv-chip {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }

  .hv-filters::-webkit-scrollbar {
    display: none;
  }

  .hv-row {
    gap: 0.55rem;
    padding: 0 0.65rem;
  }

  .hv-rank {
    width: 1.9rem;
  }

  /* Three rows only */
  .hv-row-extra {
    display: none;
  }

  /* Room for "Your profile": the lime border already marks the top match */
  .hv-tag {
    display: none;
  }

  .hv-info strong {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

}

/* Reduced motion: markup already holds the final state, just show it */
@media (prefers-reduced-motion: reduce) {
  html.js .hero-kicker,
  html.js .hero-subtitle,
  html.js .hero-actions,
  html.js .hero-visual,
  html.js .hv-toast,
  html.js .hero-logos {
    visibility: visible;
  }

  html.js .hero-marker {
    background-size: 100% 86%;
    color: var(--on-accent);
  }

  .hv-caret {
    display: none;
  }
}

/* ========================================
   9. Problem
   Editorial: typography, hairlines and SVG strokes only. No cards.
   Default styles = final state (for no-JS / reduced motion);
   JS rewinds to the start state.
   ======================================== */

/* ---- Header ---- */
.problem-header {
  max-width: 760px;
  margin-bottom: 5rem;
}

.problem-title {
  margin-top: 0;
}

/* Each line masks its own slide-up; extra bottom room keeps the scribble visible */
.problem-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}

.problem-line-inner {
  display: block;
}

.problem-muted {
  position: relative;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Hand-drawn underline */
.problem-scribble {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.3em;
  overflow: visible;
}

.problem-scribble path {
  fill: none;
  stroke: var(--error);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.problem-subtitle {
  max-width: 560px;
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

/* ---- Stage ---- */
.problem-stage {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

/* ---- Scoreboard ---- */
.score {
  padding-block: 1.25rem;
}

.score + .score {
  border-top: 1px solid var(--border-color);
}

.score-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.score-value {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-primary);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.score-zero {
  display: inline-block;
  color: var(--text-muted);
}

.score-meters {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.meter-head strong {
  font-weight: 600;
  color: var(--text-primary);
}

.meter-track {
  position: relative;
  height: 2px;
  background-color: var(--border-color);
}

.meter-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--value);
  height: 100%;
  background-color: var(--text-muted);
  transform-origin: left center;
}

.score-trend {
  margin-top: 2rem;
}

.trend-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.trend-guide {
  stroke: var(--border-color);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.trend-line {
  fill: none;
  stroke: var(--error);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.trend-dot {
  fill: var(--error);
}

.score-trend figcaption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.score-trend figcaption svg {
  color: var(--error);
}

/* ---- Attempts list ---- */
.problem-list {
  border-top: 1px solid var(--border-color);
}

.problem-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.25rem 1.25rem;
  align-items: baseline;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--border-color);
}

.problem-num {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.problem-row-title {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 800;
}

/* Strike-through drawn as a 1.5px background line; clone keeps it on every wrapped line */
.problem-strike {
  background: linear-gradient(var(--text-muted), var(--text-muted)) no-repeat left 58%;
  background-size: 100% 1.5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.problem-body p {
  margin-top: 0.4rem;
}

.problem-status {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--error);
}

/* ---- Tablet & mobile ---- */
@media (max-width: 991.98px) {
  .problem-header {
    margin-bottom: 3.5rem;
  }

  .problem-stage {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  /* Numbers side by side */
  .score-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .score + .score {
    border-top: 0;
    border-left: 1px solid var(--border-color);
    padding-left: 1.5rem;
  }

  .score-value {
    font-size: clamp(3rem, 10vw, 4.5rem);
  }
}

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

  .problem-row-title {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
  }

  /* Status drops under the description */
  .problem-status {
    grid-column: 2;
    margin-top: 0.5rem;
  }
}

/* ========================================
   9b. Problem loop - a visible cycle that breaks
   Solid type, hairlines and a custom SVG only. Colours come from theme variables, so
   dark and light need no JS rebuild. JS sets the SVG geometry and the state classes.
   ======================================== */
.problem-loop {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding-block: 3rem;
}

.pl-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.pl-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.pl-counter {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-primary);
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.pl-counter.is-frozen {
  color: var(--text-muted);
}

.pl-counter-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Odometer: the new number slides up into a one-line window */
.pl-counter-num {
  position: relative;
  display: inline-block;
  height: 1.5rem;
  overflow: hidden;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.pl-n {
  display: block;
  white-space: nowrap;
}

.pl-n-next {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
}

/* Board: words, plus the room under them for the return curve (the SVG overlays all of it) */
.pl-board {
  position: relative;
  container-type: inline-size;
  padding-bottom: 8.5rem;
}

.pl-words {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  font-family: var(--font-primary);
  font-size: clamp(3rem, calc((100cqw - 240px) / 10.2), 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--text-primary);
}

.pl-word {
  color: var(--feat-idle);
  transition: color 0.25s ease;
}

.pl-word.is-on {
  color: var(--text-primary);
}

.pl-word[data-w="1"].is-on {
  color: var(--error);
}

/* After the break: Apply and Reject settle, Repeat stays (it carries the strike) */
.pl-board.is-broken .pl-word {
  color: var(--text-muted);
}

.pl-board.is-broken .pl-word[data-w="2"] {
  color: var(--text-primary);
}

.pl-arrow {
  flex-shrink: 0;
  fill: none;
  stroke: var(--border-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pl-arrow-h {
  width: 60px;
  height: 16px;
}

.pl-arrow-v {
  display: none;
  width: 16px;
  height: 28px;
}

.pl-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.pl-track {
  fill: none;
  stroke: none;
}

.pl-ret,
.pl-head {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}

.pl-head {
  stroke-dasharray: none;
}

.pl-strike {
  fill: none;
  stroke: var(--error);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.pl-dot {
  fill: var(--text-primary);
}

.pl-break {
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text-primary);
}

/* Desktop: the loop closes the section, its own padding is enough before Solution */
@media (min-width: 1100px) {
  .problem.section {
    padding-bottom: 0;
  }
}

/* ---- Tablet & mobile: words stack, the return curve runs up the right side ---- */
@media (max-width: 1099.98px) {
  .problem-loop {
    min-height: 0;
    padding-block: 4rem 1rem;
  }

  .pl-top {
    align-items: baseline;
  }

  .pl-board {
    padding-bottom: 0;
  }

  .pl-words {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
    padding-left: 28px; /* the dot's lane runs down the left gutter */
    padding-right: 2.5rem;
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .pl-arrow-h {
    display: none;
  }

  .pl-arrow-v {
    display: block;
    margin-left: -26px; /* centred on the lane */
  }

  .pl-break {
    margin-top: 1rem;
    text-align: left;
  }
}

/* Reduced motion: final state, rows dimmed but still readable */
@media (prefers-reduced-motion: reduce) {
  .problem-row {
    opacity: 0.6;
  }
}

/* ========================================
   10. Solution - "The visibility curve"
   Four stages on one board; a single line climbs from "Invisible" to "Unmissable".
   Default styles = FINAL state (no-JS / reduced motion); JS rewinds and draws on scroll.
   ======================================== */
.solution {
  position: relative;
  padding-top: clamp(4rem, 7vw, 6rem);
}

/* ---- Shared draw effects (used across the page) ---- */
/* Lime marker drawn left → right (same technique as the hero) */
.draw-marker {
  padding: 0 0.2em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center;
  background-size: 100% 86%;
  color: var(--on-accent);
  transition: color 0.4s ease;
}

/* Strike-through line drawn left → right */
.sol-strike {
  background: linear-gradient(var(--text-muted), var(--text-muted)) no-repeat left 56%;
  background-size: 100% 6%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

html.js .draw-marker {
  background-size: 0% 86%;
  color: var(--text-primary);
}

html.js .draw-marker.is-drawn {
  background-size: 100% 86%;
  color: var(--on-accent);
}

html.js .sol-strike {
  background-size: 0% 6%;
}

html.js .sol-strike.is-drawn {
  background-size: 100% 6%;
}

/* ---- Header (outside the pin) ---- */
.solution-header {
  max-width: 820px;
  margin-bottom: 3rem;
}

.solution-title {
  margin-top: 0;
}

.solution-subtitle {
  max-width: 600px;
  margin-top: 1rem;
  font-size: 1.1rem;
}

html.js .solution-title,
html.js .solution-subtitle {
  visibility: hidden;
}

/* ---- Board (desktop): axis strip + five columns, dashed guides top and bottom ---- */
.sol-board {
  --sol-k: 1; /* JS scales the copy down if a short screen would push it into the curve */
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr); /* fits "Unmissable" */
  height: calc(100vh - var(--nav-height, 72px) - 3rem);
  height: calc(100svh - var(--nav-height, 72px) - 3rem);
  min-height: 520px;
  max-height: 820px;
  border-block: 1px dashed var(--border-color);
}

.sol-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 0.75rem;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sol-axis-top {
  color: var(--accent-ink);
}

.sol-axis-bottom {
  color: var(--text-muted);
}

.sol-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sol-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 1.5rem 1.25rem;
  border-left: 1px solid var(--border-color);
  transition: opacity 0.45s ease;
}

.sol-stage[data-pos="bottom"] {
  justify-content: flex-end;
}

/* Flat --accent-soft fill on the active column only */
.sol-fill {
  position: absolute;
  inset: 0;
  background-color: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.sol-stage.is-active .sol-fill {
  opacity: 1;
}

.sol-body {
  position: relative;
  z-index: 2;
}

.sol-meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.sol-num {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: color 0.45s ease;
}

.sol-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.sol-title {
  margin-top: 0.6rem;
  font-size: calc(clamp(1.3rem, 1.6vw, 1.75rem) * var(--sol-k));
  font-weight: 800;
  line-height: 1.15;
}

.sol-text {
  max-width: 30ch;
  margin-top: 0.6rem;
  font-size: calc(0.98rem * var(--sol-k));
  line-height: 1.5;
  color: var(--text-secondary);
}

.sol-result {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  transition: opacity 0.45s ease;
}

.sol-rlabel {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sol-rvalue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
  margin-top: 0.25rem;
  font-family: var(--font-primary);
  font-size: calc(1.15rem * var(--sol-k));
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.sol-before {
  color: var(--text-muted);
}

.sol-bad {
  color: var(--error);
}

.sol-arrow {
  width: 28px;
  height: 10px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sol-guarantee {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Column states (JS): upcoming = muted text + result hidden · active = full · done = softened.
   Dimmed with colour (--text-muted keeps 4.5:1), not opacity, so the copy stays readable. */
.sol-stage.is-upcoming .sol-num,
.sol-stage.is-upcoming .sol-name,
.sol-stage.is-upcoming .sol-title,
.sol-stage.is-upcoming .sol-text {
  color: var(--text-muted);
  transition: color 0.45s ease;
}

.sol-stage.is-upcoming .sol-result {
  opacity: 0;
}

.sol-stage.is-done .sol-title {
  color: var(--text-secondary);
}

/* The curve spans the whole board; copy sits on the side of each column away from it */
.sol-curve {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sol-curve-path {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sol-curve-dot {
  fill: var(--accent);
  stroke: var(--bg-primary);
  stroke-width: 2;
}

.sol-rail {
  display: none;
}

.sol-caption {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- The promise ---- */
.sol-promise {
  max-width: 900px;
  margin: var(--section-space) auto 0;
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text-primary);
}

/* ---- Background layer: dot field + faint stage numerals (decorative, behind everything) ---- */
.solution {
  --sol-num: 0.035;    /* numeral at rest */
  --sol-num-on: 0.08;  /* numeral on the active column */
}

[data-theme="light"] .solution {
  --sol-num: 0.05;
  --sol-num-on: 0.1;
}

/* One canvas for every column's dots; the mask softens its outer edges (alpha only) */
.sol-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent), linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent), linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-composite: intersect;
}

/* JS places each numeral in its column's empty half, clear of the copy and the curve */
.sol-numeral {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  font-family: var(--font-primary);
  font-size: clamp(8rem, 14vw, 13rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--text-primary);
  opacity: var(--sol-num);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sol-stage.is-active .sol-numeral {
  opacity: var(--sol-num-on);
  transform: translateY(-12px);
}

/* Until JS has measured a spot, keep them out of the way */
html.js .sol-board:not(.has-numerals) .sol-numeral {
  visibility: hidden;
}

/* ---- Below 1200px: a vertical stack with a progress line on the left ---- */
@media (max-width: 1199.98px) {
  .sol-board {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    padding-left: 44px;
    border: 0;
  }

  /* Labels read top → bottom: Invisible, then the stages, then Unmissable */
  .sol-axis {
    display: contents;
  }

  .sol-axis-bottom {
    order: 0;
    padding-bottom: 1.25rem;
  }

  .sol-stages {
    order: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .sol-axis-top {
    order: 2;
    padding-top: 1.25rem;
  }

  .sol-stage,
  .sol-stage[data-pos="bottom"] {
    justify-content: flex-start;
    padding: 0;
    border-left: 0;
  }

  .sol-fill {
    inset: -0.75rem -1rem -0.75rem -0.75rem;
  }

  .sol-text {
    max-width: 44ch;
  }

  .sol-curve {
    display: none;
  }

  .sol-rail {
    position: absolute;
    top: 0.4rem;
    bottom: 0.4rem;
    left: 12px;
    display: block;
    width: 2px;
    background-color: var(--border-color);
  }

  .sol-rail-fill {
    position: absolute;
    inset: 0;
    background-color: var(--accent-ink);
    transform-origin: center top;
  }

  .sol-rail-dot {
    position: absolute;
    top: 0;
    left: 1px;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    background-color: var(--accent);
  }
  /* No dot field here; the numerals sit beside each row, top right */
  .sol-field {
    display: none;
  }

  html.js .sol-board:not(.has-numerals) .sol-numeral {
    visibility: visible;
  }

  .sol-numeral {
    top: -0.2rem;
    right: 0;
    left: auto;
    font-size: clamp(4.25rem, 17vw, 6.5rem); /* sized to the reserved space beside meta + title */
  }

  .sol-meta,
  .sol-title {
    padding-right: calc(clamp(4.25rem, 17vw, 6.5rem) * 1.12 + 1.5rem);
  }
}

@media (max-width: 480px) {
  .sol-title {
    font-size: 1.2rem;
  }

  .sol-rvalue {
    font-size: 1rem;
  }
}

/* Reduced motion: curve drawn, every stage shown, after values, promise visible */
@media (prefers-reduced-motion: reduce) {
  html.js .solution-title,
  html.js .solution-subtitle {
    visibility: visible;
  }

  html.js .draw-marker {
    background-size: 100% 86%;
    color: var(--on-accent);
  }

  html.js .sol-strike {
    background-size: 100% 6%;
  }

  .sol-stage,
  .sol-fill,
  .sol-result {
    transition: none;
  }
}

/* ========================================
   11. Features - "Services index"
   Typography, 1px hairlines, the lime marker and motion. Nothing else.
   Default styles = FINAL state (rows open, titles filled, numbers final);
   JS rewinds them for the animated versions.
   ======================================== */
.features {
  position: relative;
  padding-block: var(--section-space);
}

/* ---- Header (outside the pin) ---- */
.fx-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem 4rem;
  margin-bottom: 3rem;
}

.fx-title {
  margin-top: 1rem;
}

.fx-subtitle {
  max-width: 380px;
  font-size: 1.05rem;
}

html.js .fx-title {
  visibility: hidden; /* revealed by the header timeline */
}

/* ---- The index ---- */
.features-index {
  position: relative;
}

.fi-row {
  position: relative;
}

/* Hairlines (drawn from the left on reveal) */
.fi-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  transform-origin: left center;
}

.fi-endline {
  position: relative;
  display: block;
}

.fi-head {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 180px;
  align-items: baseline;
  padding-block: 1.1rem;
}

.fi-num {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transition: color var(--transition-normal);
}

.fi-row.is-active .fi-num {
  color: var(--text-primary);
}

.fi-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  min-width: 0;
}

/* Giant title: one solid layer. JS splits it into chars and runs the
   idle → lime → active letter wave; this colour is the static/final state.
   line-height 1 + bottom padding keep descenders ("p") uncropped. */
.fi-title {
  display: inline-block;
  padding-bottom: 0.12em;
  font-family: var(--font-primary);
  font-size: clamp(3.5rem, 7.5vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-wrap: nowrap;
  color: var(--feat-active);
}

.fi-sub {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Status, aligned to the title baseline */
.fi-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  justify-self: end;
}

.fi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.fi-badge.is-included {
  color: var(--accent-ink);
}

.fi-badge.is-addon {
  color: var(--text-muted);
  text-decoration: underline dashed 1px;
  text-underline-offset: 5px;
}

.fi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

.fi-tag {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Expanded content (height animated on desktop) */
.fi-body {
  overflow: hidden;
}

.fi-body-inner {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) 180px;
  padding: 0.25rem 0 2rem;
}

.fi-copy {
  grid-column: 2;
  padding-right: 2rem;
}

.fi-desc {
  max-width: 420px;
  font-size: 1.15rem;
}

.fi-result {
  max-width: 420px;
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- Desktop pinned index (JS + motion only) ---- */
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  /* JS scales titles so the pinned index fits the viewport (no fixed height, no slack) */
  html.js .fi-title {
    font-size: var(--feat-title-size, clamp(3.5rem, 7.5vw, 7rem));
  }
}

/* ---- Tablet & mobile (< 1100px) ---- */
@media (max-width: 1099.98px) {
  .fx-header {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Number + status on one line above the title */
  .fi-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "num status"
      "name name";
    align-items: center;
    gap: 0.75rem 1rem;
    padding-block: 1.25rem 0.75rem;
  }

  .fi-num {
    grid-area: num;
  }

  .fi-status {
    grid-area: status;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .fi-name {
    grid-area: name;
  }

  .fi-title {
    font-size: clamp(2.5rem, 11vw, 3.75rem);
    white-space: normal;
    text-wrap: balance;
  }

  /* Content always open: description, result */
  .fi-body-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 0.5rem 0 1.75rem;
  }

  .fi-copy {
    grid-column: 1;
    padding-right: 0;
  }

  .fi-desc,
  .fi-result {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .fi-sub {
    font-size: 0.9rem;
  }

}

/* Reduced motion: everything visible and final */
@media (prefers-reduced-motion: reduce) {
  html.js .fx-title {
    visibility: visible;
  }

  .fi-row:not(.is-key) .fi-title {
    color: var(--feat-past);
  }
}

/* ========================================
   12. Process - "Production timeline"
   Four step panels + a finale, each with a crop-mark framed artifact,
   riding a time ruler. Default styles = FINAL static state (vertical stack,
   every artifact finished, counter "Week 3"); JS builds the pinned
   horizontal version on desktop and rewinds the artifacts to play them.
   ======================================== */
.process {
  position: relative;
  padding-block: var(--section-space);
}

/* ---- HUD ---- */
.process-hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
}

.pr-elapsed {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pr-hud-label,
.pr-stepno {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pr-counter {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-primary);
  font-weight: 800;
  line-height: 1;
}

/* "Day" ↔ "Week 3": two words in a one-line window */
.pr-unit {
  display: block;
  height: 1.2em;
  overflow: hidden;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.pr-unit-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transition: transform 0.35s ease;
}

.pr-counter.is-week .pr-unit-stack {
  transform: translateY(-50%);
}

.pr-counter.is-week .pr-unit {
  color: var(--text-primary);
}

/* Odometer digits: vertical strips in one-cell windows */
.pr-digits {
  display: flex;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  transition: opacity var(--transition-normal);
}

.pr-counter.is-week .pr-digits {
  opacity: 0;
}

.pr-digit,
.pr-stepno-roll {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  vertical-align: bottom;
}

.pr-strip,
.pr-stepno-strip {
  display: flex;
  flex-direction: column;
}

.pr-strip > span,
.pr-stepno-strip > span {
  display: block;
  height: 1em;
  line-height: 1;
}

/* Current phase, crossfading (static state shows the last one) */
.pr-now {
  display: grid;
  justify-items: center;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.pr-now-word {
  grid-area: 1 / 1;
}

.pr-now-word:not(:last-child) {
  visibility: hidden;
  opacity: 0;
}

.pr-stepno {
  justify-self: end;
  line-height: 1;
}

.pr-stepno-strip {
  transform: translateY(-75%); /* static: step 4 */
}

/* ---- Track: static vertical stack by default ---- */
.process-track {
  position: relative;
  margin-top: 2.5rem;
  padding-left: 88px; /* room for the vertical ruler + labels */
}

.pr-panels {
  display: grid;
  gap: 5rem;
}

.pr-panel {
  display: grid;
  gap: 2.5rem;
}

/* ---- Step text ---- */
.pr-phase {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pr-phase-name {
  color: var(--accent-ink);
}

.pr-phase-span {
  color: var(--text-muted);
}

.pr-num {
  display: block;
  margin-top: 0.4rem;
  padding-bottom: 0.06em;
  font-family: var(--font-primary);
  font-size: clamp(4rem, 18vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--feat-active);
}

.pr-title {
  margin-top: 0.6rem;
  font-size: clamp(1.4rem, 6vw, 1.75rem);
  font-weight: 800;
}

.pr-desc {
  max-width: 400px;
  margin-top: 0.75rem;
}

/* Points joined by a 24px hairline (not an icon) */
.pr-points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.pr-points li {
  display: inline-flex;
  align-items: center;
}

.pr-points li + li::before {
  content: "";
  width: 24px;
  height: 1px;
  margin-inline: 0.85rem;
  background-color: var(--text-muted);
}

/* ---- The crop-mark frame ---- */
.pr-fig {
  width: 100%;
  max-width: 520px;
}

.pr-fig-cap {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pr-frame {
  position: relative;
  aspect-ratio: 5 / 4;
  container-type: inline-size;
}

/* Two offset sheets behind the artifact for physical depth (no shadows) */
.pr-sheet {
  position: absolute;
  inset: 0;
}

.pr-sheet-far {
  background-color: var(--pr-sheet-far);
  transform: translate(20px, 20px) rotate(2deg);
}

.pr-sheet-near {
  background-color: var(--pr-sheet-near);
  transform: translate(10px, 10px) rotate(1deg);
}

/* The artifact surface: sharp corners, no border; contents scale with the frame */
.pr-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 1.6em;
  font-size: clamp(9px, 2.6cqi, 15px);
  line-height: 1.4;
  color: var(--text-primary);
  background-color: var(--bg-card);
}

/* Print registration marks just outside each corner */
.pr-crop {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--text-muted);
  border-style: solid;
  border-width: 0;
}

.pr-crop.tl { top: -20px; left: -20px; border-right-width: 1px; border-bottom-width: 1px; }
.pr-crop.tr { top: -20px; right: -20px; border-left-width: 1px; border-bottom-width: 1px; }
.pr-crop.bl { bottom: -20px; left: -20px; border-right-width: 1px; border-top-width: 1px; }
.pr-crop.br { bottom: -20px; right: -20px; border-left-width: 1px; border-top-width: 1px; }

/* ---- FIG. 01 - Onboarding form ---- */
.fig-form {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  padding-top: 4.2em;
}

.ff-timer {
  position: absolute;
  top: 1.2em;
  right: 1.4em;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.6em;
}

.ff-arc {
  grid-row: span 2;
  width: 2.6em;
  height: 2.6em;
  transform: rotate(-90deg);
}

.ff-arc circle {
  fill: none;
  stroke-width: 2.5;
}

.ff-arc-track {
  stroke: var(--border-color);
}

.ff-arc-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0.13; /* 8:42 of 10:00 */
}

.ff-time {
  font-family: var(--font-primary);
  font-size: 1.3em;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ff-under {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--accent-ink);
}

/* Label + underline input (no boxes) */
.ff-field {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--border-light);
}

.ff-label {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ff-value {
  min-height: 1.4em;
  font-weight: 600;
}

.ff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.ff-tag {
  padding: 0.15em 0.75em;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 500;
}

.ff-submit {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85em 1.6em;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-primary);
  font-weight: 700;
}

.ff-secure {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.85em;
}

.ff-lock {
  width: 1.1em;
  height: 1.1em;
}

.ff-lock path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* ---- FIG. 02 - Keyword map ---- */
.km-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.km-lines line {
  stroke: var(--border-light);
  stroke-width: 0.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.km-center {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  font-family: var(--font-primary);
  font-size: 1.45em;
  font-weight: 800;
  white-space: nowrap;
}

.km-mark {
  padding: 0 0.25em;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center;
  background-size: 100% 90%;
  color: var(--on-accent);
}

.km-kw {
  position: absolute;
  top: var(--y);
  left: var(--x);
  translate: -50% -50%;
  font-family: var(--font-primary);
  font-size: calc(var(--s) * 1em);
  font-weight: var(--w);
  white-space: nowrap;
  background-color: var(--bg-card); /* clean label over the lines */
  padding: 0 0.3em;
}

.km-word {
  display: inline-block;
}

.km-ats {
  position: absolute;
  top: 1.2em;
  left: 1.4em;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.km-ats strong {
  margin-left: 0.4em;
  font-family: var(--font-primary);
  font-size: 1.6em;
  letter-spacing: -0.02em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

/* ---- FIG. 03 - Visibility pulse ---- */
.kp-ring {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  translate: -50% -50%;
  scale: var(--s);
  opacity: 0.7;
}

.kp-dot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-primary);
  translate: -50% -50%;
}

.kp-dot.is-lime {
  background-color: var(--accent);
}

.kp-dot-label {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.6em);
  transform: translateY(-50%);
  font-size: 0.72em;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-secondary);
}

.kp-center {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 0.9em;
  background-color: var(--bg-card);
  transform: translate(-50%, -50%);
}

.kp-toggle {
  position: relative;
  width: 3.2em;
  height: 1.7em;
  border-radius: 999px;
  background-color: var(--border-light);
  transition: background-color 0.3s ease;
}

.kp-knob {
  position: absolute;
  top: 0.2em;
  left: 0.2em;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.kp-toggle.is-on {
  background-color: var(--accent);
}

.kp-toggle.is-on .kp-knob {
  transform: translateX(1.5em);
  background-color: var(--on-accent);
}

.kp-toggle-label {
  font-family: var(--font-primary);
  font-size: 0.85em;
  font-weight: 700;
}

.kp-readout {
  position: absolute;
  bottom: 1.2em;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kp-left { left: 1.4em; }
.kp-right { right: 1.4em; }

.kp-readout strong {
  margin-left: 0.35em;
  font-family: var(--font-primary);
  font-size: 1.6em;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.kp-right strong {
  color: var(--accent-ink);
}

/* ---- FIG. 04 - Call calendar ---- */
.fig-cal {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.kc-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.kc-title {
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kc-count-wrap {
  position: relative;
  padding: 0 0.3em;
}

.kc-count {
  font-family: var(--font-primary);
  font-size: 1.9em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.kc-circle {
  position: absolute;
  top: -0.35em;
  left: -0.5em;
  width: calc(100% + 1em);
  height: calc(100% + 0.7em);
  overflow: visible;
}

.kc-circle path {
  fill: none;
  stroke: var(--red-pen);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.kc-note {
  font-family: var(--font-hand);
  font-size: 1.05em;
  font-style: italic;
  font-weight: 500;
  color: var(--red-pen);
  transform: rotate(-4deg);
}

/* Grid lines from a 1px gap over the hairline colour (no boxed cells) */
.kc-grid {
  display: grid;
  flex: 1;
  grid-template-columns: 4.6em repeat(7, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 1px;
  background-color: var(--border-color);
}

.kc-grid > * {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  background-color: var(--bg-card);
}

.kc-corner {
  min-height: 1.8em;
}

.kc-day,
.kc-week {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kc-week {
  justify-content: flex-start;
  padding-left: 0.4em;
}

.kc-dot {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background-color: var(--accent);
}

.kc-progress {
  display: grid;
  gap: 0.45em;
}

.kc-progress-label {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kc-bar {
  position: relative;
  height: 3px;
  background-color: var(--border-color);
}

.kc-fill {
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  transform-origin: left center;
}

/* ---- Finale ---- */
.pr-finale-line {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.pr-finale-sub {
  max-width: 460px;
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.pr-finale .btn {
  margin-top: 2rem;
}

/* ---- Ruler: vertical (static/mobile) ---- */
.pr-ruler {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 88px;
}

.pr-baseline,
.pr-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1px;
  background-color: var(--border-light);
}

.pr-fill,
.pr-dot {
  display: none;
}

.pr-fill {
  background-color: var(--accent);
  transform-origin: center top;
}

.pr-dot,
.pr-cursor-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
}

.pr-dot {
  top: 0;
  left: 8.5px;
  margin: -5px 0 0 -5px;
}

/* Ticks (generated in JS) */
.pr-tick {
  position: absolute;
  left: 8px;
  width: 7px;
  height: 1px;
  background-color: var(--border-light);
}

.pr-tick.is-milestone {
  width: 14px;
}

.pr-tick-label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
}

/* Span bars (one per step panel) */
.pr-range {
  position: absolute;
  left: 7px;
  width: 3px;
  background-color: var(--border-light);
  transition: background-color var(--transition-normal);
}

.pr-range.is-active {
  background-color: var(--accent);
}

.pr-cursor {
  display: none;
}

/* ---- Desktop: pinned horizontal timeline (JS + motion only) ---- */
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  html.js .process-scene {
    --panel-w: min(1100px, 82vw);
    position: relative;
    height: calc(100vh - var(--nav-height, 72px));
    height: calc(100svh - var(--nav-height, 72px));
    overflow: hidden;
  }

  html.js .process-hud {
    position: absolute;
    top: 1.25rem;
    right: 0;
    left: 0;
    z-index: 3;
  }

  /* Panels in one row; first panel centred at the start, finale centred at the end */
  html.js .process-track {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 8vw;
    width: max-content;
    height: 100%;
    margin: 0;
    padding: 7.5rem calc((100vw - var(--panel-w)) / 2) 7rem;
  }

  html.js .pr-panels {
    display: flex;
    gap: 8vw;
  }

  html.js .pr-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 4rem;
    width: var(--panel-w);
    height: 100%;
  }

  html.js .pr-num {
    font-size: clamp(5rem, min(7vw, 14vh), 8rem);  /* fallback: iOS < 15.4 */
    font-size: clamp(5rem, min(7vw, 14svh), 8rem);
  }

  html.js .pr-title {
    font-size: clamp(1.75rem, 2.4vw, 2.6rem);
  }

  /* Artifact sized to the space between HUD and ruler */
  html.js .pr-fig {
    justify-self: center;
    width: min(100%, calc((100vh - var(--nav-height, 72px) - 19rem) * 1.25));
    width: min(100%, calc((100svh - var(--nav-height, 72px) - 19rem) * 1.25));
    max-width: none;
  }

  html.js .pr-finale {
    display: flex;
    align-items: center;
  }

  /* Ruler along the bottom of the whole track */
  html.js .pr-ruler {
    top: auto;
    right: 0;
    bottom: 4rem;
    left: 0;
    width: auto;
    height: 0;
  }

  html.js .pr-baseline {
    top: 0;
    bottom: auto;
    height: 1px;
    width: auto; /* left + width set in JS */
  }

  html.js .pr-fill,
  html.js .pr-dot {
    display: none;
  }

  html.js .pr-tick {
    top: -7px;
    left: auto;
    width: 1px;
    height: 7px;
  }

  html.js .pr-tick.is-milestone {
    top: -16px;
    width: 1px;
    height: 16px;
  }

  html.js .pr-tick-label {
    top: 26px;
    left: 0;
    transform: none;
  }

  html.js .pr-range {
    top: -1px;
    left: auto;
    width: auto;
    height: 3px;
  }

  /* "Now" cursor: lime line rising from the ruler; left set in JS */
  html.js .pr-cursor {
    position: absolute;
    top: 6.5rem;
    bottom: 4rem;
    z-index: 2;
    display: block;
    width: 1px;
    pointer-events: none;
  }

  html.js .pr-cursor-line {
    position: absolute;
    inset: 0;
    background-color: var(--accent);
    opacity: 0.55;
  }

  html.js .pr-cursor-dot {
    bottom: 0;
    left: 0.5px;
    margin: 0 0 -5px -5px;
  }

  html.js .pr-cursor-done {
    position: absolute;
    bottom: 1rem; /* above the ruler: "Week 3" sits below it */
    left: 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-ink);
    opacity: 0;
    transition: opacity var(--transition-normal);
  }

  html.js .pr-cursor.is-done .pr-cursor-done {
    opacity: 1;
  }
}

/* ---- Tablet & mobile (JS + motion): sticky HUD strip + growing cursor ---- */
@media (max-width: 1099.98px) and (prefers-reduced-motion: no-preference) {
  html.js .process-hud {
    position: sticky;
    top: var(--nav-height, 72px);
    z-index: 5;
    padding-block: 0.7rem;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
  }

  html.js .pr-fill,
  html.js .pr-dot {
    display: block;
  }

  html.js .pr-fill {
    top: auto;
    bottom: auto;
  }
}

@media (max-width: 1099.98px) {
  .process-hud {
    grid-template-columns: auto 1fr auto;
  }

  .pr-digits {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .pr-now {
    font-size: 0.72rem;
  }

  /* Room on the right for the offset back sheets and crop marks (no horizontal overflow) */
  .pr-fig {
    width: calc(100% - 26px);
    max-width: 520px;
  }

  .pr-finale {
    margin-top: 5rem;
    text-align: center;
  }

  .pr-finale-sub {
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .process-track {
    padding-left: 72px;
  }

  .pr-ruler {
    width: 72px;
  }

  .pr-tick-label {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  /* Back sheets off on small phones; captions stay */
  .pr-sheet {
    display: none;
  }

  .pr-crop.tr,
  .pr-crop.br {
    right: -16px;
  }

  /* Keyword map: 6 keywords */
  .km-minor {
    display: none;
  }

  .kc-grid {
    grid-auto-rows: minmax(36px, 1fr);
  }

}

/* ========================================
   13. Pricing - "Weigh it up"
   Interactive (not pinned): typographic price, a balance that weighs the cost of
   waiting against the price, one highlighted sentence, a tap-to-check fit list.
   ======================================== */
.pricing {
  position: relative;
}

html.js .pc-heading {
  visibility: hidden; /* revealed by revealHeading() */
}

/* Header: H2, then the subtitle 1rem below (a stack, not the two-column header grid) */
.pc-header {
  display: block;
}

.pc-heading {
  margin-top: 0;
}

.pc-subtitle {
  max-width: none;
  margin-top: 1rem;
}

.pr-heading {
  margin-top: 0;
}

/* ---- Part 1: price + balance ---- */
.pc-deal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 5rem;
  margin-top: 1rem;
}

.pc-plan {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pc-plan-name {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
}

/* Giant price: ₹ top-aligned, digits roll, "one-time" set vertically */
.pc-figure {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--text-primary);
}

.pc-currency {
  margin-top: 0.35em;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1;
  color: var(--text-muted);
}

.pc-amount {
  display: inline-flex;
  font-size: clamp(6rem, 11vw, 10rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

/* Odometer mask + strip (built by JS) */
.pc-digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.pc-digit-strip {
  display: flex;
  flex-direction: column;
}

.pc-digit-strip > span {
  display: block;
  height: 1em;
  line-height: 1;
}

.pc-once {
  align-self: center;
  margin-left: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.pc-rule {
  display: block;
  height: 1px;
  margin-block: 2rem;
  background-color: var(--border-color);
  transform-origin: left center;
}

.pc-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.pc-cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Payment terms line under the CTA, on its own row */
.pc-cta-terms {
  flex-basis: 100%;
  margin-top: -0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pc-cta-terms a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .pc-cta-terms a:hover {
    color: var(--text-primary);
    text-decoration-color: currentColor;
  }
}

/* The CTA arrow nudges on hover (shared .btn-arrow rule), a little further here */
@media (hover: hover) and (pointer: fine) {
  .pc-cta .btn:hover .btn-arrow {
    transform: translateX(6px);
  }
}

/* "Weigh it up" */
.pc-weigh-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.pc-weigh-help {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pc-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem 2rem;
  margin-top: 1.5rem;
}

.pc-control-label {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pc-salary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.pc-salary-value {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Custom range: 1px track, lime filled part, 18px thumb */
.pc-range {
  --fill: 18.5%;
  position: relative;
  height: 28px;
  margin-top: 0.4rem;
}

.pc-range-track {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background-color: var(--border-light);
}

.pc-range-fill {
  position: absolute;
  top: -1px;
  left: 0;
  width: var(--fill);
  height: 3px;
  background-color: var(--accent);
}

.pc-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.pc-range-input::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
}

.pc-range-input::-moz-range-track {
  height: 100%;
  background: transparent;
}

.pc-range-input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: 5px; /* (28 - 18) / 2 */
  border: 0;
  border-radius: 50%;
  background-color: var(--text-primary);
  -webkit-appearance: none;
  appearance: none;
  transition: transform var(--transition-fast);
}

.pc-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.pc-range-input:active::-webkit-slider-thumb {
  transform: scale(1.2);
}

.pc-range-input:active::-moz-range-thumb {
  transform: scale(1.2);
}

.pc-range-input:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 4px;
}

.pc-range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Hike pills */
.pc-hike {
  display: grid;
  gap: 0.5rem;
}

.pc-pills {
  display: flex;
  gap: 0.4rem;
}

.pc-pill {
  min-width: 3.6rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .pc-pill:hover {
    border-color: var(--text-primary);
  }
}

.pc-pill.is-active {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--on-accent);
}

/* The balance: SVG geometry + HTML labels that follow the pans */
.pc-balance {
  position: relative;
  max-width: 460px;
  margin: 1.75rem auto 0;
}

.pc-scale {
  width: 100%;
  height: auto;
  overflow: visible;
}

.pc-line {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.pc-beam-line {
  stroke: var(--text-primary);
}

.pc-hook {
  fill: var(--text-primary);
}

.pc-pivot {
  fill: var(--bg-primary);
  stroke: var(--text-primary);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.pc-weight {
  fill: var(--text-muted);
}

.pc-weight-price {
  fill: var(--accent);
}

.pc-pan-label {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.pc-pan-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pc-pan-value {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.pc-pan-price {
  color: var(--accent-ink);
}

/* Result sentence */
.pc-result {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.pc-result-loss {
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.pc-result-mult {
  display: inline-block;
  padding: 0 0.25em;
  border-radius: 3px;
  background-color: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pc-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---- Part 2: the included sentence ---- (currently disabled: markup is commented out) */
.pc-included {
  max-width: 980px;
  margin: var(--section-space) auto 0;
  text-align: center;
}

.pc-sentence {
  margin-top: 1.5rem;
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

/* Static state (no JS / reduced motion): every phrase highlighted */
.pc-item {
  margin-right: -0.1em; /* the marker's padding doesn't push the following comma away */
  padding: 0 0.1em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center;
  background-size: 100% 86%;
  color: var(--on-accent);
}

/* ---- Part 3: fit check ---- (currently disabled: markup is commented out) */
.pc-fit {
  max-width: 980px;
  margin: var(--section-space) auto 0;
}

.pc-fit-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
}

.pc-fit-help {
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.pc-chip {
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background-color: transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .pc-chip:hover {
    border-color: var(--text-primary);
  }
}

.pc-chip[data-fit="yes"][aria-pressed="true"] {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--on-accent);
}

.pc-chip[data-fit="no"][aria-pressed="true"] {
  border-color: var(--error);
  color: var(--error);
}

/* Red wavy strike across a tapped negative chip */
.pc-chip-text {
  position: relative;
  display: inline-block;
}

.pc-chip-strike {
  position: absolute;
  top: 50%;
  left: -3%;
  width: 106%;
  height: 0.7em;
  overflow: visible;
  transform: translateY(-50%);
  pointer-events: none;
}

.pc-chip-strike path {
  fill: none;
  stroke: var(--error);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1; /* no non-scaling-stroke here: it breaks the pathLength dash */
  opacity: 0; /* hides the round-cap dot once undrawn */
  transition: stroke-dashoffset 0.45s ease, opacity 0s linear 0.45s;
}

.pc-chip[aria-pressed="true"] .pc-chip-strike path {
  stroke-dashoffset: 0;
  opacity: 1;
  transition: stroke-dashoffset 0.45s ease, opacity 0s;
}

/* Verdict: fixed height, states stacked in one grid cell */
.pc-verdict {
  margin-top: 2.5rem;
}

.pc-verdict-states {
  display: grid;
  min-height: 7.5rem;
}

.pc-state {
  grid-area: 1 / 1;
  align-self: start;
}

.pc-state:not(.is-shown) {
  visibility: hidden;
  opacity: 0;
}

.pc-state-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.pc-state-text {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

[data-state="empty"] .pc-state-text {
  margin-top: 0;
  color: var(--text-muted);
}

[data-state="no"] .pc-state-title {
  color: var(--text-secondary);
}

.pc-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  vertical-align: middle;
  transition: background-color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .pc-inline-cta:hover {
    background-color: var(--btn-hover);
  }
}

@media (hover: hover) and (pointer: fine) {
  .pc-inline-cta:hover .btn-arrow {
    transform: translateX(4px);
  }
}

.pc-text-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* Fit meter: hairline, fill grows from the left (lime) or turns red when negative */
.pc-meter {
  position: relative;
  display: block;
  height: 1px;
  margin-top: 1.25rem;
  background-color: var(--border-color);
}

.pc-meter-fill {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.pc-meter-fill.is-negative {
  background-color: var(--error);
}

/* ---- Part 4: closing statement ---- */
.pc-closing {
  margin-top: var(--section-space);
  text-align: center;
}

.pc-closing-line {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

/* Two lines of a normal flowing sentence: each row is a block, its words stay inline-block */
.pc-closing-row {
  display: block;
}

/* Marker padding without pushing "on" and the comma away */
.pc-closing-line .draw-marker {
  margin-right: -0.12em;
  padding: 0 0.12em;
}

/* ---- Tablet & mobile (< 1100px) ---- */
@media (max-width: 1099.98px) {
  .pc-deal {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  .pc-weigh {
    max-width: 560px;
  }

  .pc-sentence {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }
}

@media (max-width: 575.98px) {
  /* "We focus on outcomes," must fit one line at 320–575px */
  .pc-closing-line {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}

@media (max-width: 480px) {
  .pc-amount {
    font-size: clamp(4.5rem, 22vw, 6rem);
  }

  .pc-currency {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .pc-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .pc-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .pc-pan-name {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }
}

/* Reduced motion: no odometer or scrub; final states, no transitions */
@media (prefers-reduced-motion: reduce) {
  html.js .pc-heading {
    visibility: visible;
  }

  .pc-chip,
  .pc-chip-strike path,
  .pc-meter-fill,
  .pc-pill {
    transition: none;
  }
}

/* ========================================
   14. FAQ - "Search it, read it"
   Left: search + numbered index. Right (desktop): a sticky reader showing the selected
   answer. Below 1100px the index becomes an inline expander. No boxes, no icons.
   ======================================== */
.faq {
  position: relative;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 5rem;
}

.faq-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 3.8vw, 3.05rem); /* "Answered honestly." is ~9.7em wide: fits the 454–502px column */
}

/* One line each: "Questions?" / "Answered honestly." never wrap to a third line */
.faq-title-line {
  display: block;
}

@media (min-width: 1100px) {
  .faq-title-line {
    white-space: nowrap;
  }
}

html.js .faq-title {
  visibility: hidden; /* revealed by revealHeading() */
}

/* ---- Search (no box: one bottom hairline) ---- */
/* Quick answer under the FAQ title: plain body text */
.faq-summary {
  max-width: 640px;
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.faq-summary .nowrap {
  white-space: nowrap;
}

.faq-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding-bottom: 0.75rem;
}

.faq-search-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: stroke var(--transition-fast);
}

.faq-search:focus-within .faq-search-icon {
  stroke: var(--text-primary);
}

.faq-input {
  flex: 1;
  min-width: 0;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.faq-input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* Native clear button off: Esc / the hint handles clearing */
.faq-input::-webkit-search-cancel-button,
.faq-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Typed placeholder: overlays the input while it's empty and not focused */
.faq-fake {
  position: absolute;
  top: 0.2rem;
  left: calc(22px + 0.85rem);
  display: none;
  align-items: center;
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
}

.faq-fake-caret {
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background-color: var(--accent);
  animation: faq-blink 1s steps(1) infinite;
}

@keyframes faq-blink {
  50% {
    opacity: 0;
  }
}

.faq-search.is-typing .faq-fake {
  display: inline-flex;
}

.faq-search.is-typing .faq-input::placeholder {
  color: transparent;
}

.faq-esc {
  flex-shrink: 0;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  visibility: hidden;
}

.faq-search.has-text .faq-esc {
  visibility: visible;
}

.faq-search-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background-color: var(--border-light);
  transform-origin: left center;
  transition: background-color var(--transition-fast);
}

.faq-search:focus-within .faq-search-line {
  background-color: var(--text-primary);
}

/* ---- Question index ---- */
.faq-index {
  margin-top: 1.5rem;
}

.faq-list-wrap {
  border-bottom: 1px solid var(--border-color);
}

.faq-index.is-empty .faq-list-wrap {
  border-bottom-color: transparent;
}

/* The search line is the index's top edge: no second hairline right under it */
.faq-item.is-first .faq-q {
  border-top-color: transparent;
}

/* Zero matches already offers WhatsApp as a button */
.faq-index.is-empty + .faq-help-inline {
  display: none;
}

.faq-item {
  overflow: hidden;
}

.faq-q {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
  padding: 1.1rem 0 1.1rem 1rem;
  border: 0;
  border-top: 1px solid var(--border-color);
  background: transparent;
  color: inherit;
  text-align: left;
}

.faq-q:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: -2px;
}

/* Active marker: 2px lime bar grows at the left edge */
.faq-bar {
  position: absolute;
  top: 0.9rem;
  bottom: 0.9rem;
  left: 0;
  width: 2px;
  background-color: var(--accent);
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-num,
.faq-dot {
  grid-area: 1 / 1;
}

.faq-num {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transition: opacity var(--transition-fast);
}

.faq-dot {
  align-self: center;
  width: 8px;
  height: 8px;
  margin-left: 0.2rem;
  border-radius: 50%;
  background-color: var(--accent);
  transform: scale(0);
  transition: transform 0.3s ease;
}

.faq-q-text {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .faq-q:hover .faq-q-text {
    color: var(--text-primary);
    transform: translateX(6px);
  }
}

.faq-item.is-active .faq-bar {
  transform: scaleY(1);
}

.faq-item.is-active .faq-num {
  opacity: 0;
}

.faq-item.is-active .faq-dot {
  transform: scale(1);
}

.faq-item.is-active .faq-q-text {
  color: var(--text-primary);
}

/* "in answer" tag for rows matched only by their answer */
.faq-tag {
  align-self: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-ink);
}

/* Search hits inside question text: a small lime marker band */
.faq-hit {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left 90%;
  background-size: 100% 30%; /* a low band, so light text stays readable above it */
  color: inherit;
}

/* Zero matches */
.faq-empty {
  padding-top: 1.5rem;
}

.faq-empty-text {
  margin-bottom: 1.25rem;
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-empty .btn {
  white-space: normal;
  text-align: center;
}

/* ---- Answer content (shared: inline answers + the reader) ---- */
.faq-a-inner,
.faq-r-a {
  display: grid;
  gap: 0.9rem;
}

.faq-a-inner {
  padding: 0.25rem 0 1.6rem 3.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.faq-a-inner p,
.faq-r-a p {
  color: var(--text-secondary);
}

.faq-list {
  display: grid;
  gap: 0.35rem;
}

.faq-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.faq-list li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 1px;
  background-color: var(--text-muted);
  transform: translateY(-0.3em);
}

.faq-em {
  font-weight: 700;
  color: var(--text-primary);
}

/* Key phrase: lime marker (static = drawn) */
.faq-key {
  padding: 0 0.15em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center;
  background-size: 100% 86%;
  color: var(--on-accent);
}

html.js .faq-key {
  background-size: 0% 86%;
  color: inherit;
  transition: background-size 0.6s cubic-bezier(0.65, 0, 0.35, 1), color 0.3s ease 0.15s;
}

html.js .faq-key.is-drawn {
  background-size: 100% 86%;
  color: var(--on-accent);
}

/* ---- Reader (desktop only; hidden without JS, answers stay inline) ---- */
.faq-right {
  display: none;
}

.faq-r-meta {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.faq-r-roll {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  vertical-align: -0.1em;
}

.faq-r-strip {
  display: flex;
  flex-direction: column;
}

.faq-r-strip > span {
  display: block;
  height: 1em;
  line-height: 1;
}

.faq-r-body {
  margin-top: 1.25rem;
}

.faq-r-q {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.faq-r-a {
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.6;
}

.faq-r-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
}

.faq-r-btn {
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .faq-r-btn:hover:not(:disabled) {
    color: var(--text-primary);
  }
}

.faq-r-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* WhatsApp help line under a hairline */
.faq-help {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.faq-help-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.faq-help-inline {
  border-top: 0;
}

/* Desktop with JS: reader column on, inline answers off */
@media (min-width: 1100px) {
  html.js .faq-right {
    display: block;
    align-self: stretch; /* full column height, so the reader can stick */
  }

  html.js .faq-reader {
    position: sticky;
    top: calc(var(--nav-height, 72px) + 2rem);
    padding-top: 0.5rem;
  }

  html.js .faq-a,
  html.js .faq-help-inline {
    display: none;
  }
}

/* ---- Tablet & mobile (< 1100px) ---- */
@media (max-width: 1099.98px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  /* Collapsed until opened by JS */
  html.js .faq-a {
    height: 0;
    overflow: hidden;
  }

  html.js .faq-item.is-open .faq-a {
    height: auto;
  }
}

@media (max-width: 480px) {
  .faq-q {
    grid-template-columns: 2.1rem minmax(0, 1fr) auto;
    padding-left: 0.85rem;
  }

  .faq-q-text {
    font-size: 0.98rem;
  }

  .faq-a-inner {
    padding-left: 2.95rem;
    font-size: 1.02rem;
  }
}

/* Reduced motion: static placeholder, instant swaps, markers filled */
@media (prefers-reduced-motion: reduce) {
  html.js .faq-title {
    visibility: visible;
  }

  html.js .faq-key {
    background-size: 100% 86%;
    color: var(--on-accent);
    transition: none;
  }

  .faq-bar,
  .faq-dot,
  .faq-num,
  .faq-q-text {
    transition: none;
  }

  .faq-q:hover .faq-q-text {
    transform: none;
  }
}

/* ========================================
   15. CTA - "Incoming call"
   A lime call screen (always lime, both themes) that grows out of a notification
   banner while pinned. Main action: slide to answer.
   ======================================== */
.cta {
  --cta-bg: var(--accent);
  --cta-ink: var(--on-accent);
  --cta-ink-soft: rgba(0, 0, 0, 0.6);
  --cta-line: rgba(0, 0, 0, 0.15);
  position: relative;
}

.cta-stage {
  position: relative;
  height: calc(100vh - var(--nav-height, 72px));
  height: calc(100svh - var(--nav-height, 72px));
  min-height: 560px;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.cta-panel {
  position: absolute;
  inset: 0;
  background-color: var(--cta-bg);
  color: var(--cta-ink);
}

.cta-panel p {
  color: inherit;
}

.cta :focus-visible {
  outline: 2px solid var(--cta-ink);
  outline-offset: 3px;
}

/* ---- Banner (start state; JS sizes it to the clip window) ---- */
.cta-banner {
  position: absolute;
  top: var(--cta-bt, 28px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: var(--cta-bw, 420px);
  height: var(--cta-bh, 76px);
  padding: 0 1.1rem;
  transform: translateX(-50%);
  visibility: hidden; /* shown by initCallReveal */
}

.cta-banner-avatar,
.cta-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background-color: var(--cta-ink);
  color: var(--accent);
  font-family: var(--font-primary);
  font-weight: 800;
  line-height: 1;
}

.cta-banner-avatar {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

.cta-banner-text {
  display: grid;
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--cta-ink-soft);
}

.cta-banner-text strong {
  font-family: var(--font-primary);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--cta-ink);
}

.cta-banner-time {
  align-self: flex-start;
  margin-top: 1.1rem;
  font-size: 0.72rem;
  color: var(--cta-ink-soft);
}

/* ---- Call screen ---- */
.cta-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.9vh, 1.2rem);  /* fallback: iOS < 15.4 */
  gap: clamp(0.55rem, 1.9svh, 1.2rem);
  height: 100%;
  padding: clamp(1rem, 3vh, 2rem) var(--gutter);  /* fallback: iOS < 15.4 */
  padding: clamp(1rem, 3svh, 2rem) var(--gutter);
  text-align: center;
}

.cta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cta-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background-color: var(--cta-ink);
  color: var(--accent);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cta-timer {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cta-ink-soft);
  font-variant-numeric: tabular-nums;
}

.cta-caller {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.cta-avatar {
  width: min(96px, 11vh);  /* fallback: iOS < 15.4 */
  width: min(96px, 11svh);
  height: min(96px, 11vh);  /* fallback: iOS < 15.4 */
  height: min(96px, 11svh);
  margin-bottom: 0.5rem;
  font-size: min(2.6rem, 5vh);  /* fallback: iOS < 15.4 */
  font-size: min(2.6rem, 5svh);
}

.cta-name {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.cta-status {
  font-size: 1rem;
  color: var(--cta-ink-soft) !important;
}

/* Three dots light up in sequence (only while the section is on screen) */
.cta-dots span {
  animation: cta-dot 1.2s ease-in-out infinite;
  animation-play-state: paused;
}

.cta-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.cta-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.cta.is-live .cta-dots span {
  animation-play-state: running;
}

@keyframes cta-dot {
  0%,
  100% {
    opacity: 0.2;
  }

  40% {
    opacity: 1;
  }
}

/* Vibration waveform */
.cta-wave {
  width: min(280px, 70vw);
  height: 40px;
  overflow: visible;
}

.cta-wave polyline {
  fill: none;
  stroke: var(--cta-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.cta-title {
  font-size: clamp(3rem, min(6.5vw, 9vh), 6.5rem);  /* fallback: iOS < 15.4 */
  font-size: clamp(3rem, min(6.5vw, 9svh), 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--cta-ink);
}

.cta-sub {
  display: grid;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.4;
}

.cta-sub span:first-child {
  color: var(--cta-ink-soft);
}

.cta-sub-strong {
  font-weight: 700;
  color: var(--cta-ink);
}

/* ---- Slide to answer ---- */
.cta-answer {
  position: relative;
  margin-top: clamp(0.5rem, 2vh, 1.5rem);  /* fallback: iOS < 15.4 */
  margin-top: clamp(0.5rem, 2svh, 1.5rem);
}

.cta-hint {
  position: absolute;
  bottom: calc(100% + 0.2rem);
  left: 0.6rem;
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--cta-ink-soft) !important;
  transform: rotate(-3deg);
}

.cta-hint-arrow {
  width: 34px;
  height: 30px;
  margin-bottom: -0.6rem;
  overflow: visible;
}

.cta-hint-arrow path {
  fill: none;
  stroke: var(--cta-ink-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.cta-slider {
  --knob: 60px;
  position: relative;
  width: min(440px, 90vw);
  height: 72px;
  border-radius: 999px;
  background-color: var(--cta-ink);
  overflow: hidden;
}

/* Lime fill grows behind the knob (width set by JS) */
.cta-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--knob) + 12px);
  border-radius: 999px;
  background-color: var(--accent);
}

.cta-slider.is-connected .cta-fill {
  transition: width 0.3s ease;
}

.cta-slider-text,
.cta-slider-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: calc(var(--knob) + 6px);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.cta-slider-text {
  color: var(--accent);
}

.cta-slider-done {
  padding-left: 0;
  color: var(--cta-ink);
  visibility: hidden;
}

.cta-slider.is-connected .cta-slider-text {
  visibility: hidden;
}

.cta-slider.is-connected .cta-slider-done {
  visibility: visible;
}

.cta-knob {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--knob);
  height: var(--knob);
  padding: 0;
  border: 1px solid var(--cta-line);
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--cta-ink);
  cursor: grab;
  touch-action: pan-y;
}

.cta-knob:active {
  cursor: grabbing;
}

.cta-handset {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transform: rotate(-20deg);
}

/* Secondary: Have doubts? */
.cta-doubts {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cta-ink);
  text-underline-offset: 0.2em;
}

@media (hover: hover) and (pointer: fine) {
  .cta-doubts:hover span {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
  }
}

.cta-bubble {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

/* ---- Tablet & mobile (< 1100px) ---- */
@media (max-width: 1099.98px) {
  .cta-title {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }

  .cta-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.9rem;
  }

  .cta-answer {
    width: 100%;
    max-width: 380px;
  }

  .cta-slider {
    --knob: 52px;
    width: 100%;
    height: 64px;
  }
}

@media (max-width: 380px) {
  .cta-hint {
    display: none;
  }

  .cta-sub {
    font-size: 1rem;
  }
}

/* Reduced motion: full panel from the start, no loops */
@media (prefers-reduced-motion: reduce) {
  .cta-banner {
    display: none;
  }

  .cta-dots span {
    animation: none;
  }
}

/* ========================================
   16. Footer - "Living wordmark"
   Statement + columns, a giant wordmark whose letters change weight near the cursor
   (or in a wave on touch), and a bottom bar.
   ======================================== */
.footer {
  position: relative;
  overflow-x: clip; /* heavier letters may push the wordmark a little past the container */
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

/* ---- Row 1 ---- */
.ft-top {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr 0.8fr;
  gap: 3rem;
  padding-top: 6rem;
}

.ft-lead {
  max-width: 520px;
  font-family: var(--font-primary);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.ft-sub {
  max-width: 460px;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.ft-label {
  margin-bottom: 1.1rem;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ft-links {
  display: grid;
  gap: 0.65rem;
}

.ft-link {
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color 0.35s ease;
}

.ft-link:focus-visible {
  color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
  .ft-link:hover {
    color: var(--text-primary);
  }
}

/* Text roll: the text slides up, an identical copy slides in from below */
.roll {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  height: 1.3em;
  overflow: hidden;
  line-height: 1.3;
  vertical-align: bottom;
}

.roll > span {
  display: block;
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
}

a:focus-visible .roll > span {
  transform: translateY(-100%);
}

@media (hover: hover) and (pointer: fine) {
  a:hover .roll > span {
    transform: translateY(-100%);
  }
}

/* Status */
.ft-reply {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ft-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: ft-breathe 3.2s ease-in-out infinite;
  animation-play-state: paused;
}

.footer.is-live .ft-dot {
  animation-play-state: running;
}

@keyframes ft-breathe {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.7);
  }
}

.ft-clock {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.ft-reply + .ft-clock {
  margin-top: 0.9rem;
}

/* ---- Row 2: the living wordmark ---- */
.ft-mark {
  --ft-base: 300;
  margin-top: 5rem;
  font-family: var(--font-primary);
  font-size: 12vw; /* replaced by fitWordmark() */
  line-height: 0.85;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

/* Clips vertically only (for the rise), so heavier letters can still widen sideways */
.ft-mark-line {
  display: flex;
  justify-content: center;
  padding-block: 0.08em 0.06em;
  clip-path: inset(0 -100vw);
}

.ft-word {
  position: relative;
  display: inline-block;
}

.ft-get {
  color: var(--text-muted);
}

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

.ft-interview {
  color: var(--on-accent);
}

/* One lime block behind the whole word: it follows the word's width as weights change */
.ft-block {
  position: absolute;
  top: 0.06em;
  right: -0.03em;
  bottom: -0.02em;
  left: -0.03em;
  border-radius: 0.04em;
  background-color: var(--accent);
  transform-origin: left center;
}

.ft-word-text {
  position: relative;
}

.ft-char,
.ft-mark .ft-word {
  font-weight: var(--ft-base);
  font-variation-settings: "wght" var(--ft-base);
}

.ft-char {
  --w: var(--ft-base);
  display: inline-block;
  font-weight: var(--w);
  font-variation-settings: "wght" var(--w);
  translate: 0 calc((var(--w) - 300) * -0.00008em); /* up to -0.04em at full weight */
}

/* fitWordmark measures at the base weight */
.ft-mark.is-measuring .ft-char {
  font-weight: var(--ft-base);
  font-variation-settings: "wght" var(--ft-base);
}

/* ---- Row 3: bottom bar ---- */
.ft-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); /* clear of the home indicator */
  border-top: 1px solid var(--border-color);
}

.ft-copy,
.ft-credit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ft-credit {
  justify-self: end;
}

.ft-credit-link {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color: var(--text-primary);
}

/* Underline draws from the left on hover */
.ft-credit-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.ft-credit-link:focus-visible::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .ft-credit-link:hover::after {
    transform: scaleX(1);
  }
}

/* Back to top: on hover the arrow's line grows upward */
.ft-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ft-top-arrow {
  width: 12px;
  height: 28px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ft-top-ext {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.ft-top-head {
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.ft-top-link:focus-visible .ft-top-ext {
  stroke-dashoffset: 0;
}

@media (hover: hover) and (pointer: fine) {
  .ft-top-link:hover .ft-top-ext {
    stroke-dashoffset: 0;
  }
}

.ft-top-link:focus-visible .ft-top-head {
  transform: translateY(-7px);
}

@media (hover: hover) and (pointer: fine) {
  .ft-top-link:hover .ft-top-head {
    transform: translateY(-7px);
  }
}

/* ---- Tablet & mobile (< 1100px) ---- */
@media (max-width: 1099.98px) {
  .ft-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    padding-top: 4.5rem;
  }

  .ft-statement {
    grid-column: 1 / -1;
  }

  .ft-mark {
    margin-top: 4rem;
  }

  .ft-bottom {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .ft-top-link {
    order: -1;
  }

  .ft-credit {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .ft-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft-status {
    grid-column: 1 / -1;
  }
}

/* Reduced motion: static weight 600, no rolls, static dot */
@media (prefers-reduced-motion: reduce) {
  .ft-mark {
    --ft-base: 600;
  }

  .ft-dot {
    animation: none;
  }

  .roll > span,
  .ft-top-ext,
  .ft-top-head,
  .ft-credit-link::after {
    transition: none;
  }
}

/* ========================================
   17. Get Started modal - full-screen takeover
   A lime wipe, then the page-coloured layer; one question at a time on the left,
   a live "how recruiters will see you" preview on the right.
   ======================================== */
.gs {
  position: fixed;
  inset: 0;
  z-index: 2000; /* above the navbar (1000) */
}

.gs[hidden] {
  display: none;
}

.gs-wipe,
.gs-layer {
  position: absolute;
  inset: 0;
}

.gs-wipe {
  background-color: var(--accent);
}

.gs-layer {
  display: flex;
  flex-direction: column;
  bottom: var(--kb, 0px); /* shrinks above the iOS keyboard, so the sticky Back/Next bar stays visible */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background-color: var(--bg-primary);
}

/* ---- Top bar ---- */
.gs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.25rem var(--gutter);
  padding-top: max(1.25rem, env(safe-area-inset-top));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.gs-logo {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.gs-text-btn,
.gs-close {
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .gs-text-btn:hover,
  .gs-close:hover {
    color: var(--text-primary);
  }
}

.gs-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.gs-x {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .gs-close:hover .gs-x {
    transform: rotate(90deg);
  }
}

/* Inline leave confirm */
.gs-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
  font-size: 0.9rem;
}

.gs-confirm[hidden] {
  display: none;
}

.gs-confirm-text {
  font-weight: 600;
  color: var(--text-primary);
}

.gs-leave {
  color: var(--error);
}

/* ---- Progress ---- */
.gs-progress {
  position: relative;
  flex-shrink: 0;
  height: 2px;
  background-color: var(--border-color);
}

.gs-progress-fill {
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  transform: scaleX(0.2);
  transform-origin: left center;
}

/* ---- Body: flow + preview ---- */
.gs-body {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: start; /* the body fills the layer: don't stretch the rows */
  align-items: start;
  gap: 5rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(2rem, 6vh, 4rem) var(--gutter) 4rem;
}

.gs-flow {
  position: relative;
  max-width: 560px;
  min-width: 0;
}

.gs-count {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gs-count-roll {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  vertical-align: -0.1em;
}

.gs-count-strip {
  display: flex;
  flex-direction: column;
}

.gs-count-strip > span {
  display: block;
  height: 1em;
  line-height: 1;
}

.gs-bot {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.gs-steps {
  position: relative;
  margin-top: 2rem;
}

.gs-step[hidden] {
  display: none;
}

.gs-step-label {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.gs-q {
  margin-top: 0.75rem;
  padding: 0;
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* Underline inputs (no boxes) */
.gs-field {
  position: relative;
  margin-top: 2rem;
}

.gs-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gs-input {
  width: 100%;
  padding: 0.45rem 0 0.55rem;
  border: 0;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.gs-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
  opacity: 1;
}

.gs-input:focus {
  border-bottom-color: var(--text-primary);
}

.gs-input:disabled {
  opacity: 0.6;
}

/* Invalid: the underline turns into a red wavy line */
.gs-wavy {
  position: absolute;
  left: 0;
  width: 100%;
  height: 6px;
  margin-top: -4px;
  overflow: visible;
  pointer-events: none;
}

.gs-wavy path {
  fill: none;
  stroke: var(--error);
  stroke-width: 1.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke; /* even stroke on the stretched path (so no dash-draw here) */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gs-field.is-invalid .gs-input {
  border-bottom-color: transparent;
}

.gs-field.is-invalid .gs-wavy path {
  opacity: 1;
}

.gs-err {
  min-height: 1.4em;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--error);
}

/* Experience: radio rows on hairlines */
.gs-choices {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gs-choices .gs-q {
  float: left; /* lets the legend sit in normal flow like a heading */
  width: 100%;
  margin-bottom: 1.5rem;
}

.gs-choice {
  position: relative;
  display: flex;
  clear: both;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1rem 0.25rem;
  border-top: 1px solid var(--border-color);
  cursor: pointer;
}

.gs-choice:last-of-type {
  border-bottom: 1px solid var(--border-color);
}

.gs-choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gs-choice-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.gs-choice-text {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.25s ease, transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .gs-choice:hover .gs-choice-text {
    color: var(--text-primary);
    transform: translateX(4px);
  }
}

.gs-choice-input:checked ~ .gs-choice-dot {
  border-color: var(--accent);
  background-color: var(--accent);
  transform: scale(1.2);
}

.gs-choice-input:checked ~ .gs-choice-text {
  color: var(--text-primary);
}

.gs-choice:has(.gs-choice-input:focus-visible) {
  outline: 2px solid var(--accent-ink);
  outline-offset: -2px;
}

.gs-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Review */
.gs-summary {
  margin-top: 1.75rem;
  border-top: 1px solid var(--border-color);
}

.gs-sum-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-color);
}

.gs-sum-row dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gs-sum-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: var(--text-primary);
}

.gs-edit {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .gs-edit:hover {
    text-decoration: underline;
  }
}

.gs-notice {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Consent: custom checkbox (unticked by default) */
.gs-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.5rem;
  cursor: pointer;
}

.gs-consent-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gs-box {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gs-box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gs-box path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.3s ease 0.05s;
}

.gs-consent-input:checked + .gs-box {
  border-color: var(--accent);
  background-color: var(--accent);
}

.gs-consent-input:checked + .gs-box path {
  stroke-dashoffset: 0;
}

.gs-consent-input:focus-visible + .gs-box {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

.gs-consent-text {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.gs-submit-error {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--error);
}

.gs-submit-error a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* Back / Next */
.gs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
}

.gs-back[hidden] {
  display: inline-block;
  visibility: hidden;
}

.gs-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Sending: small spinning hairline arc */
.gs-spin {
  display: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  animation: gs-spin 0.8s linear infinite;
}

.gs-next.is-sending .gs-spin {
  display: block;
}

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

/* Success */
.gs-done {
  margin-top: 2rem;
}

.gs-done[hidden] {
  display: none;
}

.gs-done-title {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.gs-done-title .draw-marker {
  margin-right: -0.1em; /* keep the full stop close */
  padding: 0 0.1em;
}

.gs-done-text {
  margin-top: 1rem;
  font-size: 1.15rem;
}

.gs-done .btn {
  margin-top: 2rem;
}

/* ---- Live preview ---- */
.gs-preview {
  position: sticky;
  top: 2rem;
  padding-top: 0.25rem;
}

.gs-pv-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gs-pv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: ft-breathe 3.2s ease-in-out infinite;
}

.gs-pv-title {
  margin-top: 0.6rem;
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gs-pv-list {
  position: relative;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.gs-pv-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 64px;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.gs-pv-rank {
  flex-shrink: 0;
  width: 2.6rem;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.gs-pv-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background-color: var(--bg-secondary);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 800;
}

.gs-pv-lines {
  display: grid;
  flex: 1;
  gap: 6px;
}

.gs-pv-line {
  display: block;
  width: var(--w, 50%);
  height: 7px;
  border-radius: 4px;
  background-color: var(--border-color);
}

.gs-pv-match {
  flex-shrink: 0;
  min-width: 2.8rem;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.gs-pv-row.is-you {
  z-index: 1;
}

.gs-pv-row.is-you .gs-pv-avatar {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--on-accent);
}

.gs-pv-row.is-you .gs-pv-match {
  color: var(--text-primary);
}

.gs-pv-row.is-top .gs-pv-rank {
  color: var(--accent-ink);
}

.gs-pv-info {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 0.15rem;
  line-height: 1.3;
}

.gs-pv-name {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Lime marker sweeps the name on success */
.gs-pv-name .gs-pv-text {
  padding: 0 0.15em;
  margin-left: -0.15em;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center;
  background-size: 0% 90%;
}

.gs-pv-row.is-top .gs-pv-name .gs-pv-text {
  color: var(--on-accent);
}

.gs-pv-meta {
  overflow: hidden;
  font-size: 0.82rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.gs-pv-text {
  display: inline-block;
}

.gs-pv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.gs-pv-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.gs-pv-tag[hidden] {
  display: none;
}

.gs-pv-li svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gs-pv-li path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.4s ease 0.1s;
}

.gs-pv-li.is-drawn path {
  stroke-dashoffset: 0;
}

/* ---- Tablet & mobile (< 1100px): preview becomes a compact strip on top ---- */
@media (max-width: 1099.98px) {
  .gs-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-top: 1.25rem;
  }

  .gs-flow {
    max-width: 640px;
  }

  .gs-preview {
    position: static;
    order: -1;
    padding: 0;
  }

  .gs-pv-title,
  .gs-pv-row.is-skel,
  .gs-pv-tags,
  .gs-pv-match,
  .gs-pv-sep,
  .gs-pv-meta [data-pv="location"] {
    display: none;
  }

  .gs-pv-list {
    margin-top: 0.6rem;
  }

  .gs-pv-row {
    min-height: 0;
    padding: 0.6rem 0;
  }
}

@media (max-width: 480px) {
  .gs-q {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
  }

  .gs-input,
  .gs-choice-text {
    font-size: 1.1rem;
  }

  .gs-confirm {
    font-size: 0.82rem;
  }

  .gs-logo {
    font-size: 0.95rem;
  }

  .gs-sum-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .gs-sum-row dd {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  /* Sticky Back / Next bar */
  .gs-nav {
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.5rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.85rem var(--gutter) calc(0.85rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-primary);
  }

  .gs-nav .btn,
  .gs-done .btn {
    width: 100%;
  }

  .gs-back {
    text-align: center;
  }
}

/* Reduced motion: no slides or draws, simple fades only */
@media (prefers-reduced-motion: reduce) {
  .gs-wavy path,
  .gs-box path,
  .gs-pv-li path,
  .gs-choice-dot,
  .gs-choice-text,
  .gs-x {
    transition: none;
  }

  .gs-pv-dot {
    animation: none;
  }
}

/* ========================================
   18. Tablet & mobile alignment (< 1100px)
   One place for the single-column rules: centred section headers, centred content
   blocks with sensible widths, and per-section spacing fixes. Theme variables only.
   ======================================== */
@media (max-width: 1099.98px) {
  /* ---- Section headers: centred ---- */
  .problem-header,
  .solution-header,
  .fx-header,
  .faq-header {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
  }

  .fx-header {
    justify-items: center;
  }

  .problem-subtitle,
  .solution-subtitle,
  .fx-subtitle {
    margin-inline: auto;
  }

  .faq-summary {
    margin-inline: auto;
    text-align: center;
  }

  /* ---- Single-column blocks: centred, readable widths ---- */
  .problem-stage,
  .features-index,
  .process-track,
  .pc-price,
  .pc-weigh,
  .faq-grid {
    width: 100%;
    margin-inline: auto;
  }

  .problem-stage,
  .features-index,
  .pc-price,
  .pc-weigh {
    max-width: 560px;
  }

  .process-track,
  .faq-grid {
    max-width: 640px;
  }

  /* ---- Section rhythm: every section-to-section gap is 6rem (3rem each side) ---- */
  .hero {
    padding-bottom: 3rem;
  }

  .problem.section {
    padding-top: 3rem;
    padding-bottom: 2rem; /* + the loop's own 1rem bottom padding */
  }

  .solution {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .features,
  .process,
  .pricing.section,
  .faq.section {
    padding-block: 3rem;
  }

  .cta {
    padding-top: 3rem;
  }

  /* ---- Problem loop: one centred block, words left-aligned inside it ---- */

  .problem-loop {
    max-width: 22rem;
    margin-inline: auto;
    padding-bottom: 1rem;
  }

  .pl-board {
    width: fit-content;
    margin-inline: auto;
    container-type: normal; /* inline-size containment would make fit-content collapse */
  }

  .pl-words {
    padding-left: 0;
    padding-right: 96px; /* room for the return curve on the right */
  }

  /* Down-arrows on one vertical axis, under the words' first letters (JS runs the dot on it) */
  .pl-arrow-v {
    margin-left: calc(0.5em - 8px);
  }

  .pl-break {
    text-align: center;
  }

  /* ---- Process ---- */
  .process-track {
    --pr-gutter: 88px;
    padding-left: var(--pr-gutter);
  }

  /* Back sheets off below 1100px; crop marks stay around the artifacts only */
  .pr-sheet {
    display: none;
  }

  .pr-fig {
    width: calc(100% - 40px); /* 20px each side for the crop marks */
    margin-inline: auto;
  }

  /* Finale: centred in the full content width (not the ruler's column), clear of "Week 3" */
  .pr-finale {
    width: calc(100% + var(--pr-gutter));
    margin-left: calc(-1 * var(--pr-gutter));
    padding-top: 2.5rem;
    text-align: center;
  }

  .pr-finale > * {
    max-width: 520px;
    margin-inline: auto;
  }

  .pr-finale-line,
  .pr-finale-sub {
    text-wrap: balance;
  }

  /* ---- Pricing: price, CTA and balance centred as one column ---- */
  .pc-price {
    text-align: center;
  }

  .pc-figure {
    justify-content: center;
  }

  .pc-rule {
    transform-origin: center center;
  }

  .pc-cta {
    flex-direction: column;
    justify-content: center;
  }

  .pc-weigh-title,
  .pc-weigh-help,
  .pc-result,
  .pc-disclaimer {
    text-align: center;
  }
}

/* Process sticky strip: cover the strip of page above it when the navbar slides away */
@media (max-width: 1099.98px) and (prefers-reduced-motion: no-preference) {
  html.js .process-hud {
    z-index: 6;
  }

  html.js .process-hud::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: var(--nav-height, 72px);
    background-color: var(--bg-primary);
  }

  html.js .process-track {
    padding-top: 1.5rem;
  }
}

@media (max-width: 600px) {
  /* Keyword map: smaller centre label and side keywords pushed out so nothing collides */
  .fig-map .km-center {
    font-size: 1.05em;
  }

  .fig-map .km-kw {
    font-size: calc(var(--s) * 0.85em);
  }

  .fig-map .km-kw:nth-of-type(4) { /* Python */
    --x: 15% !important;
  }

  .fig-map .km-kw:nth-of-type(5) { /* Forecasting */
    --x: 84% !important;
  }
}

@media (max-width: 480px) {
  .process-track {
    --pr-gutter: 72px;
  }
}

/* Hero buttons: stacked and centred only when they can't sit side by side */
@media (max-width: 399.98px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: min(100%, 260px);
  }
}

/* ========================================
   19. Touch: tap targets (< 1100px)
   Everything tappable gets at least 44×44px. Text links grow their hit area with padding
   and give it back with a negative margin, so the layout doesn't move.
   ======================================== */
@media (max-width: 1099.98px) {
  .theme-toggle,
  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .pc-pill {
    min-height: 44px;
  }

  .gs-close,
  .gs-back {
    min-height: 44px;
  }

  /* Text links: a 44px tall hit area without changing the line spacing */
  .ft-link,
  .ft-top-link,
  .cta-doubts {
    padding-block: 12px;
    margin-block: -12px;
  }

  .ft-link {
    display: inline-block;
    min-width: 44px;
  }

  .gs-edit {
    min-width: 44px;
    min-height: 44px;
    margin: -10px -10px -10px 0;
    padding: 10px;
  }
}

/* Landscape phones: short screens get the sticky Back / Next bar too (row layout kept),
   so "Next" never sits below the fold or behind the keyboard */
@media (max-width: 1099.98px) and (max-height: 520px) {
  .gs-nav {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 1.5rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-primary);
  }

  .gs-body {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  .gs-back {
    min-width: 44px;
    padding-inline: 0.5rem;
  }
}

/* ========================================
   20. Consent banner, placeholders, small buttons
   ======================================== */
.btn-sm {
  font-size: 0.85rem;
  padding: 0.6rem 1.15rem;
}

/* Values still to be filled in (see js/legal-config.js) */
mark.placeholder {
  background-color: var(--accent);
  color: var(--on-accent);
  padding: 0 0.25em;
  border-radius: 3px;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.gs-rights {
  margin-top: 0.5rem;
}

.gs-notice a,
.gs-privacy-link a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
}

.gs-privacy-link {
  margin-top: 0.6rem;
  padding-left: calc(20px + 0.85rem); /* lines up with the consent text, past the checkbox */
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========================================
   21. Legal pages (/privacy-policy, /terms)
   ======================================== */
.lg {
  padding-top: calc(var(--nav-space) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: var(--section-space);
}

.lg-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.lg-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lg-updated {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lg-summary {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.lg-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

/* Table of contents: sticky on desktop, lime dot marks the section in view */
.lg-toc {
  position: sticky;
  top: calc(var(--nav-space) + 1.5rem);
}

.lg-toc-title {
  margin-bottom: 0.85rem;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lg-toc-list {
  display: grid;
  gap: 0.15rem;
}

.lg-toc-list a {
  position: relative;
  display: block;
  padding: 0.3rem 0 0.3rem 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.lg-toc-list a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background-color: var(--accent);
  transform: scale(0);
  transition: transform var(--transition-fast);
}

.lg-toc-list a.is-active {
  color: var(--text-primary);
}

.lg-toc-list a.is-active::before {
  transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .lg-toc-list a:hover {
    color: var(--text-primary);
  }
}

/* Content */
.lg-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.lg-section {
  padding-block: 2.25rem;
  border-top: 1px solid var(--border-color);
  scroll-margin-top: calc(var(--nav-space) + 1rem);
}

.lg-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.lg-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.lg-num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.lg-section h3 {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lg-section p + p,
.lg-section p + ul,
.lg-section ul + p {
  margin-top: 0.9rem;
}

.lg-section ul {
  display: grid;
  gap: 0.45rem;
}

.lg-section li {
  position: relative;
  padding-left: 1.25rem;
}

.lg-section li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0.2rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.lg-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.lg-section a:not(.btn) {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .lg-section a:not(.btn):hover {
    text-decoration-color: currentColor;
  }
}

.lg-section a,
.lg-section mark {
  overflow-wrap: anywhere;
}

/* Tablet & phone: TOC becomes a horizontal scroll row under the title */
@media (max-width: 999.98px) {
  .lg-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .lg-body {
    max-width: 720px;
  }

  .lg-toc {
    position: static;
    margin-inline: calc(var(--gutter) * -1);
    border-block: 1px solid var(--border-color);
  }

  .lg-toc-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .lg-toc-list {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0.5rem var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .lg-toc-list::-webkit-scrollbar {
    display: none;
  }

  .lg-toc-list a {
    padding: 0.6rem 0.75rem 0.6rem 1.35rem;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .lg-toc-list a::before {
    left: 0.6rem;
  }

  .lg-body {
    font-size: 1rem;
    line-height: 1.75;
  }
}

/* ========================================
   22. 404 page
   ======================================== */
.nf {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-space) + 2rem);
  padding-bottom: 4rem;
  text-align: center;
}

.nf-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nf-code {
  font-family: var(--font-primary);
  font-size: clamp(6rem, 22vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--text-primary);
}

.nf-title {
  margin-top: 1.5rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.nf-sub {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.nf-help {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nf-help a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .nf-help a:hover {
    text-decoration-color: currentColor;
  }
}

/* Light entrance: fade + short rise, staggered */
.nf-inner > * {
  animation: nf-in 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}
.nf-inner > :nth-child(2) { animation-delay: 0.08s; }
.nf-inner > :nth-child(3) { animation-delay: 0.16s; }
.nf-inner > :nth-child(4) { animation-delay: 0.24s; }
.nf-inner > :nth-child(5) { animation-delay: 0.32s; }

@keyframes nf-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (max-width: 479.98px) {
  .nf-actions {
    flex-direction: column;
    align-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-inner > * {
    animation: none;
  }
}

/* ========================================
   23. Get Started: qualifier (2 questions before the form)
   ======================================== */
/* While qualifying: one centred column, no live preview */
.gs.is-qualifying .gs-preview {
  display: none;
}

.gs.is-qualifying .gs-body {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding-bottom: clamp(3rem, 10vh, 6rem);
}

.gs.is-qualifying .gs-flow {
  max-width: 820px;
}

.gs-qual[hidden],
.gs-qual-step[hidden],
.gs-qual-msg[hidden] {
  display: none;
}

.gs-qual-count {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Editorial-size question; the key phrase sits on the lime marker */
.gs-qual-q {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.gs-qual-q .marker {
  padding: 0 0.12em;
}

.gs-qual-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}

.gs-qual-btn {
  min-width: 10rem;
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

.gs-qual-keys {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gs-qual-keys kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.35em;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--text-secondary);
}

/* Touch screens have no Y / N keys */
@media (hover: none), (pointer: coarse) {
  .gs-qual-keys {
    display: none;
  }
}

.gs-qual-back {
  display: block;
  margin-top: 2rem;
}

/* "Not for you" */
.gs-qual-msg {
  max-width: 580px;
  margin-top: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.gs-qual-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  margin-top: 1.5rem;
}

.gs-qual-wa {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .gs-qual-wa:hover {
    color: var(--text-primary);
  }
}

/* Phones: answers stacked full width, comfortable tap targets */
@media (max-width: 599.98px) {
  .gs.is-qualifying .gs-body {
    align-content: start;
    padding-top: clamp(2rem, 8vh, 4rem);
  }

  .gs-qual-answers {
    flex-direction: column;
  }

  .gs-qual-btn {
    width: 100%;
    min-height: 52px;
  }

  .gs-qual-back,
  .gs-qual-change {
    min-height: 44px;
  }
}

/* ========================================
   24. Get Started: phone prefix, under-3 countdown
   ======================================== */
/* +91 sits outside the input; the underline moves to the wrapper */
.gs-phone {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-light);
  transition: border-color var(--transition-fast);
}

.gs-phone .gs-input {
  flex: 1;
  min-width: 0;
  border-bottom: 0;
}

.gs-phone:focus-within {
  border-bottom-color: var(--text-primary);
}

.gs-field.is-invalid .gs-phone {
  border-bottom-color: transparent;
}

.gs-prefix {
  flex-shrink: 0;
  padding: 0.45rem 0 0.55rem;
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  user-select: none;
}

@media (max-width: 480px) {
  .gs-prefix {
    font-size: 1.1rem; /* matches the inputs (17.6px: no iOS zoom) */
  }
}

/* Countdown number on the "not for you" redirect screen */
.gs-redirect-count {
  margin-top: 1.5rem;
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.gs-redirect-unit {
  margin-left: 0.1em;
  font-size: 0.45em;
  font-weight: 700;
  color: var(--text-muted);
}

/* ========================================
   25. Get Started: payment states + paid success
   ======================================== */
.gs-pay[hidden],
.gs-pay-screen[hidden] {
  display: none;
}

.gs-pay {
  margin-top: 1rem;
}

.gs-pay-q {
  margin-top: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* "Confirming your payment…": three lime dots, one after another */
.gs-pay-loading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 3rem;
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.gs-pay-dots {
  display: inline-flex;
  gap: 6px;
}

.gs-pay-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: gs-pay-dot 1.1s ease-in-out infinite;
}

.gs-pay-dots span:nth-child(2) { animation-delay: 0.15s; }
.gs-pay-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes gs-pay-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .gs-pay-dots span {
    animation: none;
    opacity: 1;
  }
}

/* Payment ID: small, selectable, with a Copy button */
.gs-pay-id {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gs-pay-id-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  user-select: all;
  overflow-wrap: anywhere;
}

.gs-copy {
  font-size: 0.8rem;
  color: var(--accent-ink);
}

/* Paid success: the longer heading needs a smaller size than the old "You're in." */
.gs-done-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  text-wrap: balance;
}

.gs-done-text {
  max-width: 560px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.gs-done .gs-qual-answers {
  align-items: center;
}

.gs-done .gs-qual-answers .btn {
  margin-top: 0;
}

.gs-done-wa {
  margin-left: 0.5rem;
}

@media (max-width: 599.98px) {
  .gs-done .gs-qual-answers {
    align-items: stretch;
  }

  .gs-done-wa {
    margin: 0.5rem 0 0;
    align-self: center;
  }
}

/* ========================================
   26. Footer: long links + legal line
   ======================================== */
/* Rolling links show one line only, so they never wrap ("Refund & Cancellation") */
.ft-links .roll > span {
  white-space: nowrap;
}

/* Keep "Udyam Registration: UDYAM-…" together */
.ft-udyam {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ft-top {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); /* Navigate has the longer labels */
  }
}

@media (max-width: 374.98px) {
  .ft-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .ft-udyam {
    white-space: normal;
  }
}

/* ========================================
   27. Process finale centred (desktop) + footer credit baseline
   ======================================== */
@media (min-width: 1100px) {
  .pr-finale {
    text-align: center;
  }

  .pr-finale-sub {
    margin-inline: auto;
  }

  html.js .pr-finale {
    justify-content: center;
  }
}

/* "chichu.io" (a rolling link) sits on the same baseline as "Designed & developed by" */
.ft-credit .roll {
  vertical-align: baseline;
}

/* ========================================
   28. Solution: wide 5-column board (desktop, 1200px and up)
   Wider than the other sections, a label-width axis, equal columns, one shared size for every
   title and every metric, labels and metrics on one line.
   ======================================== */
.sol-rvalue-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

@media (min-width: 1200px) {
  .solution > .container {
    max-width: 1760px;
  }

  .sol-board {
    --sol-pad-x: clamp(0.85rem, 1.1vw, 1.5rem);
    --sol-pad-y: 1.5rem;
    --sol-title-size: clamp(1.1rem, 0.45rem + 1vw, 1.75rem);
    --sol-metric-size: clamp(0.85rem, 0.2rem + 0.8vw, 1.2rem);
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .sol-axis {
    padding-right: 1rem;
  }

  .sol-stage,
  .sol-stage[data-pos="bottom"] {
    padding: var(--sol-pad-y) var(--sol-pad-x);
  }

  .sol-meta {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .sol-title {
    font-size: calc(var(--sol-title-size) * var(--sol-k));
    text-wrap: balance;
  }

  .sol-text {
    max-width: 32ch;
  }

  .sol-rvalue {
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: calc(var(--sol-metric-size) * var(--sol-k));
  }
}

@media (min-width: 1200px) and (max-width: 1279.98px) {
  .sol-board {
    --sol-title-size: clamp(1rem, 0.3rem + 1.1vw, 1.2rem);
    --sol-metric-size: clamp(0.8rem, 0.25rem + 0.7vw, 0.95rem);
  }

  .sol-arrow {
    width: 22px;
  }
}

/* Stage labels stay on one row ("03 LINKEDIN OPTIMIZATION" is the longest): the label size
   follows the column width, 10px to 12px */
@media (min-width: 1200px) {
  .sol-stage {
    container-type: inline-size;
  }

  .sol-name {
    font-size: clamp(10px, calc(6.6cqi - 2px), 0.75rem);
    letter-spacing: 0.1em;
  }
}

/* Below 1200px: the stacked layout (moved here from the shared tablet block, unchanged) */
@media (max-width: 1199.98px) {
  .sol-board {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  /* ---- Solution: more room per stage ---- */
  .sol-board {
    padding-left: 24px; /* 28px line gutter; copy starts 20px past it (24 + 1.5rem padding) */
  }

  .sol-rail {
    left: 12px;
  }

  .sol-axis-top,
  .sol-axis-bottom {
    padding-left: 1.5rem;
  }

  .sol-stage,
  .sol-stage[data-pos="bottom"] {
    padding: 2.25rem 1.5rem;
  }

  .sol-fill {
    inset: 0; /* the stage box: 1.5rem around the copy, ending at the container's gutter */
  }

  .sol-title {
    max-width: calc(100% - 1.15 * clamp(4rem, 18vw, 5.5rem) - 0.75rem); /* clear of the numeral */
    margin-bottom: 0.75rem;
  }

  .sol-text {
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.6;
  }

  .sol-result {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .sol-numeral {
    top: 1.75rem;
    right: 1.5rem;
    font-size: clamp(4rem, 18vw, 5.5rem);
  }

  .sol-meta,
  .sol-title {
    padding-right: 0;
  }

}

/* ========================================
   29. Stats: the counter on the left, three lines on the right (stacked on phones)
   ======================================== */
.tally {
  display: grid;
  grid-template-columns: auto minmax(0, 520px);
  align-items: center;
  justify-content: space-between;
  gap: 2rem clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.tally-count {
  display: flex;
  align-items: baseline;
  font-family: var(--font-primary);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.tally-plus {
  color: var(--accent-ink);
}

.tally-line {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text-primary);
}

.tally-line + .tally-line {
  margin-top: 0.35rem;
}

.tally-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tally-n {
  font-weight: 600;
  color: var(--text-primary);
}

/* Phones: counter on top, text below, all left-aligned */
@media (max-width: 600px) {
  .tally {
    grid-template-columns: minmax(0, 1fr);
    justify-content: start;
    gap: 1.25rem;
  }

  .tally-count {
    font-size: clamp(4rem, 22vw, 6rem);
  }

  .tally-line {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }
}


/* ========================================
   30. Home page: shared package bits
   Same tokens as the rest of the site: hairlines, lime marker, no boxes, no shadows.
   ======================================== */
/* Shared: the ✓ list (Recruiter Magnet pricing) */
.pkg-includes {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.pkg-includes li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.pkg-includes li::before {
  content: "✓";
  font-weight: 700;
  color: var(--accent-ink);
}

.pkg-includes li.is-lead {
  font-weight: 600;
  color: var(--text-primary);
}

.pkg-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pkg-note a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
}

/* ---- Get Started modal: the selected package ---- */
.gs-package {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-primary);
  font-size: 0.95rem;
}

.gs-package-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gs-package-name {
  font-weight: 800;
  color: var(--text-primary);
}

.gs-package-sep {
  color: var(--text-muted);
}

.gs-package-price {
  font-weight: 700;
  color: var(--accent-ink);
}

.gs-package-change {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
}

.gs-done .gs-package {
  display: none;
}

/* ========================================
   31. Homepage Hero: centred copy, then the logo strip
   No dot grid and no visual on the home page: the headline carries it.
   ======================================== */
.hero.hhero {
  justify-content: flex-start;
  gap: 0;
  min-height: 0;
  padding-top: calc(var(--nav-height, 72px) + clamp(3.5rem, 9vh, 6.5rem));
}

.hhero::before {
  content: none; /* the dot grid stays on /recruiter-magnet/ only */
}

.hhero .hero-grid {
  display: block;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

/* "From ignored" / "to shortlisted." */
.hero-title.is-short {
  font-size: clamp(2.25rem, 11vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

/* The marker on line 2 paints after line 1, so it would cover the tail of the "g" in "ignored".
   Lifting line 1 above it keeps the descender on top of the green. */
.hero-title .hero-line {
  position: relative;
  z-index: 2;
}

/* Clear space between the lines: the green line is its own box, pushed down 0.2em.
   line-height 1.26 keeps the block as tall as it was when it was inline text. */
.hero-title.is-short .hero-marker {
  display: inline-block;
  margin-top: 0.2em;
  line-height: 1.26;
}

.hhero .hero-subtitle {
  max-width: 620px;
  margin-inline: auto;
}

.hhero .hero-actions {
  justify-content: center;
}

.hhero .hero-logos {
  padding-top: clamp(4rem, 10vh, 6.5rem);
}

@media (max-width: 991.98px) {
  .hero.hhero {
    padding-top: calc(var(--nav-height, 72px) + 3rem);
  }

  .hhero .hero-logos {
    padding-top: 4rem;
  }
}

/* ========================================
   32. Homepage Packages: three plans as open columns
   No boxes: three columns split by hairlines, each topped by a 4px bar (lime on Recruiter
   Magnet, which also carries a faint tint). The rows inside the columns are shared (subgrid),
   so headlines, buttons, prices, dividers and lists line up across all three.
   ======================================== */
.section.hpl {
  --hpl-accent: var(--accent);
  --hpl-tint: color-mix(in srgb, var(--accent) 4%, transparent);
  padding-block: clamp(5rem, 9vw, 7rem);
}

[data-theme="light"] .hpl {
  --hpl-accent: var(--accent-ink); /* plain lime is too faint on the light background */
  --hpl-tint: color-mix(in srgb, var(--accent) 6%, transparent);
}

.hpl-head {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

html.js .hpl-title {
  visibility: hidden; /* revealed by initHomePackages */
}

.hpl-sub {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.hpl-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto); /* name, headline, line, buttons, price */
  gap: 0;
  max-width: 1200px;
  margin-inline: auto;
}

.hpl-card {
  position: relative;
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  padding: 2.5rem 2rem 2rem;
}

/* Hairlines between the columns only */
.hpl-card + .hpl-card {
  border-left: 1px solid var(--border-light);
}

/* Recruiter Magnet: a faint tint down the whole column */
.hpl-card.is-featured {
  background-color: var(--hpl-tint);
}

/* The top bar: 4px, lime on Recruiter Magnet; 6px under the pointer */
.hpl-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--border-light);
  transform-origin: left center;
  transition: height 0.25s ease, background-color 0.25s ease;
}

.is-featured .hpl-bar {
  background-color: var(--hpl-accent);
}

@media (hover: hover) and (pointer: fine) {
  .hpl-card:hover .hpl-bar {
    height: 6px;
  }

  .hpl-card:not(.is-featured):hover .hpl-bar {
    background-color: var(--text-secondary);
  }
}

/* 1. "Most popular" (line reserved on every column) + name */
.hpl-top {
  display: grid;
  gap: 0.35rem;
}

.hpl-badge {
  display: block;
  height: 1.3em;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.hpl-name {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 2. Headline */
.hpl-headline {
  margin-top: 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* 3. One line (two lines reserved) */
.hpl-line {
  min-height: calc(2 * 1.5em);
  margin-top: 0.6rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* 4. Buttons: one row in every column (Recruiter Magnet: two equal halves) */
.hpl-actions {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  container-type: inline-size;
}

.hpl-actions.is-pair {
  grid-template-columns: 1fr 1fr;
}

.hpl-actions .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
}

.hpl-actions.is-pair .btn {
  padding-inline: 0.75rem;
}

/* "Get Recruiter Magnet" when there's room beside "Learn more", otherwise "Get started" */
.hpl-buy-long {
  display: none;
}

@container (min-width: 440px) {
  .hpl-buy-long {
    display: inline;
  }

  .hpl-buy-short {
    display: none;
  }
}

/* 5. Price: small superscript ₹, the amount, "one-time" */
.hpl-price {
  display: flex;
  align-items: baseline;
  margin-top: 1.75rem;
  font-family: var(--font-primary);
  color: var(--text-primary);
}

.hpl-cur {
  align-self: flex-start;
  margin-top: 0.35em;
  margin-right: 0.1em;
  font-size: 1.1rem;
  font-weight: 700;
}

.hpl-amount {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hpl-once {
  margin-left: 0.35rem;
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Feature table under the cards: a feature column, then one column per plan */
.hpt {
  max-width: 1200px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}

.hpt-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.hpt-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

.hpt-table th,
.hpt-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
}

.hpt-table thead th {
  padding-block: 1.1rem;
  border-bottom-color: var(--border-light);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hpt-table thead th:first-child {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* The feature column stays put while the plan columns scroll on small screens */
.hpt-table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 15rem;
  background-color: var(--bg-primary);
  text-align: left;
}

.hpt-table tbody th {
  font-weight: 500;
  color: var(--text-primary);
}

/* Recruiter Magnet: the same faint tint as its card */
.hpt-table .is-featured {
  background-color: var(--hpl-tint);
}

.hpt-table thead .is-featured {
  box-shadow: inset 0 4px 0 var(--hpl-accent);
}

.hpt-table tbody tr:last-child > * {
  border-bottom: 0;
}

/* The small gap after "Stand out from the crowd" */
.hpt-gap td {
  height: 1.75rem;
  padding: 0;
  border-bottom: 0;
}

.hpt-tick {
  display: inline-block; /* the reset makes svg block-level */
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: none;
  stroke: var(--hpl-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hpt-no {
  color: var(--text-muted);
}

.hpt-val {
  color: var(--text-primary);
  font-weight: 500;
}

.hpt-val small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.hpt-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hpt-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .hpt-note a:hover {
    text-decoration-color: currentColor;
  }
}

@media (max-width: 767.98px) {
  /* A narrow feature column, so the plan columns stay in view while it is pinned */
  .hpt-table {
    width: max-content;
    min-width: 0;
  }

  .hpt-table tr > :first-child {
    width: 9.5rem;
    min-width: 9.5rem;
    max-width: 9.5rem;
    padding-inline: 0.9rem;
    border-right: 1px solid var(--border-light);
    font-size: 0.9rem;
  }

  .hpt-table th,
  .hpt-table td {
    padding-inline: 0.9rem;
  }

  .hpt-table thead th:not(:first-child),
  .hpt-table tbody td {
    min-width: 8.75rem;
  }
}

/* Phones and tablets: stacked, same order; spacing instead of the hairlines */
@media (max-width: 991.98px) {
  .hpl-cards {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 3rem;
    max-width: 560px;
  }

  .hpl-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    padding: 2.25rem 1.5rem 1.75rem;
  }

  .hpl-card + .hpl-card {
    border-left: 0;
  }

  .hpl-line {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .hpl-title {
    visibility: visible;
  }

  .hpl-bar {
    transition: none;
  }
}

/* ========================================
   34. Homepage closing CTA: "Ready to get shortlisted?"
   Centred, no box: a 4px top bar like the packages and the course strip.
   ======================================== */
.section.hcta {
  padding-block: 0;
}

.hcta-inner {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
  padding-block: 5rem;
  text-align: center;
}

.hcta-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--border-light);
  transform-origin: left center;
}

.hcta-title {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

html.js .hcta-title {
  visibility: hidden; /* revealed by initHomeClosing */
}

.hcta-sub {
  max-width: 46ch;
  margin: 1.25rem auto 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.hcta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hcta-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 767.98px) {
  .hcta-inner {
    padding-block: 3.5rem;
  }

  .hcta-actions {
    flex-direction: column;
  }

  .hcta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .hcta-title {
    visibility: visible;
  }

  html.js .hcta-title .draw-marker {
    background-size: 100% 86%;
    color: var(--on-accent);
  }
}

/* ========================================
   35. Redirect page (/redirect/): "Redirecting you to ..." with a 5 second countdown
   ======================================== */
.rd {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-space) + 2rem);
  padding-bottom: 4rem;
  text-align: center;
}

.rd-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
}

.rd-inner[hidden] {
  display: none;
}

.rd-title {
  margin-top: 1.25rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.rd-count {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.rd-count strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.rd-bar {
  width: min(100%, 420px);
  height: 6px;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 999px;
  background-color: var(--border-light);
}

.rd-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.rd-inner.is-running .rd-fill {
  animation: rd-progress 5s linear forwards;
}

@keyframes rd-progress {
  to {
    transform: scaleX(1);
  }
}

.rd-fallback {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.rd-fallback a,
.rd-noscript a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .rd-fallback a:hover,
  .rd-noscript a:hover {
    text-decoration-color: currentColor;
  }
}

/* Reduced motion: the bar fills in five steps instead of sliding */
@media (prefers-reduced-motion: reduce) {
  .rd-inner.is-running .rd-fill {
    animation-timing-function: steps(5, end);
  }
}

/* ========================================
   36. /bestcourses/: recommended course (layout shared with the redirect page, section 35)
   ======================================== */
.bc-line {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.bc-cta {
  margin-top: 2rem;
}

.bc-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
