@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-raw: 230, 25%, 5%;
  --bg: hsl(var(--bg-raw));
  --bg-surface: hsl(230, 20%, 9%);
  --bg-card: hsl(230, 18%, 13%);
  --bg-input: hsl(230, 16%, 17%);
  
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-focus: hsla(245, 100%, 70%, 0.4);
  
  --text: #f1f3f9;
  --text-secondary: #9aa2b8;
  --text-muted: #5c6479;
  
  /* HSL Accents */
  --primary-h: 245;
  --primary-s: 100%;
  --primary-l: 68%;
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-hover: hsl(var(--primary-h), var(--primary-s), 72%);
  --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
  
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.15);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.15);
  --blue: #3b82f6;
  
  /* Radii & Shadows */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 100px;
  
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px var(--primary-glow);
  
  /* Grid & Animation */
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --grid-line: rgba(255, 255, 255, 0.015);
  --grid-line-bold: rgba(108, 99, 255, 0.025);
  
  --nav-h: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  
  /* Mathematical blueprint grid background */
  background-image: 
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line-bold) 2px, transparent 2px),
    linear-gradient(90deg, var(--grid-line-bold) 2px, transparent 2px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
  background-position: center center;
  position: relative;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
}

/* ── LAYOUT & CONTAINER ── */
.page-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-sm {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1rem;
}

/* ── FLOATING CANVAS ── */
#mathCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

/* ── PREMIUM HEADER NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(var(--bg-raw), 0.75);
  backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.nav-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  box-shadow: 0 0 12px var(--green);
}

.nav-search {
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  transition: all var(--transition);
}

.nav-search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card);
}

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

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  font-weight: 500;
}

.nav-search input::placeholder {
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-link:hover {
  background: var(--bg-surface);
  color: var(--text);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-glow);
}

.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.25);
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(108, 99, 255, 0.4);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 1.5rem 2.5rem 0.5rem;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-secondary);
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-finance { background: rgba(245, 158, 11, 0.06); border: 1px solid rgba(245, 158, 11, 0.2); color: var(--amber); }
.badge-health { background: rgba(16, 185, 129, 0.06); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--green); }
.badge-utility { background: rgba(108, 99, 255, 0.06); border: 1px solid rgba(108, 99, 255, 0.2); color: var(--primary); }
.badge-tech { background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.2); color: var(--red); }
.badge-fun { background: rgba(251, 113, 133, 0.06); border: 1px solid rgba(251, 113, 133, 0.2); color: #fb7185; }

/* ── HERO HEADER ── */
.home-hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.home-hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
}

.home-hero h1 em {
  color: var(--primary);
  font-style: normal;
  position: relative;
  display: inline-block;
}

.home-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.home-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.home-stat {
  text-align: center;
}

.home-stat .n {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
}

.home-stat .l {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  font-weight: 600;
}

/* ── CATEGORY TABS ── */
.cat-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  justify-content: flex-start;
}

.cat-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.cat-tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* ── CALCULATOR GRID & CARD ── */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.calc-card {
  background: rgba(18, 20, 28, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.03), transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.calc-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background: rgba(18, 20, 28, 0.7);
}

.calc-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 1;
}

.calc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.calc-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}

.calc-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.3;
}

.calc-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.calc-card-arrow {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
  z-index: 1;
}

.calc-card:hover .calc-card-arrow {
  gap: 10px;
  color: var(--primary-hover);
}

/* ── FORMS & INPUTS ── */
.calc-panel {
  background: rgba(18, 20, 28, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.input, .select {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  font-weight: 500;
  transition: all var(--transition);
}

.input:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card);
}

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

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa2b8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
  appearance: none;
}

.select option {
  background: var(--bg-surface);
}

.input-prefix-wrap {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
  font-weight: 600;
}

.input-prefix ~ .input {
  padding-left: 34px;
}

/* ── BUTTONS ── */
.btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  font-size: 13.5px;
  padding: 10px 20px;
  width: auto;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--border-hover);
  color: var(--text);
  box-shadow: none;
}

.btn-green {
  background: var(--green);
  color: #05060b;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.btn-green:hover {
  background: #14d495;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* ── HIGH FIDELITY RESULT BOX ── */
.result-box {
  background: rgba(26, 29, 40, 0.6);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  display: none;
  animation: fadeUp var(--transition);
  box-shadow: var(--shadow);
}

.result-box.show {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.result-item {
  text-align: center;
  padding: 18px 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.result-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.result-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 700;
}

.result-value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.result-value.green { color: var(--green); }
.result-value.amber { color: var(--amber); }
.result-value.red { color: var(--red); }
.result-value.blue { color: var(--blue); }
.result-value.purple { color: var(--primary); }

/* ── POST RESULT ACTION PANELS ── */
.post-result {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(16, 185, 129, 0.03));
  border: 1px dashed rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  display: none;
  animation: fadeUp var(--transition);
}

.post-result.show {
  display: block;
}

.post-result h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-calcs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

.related-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-btn:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.04);
  color: var(--text);
  transform: translateY(-1px);
}

.related-btn .icon {
  font-size: 1.2rem;
}

/* ── AFFILIATE HIGH INTEGRATION ── */
.affiliate-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.06));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.affiliate-box-text {
  flex: 1;
  min-width: 200px;
}

.affiliate-box-text strong {
  font-size: 14px;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.affiliate-box-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.affiliate-box a {
  background: var(--green);
  color: #05060b;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.affiliate-box a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* ── SIDEBAR WIDGETS ── */
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: rgba(18, 20, 28, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
}

.related-list a:hover {
  background: var(--bg-surface);
  color: var(--text);
}

.related-list a .ri {
  font-size: 1.1rem;
}

/* ── ADVERTISEMENT PLACEMENT ── */
.ad-slot {
  background: rgba(18, 20, 28, 0.25);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.ad-728 { height: 90px; width: 100%; margin: 2rem 0; }
.ad-300 { height: 250px; width: 100%; }
.ad-468 { height: 60px; width: 100%; margin-top: 2rem; }

/* ── EMAIL REGISTRATION BAR ── */
.email-capture-box {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(16, 185, 129, 0.05));
  border: 1.5px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.email-capture-box h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.email-capture-box p {
  font-size: 14px;
  color: var(--text-secondary);
}

.email-capture-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.email-capture-form input {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text);
  font-size: 14px;
  width: 250px;
  outline: none;
  font-weight: 500;
  transition: all var(--transition);
}

.email-capture-form input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
}

/* ── EMAIL GATE MODAL ── */
.email-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 6, 11, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.email-gate-overlay.show {
  display: flex;
}

.email-gate-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 3rem;
  width: 100%;
  max-width: 440px;
  text-align: center;
  animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow);
}

.email-gate-icon {
  font-size: 3.2rem;
  margin-bottom: 1.25rem;
}

.email-gate-box h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.email-gate-box p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.email-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Legal note inside email gate */
.email-gate-legal {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.6;
}

.email-gate-legal a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.email-gate-skip {
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
  font-weight: 600;
  transition: color var(--transition);
}

.email-gate-skip:hover {
  color: var(--primary);
}

/* ── GDPR CONSENT BANNER ── */
#consentBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(14, 15, 22, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(108, 99, 255, 0.25);
  padding: 1.5rem 2.5rem;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#consentBanner.consent-visible {
  transform: translateY(0);
}

.consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.consent-text {
  flex: 1;
  min-width: 280px;
}

.consent-text strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.consent-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.consent-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.consent-btn-decline {
  background: transparent;
  border: 1.5px solid var(--border-hover);
  color: var(--text-secondary);
  font-size: 13px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  transition: all var(--transition);
  width: auto;
  box-shadow: none;
}

.consent-btn-decline:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(108, 99, 255, 0.05);
  transform: none;
  box-shadow: none;
}

.consent-btn-accept {
  font-size: 13px;
  padding: 10px 22px;
  width: auto;
}

@media (max-width: 600px) {
  #consentBanner {
    padding: 1.25rem 1.5rem;
  }
  .consent-actions {
    width: 100%;
    justify-content: stretch;
  }
  .consent-btn-decline,
  .consent-btn-accept {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #05060b;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  z-index: 600;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.toast.show {
  bottom: 30px;
}

/* ── SEO & FAQ SECTION ── */
.seo-section {
  background: rgba(18, 20, 28, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2.5rem;
}

.seo-section h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.seo-section h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--primary);
}

.seo-section p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.seo-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.seo-section ul li {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.faq-section {
  margin-top: 2.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  cursor: pointer;
}

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

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  gap: 12px;
}

.faq-q .faq-icon {
  font-size: 1.3rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-a {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-top: 12px;
  display: none;
  animation: fadeUp var(--transition-fast);
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

/* ── PREMIUM FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 5rem 2.5rem 3rem;
  background: rgba(8, 9, 12, 0.6);
  backdrop-filter: blur(16px);
}

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.75;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color var(--transition);
  font-weight: 500;
}

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

.footer-bottom {
  max-width: 1200px;
  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: 1.25rem;
}

.footer-bottom p {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── PAGE HERO INTERFACE ── */
.page-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.page-hero-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.page-hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.page-hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.65;
}

.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.page-hero-meta span {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* ── UTILITIES ── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 1rem; }

/* ── HIGH PERFORMANCE BREAKPOINTS ── */
@media (max-width: 860px) {
  :root {
    --nav-h: 60px;
  }
  
  .nav {
    padding: 0 1.5rem;
  }
  
  .nav-search {
    display: none;
  }
  
  .nav-links {
    display: none;
  }
  
  .container, .container-sm {
    padding: 0 1.5rem;
  }
  
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar {
    position: static;
  }
  
  .field-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .home-hero {
    padding: 4rem 1rem 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .calc-grid {
    grid-template-columns: 1fr;
  }
  
  .related-calcs {
    grid-template-columns: 1fr;
  }
  
  .page-hero {
    padding: 2rem 0;
  }
  
  .calc-panel {
    padding: 1.75rem;
  }
  
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .home-hero h1 {
    font-size: 2.2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .home-stats {
    gap: 2rem;
  }
  
  .email-capture-box {
    padding: 1.75rem;
  }
  
  .email-capture-form input {
    width: 100%;
  }
  
  .email-gate-box {
    padding: 2rem;
  }
}
