/* ── SplitLogic Design System ── */
:root {
  --accent:       #3ad4b5;
  --accent-dark:  #2ab89a;
  --accent-light: #e6faf6;
  --dark:         #192938;
  --dark-navy:    #1a2d4a;
  --text:         #192938;
  --text-muted:   #657588;
  --bg:           #f8f9fb;
  --bg-white:     #ffffff;
  --border:       #e2e8f0;
  --radius-sm:    0.5rem;
  --radius-md:    0.75rem;
  --radius-lg:    1.5rem;
  --radius-full:  9999px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; color: var(--dark); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--dark); opacity: 1; }

.btn-white {
  background: white;
  color: var(--dark);
}
.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover { color: white; border-color: white; opacity: 1; }

/* ── Layout helpers ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 1.5rem; }
.section-sm { padding: 3rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── Dividers ── */
.bg-dark  { background: var(--dark-navy); color: white; }
.bg-white { background: white; }
.bg-tint  { background: var(--bg); }

/* ════════════════════════════════
   NAV — Homepage variant (white)
   ════════════════════════════════ */
.nav-home {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-home .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.nav-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.nav-brand span { color: var(--accent-dark); }

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--dark); }

/* ════════════════════════════════
   NAV — Calculator page variant (minimal)
   ════════════════════════════════ */
.nav-calc {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-calc .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
}
.nav-calc .nav-back {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}
.nav-calc .nav-back:hover { color: var(--dark); }
.nav-calc .nav-logo {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.nav-calc .nav-logo span { color: var(--accent-dark); }
.nav-calc .nav-cta { display: flex; justify-content: flex-end; }

/* ════════════════════════════════
   HERO — Homepage
   ════════════════════════════════ */
.hero-home {
  background: white;
  padding: 5rem 1.5rem 4rem;
}
.hero-home .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-home .hero-inner { grid-template-columns: 1fr 1fr; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-home h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.hero-home h1 em {
  font-style: normal;
  color: var(--accent-dark);
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Hero preview card */
.hero-preview {
  background: var(--dark-navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: white;
}
.hero-preview-label {
  font-size: 0.8rem;
  opacity: 0.6;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}
.hero-preview-name { font-weight: 600; font-size: 0.95rem; }
.hero-preview-pct  { font-size: 0.8rem; opacity: 0.6; }
.hero-preview-amt  { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.hero-preview-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ════════════════════════════════
   HERO — Calculator landing page
   ════════════════════════════════ */
.hero-calc {
  background: white;
  padding: 3.5rem 1.5rem 3rem;
}
.hero-calc .hero-inner {
  max-width: 860px;
  margin: 0 auto;
}
.hero-calc .calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-calc h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-calc .hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-calc .hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ════════════════════════════════
   BREADCRUMBS
   ════════════════════════════════ */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--dark); }
.breadcrumbs .sep { opacity: 0.4; }

/* ════════════════════════════════
   HOW IT WORKS (dark section)
   ════════════════════════════════ */
.how-it-works {
  background: var(--dark-navy);
  padding: 4rem 1.5rem;
  color: white;
}
.how-it-works .section-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.how-it-works h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.how-it-works .steps-sub {
  color: rgba(255,255,255,0.55);
  margin-bottom: 3rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 600px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; }
.step-num {
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: var(--dark);
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p  { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; }

/* connector line between steps on desktop */
@media (min-width: 600px) {
  .steps-grid { position: relative; }
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(16.67% + 26px);
    right: calc(16.67% + 26px);
    height: 1px;
    background: rgba(255,255,255,0.15);
  }
}

/* ════════════════════════════════
   CALCULATOR SECTION WRAPPER
   ════════════════════════════════ */
.calc-section {
  padding: 3rem 1.5rem;
  background: var(--bg);
}
.calc-section .section-inner { max-width: 1100px; margin: 0 auto; }
.calc-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.calc-section-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

/* ════════════════════════════════
   FAQ SECTION
   ════════════════════════════════ */
.faq-section {
  padding: 4rem 1.5rem;
  background: white;
}
.faq-section .section-inner { max-width: 760px; margin: 0 auto; }
.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.faq-a { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ════════════════════════════════
   BLOG CARDS
   ════════════════════════════════ */
.blog-section {
  padding: 4rem 1.5rem;
  background: var(--bg);
}
.blog-section .section-inner { max-width: 1200px; margin: 0 auto; }
.blog-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: block;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.blog-card-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
.blog-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

/* ════════════════════════════════
   CALCULATOR GRID (homepage)
   ════════════════════════════════ */
.calcs-section {
  padding: 4rem 1.5rem;
  background: var(--bg);
}
.calcs-section .section-inner { max-width: 1200px; margin: 0 auto; }
.calcs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.calcs-header h2 { font-size: 1.75rem; font-weight: 800; }
.calcs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 500px) { .calcs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .calcs-grid { grid-template-columns: repeat(4, 1fr); } }

.calc-card-home {
  display: block;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.calc-card-home:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.calc-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.calc-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.calc-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ════════════════════════════════
   BOTTOM CTA SECTION (dark)
   ════════════════════════════════ */
.cta-section {
  background: var(--dark-navy);
  padding: 4rem 1.5rem;
  text-align: center;
  color: white;
}
.cta-section h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta-section p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.cta-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════
   AD PLACEMENT
   ════════════════════════════════ */
.ad-strip {
  padding: 0.75rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--border);
}
.ad-strip .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.ad-placeholder {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
.site-footer {
  background: var(--dark-navy);
  padding: 2.5rem 1.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .site-footer .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-brand {
  font-weight: 800;
  font-size: 1rem;
  color: white;
  letter-spacing: -0.02em;
}
.footer-brand span { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a { color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-copy { color: rgba(255,255,255,0.35); }

/* ════════════════════════════════
   CALCULATOR TOOL — shared card styles
   ════════════════════════════════ */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .tool-grid { grid-template-columns: 1fr 1fr; }
}

.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.tool-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Results card (dark) */
.results-card {
  background: var(--dark-navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: white;
}
.results-card h2 {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  border-bottom: none;
  padding-bottom: 0;
  color: white;
}
.result-item {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.result-name { font-weight: 600; font-size: 0.95rem; }
.result-pct  { font-size: 0.8rem; opacity: 0.55; }
.result-amt  { font-size: 1.2rem; font-weight: 800; color: var(--accent); }
.results-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-weight: 600;
  font-size: 0.9rem;
}
.results-total-amt { font-size: 1.1rem; font-weight: 800; }

/* Form controls */
.input-group { margin-bottom: 1rem; }
.input-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.input-group input,
.input-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.975rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58,212,181,0.12);
  background: white;
}

/* Person card */
.person-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}
.person-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.person-name { font-weight: 700; font-size: 0.9rem; }

/* Method tabs */
.method-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  margin-bottom: 1.25rem;
}
.method-tab {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  color: var(--text-muted);
  border: none;
  background: none;
  font-family: inherit;
}
.method-tab.active {
  background: white;
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Add / Remove buttons */
.btn-add {
  width: 100%;
  padding: 0.65rem;
  background: white;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
  margin-top: 0.5rem;
}
.btn-add:hover { border-color: var(--accent); color: var(--dark); }

.btn-remove {
  background: none;
  border: none;
  color: #e53e3e;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  opacity: 0.6;
  transition: opacity 0.15s;
}
.btn-remove:hover { opacity: 1; }

/* Copy button */
.btn-copy {
  width: 100%;
  margin-top: 1rem;
  padding: 0.65rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.btn-copy:hover { background: rgba(255,255,255,0.18); }

/* Warning box */
.warning-box {
  background: #fffbeb;
  border: 1px solid #f6e05e;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #744210;
  margin-bottom: 1rem;
}

.hidden { display: none !important; }

/* ════════════════════════════════
   RESPONSIVE UTILITIES
   ════════════════════════════════ */
@media (max-width: 640px) {
  .section { padding: 3rem 1rem; }
  .hero-home { padding: 3rem 1rem 2.5rem; }
  .hero-calc { padding: 2.5rem 1rem 2rem; }
  .how-it-works { padding: 3rem 1rem; }
  .calc-section { padding: 2rem 1rem; }
  .cta-section { padding: 3rem 1rem; }
  .faq-section { padding: 2.5rem 1rem; }
  .blog-section { padding: 2.5rem 1rem; }
}
