@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --brand-50:  #fff7ed;
  --brand-100: #ffedd5;
  --brand-200: #fed7aa;
  --brand-300: #fdba74;
  --brand-400: #fb923c;
  --brand-500: #f97316; /* warm primary orange */
  --brand-600: #ea580c;
  --brand-700: #c2410c;
  --brand-800: #9a3412;
  --brand-900: #7c2d12;

  --accent:    #ea580c;
  --accent-2:  #f97316;

  /* Light theme: premium warm cream and coffee hues */
  --bg:          #faf6f2;
  --bg-soft:     #f5ece4;
  --bg-elevated: #ffffff;
  --surface:     #ffffff;
  --surface-2:   #f6eee4;
  --border:      #eadecf;
  --border-2:    #ddcbba;
  --text:        #231d19;
  --text-soft:   #5b5047;
  --text-muted:  #8c7c6f;
  --shadow-sm:   0 1px 2px rgba(35, 29, 25, 0.04);
  --shadow:      0 8px 30px rgba(224, 196, 172, 0.18);
  --shadow-lg:   0 16px 48px rgba(224, 196, 172, 0.30);

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

  --max-w: 1280px;
  --header-h: 70px;
}

[data-theme="dark"] {
  --bg:          #141210;
  --bg-soft:     #1b1916;
  --bg-elevated: #221f1b;
  --surface:     #221f1b;
  --surface-2:   #2c2823;
  --border:      #3a352f;
  --border-2:    #4a433b;
  --text:        #f5ede4;
  --text-soft:   #d0c3b5;
  --text-muted:  #9a8b7c;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow:      0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.7);
}

/* ---------- Reset & Global ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-700); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-top: 1.4em; }
h3 { font-size: 1.3rem; margin-top: 1.2em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-soft); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--text-soft); }
li { margin-bottom: .35em; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 48px 0; }
.section-tight { padding: 24px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 242, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: background-color 0.25s;
}
[data-theme="dark"] .site-header {
  background: rgba(20, 18, 16, 0.85);
}
.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.03em;
  font-family: 'Playfair Display', serif;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
  font-family: system-ui, sans-serif;
}
.brand span { color: var(--accent); }

.main-nav {
  display: flex; align-items: center; gap: 6px;
}
.main-nav > a {
  color: var(--text-soft);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: .95rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.main-nav > a:hover { background: var(--surface-2); color: var(--text); }

/* Dropdown nav */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  color: var(--text-soft);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  user-select: none;
}
.nav-dropdown-trigger:hover { background: var(--surface-2); color: var(--text); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 110;
  animation: pa-dropdown-in .2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pa-dropdown-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--text-soft);
  font-weight: 600;
}
.nav-dropdown-menu a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 1.15rem;
  display: grid; place-items: center;
  transition: background .2s, transform .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.theme-toggle:hover { background: var(--surface-2); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ---------- Interactive Hero (screenshot replica) ---------- */
.hero-revamped {
  position: relative;
  padding: 72px 0 54px;
  overflow: hidden;
}
.hero-mesh {
  position: absolute;
  top: -20%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0) 70%);
  z-index: -1;
  pointer-events: none;
  transform: translateX(-50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}
.hero-text {
  text-align: left;
}
.hero-text .eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero-text h1 {
  margin-bottom: 18px;
  line-height: 1.12;
}
.hero-text p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 700;
  font-size: .98rem;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-pill-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-pill-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-pill-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn-pill-secondary:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.hero-stars {
  color: #fbbf24;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.hero-trust-text {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Simulated interactive dashboard card */
.hero-visual {
  position: relative;
  background: linear-gradient(135deg, rgba(254, 215, 170, 0.5), rgba(253, 186, 116, 0.2));
  border-radius: 32px;
  padding: 28px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.visual-dashboard {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.dash-tabs {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.dash-tab {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-soft);
}
.dash-tab.active {
  background: var(--accent);
  color: #fff;
}
.dash-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
}
.dash-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 90px;
  gap: 8px;
  padding-top: 10px;
}
.dash-bar {
  flex: 1;
  background: linear-gradient(to top, var(--brand-200), var(--brand-500));
  border-radius: 6px 6px 0 0;
  min-height: 10px;
  opacity: 0.85;
  transition: transform 0.3s;
}
.dash-bar:hover {
  transform: scaleY(1.15);
  opacity: 1;
}

/* Floating visual badges */
.float-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.float-badge-top {
  top: -12px; right: -12px;
  animation: floatTop 4s ease-in-out infinite alternate;
}
.float-badge-bottom {
  bottom: -12px; left: -12px;
  animation: floatBottom 4s ease-in-out infinite alternate;
}
@keyframes floatTop {
  from { transform: translateY(0) rotate(1deg); }
  to { transform: translateY(-6px) rotate(-1deg); }
}
@keyframes floatBottom {
  from { transform: translateY(0) rotate(-1deg); }
  to { transform: translateY(6px) rotate(1deg); }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: .88rem;
  color: var(--text-muted);
  padding: 16px 0 0;
  font-weight: 500;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { margin: 0 8px; opacity: .5; }

/* ---------- Partner Logos Row ---------- */
.partner-logos-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1.5px solid var(--border);
  opacity: 0.65;
  filter: grayscale(100%);
}
[data-theme="dark"] .partner-logos-row {
  filter: grayscale(100%) invert(100%);
}
.partner-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-muted);
  font-family: 'Playfair Display', serif;
}

/* ---------- Process section ---------- */
.process-section {
  padding: 54px 0;
  text-align: center;
}
.process-section h2 {
  margin-bottom: 36px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.process-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.step-num {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.process-step h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.process-step p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-soft);
}

/* ---------- Popular Combinations ---------- */
.combinations-section {
  padding: 48px 0;
  background: linear-gradient(180deg, transparent, rgba(254, 215, 170, 0.15));
  border-radius: 40px;
}
.combinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.combination-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.combination-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.combination-card p {
  margin: 0;
  font-size: .88rem;
  color: var(--text-soft);
}
.combination-card .try-btn {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: .82rem;
  padding: 8px 16px;
  border-radius: 99px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: all 0.15s;
}
.combination-card:hover .try-btn {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Testimonial quote ---------- */
.testimonial-section {
  padding: 54px 0;
  text-align: center;
}
.testimonial-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
}
.quote-icon {
  font-size: 2rem;
  color: var(--brand-300);
  margin-bottom: 12px;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
}
.author-info {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 99px;
  background: var(--brand-200);
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--brand-800);
}
.author-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}
.author-desc {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ---------- Business Value Bullets Section ---------- */
.value-bullets-section {
  padding: 48px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 32px 0;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-item {
  display: flex;
  gap: 14px;
}
.value-check {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
}
.value-item h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.value-item p {
  margin: 0;
  font-size: .88rem;
  color: var(--text-soft);
}

/* ---------- Category Section (Home Directory) ---------- */
.category-section { margin-bottom: 36px; }
.category-section h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}
.category-filters button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.category-filters button:hover,
.category-filters button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ---------- Tool Card (Directory) ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 16px 0;
}
.tool-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s, border-color .2s;
  color: var(--text);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-300);
  text-decoration: none;
}
.tool-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}
.tool-card p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Calculator Forms ---------- */
.calc-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  margin: 24px 0;
  align-items: start;
}
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-soft);
}
.field .hint { font-size: .78rem; color: var(--text-muted); font-weight: 500; }

.input-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.15);
}
.input-group .prefix,
.input-group .suffix {
  display: grid;
  place-items: center;
  padding: 0 16px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 700;
}
.input-group input,
.input-group select {
  border: 0;
  background: transparent;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--text);
  width: 100%;
  font-family: inherit;
  outline: none;
}

/* Range input */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface-2);
  border-radius: 99px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Segmented controls */
.segmented {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border);
}
.segmented label {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-soft);
  transition: background .15s, color .15s;
  user-select: none;
}
.segmented label.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ---------- Results Tiles ---------- */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.result-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.result-item .result-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.result-item .result-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}
.result-item.highlight {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-color: transparent;
  box-shadow: var(--shadow);
}
.result-item.highlight .result-label { color: rgba(255, 255, 255, 0.75); }
.result-item.highlight .result-value { color: #fff; }

/* ---------- Accordion Panels (FAQs) ---------- */
.faq-list { margin: 24px 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow);
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform .25s ease, color .2s;
  font-weight: 400;
}
.faq-item:hover summary::after {
  color: var(--accent);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-answer,
.faq-item .answer {
  padding: 12px 24px 24px;
  font-size: 0.96rem;
  color: var(--text-soft);
  line-height: 1.8;
  letter-spacing: 0.01em;
  border-top: 1px solid rgba(228, 208, 190, 0.4);
}
[data-theme="dark"] .faq-item .faq-answer,
[data-theme="dark"] .faq-item .answer {
  border-top: 1px solid rgba(74, 67, 59, 0.4);
}
.faq-item .faq-answer p,
.faq-item .answer p {
  margin: 0 0 14px;
}
.faq-item .faq-answer p:last-child,
.faq-item .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 54px 0 32px;
}
.site-footer h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-soft); font-size: .92rem; font-weight: 500; }
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding-top: 24px;
  font-size: .88rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 500;
}

/* ---------- Responsive & Mobile Override ---------- */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-text { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-trust-row { justify-content: center; }
  
  .calc-wrap {
    grid-template-columns: 1fr;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .value-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    width: 44px; height: 44px;
    border-radius: 99px;
    cursor: pointer;
    font-size: 1.3rem;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    gap: 4px;
    transform: translateY(-200%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > a { padding: 12px 14px; border-radius: 8px; }
  
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
    min-width: auto;
    animation: none;
    transform: none;
  }
  .nav-dropdown-trigger { padding: 12px 14px; border-radius: 8px; width: 100%; }
  
  .form-row.cols-2, .form-row.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Hide on print */
@media print {
  .site-header, .site-footer, .ad-slot, .related, .theme-toggle, .nav-toggle { display: none; }
}


/* ---------- AdSense Layout Elements ---------- */
.pa-ad-wrapper {
  margin: 32px auto;
  text-align: center;
  background: var(--surface-2);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible; /* Allow iframe to expand naturally without clipping */
  transition: border-color 0.25s, background-color 0.25s;
  position: relative;
}
.pa-ad-wrapper:hover {
  border-color: var(--brand-400);
  background-color: var(--brand-50);
}
[data-theme="dark"] .pa-ad-wrapper:hover {
  background-color: rgba(234, 88, 12, 0.08);
}
.pa-ad-wrapper::before {
  content: "ADVERTISEMENT";
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.horizontal-ad {
  width: 100%;
  max-width: 100%;
}
.sidebar-ad {
  width: 100%;
  min-height: 280px;
}

/* Accessibility Skip Link styling */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.skip-link:focus {
  top: 0;
  outline: none;
}


/* =========================================================
   Restored & Revamped Component Styles (Tables, Charts, etc.)
   ========================================================= */

/* ---------- Results Grid & Tiles (Unified) ---------- */
.result-grid,
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.result-item,
.result-tile {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.result-item:hover,
.result-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.result-item .result-label,
.result-tile .label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.result-item .result-value,
.result-tile .value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.result-item.highlight,
.result-tile.primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-color: transparent;
  box-shadow: var(--shadow);
}
.result-item.highlight .result-label,
.result-tile.primary .label { color: rgba(255, 255, 255, 0.8); }
.result-item.highlight .result-value,
.result-tile.primary .value { color: #fff; }

.result-item .sub,
.result-tile .sub {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}
.result-item.highlight .sub,
.result-tile.primary .sub {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Data Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  color: var(--text);
}
table.data th, table.data td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text-soft);
  position: sticky;
  top: 0;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
.table-note { font-size: .82rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

/* ---------- Callouts & Formulas ---------- */
.callout {
  background: var(--brand-50);
  border: 1.5px solid var(--brand-200);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
[data-theme="dark"] .callout {
  background: rgba(234, 88, 12, 0.08);
  border-color: rgba(234, 88, 12, 0.25);
}
.callout h3 { margin-top: 0; color: var(--accent); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.15rem; }
.callout p:last-child { margin-bottom: 0; }

.formula {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  padding: 16px;
  border-radius: 12px;
  font-size: .92rem;
  margin: 12px 0;
  color: var(--text);
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

/* ---------- Example Explanations ---------- */
.example-box {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.example-box h3 { margin-top: 0; color: var(--accent); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; font-weight: 700; }
.example-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.example-box dt { font-weight: 700; color: var(--text-soft); font-size: .92rem; }
.example-box dd { margin: 0; color: var(--text); font-weight: 700; font-size: .92rem; }

/* ---------- Breakdown Bars ---------- */
.breakdown-bar {
  display: flex;
  height: 16px;
  border-radius: 99px;
  overflow: hidden;
  margin: 20px 0 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.breakdown-bar > span { display: block; height: 100%; }

.legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: .88rem; color: var(--text-soft);
  margin-top: 8px;
}
.legend .dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- SVG Charts ---------- */
.chart-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 20px 0 8px;
}
.chart-donut {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}
.chart-legend {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chart-legend .leg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}
.chart-legend .leg-item:hover {
  transform: translateX(3px);
}
.chart-legend .leg-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}
.chart-legend .leg-label {
  flex: 1;
  font-size: .92rem;
  color: var(--text-soft);
  font-weight: 600;
}
.chart-legend .leg-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.chart-legend .leg-pct {
  font-size: .82rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.chart-container {
  margin: 20px 0;
  padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.chart-container .chart-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-soft);
  margin: 0 0 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.chart-container svg {
  display: block;
  width: 100%;
  height: auto;
}
.chart-container .chart-axis-label {
  font-size: .8rem;
  fill: var(--text-muted);
  font-family: inherit;
  font-weight: 500;
}

/* ---------- Tool Card Icons ---------- */
.tool-card .icon,
.tool-card .icon-svg {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .tool-card .icon,
[data-theme="dark"] .tool-card .icon-svg {
  background: rgba(234, 88, 12, 0.15);
}
.tool-card .icon-svg svg {
  width: 26px;
  height: 26px;
}

/* ---------- Brand Image Logo ---------- */
.brand-img {
  height: 38px;
  width: auto;
  display: block;
}
.site-footer .brand-img {
  height: 34px;
  margin-bottom: 0;
}

/* ---------- Segmented Radio Hide & Dropdown Option Style ---------- */
.segmented input[type="radio"] {
  display: none;
}
.input-group select option {
  background-color: var(--surface-2);
  color: var(--text);
}
