/* ============================================
   SELLSENSE — styles.css
   Premium Freelance Rate Benchmarking Tool
   ============================================ */

/* --- TOKENS --- */
:root {
  --ink:         #0D1117;
  --ink-2:       #3D4450;
  --ink-3:       #6B7280;
  --ink-4:       #9CA3AF;
  --surface:     #FFFFFF;
  --surface-2:   #F7F8FA;
  --surface-3:   #F0F1F4;
  --border:      #E4E6EB;
  --border-2:    #D1D5DB;

  --brand:       #1B4FFF;
  --brand-dark:  #1340D6;
  --brand-light: #EEF2FF;

  --success:     #059669;
  --success-bg:  #ECFDF5;
  --warn:        #D97706;
  --warn-bg:     #FFFBEB;
  --neutral:     #4B5563;
  --neutral-bg:  #F3F4F6;

  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.09), 0 4px 8px rgba(0,0,0,.05);

  --max-w:       1100px;
  --gutter:      24px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
input, select, button { font-family: inherit; }
a { color: var(--brand); text-decoration: none; }

/* --- UTILITIES --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.hidden { display: none !important; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 40px;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  transition: background .18s, transform .12s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(27,79,255,.25);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 4px 16px rgba(27,79,255,.35); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled {
  background: var(--border-2);
  color: var(--ink-4);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--border-2);
  color: var(--ink-2);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* --- HEADER --- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--brand);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1;
}
.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.02em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s;
}
.header-nav a:hover { color: var(--ink); }

/* --- HERO --- */
#hero {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(27,79,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid rgba(27,79,255,.15);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--brand);
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--ink);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn-hero { padding: 16px 36px; font-size: 16px; border-radius: 12px; }
.hero-note { font-size: 13px; color: var(--ink-3); }

/* --- HOW IT WORKS --- */
.section-how {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--border-2);
  line-height: 1;
  margin-bottom: 20px;
}
.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}
.step-card p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* --- CALCULATOR --- */
#calculator {
  padding: 80px 0 120px;
  background: var(--surface);
}
.calc-container { max-width: 680px; }
.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 4px;
  width: 25%;
  transition: width .4s ease;
}
.progress-label { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

.calc-step { display: none; }
.calc-step.active { display: block; }

.step-header { margin-bottom: 36px; }
.step-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.step-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}
.step-desc { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* --- NICHE GRID --- */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.niche-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.niche-card:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(27,79,255,.08);
}
.niche-card.selected {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(27,79,255,.12);
}
.niche-icon { font-size: 22px; color: var(--brand); }
.niche-name { font-size: 14px; font-weight: 600; color: var(--ink); text-align: center; }

/* --- FIELDS --- */
.fields-stack { display: flex; flex-direction: column; gap: 28px; margin-bottom: 36px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  background: var(--surface-3);
  border-radius: 4px;
  padding: 2px 8px;
}
.field-currency {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}
.field-hint { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .18s, box-shadow .18s;
}
.input-wrapper:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27,79,255,.1);
}
.input-prefix {
  padding: 0 14px;
  background: var(--surface-2);
  border-right: 1.5px solid var(--border-2);
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 500;
  height: 52px;
  display: flex;
  align-items: center;
}
.input-suffix {
  padding: 0 14px;
  background: var(--surface-2);
  border-left: 1.5px solid var(--border-2);
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 500;
  height: 52px;
  display: flex;
  align-items: center;
}
.field-input {
  flex: 1;
  height: 52px;
  padding: 0 16px;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}
.input-rate .input-prefix-lg { font-size: 20px; }
.field-input-lg { font-size: 24px; font-weight: 600; }

/* SLIDERS */
.slider-wrapper { display: flex; flex-direction: column; gap: 12px; }
.field-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-3);
  outline: none;
  cursor: pointer;
}
.field-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 2px 6px rgba(27,79,255,.3);
  cursor: pointer;
  transition: transform .12s;
}
.field-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.slider-value span { color: var(--brand); }

/* SELECT */
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  content: '↓';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 14px;
  pointer-events: none;
}
.field-select {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 16px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .18s;
}
.field-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,79,255,.1); }

/* CHOICE BUTTONS */
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-btn {
  padding: 10px 18px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
}
.choice-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.choice-btn.selected {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
  font-weight: 600;
}

/* STEP NAV */
.step-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.step-nav .btn-primary { margin-left: auto; }

/* --- RESULTS --- */
.results-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 80px 0;
}
.loading-ring {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 15px; color: var(--ink-3); }

.results-header { margin-bottom: 32px; }
.results-title {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 8px;
}
.results-meta { font-size: 14px; color: var(--ink-3); }

/* RESULT CARDS */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  animation: cardIn .4s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-card-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}

/* Market Range */
.market-range-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.range-end { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; }
.range-end-right { align-items: flex-end; }
.range-end-label { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.range-end-val { font-family: var(--font-serif); font-size: 22px; color: var(--ink); }
.range-track-wrap { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.range-track {
  position: relative;
  height: 8px;
  background: var(--surface-3);
  border-radius: 8px;
  overflow: visible;
}
.range-track-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #BFDBFE 0%, var(--brand) 100%);
  border-radius: 8px;
}
.range-median-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  background: var(--brand);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.range-you-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.you-dot {
  width: 14px; height: 14px;
  background: var(--success);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.you-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--success);
  white-space: nowrap;
  margin-top: 6px;
}
.range-legend {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-3);
}
.range-legend strong { color: var(--ink); }

/* Recommended */
.result-card-rec { background: var(--brand-light); border-color: rgba(27,79,255,.15); }
.rec-row { display: flex; align-items: baseline; gap: 24px; }
.rec-main { display: flex; align-items: baseline; gap: 4px; }
.rec-rate {
  font-family: var(--font-serif);
  font-size: 52px;
  color: var(--brand);
  line-height: 1;
  transition: all .4s;
}
.rec-unit { font-size: 20px; color: var(--brand); font-weight: 300; }
.rec-note { font-size: 14px; color: var(--ink-2); max-width: 280px; line-height: 1.5; }

/* Compare */
.compare-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.compare-col { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.compare-sep {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.compare-label { font-size: 12px; color: var(--ink-3); }
.compare-val {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--ink);
}
.compare-val-market { color: var(--brand); }
.compare-badge-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.compare-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge-below { background: var(--warn-bg); color: var(--warn); }
.badge-within { background: var(--success-bg); color: var(--success); }
.badge-above { background: var(--success-bg); color: var(--success); }
.compare-diff { font-size: 14px; color: var(--ink-2); }
.compare-context { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* Income */
.income-cols { display: flex; gap: 0; }
.income-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 20px;
  border-right: 1px solid var(--border);
}
.income-col:first-child { padding-left: 0; }
.income-col:last-child { border-right: none; }
.income-label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.income-val { font-family: var(--font-serif); font-size: 24px; color: var(--ink); }
.income-goal-diff { color: var(--success); }

/* Insight */
.insight-block {
  display: flex;
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.insight-icon { font-size: 20px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.insight-text { font-size: 15px; color: var(--ink-2); line-height: 1.7; }

/* CTA Block */
.results-cta-block {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  margin-bottom: 16px;
}
.cta-heading {
  font-family: var(--font-serif);
  font-size: 26px;
  color: white;
  margin-bottom: 12px;
}
.cta-body {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 28px;
}
.btn-cta-main {
  background: white;
  color: var(--ink);
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 12px;
  box-shadow: none;
}
.btn-cta-main:hover { background: var(--surface-2); }
.cta-sub { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 14px; }

/* Affiliate */
.affiliate-wrap { margin-bottom: 32px; }
.affiliate-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.affiliate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.affiliate-logo {
  width: 48px; height: 48px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.affiliate-info { flex: 1; }
.affiliate-name { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.affiliate-desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.affiliate-why {
  font-size: 12px;
  color: var(--brand);
  font-weight: 500;
  margin-top: 6px;
}
.btn-affiliate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border-2);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-affiliate:hover { border-color: var(--ink-2); background: var(--surface-2); }

.recalc-row { text-align: center; padding: 8px 0 24px; }

/* --- TESTIMONIALS --- */
.section-testimonials {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}
.testimonials-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.testimonials-scroll::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex-shrink: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-quote { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { font-size: 14px; font-weight: 600; color: var(--ink); }
.testimonial-role { font-size: 13px; color: var(--ink-3); }

/* --- FAQ --- */
.section-faq { padding: 80px 0; }
.faq-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
.faq-left .section-title { margin-bottom: 16px; }
.faq-contact { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.faq-contact a { color: var(--brand); }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color .15s;
}
.faq-question:hover { color: var(--brand); }
.faq-icon { font-size: 18px; color: var(--ink-3); flex-shrink: 0; line-height: 1; }
.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* --- FOOTER --- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-legal { font-size: 13px; color: var(--ink-3); max-width: 400px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--ink-3); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--ink); }

/* --- STICKY BAR --- */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(13,17,23,.95);
  backdrop-filter: blur(8px);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sticky-text { font-size: 14px; color: rgba(255,255,255,.7); }
.btn-sticky {
  background: white;
  color: var(--ink);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}
.btn-sticky:hover { background: var(--surface-2); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root { --gutter: 16px; }

  #hero { padding: 100px 0 70px; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
  .hero-stats { gap: 0; }
  .stat { padding: 0 16px; }
  .stat-num { font-size: 22px; }
  .header-nav a { display: none; }

  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-how { padding: 60px 0; }

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

  .market-range-row { flex-wrap: wrap; }
  .range-end { min-width: auto; }
  .income-cols { flex-direction: column; gap: 16px; }
  .income-col { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 16px; }
  .income-col:last-child { border-bottom: none; padding-bottom: 0; }

  .faq-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .results-cta-block { padding: 32px 24px; }
  .affiliate-card { flex-direction: column; gap: 16px; }

  .result-card { padding: 20px; }
  .rec-rate { font-size: 40px; }
  .rec-row { flex-direction: column; gap: 12px; }

  .sticky-bar { flex-direction: column; text-align: center; gap: 12px; }
  .btn-sticky { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .niche-grid { grid-template-columns: 1fr 1fr; }
  .choice-row { gap: 6px; }
  .choice-btn { padding: 8px 12px; font-size: 13px; }
}

/* ── AFFILIATE BLOCK (updated layout) ─────────────────────────────────── */
.aff-block-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.aff-logo {
  font-size: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}
.aff-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.aff-copy {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.aff-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.aff-tool-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.aff-tool-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.aff-tool-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .aff-tool-row { flex-direction: column; align-items: flex-start; }
  .btn-affiliate { width: 100%; justify-content: center; text-align: center; }
}

.aff-coming-soon {
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
  white-space: nowrap;
}

/* ── INCOME GOAL NOTE ──────────────────────────────────────────────────── */
.income-goal-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
}
.income-goal-above {
  background: var(--success-bg);
  color: var(--success);
}
.income-goal-below {
  background: var(--warn-bg);
  color: var(--warn);
}

/* ── HOSTINGER BRANDED AFFILIATE BLOCK ──────────────────────────────────── */
.aff-hostinger-card {
  background: linear-gradient(135deg, #f8f7ff 0%, #f0eeff 100%);
  border: 1px solid #d4c8f5;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.aff-hostinger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.aff-hostinger-logo svg {
  display: block;
  height: 22px;
  width: auto;
}
.aff-hostinger-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #3F0097;
  background: #e8dfff;
  border: 1px solid #c4aff5;
  border-radius: 100px;
  padding: 3px 10px;
}
.aff-hostinger-headline {
  font-size: 15px;
  font-weight: 700;
  color: #1B0060;
  line-height: 1.45;
  margin-bottom: 8px;
}
.aff-hostinger-sub {
  font-size: 14px;
  color: #4a3880;
  line-height: 1.6;
  margin-bottom: 20px;
}
.aff-hostinger-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.aff-hostinger-price {
  font-size: 14px;
  font-weight: 600;
  color: #3F0097;
}
.btn-hostinger {
  background: #3F0097 !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(63,0,151,.25) !important;
}
.btn-hostinger:hover {
  background: #2d006e !important;
  box-shadow: 0 4px 14px rgba(63,0,151,.35) !important;
}

@media (max-width: 768px) {
  .aff-hostinger-footer { flex-direction: column; align-items: flex-start; }
  .btn-hostinger { width: 100%; justify-content: center; text-align: center; }
}
