/* ============================================================
   WORK HOURS CALCULATOR — style.css
   Complete styles for ALL pages. No frameworks.
============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-mid: #bfdbfe;
  --green: #10b981;
  --green-light: #ecfdf5;
  --green-dark: #059669;
  --amber: #f59e0b;
  --amber-light: #fffbeb;
  --amber-dark: #92400e;
  --red: #ef4444;
  --red-light: #fef2f2;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, .07), 0 2px 4px rgba(0, 0, 0, .04);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, .09), 0 4px 10px rgba(0, 0, 0, .05);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: 0.18s ease;
}

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

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

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  font-family: var(--font);
}

ul {
  list-style: none;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  /* Prevent any child from bleeding outside */
  overflow-x: hidden;
}

.content-narrow {
  max-width: 860px;
  margin: 0 auto;
}

.bg-white {
  background: var(--white);
}

.bg-gray {
  background: var(--gray-100);
}

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  color: var(--blue);
}

.logo:hover {
  text-decoration: none;
  color: var(--gray-900);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  font-size: .855rem;
  font-weight: 500;
  color: var(--gray-500);
  padding: 6px 11px;
  border-radius: var(--r-sm);
  transition: background var(--ease), color var(--ease);
}

.main-nav a:hover,
.main-nav a.nav-active {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 7px;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  transition: border-color var(--ease);
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--blue);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════
   INSTANT ANSWER BAR
══════════════════════════════════════════════════════════ */
.instant-answer {
  background: #1e40af;
  border-bottom: 3px solid #f59e0b;
  /* Prevent text overflow on narrow screens */
  overflow: hidden;
}

.instant-answer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.ia-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.ia-text {
  font-size: .875rem;
  color: rgba(255, 255, 255, .95);
  line-height: 1.5;
  flex: 1;
  /* Allow wrapping so text never clips */
  min-width: 0;
  word-break: break-word;
}

.ia-text strong {
  color: #fbbf24;
}

.ia-cta {
  display: inline-block;
  background: #f59e0b;
  color: #1e293b;
  font-size: .8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s ease;
  flex-shrink: 0;
}

.ia-cta:hover {
  background: #fbbf24;
  text-decoration: none;
  color: #1e293b;
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #3b82f6 100%);
  padding: 44px 0 40px;
  overflow: hidden;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-text {
  text-align: center;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  /* Prevent long badge from overflowing */
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
}

.hero-text h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.4px;
  margin-bottom: 12px;
  /* Prevent overflow on very small screens */
  word-break: break-word;
}

.hero-sub {
  font-size: clamp(.875rem, 1.8vw, 1.05rem);
  opacity: .9;
  max-width: 560px;
  margin: 0 auto 22px;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.stat-pill {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ══════════════════════════════════════════════════════════
   CALCULATOR SECTION
══════════════════════════════════════════════════════════ */
.calculator-section {
  padding: 0 0 40px;
}

/* Preset Strip */
.preset-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 18px;
}

.preset-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}

.btn-preset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--ease);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.btn-preset:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.btn-preset.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, .3);
}

.preset-icon {
  font-size: .95rem;
}

/* Calc Grid */
.calc-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  align-items: start;
}

/* ── CARD BASE ────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* ── INPUTS CARD ──────────────────────────────────────────── */
.inputs-card {
  padding: 24px;
}

.card-header {
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
}

.card-sub {
  font-size: .78rem;
  color: var(--gray-400);
}

.input-group-section {
  margin-bottom: 4px;
}

.section-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.input-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 18px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 14px;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

/* Tooltip */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip-icon {
  width: 15px;
  height: 15px;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: .62rem;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  flex-shrink: 0;
}

.tooltip-text {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  background: var(--gray-900);
  color: var(--white);
  font-size: .72rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  z-index: 200;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  /* Constrain width so it never exceeds viewport */
  width: 200px;
  max-width: calc(100vw - 40px);
  white-space: normal;
  word-break: break-word;
}

.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--gray-900);
}

.tooltip-wrap:hover .tooltip-text,
.tooltip-wrap:focus-within .tooltip-text {
  display: block;
}

/* Input Wrap */
.input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
  background: var(--white);
  /* Prevent inputs from expanding card */
  min-width: 0;
}

.input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 9px 10px;
  font-size: .92rem;
  font-family: var(--font);
  color: var(--gray-900);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  /* Prevent number inputs from growing too wide */
  width: 100%;
}

.input-wrap input::placeholder {
  color: var(--gray-400);
}

.input-prefix,
.input-unit {
  padding: 0 8px;
  font-size: .73rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.input-prefix {
  border-right: 1px solid var(--gray-200);
}

.input-unit {
  border-left: 1px solid var(--gray-200);
}

.input-hint {
  font-size: .7rem;
  color: var(--gray-400);
  margin-top: 3px;
  display: block;
}

/* Earnings section in inputs */
.earnings-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--r-md);
  padding: 14px;
  margin-top: 4px;
}

.earnings-section .section-label {
  color: var(--amber-dark);
}

.earnings-section .input-wrap {
  background: var(--white);
}

/* Error */
.input-error {
  margin-top: 12px;
  padding: 9px 13px;
  background: var(--red-light);
  border: 1px solid #fecaca;
  border-radius: var(--r-sm);
  color: #dc2626;
  font-size: .8rem;
  font-weight: 500;
  display: none;
  word-break: break-word;
}

.input-error.visible {
  display: block;
}

/* ══════════════════════════════════════════════════════════
   OUTPUT PANEL
══════════════════════════════════════════════════════════ */
.outputs-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* PRIMARY RESULT CARD */
.primary-result-card {
  padding: 22px 20px;
  background: linear-gradient(135deg, #1e40af 0%, var(--blue) 100%);
  border-color: transparent;
  color: var(--white);
  /* Prevent number overflow */
  overflow: hidden;
}

.primary-result-label {
  font-size: .72rem;
  font-weight: 600;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 6px;
}

.primary-result-value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 4px;
  transition: transform .2s ease, opacity .2s ease;
  /* Key fix: never overflow horizontally */
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.primary-result-sub {
  font-size: .77rem;
  opacity: .7;
  margin-bottom: 16px;
}

.primary-result-divider {
  height: 1px;
  background: rgba(255, 255, 255, .2);
  margin-bottom: 14px;
}

.adjusted-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.adjusted-label {
  font-size: .82rem;
  opacity: .85;
  flex: 1;
  min-width: 0;
}

.adjusted-value {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.4px;
  word-break: break-all;
  overflow-wrap: anywhere;
  text-align: right;
  flex-shrink: 0;
}

/* BREAKDOWN GRID */
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-card {
  padding: 14px 10px;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
  /* Prevent number overflow */
  overflow: hidden;
}

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

.mini-icon {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.mini-label {
  font-size: .66rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}

.mini-value {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 2px;
  transition: transform .2s ease, opacity .2s ease;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.mini-unit {
  font-size: .66rem;
  color: var(--gray-400);
}

/* EARNINGS PANEL */
.earnings-panel {
  padding: 18px 20px;
  border-color: var(--amber);
  background: linear-gradient(135deg, #fffbeb 0%, var(--white) 100%);
}

.earnings-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.earnings-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.earnings-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
}

.earnings-sub {
  font-size: .75rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.earnings-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.earning-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  flex-wrap: wrap;
}

.earning-row:nth-child(even) {
  background: var(--amber-light);
}

.earning-period {
  font-size: .85rem;
  color: var(--gray-500);
  white-space: nowrap;
}

.earning-period small {
  font-size: .72rem;
  opacity: .75;
}

.earning-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  transition: transform .2s ease, opacity .2s ease;
  word-break: break-all;
  overflow-wrap: anywhere;
  text-align: right;
}

.annual-row {
  background: var(--amber-light);
  border: 1px solid #fde68a;
  border-radius: var(--r-sm);
}

.annual-amount {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: var(--amber-dark);
}

.earnings-note {
  margin-top: 12px;
  font-size: .77rem;
  color: var(--gray-400);
  text-align: center;
  font-style: italic;
}

/* ACTION ROW */
.action-row {
  display: flex;
  gap: 10px;
}

.btn-action {
  flex: 1;
  padding: 10px 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--ease);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-action:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════════════════
   AD SLOT
══════════════════════════════════════════════════════════ */
.ad-slot {
  min-height: 90px;
  margin: 28px 0;
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ══════════════════════════════════════════════════════════
   KEY NUMBER HIGHLIGHT
══════════════════════════════════════════════════════════ */
.key-num {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 1.02em;
  word-break: break-all;
}

/* ══════════════════════════════════════════════════════════
   CONTENT SECTIONS
══════════════════════════════════════════════════════════ */
.content-section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
  letter-spacing: -.3px;
  word-break: break-word;
}

.section-header p {
  font-size: .92rem;
  color: var(--gray-500);
  max-width: 480px;
  margin: 0 auto;
}

.section-intro {
  font-size: .935rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.section-intro:last-of-type {
  margin-bottom: 24px;
}

/* ── HOOK BLOCK ───────────────────────────────────────────── */
.hook-block {
  max-width: 760px;
  margin: 0 auto;
}

.hook-eyebrow {
  display: inline-block;
  background: var(--red-light);
  color: #dc2626;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid #fecaca;
}

.hook-block h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  letter-spacing: -.3px;
  margin-bottom: 16px;
  word-break: break-word;
}

.hook-lead {
  font-size: .975rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
}

.hook-callout {
  margin: 28px 0;
  border-radius: var(--r-lg);
  /* Clip inner content on small screens */
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hook-callout-inner {
  background: linear-gradient(135deg, #1e40af 0%, var(--blue) 100%);
  padding: 24px 20px;
  color: var(--white);
  /* Prevent overflow */
  overflow: hidden;
}

.hook-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hook-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Allow shrinking on mobile */
  min-width: 100px;
  flex: 1;
  max-width: 180px;
}

.hook-stat-num {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, .5);
  letter-spacing: -1px;
  margin-bottom: 6px;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, .35);
  /* Never overflow card */
  word-break: break-all;
}

.hook-stat--real .hook-stat-num {
  color: var(--white);
  text-decoration: none;
}

.hook-stat-label {
  font-size: .8rem;
  font-weight: 600;
  opacity: .9;
  margin-bottom: 3px;
}

.hook-stat-note {
  font-size: .7rem;
  opacity: .65;
}

.hook-vs {
  font-size: 1rem;
  font-weight: 800;
  opacity: .55;
  flex-shrink: 0;
}

/* ━━━ FIX: hook-gap-note visibility ━━━
   Previously had opacity:.9 which on a dark gradient
   background made it appear washed out.
   We now use full white with a subtle background for
   high contrast, and ensure it wraps properly.
*/
.hook-gap-note {
  text-align: center;
  font-size: .9rem;
  /* Full white for maximum contrast on blue background */
  color: var(--white);
  opacity: 1;
  margin: 0;
  line-height: 1.65;
  /* Allow wrapping — no overflow on narrow screens */
  word-break: break-word;
  /* Subtle highlight so it stands out from the gradient */
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-sm);
  padding: 10px 16px;
}

.hook-gap-note strong {
  color: #fbbf24;
  font-weight: 800;
}

.hook-block p {
  color: var(--gray-600);
  font-size: .935rem;
  line-height: 1.85;
  margin-bottom: 14px;
}

/* ── ADJUSTED QUICK BOX ───────────────────────────────────── */
.adj-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.adj-quick-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.aq-label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
  word-break: break-word;
}

.aq-num {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.5px;
  margin-bottom: 3px;
  word-break: break-all;
}

.aq-note {
  font-size: .7rem;
  color: var(--gray-400);
}

.aq-card--green .aq-num {
  color: var(--green-dark);
}

.aq-card--amber .aq-num {
  color: var(--amber-dark);
}

/* ── ADJUSTED WALKTHROUGH ─────────────────────────────────── */
.adjusted-walkthrough {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.walkthrough-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  /* Prevent overflow */
  overflow: hidden;
}

.ws-final {
  border-color: var(--green);
  background: var(--green-light);
}

.ws-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--blue);
  color: var(--white);
  font-size: .88rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-final .ws-num {
  background: var(--green-dark);
}

.ws-body {
  flex: 1;
  min-width: 0;
}

.ws-body h3 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.ws-body p {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 12px;
  word-break: break-word;
}

.ws-body p:last-child {
  margin-bottom: 0;
}

.ws-formula {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  padding: 10px 13px;
  border-radius: var(--r-sm);
  font-size: .845rem;
  font-weight: 500;
  color: var(--blue-dark);
  font-family: 'Courier New', monospace;
  word-break: break-word;
  overflow-wrap: break-word;
}

.ws-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ws-ex {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-size: .79rem;
  color: var(--gray-700);
  font-weight: 500;
  white-space: nowrap;
}

.ws-result {
  background: var(--white);
  border: 1px solid #6ee7b7;
  border-radius: var(--r-md);
  overflow: hidden;
}

.ws-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: .845rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  gap: 10px;
  flex-wrap: wrap;
}

.ws-result-row:last-child {
  border-bottom: none;
}

.ws-result-total {
  background: var(--green-light);
  font-weight: 700;
  font-size: .93rem;
  color: var(--green-dark);
}

/* ── EARN STRIP ───────────────────────────────────────────── */
.earn-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.earn-strip-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 13px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.es-salary {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 3px;
}

.es-gross {
  font-size: .75rem;
  color: var(--gray-400);
  margin-bottom: 6px;
  word-break: break-word;
}

.es-real {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.3px;
  word-break: break-all;
}

.es-note {
  font-size: .7rem;
  color: var(--gray-400);
  margin-top: 3px;
}

/* ── GAP VISUAL BARS ──────────────────────────────────────── */
.gap-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.gap-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gap-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  min-width: 180px;
  flex-shrink: 0;
  word-break: break-word;
}

.gap-bar-track {
  flex: 1;
  background: var(--gray-100);
  border-radius: 999px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  /* Allow track to shrink on mobile */
  min-width: 0;
}

.gap-bar {
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  transition: width .6s ease;
  /* Clip text if bar is too short */
  overflow: hidden;
}

.gap-bar--full {
  background: var(--blue);
}

.gap-bar--aca {
  background: #3b82f6;
}

.gap-bar--mid {
  background: var(--green);
}

.gap-bar--part {
  background: var(--amber);
}

.gap-bar--light {
  background: var(--gray-400);
}

/* ── COMPACT COMPARE CARDS ────────────────────────────────── */
.compact-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.cc-card {
  border-radius: var(--r-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.cc-head {
  padding: 11px 14px;
  font-size: .82rem;
  font-weight: 700;
}

.cc-head--blue {
  background: var(--blue);
  color: var(--white);
}

.cc-head--green {
  background: var(--green-dark);
  color: var(--white);
}

.cc-body {
  padding: 12px 14px;
  background: var(--white);
}

.cc-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cc-body li {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  gap: 8px;
  flex-wrap: wrap;
}

.cc-body li:last-child {
  border-bottom: none;
}

.cc-body li span:last-child {
  font-weight: 700;
  color: var(--gray-900);
  text-align: right;
}

.cc-body li .ck-yes {
  color: var(--green-dark);
}

.cc-body li .ck-no {
  color: var(--red);
}

/* ── FTVP INSIGHT ─────────────────────────────────────────── */
.ftvp-insight {
  background: var(--amber-light);
  border: 1px solid #fde68a;
  border-radius: var(--r-lg);
  padding: 20px 22px;
}

.ftvp-insight h3 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 10px;
}

.ftvp-insight p {
  font-size: .875rem;
  color: #78350f;
  line-height: 1.8;
  margin-bottom: 10px;
  word-break: break-word;
}

.ftvp-insight p:last-child {
  margin-bottom: 0;
}

.diff-neg {
  color: #dc2626;
  font-weight: 600;
  font-size: .845rem;
}

/* ── TABLE ────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  border: 1px solid var(--gray-200);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  min-width: 520px;
}

.data-table thead tr {
  background: var(--blue);
  color: var(--white);
}

.data-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.data-table tbody tr:hover td {
  background: var(--gray-50);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.row-highlight td {
  background: var(--blue-light);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.badge-yes {
  background: var(--green-light);
  color: var(--green-dark);
}

.badge-no {
  background: var(--gray-100);
  color: var(--gray-500);
}

.table-note {
  font-size: .75rem;
  color: var(--gray-400);
  font-style: italic;
  margin-top: 8px;
  display: block;
}

/* ── CTA INLINE ───────────────────────────────────────────── */
.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-top: 22px;
}

.cta-inline p {
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-700);
  margin: 0;
}

.btn-cta-inline {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: .855rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  transition: background var(--ease), transform var(--ease);
  white-space: nowrap;
}

.btn-cta-inline:hover {
  background: var(--blue-dark);
  text-decoration: none;
  color: var(--white);
  transform: translateY(-1px);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-900);
  transition: background var(--ease);
  word-break: break-word;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question[aria-expanded="true"] {
  background: var(--blue-light);
  color: var(--blue);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform .25s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.faq-answer.open {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 16px 16px;
  font-size: .875rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin: 0;
  word-break: break-word;
}

.faq-answer-inner strong {
  color: var(--gray-900);
}

.faq-answer-inner ul {
  list-style: disc;
  padding: 0 16px 14px 32px;
  margin: 0;
}

.faq-answer-inner li {
  font-size: .875rem;
  color: var(--gray-700);
  margin-bottom: 5px;
  line-height: 1.7;
}

/* ── RESOURCES GRID ───────────────────────────────────────── */
.resources-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
  transition: all var(--ease);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.resource-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateX(3px);
}

.resource-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.resource-body {
  flex: 1;
  min-width: 0;
}

.resource-body h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
  word-break: break-word;
}

.resource-body p {
  font-size: .79rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

.resource-arrow {
  font-size: 1rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform var(--ease);
}

.resource-card:hover .resource-arrow {
  transform: translateX(4px);
}

/* ── STEPS GRID ───────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 34px;
  height: 34px;
  background: var(--blue);
  color: var(--white);
  font-size: .85rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
}

.step-card h3 {
  font-size: .93rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 7px;
}

.step-card p {
  font-size: .84rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── FORMULA BLOCK ────────────────────────────────────────── */
.formula-block {
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.formula-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 14px;
}

.formula-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.formula-line:last-child {
  margin-bottom: 0;
}

.formula-part {
  font-size: .875rem;
  font-weight: 700;
  color: var(--gray-900);
  min-width: 140px;
}

.formula-eq {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue);
}

.formula-calc {
  font-size: .83rem;
  color: var(--gray-700);
  font-family: 'Courier New', monospace;
  background: var(--white);
  padding: 3px 9px;
  border-radius: var(--r-sm);
  border: 1px solid var(--blue-mid);
  word-break: break-word;
}

/* ── EXAMPLES GRID ────────────────────────────────────────── */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.example-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}

.example-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.example-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
}

.example-fulltime {
  background: linear-gradient(135deg, var(--blue-light), #dbeafe);
}

.example-parttime {
  background: linear-gradient(135deg, var(--green-light), #d1fae5);
}

.example-freelancer {
  background: linear-gradient(135deg, var(--amber-light), #fef3c7);
}

.example-header h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-900);
}

.example-icon {
  font-size: 1.25rem;
}

.example-body {
  padding: 14px 16px 16px;
}

.example-list {
  margin-bottom: 12px;
}

.example-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .79rem;
  gap: 8px;
}

.example-list li:last-child {
  border-bottom: none;
}

.example-list li span {
  color: var(--gray-500);
}

.example-result {
  background: var(--gray-50);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 11px;
  font-size: .79rem;
  line-height: 1.85;
}

.ex-gross {
  color: var(--gray-500);
}

.ex-adjusted {
  color: var(--green-dark);
}

.ex-earnings {
  color: var(--blue-dark);
}

.btn-try {
  width: 100%;
  padding: 8px;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: .79rem;
  font-weight: 600;
  color: var(--blue);
  transition: all var(--ease);
}

.btn-try:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ── BREAKDOWN CARDS ──────────────────────────────────────── */
.breakdown-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.bk-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
}

.bk-card--blue {
  border-top-color: var(--blue);
}

.bk-card--green {
  border-top-color: var(--green);
}

.bk-card--amber {
  border-top-color: var(--amber);
}

.bk-icon {
  font-size: 1.5rem;
  margin-bottom: 9px;
}

.bk-card h3 {
  font-size: .93rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.bk-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 9px;
  letter-spacing: -.4px;
  word-break: break-all;
}

.bk-card--green .bk-number {
  color: var(--green-dark);
}

.bk-card--amber .bk-number {
  color: var(--amber-dark);
}

.bk-card p {
  font-size: .82rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin: 0;
}

.breakdown-table-wrap h3 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 13px;
}

/* ── COMPARE GRID ─────────────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.compare-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.compare-fulltime {
  border-top: 4px solid var(--blue);
}

.compare-parttime {
  border-top: 4px solid var(--green);
}

.compare-badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue-dark);
}

.compare-parttime .compare-badge {
  background: var(--green-light);
  color: var(--green-dark);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.compare-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .84rem;
  gap: 10px;
  flex-wrap: wrap;
}

.compare-list li:last-child {
  border-bottom: none;
}

.ck-label {
  color: var(--gray-500);
  flex-shrink: 0;
}

.ck-val {
  font-weight: 600;
  color: var(--gray-900);
  text-align: right;
}

.ck-yes {
  color: var(--green-dark);
}

.ck-no {
  color: var(--red);
}

.compare-link {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  padding: 7px 13px;
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--r-sm);
  transition: all var(--ease);
}

.compare-link:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  border-color: var(--blue);
}

.compare-note {
  background: var(--amber-light);
  border: 1px solid #fde68a;
  border-radius: var(--r-md);
  padding: 15px 18px;
  font-size: .875rem;
  color: var(--amber-dark);
  line-height: 1.7;
}

/* ── INLINE FORMULA ───────────────────────────────────────── */
.inline-formula {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: .9rem;
  color: var(--blue-dark);
  font-weight: 500;
  word-break: break-word;
}

/* ── STEP CARD WIDE ───────────────────────────────────────── */
.step-card--wide {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  margin-top: 18px;
  overflow: hidden;
}

.step-card--wide .step-num {
  flex-shrink: 0;
  margin-bottom: 0;
}

.step-card--wide h3 {
  font-size: .93rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 7px;
}

.step-card--wide p {
  font-size: .84rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin: 0;
}

/* ── ANSWER BLOCK ─────────────────────────────────────────── */
.answer-block {
  max-width: 720px;
  margin: 0 auto;
}

.answer-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-light) 0%, #dbeafe 100%);
  border: 1px solid var(--blue-mid);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 18px;
  overflow: hidden;
}

.answer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 130px;
}

.answer-number {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 6px;
  word-break: break-all;
}

.answer-number--green {
  color: var(--green-dark);
}

.answer-desc {
  font-size: .8rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.answer-desc small {
  font-size: .73rem;
  color: var(--gray-400);
}

.answer-divider {
  width: 1px;
  height: 55px;
  background: var(--blue-mid);
  flex-shrink: 0;
}

.answer-block p {
  color: var(--gray-600);
  margin-bottom: 13px;
  font-size: .93rem;
  line-height: 1.85;
}

/* ── ARTICLE PAGES ────────────────────────────────────────── */
.article-hero {
  background: linear-gradient(135deg, #1e40af 0%, var(--blue) 100%);
  color: var(--white);
  padding: 40px 0 34px;
  text-align: center;
  overflow: hidden;
}

.article-hero h1 {
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -.3px;
  word-break: break-word;
}

.hero-meta {
  font-size: .82rem;
  opacity: .75;
}

.article-body {
  padding: 52px 0;
}

.article-body .container {
  max-width: 800px;
}

.article-body h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--gray-900);
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
  word-break: break-word;
}

.article-body h2:first-of-type {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 22px 0 8px;
}

.article-body p {
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.85;
  font-size: .925rem;
  word-break: break-word;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  color: var(--gray-600);
  margin-bottom: 7px;
  line-height: 1.75;
  font-size: .925rem;
}

.article-body strong {
  color: var(--gray-900);
}

.article-body .formula-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  margin: 16px 0;
  font-size: .9rem;
  color: var(--blue-dark);
  font-weight: 600;
  word-break: break-word;
}

.article-body .ad-slot {
  margin: 26px 0;
}

/* ── CTA BOX ──────────────────────────────────────────────── */
.cta-box {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  text-align: center;
  margin: 34px 0;
  overflow: hidden;
}

.cta-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.cta-box p {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 15px;
  font-size: .88rem;
}

.btn-cta {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 24px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  text-decoration: none;
  color: var(--blue-dark);
}

/* ── STATIC PAGES ─────────────────────────────────────────── */
.static-hero {
  background: linear-gradient(135deg, #1e40af 0%, var(--blue) 100%);
  color: var(--white);
  padding: 34px 0 30px;
  text-align: center;
  overflow: hidden;
}

.static-hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 6px;
  word-break: break-word;
}

.static-hero p {
  font-size: .85rem;
  opacity: .75;
}

.static-page {
  padding: 48px 0 60px;
}

.static-page .container {
  max-width: 780px;
}

.static-page h1 {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
  word-break: break-word;
}

.page-meta {
  font-size: .8rem;
  color: var(--gray-400);
  margin-bottom: 28px;
  display: block;
}

.static-page h2 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-200);
}

.static-page h3 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 18px 0 7px;
}

.static-page p {
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.85;
  font-size: .915rem;
  word-break: break-word;
}

.static-page ul,
.static-page ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.static-page ul {
  list-style: disc;
}

.static-page ol {
  list-style: decimal;
}

.static-page li {
  color: var(--gray-600);
  margin-bottom: 7px;
  line-height: 1.75;
  font-size: .915rem;
}

.static-page strong {
  color: var(--gray-900);
}

.static-page a {
  color: var(--blue);
}

.static-page a:hover {
  color: var(--blue-dark);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0 26px;
}

.about-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 18px;
  text-align: center;
}

.about-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 9px;
}

.about-card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 5px;
}

.about-card p {
  font-size: .8rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.6;
}

/* Contact form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-400);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.btn-submit {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 11px 26px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, .6);
  padding: 50px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: .82rem;
  line-height: 1.7;
  max-width: 230px;
}

.footer-nav h4 {
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

.footer-nav li {
  margin-bottom: 9px;
}

.footer-nav a {
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
  transition: color var(--ease);
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-bottom p {
  font-size: .75rem;
  color: rgba(255, 255, 255, .3);
}

.footer-disclaimer {
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--gray-900);
  color: var(--white);
  font-size: .855rem;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════════════════ */
@media (max-width: 1020px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .breakdown-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .outputs-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .primary-result-card {
    grid-column: span 2;
  }

  .breakdown-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .earnings-panel {
    grid-column: span 2;
  }

  .action-row {
    grid-column: span 2;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — LARGE MOBILE
══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: 8px 16px 14px;
    z-index: 899;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 9px 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-section {
    padding: 28px 0 24px;
  }

  .content-section {
    padding: 44px 0;
  }

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

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

  .breakdown-cards {
    grid-template-columns: 1fr;
  }

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

  .outputs-panel {
    display: flex;
    flex-direction: column;
  }

  .breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .primary-result-value {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .adjusted-value {
    font-size: clamp(1.05rem, 4vw, 1.35rem);
  }

  .article-body {
    padding: 36px 0;
  }

  .static-page {
    padding: 32px 0 44px;
  }

  .cta-inline {
    flex-direction: column;
    text-align: center;
  }

  .earnings-cta {
    flex-direction: column;
    text-align: center;
  }

  .gap-label {
    min-width: 130px;
    font-size: .75rem;
  }

  /* hook-gap-note on mobile: ensure it wraps, never overflows */
  .hook-gap-note {
    font-size: .85rem;
    padding: 8px 12px;
  }

  .instant-answer-inner {
    padding: 10px 16px;
    gap: 8px;
  }

  .ia-text {
    font-size: .83rem;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .primary-result-value {
    font-size: clamp(1.4rem, 9vw, 2rem);
    letter-spacing: -.5px;
  }

  .adjusted-value {
    font-size: clamp(.95rem, 5.5vw, 1.2rem);
  }

  .adjusted-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .mini-value {
    font-size: clamp(1rem, 4.5vw, 1.3rem);
  }

  .annual-amount {
    font-size: clamp(.9rem, 3.5vw, 1.05rem);
  }

  .breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .inputs-card {
    padding: 16px;
  }

  .primary-result-card {
    padding: 16px;
  }

  .earnings-panel {
    padding: 14px 16px;
  }

  .hero-text h1 {
    font-size: 1.4rem;
  }

  .hero-sub {
    font-size: .85rem;
  }

  .hero-badge {
    font-size: .68rem;
    padding: 4px 10px;
  }

  .stat-pill {
    font-size: .73rem;
    padding: 4px 9px;
  }

  .hook-callout-inner {
    padding: 18px 14px;
  }

  .hook-stat-num {
    font-size: 1.7rem;
  }

  .hook-stat-row {
    gap: 12px;
  }

  /* Ensure gap note is never clipped */
  .hook-gap-note {
    font-size: .8rem;
    padding: 8px 10px;
  }

  .adj-quick {
    grid-template-columns: 1fr 1fr;
  }

  .adj-quick-card:last-child {
    grid-column: span 2;
  }

  .aq-num {
    font-size: 1.2rem;
  }

  .compact-compare {
    grid-template-columns: 1fr;
  }

  .earn-strip {
    grid-template-columns: 1fr;
  }

  .gap-bar-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .gap-label {
    min-width: unset;
    width: 100%;
  }

  .gap-bar-track {
    width: 100%;
  }

  .walkthrough-step {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .step-card--wide {
    flex-direction: column;
    gap: 10px;
  }

  .ws-result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-disclaimer {
    display: none;
  }

  .contact-form {
    padding: 18px;
  }

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

  .table-wrap {
    border-radius: var(--r-sm);
  }

  .cta-box {
    padding: 18px;
  }

  .cta-box h3 {
    font-size: .98rem;
  }

  .ia-icon {
    display: none;
  }

  .ia-text {
    font-size: .8rem;
  }

  .ia-cta {
    font-size: .75rem;
    padding: 6px 12px;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — VERY SMALL
══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .primary-result-value {
    font-size: 1.3rem;
  }

  .adjusted-value {
    font-size: .95rem;
  }

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

  .preset-strip {
    gap: 5px;
  }

  .btn-preset {
    padding: 6px 10px;
    font-size: .77rem;
  }

  .hook-gap-note {
    font-size: .76rem;
  }
}

/* ══════════════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════════ */
@media print {

  .site-header,
  .site-footer,
  .ad-slot,
  .action-row,
  .btn-preset,
  .btn-try,
  .preset-strip,
  .hero-stats,
  .instant-answer {
    display: none !important;
  }

  .calc-grid {
    grid-template-columns: 1fr !important;
  }

  .outputs-panel {
    display: block !important;
  }

  body {
    background: white;
    color: black;
    overflow-x: hidden;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .primary-result-card {
    background: #1d4ed8 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}