/* ============================================
   CGPA Naija — Improved Style Sheet
   style.css
   ============================================ */

/* ---------- Google Fonts fallback (loaded in HTML) ---------- */
/* Fraunces = display / headings  |  Instrument Sans = body */

/* ============================================================
   PERFORMANCE — font-display swap + base render hints
   ============================================================ */
/* Ensure system fonts show immediately while custom fonts load */
:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Instrument Sans', system-ui, -apple-system, sans-serif;
}

/* Prevent invisible text during font load */
.logo-text, .hero-headline, .section-title, .article-body h2,
.article-body h3, .result-gpa-value, .cgpa-final-value {
  font-display: swap;
}

/* ============================================================
   CSS Variables ---------- */
:root {
  /* Brand */
  --green-900: #0b3318;
  --green-800: #0f4220;
  --green-700: #155c2c;
  --green-600: #1a7036;
  --green-400: #2ea34f;
  --green-100: #d6f0de;
  --green-50:  #edf8f1;

  --gold-500:  #e8a020;
  --gold-300:  #f5c560;
  --gold-100:  #fef3d8;

  --blue-100:  #daeaff;

  --neutral-900: #111917;
  --neutral-700: #344038;
  --neutral-500: #6b7c71;
  --neutral-300: #c4cec7;
  --neutral-100: #f2f5f3;
  --neutral-50:  #f8faf9;
  --white:       #ffffff;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Instrument Sans', system-ui, sans-serif;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(11,51,24,.06);
  --shadow-sm: 0 2px 10px rgba(11,51,24,.08);
  --shadow-md: 0 6px 24px rgba(11,51,24,.12);
  --shadow-lg: 0 16px 48px rgba(11,51,24,.14);

  /* Transitions */
  --ease: 0.2s ease;

  /* Layout */
  --max-w: 1100px;
  --section-gap: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--neutral-900);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-gap) 0; }
.spacer { flex: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */
/* ============================================================
   NAVBAR — fully responsive, hamburger + overlay
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #0b3318;
  background: var(--green-900);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: relative;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 10;
}
/* Both old (logo-icon) and new (logo-mark) class names work */
.logo-mark,
.logo-icon {
  width: 34px;
  height: 34px;
  background: #e8a020;
  background: var(--gold-500);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', Georgia, serif;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: #0b3318;
  color: var(--green-900);
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
}
.logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  color: var(--white);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo-text span { color: #e8a020; color: var(--gold-500); }

/* ── Desktop Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.nav-links li a:hover { background: rgba(255,255,255,.10); color: #ffffff; }
.nav-links li a.active {
  background: rgba(255,255,255,.10);
  color: #ffffff;
  position: relative;
}
/* Active underline dot */
.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e8a020;
  background: var(--gold-500);
}

/* ── CTA button in nav ── */
.nav-links li a.nav-cta {
  background: #e8a020;
  background: var(--gold-500);
  color: #0b3318;
  color: var(--green-900);
  font-weight: 700;
  padding: 7px 18px;
  margin-left: 6px;
}
.nav-links li a.nav-cta:hover { background: #f5c560; background: var(--gold-300); color: #0b3318; }
.nav-links li a.nav-cta::after { display: none; }

/* ── Hamburger button ── */
.hamburger {
  display: none;           /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 210;
  border-radius: var(--r-sm);
  transition: background .2s;
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(255,255,255,.08); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, width .25s ease;
  transform-origin: center;
}
/* Animated X when open */
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile overlay (dim backdrop) ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 190;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-overlay.visible { display: block; }
.nav-overlay.active  { opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--green-900);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle dot pattern */
.hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
  position: relative;
}

/* Hero text */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,160,32,.15);
  border: 1px solid rgba(232,160,32,.3);
  color: var(--gold-300);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-500);
  font-weight: 700;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.68);
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Hero action buttons */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-500);
  color: var(--green-900);
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  transition: background var(--ease), transform var(--ease);
}
.btn-hero-primary:hover { background: var(--gold-300); transform: translateY(-1px); }
.btn-hero-primary:active { transform: translateY(0); }

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .95rem;
  transition: border-color var(--ease), background var(--ease);
}
.btn-hero-ghost:hover {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
}

/* Trust badges */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-item { font-size: .82rem; color: rgba(255,255,255,.5); font-weight: 500; }
.trust-sep  { color: rgba(255,255,255,.25); }

/* Grade Scale Card */
.scale-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.scale-card-head {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.scale-card-title {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.scale-tag {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold-500);
  background: rgba(232,160,32,.15);
  border: 1px solid rgba(232,160,32,.25);
  padding: 2px 9px;
  border-radius: 99px;
  letter-spacing: .04em;
}

.scale-rows { padding: 6px 0; }
.scale-row {
  display: grid;
  grid-template-columns: 68px 28px 36px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background var(--ease);
}
.scale-row:last-child { border-bottom: none; }
.scale-row:hover { background: rgba(255,255,255,.04); }

.sr-score { font-size: .78rem; color: rgba(255,255,255,.5); }
.sr-grade {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}
.grade-a { color: #4ade80; }
.grade-b { color: #86efac; }
.grade-c { color: var(--gold-300); }
.grade-d { color: #fb923c; }
.grade-e { color: #f87171; }
.grade-f { color: #ef4444; }

.sr-pts { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.8); text-align: right; }
.sr-label { font-size: .78rem; color: rgba(255,255,255,.45); padding-left: 4px; }

.scale-card-foot {
  padding: 12px 20px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dc-row { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: rgba(255,255,255,.55); }
.dc-pip { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dc-first { background: #4ade80; }
.dc-upper { background: var(--gold-500); }
.dc-lower { background: #60a5fa; }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-600);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 1rem;
  color: var(--neutral-500);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc-section { background: var(--neutral-50); }

.calc-card {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-100);
  overflow: hidden;
}

/* Top bar */
.calc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: linear-gradient(90deg, var(--green-900), var(--green-700));
  gap: 16px;
  flex-wrap: wrap;
}
.calc-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.calc-topbar-sub {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}

/* Semester tabs */
.semester-tabs { display: flex; gap: 6px; }
.tab-btn {
  padding: 7px 16px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  border: none;
  font-size: .85rem;
  font-weight: 600;
  transition: background var(--ease), color var(--ease);
}
.tab-btn.active { background: var(--gold-500); color: var(--green-900); }
.tab-btn:hover:not(.active) { background: rgba(255,255,255,.18); color: var(--white); }

/* Course rows */
.calc-body { padding: 28px 28px 24px; }

.courses-header {
  display: grid;
  grid-template-columns: 1fr 120px 140px 44px;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--neutral-100);
  margin-bottom: 8px;
}
.courses-header span {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--neutral-500);
}

.course-row {
  display: grid;
  grid-template-columns: 1fr 120px 140px 44px;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  animation: rowIn .18s ease;
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--neutral-900);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-control:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(26,112,54,.12);
}
.form-control::placeholder { color: var(--neutral-300); }
select.form-control { cursor: pointer; }

.remove-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff0f0;
  border: none;
  color: #c0392b;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.remove-btn:hover { background: #c0392b; color: var(--white); transform: scale(1.1); }

/* Calculator action row */
.calc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--neutral-100);
  flex-wrap: wrap;
}

.btn-add-course {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1.5px solid var(--green-100);
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 600;
  transition: background var(--ease), border-color var(--ease);
}
.btn-add-course:hover { background: var(--green-100); border-color: var(--green-400); }

.btn-reset {
  padding: 9px 18px;
  background: transparent;
  color: var(--neutral-500);
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 600;
  transition: border-color var(--ease), color var(--ease);
}
.btn-reset:hover { border-color: #c0392b; color: #c0392b; }

.btn-calculate {
  padding: 9px 24px;
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 700;
  transition: background var(--ease), transform var(--ease);
}
.btn-calculate:hover { background: var(--green-900); transform: translateY(-1px); }
.btn-calculate:active { transform: none; }

/* ---- Result Panel ---- */
.result-panel {
  display: none;
  margin-top: 24px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-100);
  animation: fadeUp .3s ease;
}
.result-panel.visible { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.result-banner {
  padding: 36px 24px 28px;
  text-align: center;
  color: var(--white);
}
.result-gpa-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}
.result-gpa-value {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}
.result-gpa-denom { font-size: 1.4rem; opacity: .6; font-weight: 300; }
.result-class-label { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.result-sub { font-size: .82rem; opacity: .65; }

/* Banner colour themes */
.result-first       { background: linear-gradient(135deg, var(--green-900), var(--green-700)); }
.result-second-upper{ background: linear-gradient(135deg, #1e6b35, #2a8f4a); }
.result-second-lower{ background: linear-gradient(135deg, #1a4a9a, #2d6bbf); }
.result-third       { background: linear-gradient(135deg, #7a5000, #b07800); }
.result-pass        { background: linear-gradient(135deg, #922b21, #c0392b); }

.result-stats {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-top: 1px solid var(--neutral-100);
}
.result-stat-item {
  flex: 1;
  padding: 18px 12px;
  text-align: center;
}
.rsi-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1;
  margin-bottom: 4px;
}
.rsi-lbl { font-size: .74rem; color: var(--neutral-500); text-transform: uppercase; letter-spacing: .06em; }
.rsi-divider { width: 1px; background: var(--neutral-100); align-self: stretch; }

.result-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--neutral-50);
  border-top: 1px solid var(--neutral-100);
  flex-wrap: wrap;
}
.result-save-row span { font-size: .88rem; color: var(--neutral-500); }
.btn-save-sem {
  padding: 9px 20px;
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 700;
  transition: background var(--ease);
}
.btn-save-sem:hover { background: var(--green-900); }

/* ============================================================
   CGPA TRACKER
   ============================================================ */
.tracker-section { background: var(--white); }

.tracker-card {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tracker-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--neutral-100);
}
.tracker-topbar-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--neutral-700);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.btn-clear-all {
  padding: 6px 14px;
  background: transparent;
  color: #c0392b;
  border: 1.5px solid rgba(192,57,43,.3);
  border-radius: var(--r-sm);
  font-size: .82rem;
  font-weight: 600;
  transition: background var(--ease), color var(--ease);
}
.btn-clear-all:hover { background: #c0392b; color: var(--white); border-color: #c0392b; }

/* Empty state */
.empty-state { padding: 56px 24px; text-align: center; }
.empty-icon  { font-size: 2.4rem; margin-bottom: 12px; }
.empty-title { font-size: 1rem; font-weight: 600; color: var(--neutral-700); margin-bottom: 6px; }
.empty-sub   { font-size: .88rem; color: var(--neutral-500); line-height: 1.6; }

/* Semester rows */
.semester-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--neutral-50);
  gap: 12px;
}
.semester-item:last-child { border-bottom: none; }
.sem-name { font-weight: 600; font-size: .92rem; color: var(--neutral-900); }
.sem-units { font-size: .82rem; color: var(--neutral-500); }
.sem-gpa {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-700);
}
.btn-danger {
  padding: 5px 12px;
  background: transparent;
  color: #c0392b;
  border: 1.5px solid rgba(192,57,43,.3);
  border-radius: var(--r-sm);
  font-size: .78rem;
  font-weight: 600;
  transition: background var(--ease), color var(--ease);
}
.btn-danger:hover { background: #c0392b; color: var(--white); }

/* CGPA Final */
.cgpa-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: var(--green-900);
}
.cgpa-final-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.cgpa-final-class { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.8); }
.cgpa-final-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-300);
  letter-spacing: -.02em;
}

/* ============================================================
   HOW IT WORKS STEPS
   ============================================================ */
.steps-section { background: var(--neutral-50); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: box-shadow var(--ease), transform var(--ease);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-100);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -.03em;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 8px;
}
.step-card p { font-size: .88rem; color: var(--neutral-500); line-height: 1.65; }

/* ============================================================
   BLOG PREVIEW
   ============================================================ */
.blog-preview { background: var(--white); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--ease), transform var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.blog-thumb {
  height: 160px;
  display: grid;
  place-items: center;
  font-size: 3rem;
}
.thumb-green { background: linear-gradient(135deg, var(--green-50), var(--green-100)); }
.thumb-gold  { background: linear-gradient(135deg, var(--gold-100), #fde68a); }
.thumb-blue  { background: linear-gradient(135deg, var(--blue-100), #bfdbfe); }

.blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-meta { display: flex; align-items: center; gap: 10px; }
.blog-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 99px;
}
.tag-green { background: var(--green-100); color: var(--green-800); }
.tag-gold  { background: var(--gold-100); color: #7a4d00; }
.blog-time { font-size: .78rem; color: var(--neutral-500); }
.blog-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.3;
}
.blog-body p { font-size: .88rem; color: var(--neutral-500); line-height: 1.6; flex: 1; }
.blog-link { font-size: .88rem; font-weight: 700; color: var(--green-600); transition: color var(--ease); }
.blog-link:hover { color: var(--green-900); }

.btn-view-all {
  display: inline-flex;
  align-items: center;
  padding: 11px 28px;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-700);
  font-weight: 700;
  font-size: .92rem;
  transition: background var(--ease), color var(--ease);
}
.btn-view-all:hover { background: var(--green-700); color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
/* Support both old <footer> and new <footer class="site-footer"> */
footer,
.site-footer {
  background: #0b3318; /* hardcoded fallback in case CSS variable fails */
  background: var(--green-900);
  padding: 56px 0 0;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo-link {
  font-family: 'Fraunces', Georgia, serif;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  color: var(--white);
  display: inline-block;
  margin-bottom: 12px;
}
.footer-logo-link span { color: #e8a020; color: var(--gold-500); }
.footer-brand p { font-size: .85rem; color: #a8c4af; line-height: 1.7; max-width: 220px; }

.footer-links { display: contents; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7aaa84;
  margin-bottom: 4px;
}
.footer-col a { font-size: .85rem; color: #a8c4af; transition: color .2s ease; }
.footer-col a:hover { color: #f5c560; color: var(--gold-300); }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bar span { font-size: .8rem; color: #7aaa84; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--ease), transform var(--ease), background var(--ease);
  pointer-events: none;
  z-index: 50;
}
#backToTop.show { opacity: 1; transform: none; pointer-events: all; }
#backToTop:hover { background: var(--green-900); }

/* ============================================================
   ARTICLE & BLOG PAGES (carry-over styles needed for other pages)
   ============================================================ */
.blog-hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  padding: 64px 0;
  text-align: center;
}
.blog-hero h1 { font-family: var(--font-display); font-size: clamp(2rem,5vw,3rem); color: var(--white); margin-bottom: 12px; }
.blog-hero p  { color: rgba(255,255,255,.65); font-size: 1rem; max-width: 480px; margin: 0 auto; }

.article-hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); padding: 56px 0 72px; }
.article-hero .breadcrumb { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: .82rem; margin-bottom: 16px; }
.article-hero .breadcrumb a { color: var(--gold-300); }
.article-hero .breadcrumb span { color: rgba(255,255,255,.35); }
.article-hero h1 { font-family: var(--font-display); font-size: clamp(1.7rem,4vw,2.8rem); color: var(--white); line-height: 1.2; max-width: 720px; margin-bottom: 16px; }
.article-hero .meta { display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.55); font-size: .85rem; flex-wrap: wrap; }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; padding: 56px 0; }

.article-body { background: var(--white); border-radius: var(--r-lg); padding: 44px; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-100); }
.article-body h2 { font-family: var(--font-display); font-size: 1.45rem; color: var(--green-900); margin: 32px 0 12px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--green-700); margin: 22px 0 8px; }
.article-body p  { color: var(--neutral-700); margin-bottom: 14px; font-size: .96rem; line-height: 1.75; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 14px; }
.article-body li { color: var(--neutral-700); font-size: .96rem; margin-bottom: 7px; line-height: 1.65; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body .callout { background: var(--neutral-50); border-left: 3px solid var(--green-600); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 18px 0; font-size: .93rem; }
.article-body .callout.gold { border-left-color: var(--gold-500); background: var(--gold-100); }

.grade-reference-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .9rem; }
.grade-reference-table th { background: var(--green-900); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 600; }
.grade-reference-table td { padding: 9px 14px; border-bottom: 1px solid var(--neutral-100); }
.grade-reference-table tr:nth-child(even) td { background: var(--neutral-50); }
.grade-reference-table tr:hover td { background: var(--green-50); }

.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--white); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-100); }
.sidebar-card h4 { font-family: var(--font-display); font-size: .95rem; color: var(--green-900); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--neutral-100); }
.sidebar-card ul li { padding: 7px 0; border-bottom: 1px solid var(--neutral-50); font-size: .88rem; }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--green-600); font-weight: 500; }
.sidebar-card ul li a:hover { color: var(--green-900); text-decoration: underline; }
.sidebar-cta { background: var(--green-900); border-radius: var(--r-md); padding: 22px; text-align: center; color: var(--white); }
.sidebar-cta h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 8px; }
.sidebar-cta p { font-size: .85rem; opacity: .65; margin-bottom: 14px; }
.btn-sidebar-cta { display: block; padding: 10px 20px; background: var(--gold-500); color: var(--green-900); border-radius: var(--r-sm); font-weight: 700; font-size: .88rem; text-align: center; transition: background var(--ease); }
.btn-sidebar-cta:hover { background: var(--gold-300); }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--neutral-100); box-shadow: var(--shadow-xs); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--ease), transform var(--ease); }
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-thumb { height: 160px; display: grid; place-items: center; font-size: 3rem; }
.article-content { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.article-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--neutral-500); }
.meta-sep { color: var(--neutral-300); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-green { background: var(--green-100); color: var(--green-800); }
.badge-gold  { background: var(--gold-100); color: #7a4d00; }
.article-card h2 { font-family: var(--font-display); font-size: 1.1rem; color: var(--green-900); line-height: 1.3; }
.article-card p { font-size: .88rem; color: var(--neutral-500); flex: 1; }
.btn-read { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--green-700); color: var(--green-700); font-size: .85rem; font-weight: 700; transition: background var(--ease), color var(--ease); align-self: flex-start; }
.btn-read:hover { background: var(--green-700); color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .scale-card { max-width: 480px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid  { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-card, .sidebar-cta { flex: 1 1 240px; }
}

@media (max-width: 680px) {
  :root { --section-gap: 56px; }

  /* ── Mobile Navbar ── */
  .hamburger { display: flex; }
  .navbar { position: relative; }

  .nav-links {
    /* Hidden state — slides up out of view */
    display: flex;               /* always flex so transition works */
    flex-direction: column;
    align-items: stretch;
    gap: 2px;

    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    z-index: 200;

    background: #0b3318;
    background: var(--green-900);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
    padding: 8px 12px 14px;

    /* Slide + fade animation */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .32s ease, opacity .25s ease, padding .25s ease;
  }
  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    pointer-events: all;
    padding: 10px 12px 18px;
  }

  .nav-links li a {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-links li a::after { display: none !important; } /* hide active dot on mobile */

  .nav-links li a.nav-cta {
    margin-left: 0;
    margin-top: 6px;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 16px;
  }

  /* Divider before CTA on mobile */
  .nav-links li:last-child { border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; padding-top: 4px; }

  .hero { padding: 52px 0 60px; }
  .hero-headline { font-size: 2.2rem; }

  .courses-header { display: none; }
  .course-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    background: var(--neutral-50);
    border-radius: var(--r-md);
    padding: 12px;
    gap: 8px;
    margin-bottom: 6px;
  }
  .course-row .remove-btn { grid-column: 2; grid-row: 2; justify-self: end; }

  .calc-body  { padding: 20px 16px; }
  .calc-topbar { padding: 16px; flex-direction: column; align-items: flex-start; gap: 12px; }

  .result-stats { flex-wrap: wrap; }
  .result-stat-item { min-width: 33%; }
  .rsi-divider { display: none; }

  .steps-grid { grid-template-columns: 1fr; }
  .blog-grid  { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bar { flex-direction: column; text-align: center; gap: 6px; }

  .article-body { padding: 24px 16px; }
}

@media (max-width: 400px) {
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-ghost { justify-content: center; }
}

/* ============================================================
   BACKWARD COMPATIBILITY — old footer HTML used in article pages
   (footer-top / footer-bottom / footer-brand classes)
   ============================================================ */
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}
.footer-bottom p { color: #a8c4af; font-size: .82rem; }
.footer-bottom .flag { font-size: 1.1rem; }

/* Old logo-text used in article/blog navbars */
.logo-text { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.15rem; color: #ffffff; letter-spacing: -.01em; }
.logo-text span { color: #e8a020; }
.logo-icon {
  width: 32px; height: 32px;
  background: #e8a020;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900; font-size: 1rem;
  color: #0b3318;
  flex-shrink: 0;
}

/* Old article page button classes */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 6px; font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: background .2s, color .2s; }
.btn-outline { background: transparent; color: #1a7036; border-color: #1a7036; }
.btn-outline:hover { background: #1a7036; color: #fff; }
.btn-primary { background: #1a7036; color: #fff; border-color: #1a7036; }
.btn-primary:hover { background: #0b3318; border-color: #0b3318; }

/* Old footer col styles used in article pages */
.footer-col h5 { color: #ffffff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: #a8c4af; font-size: .86rem; transition: color .2s; }
.footer-col ul li a:hover { color: #f5c560; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   UTILITY CLASSES — replaces all inline styles across HTML files
   ============================================================ */

/* Article hero breadcrumb last crumb */
.breadcrumb-current { color: rgba(255,255,255,.8); }

/* Badge spacing used in article heroes */
.badge-hero { margin-bottom: 16px; display: inline-block; }

/* Blog page — featured article card */
.blog-featured-wrap   { margin-bottom: 48px; }
.blog-featured-card   { flex-direction: row; max-width: 800px; align-items: stretch; }
.blog-featured-thumb  {
  flex: 0 0 240px;
  height: auto;
  background: linear-gradient(135deg, #d0f0da, #a8e0ba);
  border-radius: 0;
  font-size: 4rem;
}
.blog-featured-title  { font-size: 1.45rem; }
.blog-featured-cta    { margin-top: auto; }

/* Article thumb backgrounds */
.thumb-article-green { background: linear-gradient(135deg, #d0f0da, #a8e0ba); }
.thumb-article-gold  { background: linear-gradient(135deg, #fdeac3, #f5c060); }
.thumb-article-blue  { background: linear-gradient(135deg, #d8e8ff, #a0c0f0); }

/* Tag row inside article cards */
.card-tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

/* Blog page CTA banner */
.blog-cta-banner {
  margin-top: 64px;
  background: var(--green-dark, #0b3318);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  color: #ffffff;
}
.blog-cta-banner h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.9rem;
  margin-bottom: 12px;
}
.blog-cta-banner p {
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Blog page btn-gold large */
.btn-gold-lg { font-size: 1rem; padding: 14px 36px; }

/* Inline text links inside article body */
.link-green { color: #1a7036; font-weight: 600; }
.link-green-bold { color: #1a7036; font-weight: 700; }
.link-gold-bold  { color: #7a4d00; font-weight: 700; }

/* Sidebar CTA button — full width centred */
.btn-sidebar-full { width: 100%; justify-content: center; }

/* Sidebar small reference table */
.table-sm { font-size: .82rem; }

/* Table highlighted total row */
.table-row-total { font-weight: 600; background: #e8f5ec; }

/* Callout with top margin */
.callout-mt { margin-top: 32px; }
.callout-mt-lg { margin-top: 36px; }

/* Callout inline links */
.callout .link-green  { color: #1a7036; font-weight: 600; }
.callout .link-dark   { color: #0b3318; font-weight: 700; }
.callout .link-gold   { color: #7a4d00; font-weight: 700; }
.callout.gold .link-gold { color: #7a4d00; font-weight: 700; }

/* Tracker: hidden by default (replaces style="display:none") */
.hidden { display: none; }

/* Blog-preview section centre CTA row */
.section-cta-centre { text-align: center; margin-top: 40px; }

/* Callout list spacing */
.callout ul { margin-top: 10px; }

/* ============================================================
   NEW ARTICLE THUMB COLOURS
   ============================================================ */
.thumb-article-purple { background: linear-gradient(135deg, #ede9fe, #c4b5fd); }
.thumb-article-red    { background: linear-gradient(135deg, #fee2e2, #fca5a5); }

/* ============================================================
   RATING SECTION
   ============================================================ */
.rating-section { background: var(--green-900); padding: 64px 0; }

.rating-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: 40px 48px;
}

.rating-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.rating-desc { color: rgba(255,255,255,.6); font-size: .95rem; margin-bottom: 24px; line-height: 1.6; }

/* Stars */
.star-rating { display: flex; gap: 6px; margin-bottom: 12px; }
.star {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .15s ease, transform .15s ease;
}
.star:hover,
.star.hovered,
.star.selected { color: #f5c560; }
.star:hover    { transform: scale(1.15); }

.rating-status {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  min-height: 20px;
  transition: color .2s;
}
.rating-status.rated { color: #4ade80; font-weight: 600; }

/* Aggregate score */
.rating-right { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.rating-aggregate { text-align: center; }
.agg-score {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: #f5c560;
  line-height: 1;
  letter-spacing: -.03em;
}
.agg-stars { font-size: 1.6rem; color: #f5c560; margin: 4px 0; letter-spacing: 2px; }
.agg-count { font-size: .8rem; color: rgba(255,255,255,.45); }

/* Like / Dislike */
.like-row { display: flex; gap: 12px; }
.like-btn, .dislike-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font-body);
}
.like-btn:hover   { background: rgba(74,222,128,.2); border-color: #4ade80; color: #4ade80; }
.dislike-btn:hover { background: rgba(248,113,113,.2); border-color: #f87171; color: #f87171; }
.like-btn.active   { background: rgba(74,222,128,.25); border-color: #4ade80; color: #4ade80; }
.dislike-btn.active { background: rgba(248,113,113,.25); border-color: #f87171; color: #f87171; }
.like-count { font-size: .82rem; opacity: .8; }

/* ============================================================
   FEEDBACK SECTION
   ============================================================ */
.feedback-section { background: var(--neutral-50); }

.feedback-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.feedback-form {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--neutral-700); }
.fb-optional { font-weight: 400; color: var(--neutral-500); }
.fb-required { color: #c0392b; }

.textarea-control { resize: vertical; min-height: 130px; }
.char-count { font-size: .75rem; color: var(--neutral-500); text-align: right; margin-top: 4px; }

.btn-submit-feedback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--green-700);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-submit-feedback:hover { background: var(--green-900); transform: translateY(-1px); }

/* Feedback list */
.feedback-list { display: flex; flex-direction: column; gap: 12px; }
.feedback-item {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-md);
  padding: 16px 20px;
  animation: rowIn .2s ease;
}
.fi-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; flex-wrap: wrap; gap: 8px; }
.fi-name { font-weight: 700; font-size: .88rem; color: var(--green-900); }
.fi-type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-600); background: var(--green-50); padding: 2px 8px; border-radius: 99px; }
.fi-time { font-size: .75rem; color: var(--neutral-500); }
.fi-msg  { font-size: .9rem; color: var(--neutral-700); line-height: 1.6; }

/* Prompts sidebar */
.feedback-prompts {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}
.prompts-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--green-900); margin-bottom: 16px; }
.prompt-cards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.prompt-card {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: .85rem;
  font-family: var(--font-body);
  color: var(--neutral-700);
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.prompt-card:hover { background: var(--green-50); border-color: var(--green-400); color: var(--green-900); }

.feedback-stats { text-align: center; padding-top: 16px; border-top: 1px solid var(--neutral-100); }
.fs-num { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--green-700); line-height: 1; }
.fs-lbl { font-size: .78rem; color: var(--neutral-500); margin-top: 4px; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--green-100); }
.contact-icon { font-size: 2.2rem; margin-bottom: 14px; }
.contact-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--green-900); margin-bottom: 6px; }
.contact-card p  { font-size: .84rem; color: var(--neutral-500); margin-bottom: 14px; line-height: 1.5; }
.contact-link {
  display: inline-block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-600);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.contact-link:hover { color: var(--green-900); border-bottom-color: var(--green-900); }

/* ============================================================
   RESPONSIVE — new sections
   ============================================================ */
@media (max-width: 960px) {
  .rating-card    { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .rating-right   { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .contact-grid   { grid-template-columns: 1fr 1fr; }
  .feedback-layout { grid-template-columns: 1fr; }
  .feedback-prompts { position: static; }
  .prompt-cards   { flex-direction: row; flex-wrap: wrap; }
  .prompt-card    { flex: 1 1 140px; }
}
@media (max-width: 680px) {
  .rating-card  { padding: 20px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2   { grid-template-columns: 1fr; }
  .feedback-form { padding: 20px 16px; }
}
@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PWA INSTALL BANNER
   ============================================================ */
.pwa-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 500;
  width: calc(100% - 48px);
  max-width: 520px;
  background: #0b3318;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  opacity: 0;
  pointer-events: none;
}
.pwa-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.pwa-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.pwa-banner-icon { font-size: 1.8rem; flex-shrink: 0; }
.pwa-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pwa-banner-text strong { font-size: .95rem; color: #ffffff; }
.pwa-banner-text span   { font-size: .78rem; color: rgba(255,255,255,.55); }

.pwa-install-btn {
  padding: 8px 18px;
  background: #e8a020;
  color: #0b3318;
  border: none;
  border-radius: 8px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.pwa-install-btn:hover { background: #f5c560; }

.pwa-dismiss-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color .2s;
}
.pwa-dismiss-btn:hover { color: rgba(255,255,255,.8); }

@media (max-width: 480px) {
  .pwa-banner { bottom: 16px; width: calc(100% - 32px); }
  .pwa-banner-inner { padding: 12px 14px; gap: 10px; }
}

.example-h4-mt { margin-top: 24px; }

/* ============================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */

/* ── Fade-up on scroll (applied via JS Intersection Observer) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Hero headline word pop ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-headline {
  animation: heroFadeUp .7s ease both;
}
.hero-desc {
  animation: heroFadeUp .7s ease .15s both;
}
.hero-actions {
  animation: heroFadeUp .7s ease .28s both;
}
.hero-trust {
  animation: heroFadeUp .7s ease .4s both;
}
.hero-pill {
  animation: heroFadeUp .5s ease both;
}
.scale-card {
  animation: heroFadeUp .8s ease .2s both;
}

/* ── Floating animation on scale card ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
.scale-card {
  animation: heroFadeUp .8s ease .2s both, float 5s ease-in-out 1s infinite;
}

/* ── Button pulse on Calculate GPA ── */
@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(26,112,54,.45); }
  70%  { box-shadow: 0 0 0 10px rgba(26,112,54,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,112,54,0); }
}
.btn-calculate {
  animation: btnPulse 2.5s ease-in-out infinite;
}
.btn-calculate:hover {
  animation: none;
  transform: translateY(-2px);
}

/* ── Course row slide-in already exists but enhance ── */
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Result panel bounce in ── */
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(.92) translateY(16px); }
  60%  { transform: scale(1.02) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.result-panel.visible {
  display: block;
  animation: bounceIn .45s cubic-bezier(.34,1.56,.64,1) both;
}

/* ── GPA number count-up shimmer ── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.result-gpa-value {
  background: linear-gradient(90deg, #ffffff 30%, #f5c560 50%, #ffffff 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 1.5s ease .3s 2;
}

/* ── Step cards stagger on scroll ── */
.step-card {
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

/* ── Blog card hover lift ── */
.blog-card {
  transition: box-shadow .25s ease, transform .25s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(11,51,24,.14);
}

/* ── Article card hover ── */
.article-card {
  transition: box-shadow .25s ease, transform .25s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(11,51,24,.13);
}

/* ── Navbar link underline slide ── */
.nav-links li a {
  position: relative;
}
.nav-links li a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
  border-radius: 2px;
}
.nav-links li a:not(.nav-cta):hover::after,
.nav-links li a.active::after {
  transform: scaleX(1);
}

/* ── Back to top bounce ── */
@keyframes bttBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
#backToTop.show {
  animation: bttBounce 1.8s ease-in-out infinite;
}
#backToTop:hover {
  animation: none;
  transform: translateY(-3px) scale(1.1);
}

/* ── Star rating pop ── */
.star {
  transition: color .15s ease, transform .15s ease;
}
.star:hover { transform: scale(1.25) rotate(-5deg); }
.star.selected { animation: starPop .25s cubic-bezier(.34,1.56,.64,1); }
@keyframes starPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4) rotate(10deg); }
  100% { transform: scale(1); }
}

/* ── Like button bounce ── */
.like-btn:active, .dislike-btn:active {
  transform: scale(.88);
  transition: transform .1s ease;
}

/* ── Input focus glow ── */
.form-control:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(26,112,54,.15);
  transition: border-color .2s, box-shadow .2s;
}

/* ── Logo mark spin on hover ── */
.logo-mark {
  transition: transform .35s ease, background .2s;
}
.nav-logo:hover .logo-mark {
  transform: rotate(15deg) scale(1.1);
}

/* ── PWA banner slide with spring ── */
.pwa-banner.visible {
  transform: translateX(-50%) translateY(0);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}

/* ── Smooth section transitions ── */
.section {
  transition: background .3s ease;
}

/* ── Toast slide up ── */
@keyframes toastSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Progress bar glow ── */
#readingBar {
  box-shadow: 0 0 8px rgba(232,160,32,.6);
}

/* ── Respect reduced motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scale-card { animation: none; }
}

/* ============================================================
   ANIMATIONS — Scroll reveal, counters, hover effects
   ============================================================ */

/* ── Fade in up — base class ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Staggered children ── */
.stagger-1 { transition-delay: .1s !important; }
.stagger-2 { transition-delay: .2s !important; }
.stagger-3 { transition-delay: .3s !important; }
.stagger-4 { transition-delay: .4s !important; }

/* ── Fade in left (for hero text) ── */
.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

/* ── Fade in right (for hero card) ── */
.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* ── Scale in (for result panel, stat cards) ── */
.scale-in {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .45s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* ── Hero headline word-by-word animation ── */
.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordIn .5s ease forwards;
}
.hero-headline .word:nth-child(1) { animation-delay: .1s; }
.hero-headline .word:nth-child(2) { animation-delay: .2s; }
.hero-headline .word:nth-child(3) { animation-delay: .3s; }
.hero-headline .word:nth-child(4) { animation-delay: .4s; }
.hero-headline .word:nth-child(5) { animation-delay: .5s; }
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Pill badge pop in ── */
.hero-pill {
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: .05s;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── CTA button pulse ── */
.btn-hero-primary {
  animation: btnPulse 3s ease-in-out 2s infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,160,32,0); }
  50%       { box-shadow: 0 0 0 8px rgba(232,160,32,.2); }
}

/* ── Card hover lift (enhanced) ── */
.step-card,
.blog-card,
.article-card,
.contact-card,
.related-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.step-card:hover    { transform: translateY(-5px) !important; }
.blog-card:hover    { transform: translateY(-5px) !important; }
.article-card:hover { transform: translateY(-5px) !important; }
.contact-card:hover { transform: translateY(-6px) rotate(.5deg) !important; }

/* ── Calculator card entrance ── */
.calc-card {
  animation: slideUp .6s cubic-bezier(.22,1,.36,1) both;
  animation-delay: .2s;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Result panel bounce in ── */
.result-panel.visible {
  animation: resultBounce .5s cubic-bezier(.34,1.56,.64,1) both !important;
}
@keyframes resultBounce {
  from { opacity: 0; transform: scale(.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── GPA number count animation ── */
.result-gpa-value {
  transition: transform .3s ease;
}
.result-gpa-value.counting {
  animation: numFlip .4s ease;
}
@keyframes numFlip {
  0%   { transform: translateY(-8px); opacity: .5; }
  100% { transform: translateY(0);     opacity: 1; }
}

/* ── Star rating hover glow ── */
.star:hover ~ .star { color: rgba(255,255,255,.25) !important; }
.star {
  transition: color .15s ease, transform .15s ease, text-shadow .15s ease !important;
}
.star:hover {
  text-shadow: 0 0 12px rgba(245,197,96,.6);
  transform: scale(1.2) !important;
}
.star.selected {
  text-shadow: 0 0 8px rgba(245,197,96,.4);
}

/* ── Navbar link underline animation ── */
.nav-links li a:not(.nav-cta) {
  position: relative;
}
.nav-links li a:not(.nav-cta)::before {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform .2s ease;
  border-radius: 2px;
}
.nav-links li a:not(.nav-cta):hover::before,
.nav-links li a.active::before {
  transform: scaleX(1);
}

/* ── Progress bar shimmer ── */
#readingBar::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 100%;
  background: rgba(255,255,255,.4);
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── Feedback form focus glow ── */
.form-control:focus {
  animation: focusGlow .3s ease forwards;
}
@keyframes focusGlow {
  from { box-shadow: 0 0 0 0 rgba(26,112,54,.0); }
  to   { box-shadow: 0 0 0 4px rgba(26,112,54,.15); }
}

/* ── PWA banner slide in ── */
.pwa-banner.visible {
  animation: bannerSlide .5s cubic-bezier(.34,1.56,.64,1) both !important;
}
@keyframes bannerSlide {
  from { transform: translateX(-50%) translateY(80px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

/* ── Like button bounce when clicked ── */
.like-btn.active,
.dislike-btn.active {
  animation: likeBounce .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes likeBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Skeleton loader for empty tracker ── */
.empty-icon {
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .fade-in-up, .fade-in-left, .fade-in-right, .scale-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   RESULT SHARE ROW
   ============================================================ */
.result-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f8faf9;
  border-top: 1px solid var(--neutral-100);
  flex-wrap: wrap;
}
.result-share-label {
  font-size: .8rem;
  color: var(--neutral-500);
  font-weight: 600;
  flex-shrink: 0;
}
.result-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: opacity .2s, transform .2s;
}
.result-share-btn:hover { opacity: .88; transform: translateY(-1px); }
.result-share-btn:active { transform: none; }
.result-share-btn.wa   { background: #25d366; color: #fff; }
.result-share-btn.tw   { background: #000; color: #fff; }
.result-share-btn.copy { background: var(--green-700); color: #fff; }

/* ============================================================
   RESULT RELATED GUIDES
   ============================================================ */
.result-guides {
  padding: 20px;
  background: var(--neutral-50);
  border-top: 1px solid var(--neutral-100);
}
.rg-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 14px;
}
.rg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.rg-card {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-decoration: none;
  display: block;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.rg-card:hover {
  background: #edf8f1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.rg-card-tag {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-600);
  margin-bottom: 5px;
}
.rg-card-title {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.3;
  margin-bottom: 4px;
}
.rg-card-arrow {
  font-size: .78rem;
  color: var(--green-600);
  font-weight: 600;
}

/* ============================================================
   FAQ HOME SECTION
   ============================================================ */
.faq-home-section { background: var(--white); }

.faq-home-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.faq-home-list { display: flex; flex-direction: column; gap: 10px; }

/* Reuse existing faq-item styles — they work here too */

.faq-home-cta { position: sticky; top: 80px; }
.faq-cta-card {
  background: var(--green-900);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  text-align: center;
  color: white;
}
.faq-cta-icon { font-size: 2.5rem; margin-bottom: 14px; }
.faq-cta-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 10px; }
.faq-cta-card p { font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: 20px; line-height: 1.6; }

.faq-cta-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: left;
}
.faq-cta-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 6px 0;
  transition: color .2s;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.faq-cta-links a:last-child { border-bottom: none; }
.faq-cta-links a:hover { color: var(--gold-300); }

@media (max-width: 900px) {
  .faq-home-grid { grid-template-columns: 1fr; }
  .faq-home-cta { position: static; }
}
@media (max-width: 600px) {
  .rg-cards { grid-template-columns: 1fr; }
  .result-share-row { gap: 6px; }
}

/* ============================================================
   STICKY CALCULATOR CTA (article pages)
   ============================================================ */
.sticky-calc-cta {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  width: calc(100% - 48px);
  max-width: 560px;
  animation: stickyIn 1s ease 4s both;
}
@keyframes stickyIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.scc-inner {
  background: var(--green-900);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.scc-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 500;
}
.scc-emoji { font-size: 1.2rem; flex-shrink: 0; }
.scc-btn {
  padding: 8px 18px;
  background: var(--gold-500);
  color: var(--green-900);
  border-radius: 8px;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.scc-btn:hover { background: var(--gold-300); }
.scc-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: .9rem;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color .2s;
}
.scc-close:hover { color: rgba(255,255,255,.8); }

@media (max-width: 480px) {
  .sticky-calc-cta { bottom: 70px; width: calc(100% - 24px); }
  .scc-text span:last-child { display: none; }
}

/* FAQ CTA guides button */
.btn-faq-guides {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Conversion calculator output display */
.conv-output-display {
  cursor: default;
  background: rgba(255,255,255,.05);
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #0b3318;
  border-top: 2px solid rgba(232,160,32,.3);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-text {
  flex: 1;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  min-width: 200px;
}
.cookie-banner-text strong { color: #ffffff; }
.cookie-banner-text a { color: #f5c560; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-accept {
  padding: 9px 22px;
  background: #e8a020;
  color: #0b3318;
  border: none;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.cookie-accept:hover { background: #f5c560; }
.cookie-decline {
  padding: 9px 18px;
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.cookie-decline:hover { border-color: rgba(255,255,255,.5); color: #fff; }

@media (max-width: 540px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner-actions { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}

/* ============================================================
   PRIVACY PAGE — Cookie table + respond note
   ============================================================ */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 16px 0;
}
.cookie-table-head th {
  background: #0b3318;
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.cookie-table-row td {
  padding: 9px 14px;
  border-bottom: 1px solid #f2f5f3;
}
.cookie-table-alt td {
  background: #f8faf9;
}
.cookie-table-row:last-child td {
  border-bottom: none;
}
.policy-respond-note {
  margin-top: 14px;
  font-size: .82rem !important;
  color: rgba(255,255,255,.5) !important;
}