@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --navy-light: #1a3358;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-glow: rgba(13,148,136,0.15);
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --white: #f8fafc;
  --white-80: rgba(248,250,252,0.8);
  --white-20: rgba(248,250,252,0.12);
  --white-10: rgba(248,250,252,0.06);
  --text-muted: #94a3b8;
  --border: rgba(248,250,252,0.1);
  --shadow-lg: 0 25px 50px rgba(0,0,0,0.5);
  --shadow-teal: 0 8px 32px rgba(13,148,136,0.3);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo .logo-text {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.nav-logo .logo-text .logo-wise em {
  color: var(--teal-light);
  font-style: italic;
}
.nav-logo .logo-text .logo-lab {
  color: var(--gold);
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--teal-light) !important;
  transform: translateY(-1px);
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(13,148,136,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(245,158,11,0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: drift 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px; height: 400px;
  background: rgba(13,148,136,0.08);
  top: 10%; left: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px; height: 300px;
  background: rgba(245,158,11,0.05);
  top: 30%; right: 5%;
  animation-delay: -3s;
}

.orb-3 {
  width: 200px; height: 200px;
  background: rgba(13,148,136,0.06);
  bottom: 20%; left: 40%;
  animation-delay: -6s;
}

@keyframes drift {
  0%, 100% { transform: translate(0,0); }
  33% { transform: translate(20px, -15px); }
  66% { transform: translate(-10px, 20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white-10);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal-light);
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 .accent {
  color: var(--teal-light);
  font-style: italic;
}

.hero h1 .gold {
  color: var(--gold);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-teal);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(13,148,136,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white-10);
  color: var(--white);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--white-20);
  transform: translateY(-2px);
}

.hero-trust {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s ease both;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-pill .icon {
  color: var(--teal-light);
  font-size: 0.9rem;
}

/* ─── STATS BAND ─── */
.stats-band {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal-light);
  display: block;
  line-height: 1;
}

.stat-item .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ─── SECTIONS ─── */
section {
  padding: 5rem 2rem;
}

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

.section-tag {
  display: inline-block;
  background: var(--teal-glow);
  color: var(--teal-light);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(13,148,136,0.3);
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ─── CALCULATOR CATEGORIES ─── */
.categories-section {
  background: var(--navy);
}

.categories-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13,148,136,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), var(--shadow-teal);
}

.category-card:hover::before { opacity: 1; }

.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.cat-icon.teal { background: rgba(13,148,136,0.15); }
.cat-icon.gold { background: rgba(245,158,11,0.15); }
.cat-icon.blue { background: rgba(59,130,246,0.15); }
.cat-icon.purple { background: rgba(139,92,246,0.15); }
.cat-icon.rose { background: rgba(244,63,94,0.15); }
.cat-icon.orange { background: rgba(249,115,22,0.15); }
.cat-icon.green { background: rgba(34,197,94,0.15); }
.cat-icon.indigo { background: rgba(99,102,241,0.15); }

.category-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-link-chip {
  background: var(--white-10);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.cat-link-chip:hover {
  background: var(--teal-glow);
  color: var(--teal-light);
  border-color: rgba(13,148,136,0.3);
}

.cat-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}

.category-card:hover .cat-arrow {
  background: var(--teal);
  transform: translate(2px, -2px);
}

/* ─── FEATURED CALCS ─── */
.featured-section {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.featured-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--white);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.2s, border-color 0.2s;
}

.featured-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13,148,136,0.35);
}

.featured-card .fc-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--white-10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.featured-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── HOW IT WORKS ─── */
.how-section { background: var(--navy); }

.steps-row {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.6% + 28px);
  right: calc(16.6% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent 50%, var(--teal));
  opacity: 0.3;
}

.step-item {
  text-align: center;
}

.step-num {
  width: 72px;
  height: 72px;
  background: var(--navy-mid);
  border: 2px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-light);
  margin: 0 auto 1.2rem;
  box-shadow: 0 0 0 8px var(--teal-glow);
}

.step-item h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ─── TESTIMONIALS ─── */
.testimonials-section {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.stars { color: var(--gold); margin-bottom: 1rem; font-size: 0.9rem; }

.testimonial-card p {
  color: var(--white-80);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.reviewer-name { font-weight: 600; font-size: 0.9rem; }
.reviewer-label { color: var(--text-muted); font-size: 0.8rem; }

/* ─── CTA BAND ─── */
.cta-band {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border-top: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(13,148,136,0.1), transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 260px;
}

.footer-col h4 {
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-disclaimer {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-disclaimer p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

/* ─── CALCULATOR PAGES ─── */
.calc-page {
  padding-top: 90px;
  min-height: 100vh;
}

.calc-hero {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--teal-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.calc-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.calc-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.calc-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 550px;
}

/* ─── CALCULATOR LAYOUT ─── */
.calc-body {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.calc-panel {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.panel-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title .pt-icon {
  width: 32px; height: 32px;
  background: var(--teal-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* ─── FORM ELEMENTS ─── */
.field-group { margin-bottom: 1.5rem; }

.field-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-80);
  margin-bottom: 0.5rem;
}

.field-value {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--teal-light);
  font-size: 1rem;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.input-wrap:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.input-prefix, .input-suffix {
  padding: 0 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--white-10);
  height: 100%;
  display: flex;
  align-items: center;
  align-self: stretch;
  font-weight: 500;
}

.input-wrap input[type="number"],
.input-wrap input[type="text"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  padding: 12px;
  -moz-appearance: textfield;
}

.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  margin-top: 8px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 2px var(--teal);
  transition: box-shadow 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px var(--teal-glow);
}

select {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  padding: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.calc-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-teal);
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13,148,136,0.4);
}

.reset-btn {
  width: 100%;
  background: var(--white-10);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.5rem;
}

.reset-btn:hover {
  background: var(--white-20);
  color: var(--white);
}

/* ─── RESULT DISPLAY ─── */
.result-main {
  background: linear-gradient(135deg, var(--teal-glow), rgba(245,158,11,0.05));
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.result-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.result-value {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.result-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.breakdown-item:last-child { border-bottom: none; }

.breakdown-item .bi-label { color: var(--text-muted); }
.breakdown-item .bi-value { font-weight: 600; }
.breakdown-item .bi-value.positive { color: var(--teal-light); }
.breakdown-item .bi-value.negative { color: #f87171; }
.breakdown-item .bi-value.gold { color: var(--gold); }

.chart-wrap {
  margin-top: 1.5rem;
  height: 200px;
  position: relative;
}

/* ─── EXPLAINER SECTION ─── */
.calc-explainer {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.explainer-toggle {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.explainer-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.explainer-btn:hover { background: var(--white-10); }

.explainer-btn .chevron {
  transition: transform 0.3s;
  font-style: normal;
}

.explainer-btn.open .chevron { transform: rotate(180deg); }

.explainer-content {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
}

.explainer-content.open { display: block; }

.formula-box {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  color: var(--teal-light);
  margin: 1rem 0;
  overflow-x: auto;
}

/* ─── RELATED CALCS ─── */
.related-section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.related-section h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.related-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-card:hover {
  border-color: rgba(13,148,136,0.4);
  transform: translateY(-2px);
}

.related-card .rc-icon { font-size: 1.3rem; }
.related-card span { font-size: 0.9rem; font-weight: 500; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .steps-row { grid-template-columns: 1fr; gap: 2rem; }
  .steps-row::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-body { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    z-index: 899;
  }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
