/* ==========================================================================
   PAYFLOWTOOLS PRO — NEXT-GEN FINTECH COCKPIT DESIGN SYSTEM (2026)
   Engineered for Maximum CTR, Visual Impact & 100% Search Engine Fidelity
   ========================================================================== */

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

:root {
  /* Color Palette: Deep Space Obsidian & Electric Accents */
  --bg-base: #06090f;
  --bg-canvas: #090e17;
  --bg-surface: #0e1524;
  --bg-surface-elevated: #131d31;
  --bg-surface-hover: #18243c;
  --bg-glass: rgba(14, 21, 36, 0.78);

  /* Text & Hierarchy */
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #8494ab;
  --text-dim: #526175;

  /* Primary Accent: Electric Cyan & Tech Indigo */
  --cyan-primary: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.25);
  --cyan-soft: rgba(56, 189, 248, 0.1);
  --indigo-accent: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.2);

  /* Secondary Accent: Emerald Precision */
  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --emerald-soft: rgba(16, 185, 129, 0.12);

  /* Structural Borders & Highlights */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(56, 189, 248, 0.35);
  --inset-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px -4px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-subtle);
  --shadow-lg: 0 24px 50px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--border-strong);
  --shadow-glow: 0 0 35px -5px var(--cyan-glow);

  /* Geometry & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1220px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

/* Base Styles */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(circle 600px at 95% 30%, rgba(99, 102, 241, 0.07), transparent),
    radial-gradient(circle 500px at 5% 70%, rgba(16, 185, 129, 0.06), transparent),
    linear-gradient(180deg, #06090f 0%, #090e17 35%, #06090f 100%);
  color: var(--text-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle architectural grid pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: min(var(--container-max), calc(100% - 2.5rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.narrow-container {
  width: min(680px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  max-width: 230px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.02);
  opacity: 0.96;
}

@media (max-width: 520px) {
  .brand-logo {
    max-width: 175px;
    height: 32px;
  }
}

.site-nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.site-nav a {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.18s ease;
  position: relative;
}

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

.site-nav a.is-active {
  color: var(--cyan-primary);
  background: var(--cyan-soft);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.nav-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-strong);
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 0.75rem 1rem; }
}

/* ==========================================================================
   HERO & SUB-HERO SECTION
   ========================================================================== */
.hero, .sub-hero {
  padding: 3.5rem 0 2.25rem;
  position: relative;
  z-index: 1;
}

.sub-hero-tool {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid, .sub-hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.sub-hero-inner {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
}

@media (max-width: 860px) {
  .sub-hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan-primary);
  background: var(--cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
  box-shadow: 0 0 15px -3px var(--cyan-glow);
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 10px var(--emerald-primary);
}

.hero h1, .sub-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0.5rem 0 0.9rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p, .sub-hero p {
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  max-width: 68ch;
}

.hero-aside.card {
  background: linear-gradient(145deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-aside span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan-primary);
  font-weight: 700;
}

.hero-aside strong {
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.crumb-sep {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.breadcrumbs span[aria-current="page"] {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   THE CALCULATOR COCKPIT (THE CENTERPIECE ENGINE)
   Two-Column Split Deck: Inputs Left, Sticky Financial Terminal Right
   ========================================================================== */
.tool-section {
  padding: 1.5rem 0 3.5rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 2.25rem;
  align-items: start;
}

@media (max-width: 1040px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}

/* Floating Section Anchor Navigation Bar */
.section-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.section-anchor-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.16s ease;
}

.section-anchor-nav a:hover {
  color: #ffffff;
  background: var(--bg-surface-elevated);
}

.section-anchor-nav a:first-child {
  color: var(--cyan-primary);
  background: var(--cyan-soft);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.3);
}

/* Preset Rails */
.preset-rail {
  margin-bottom: 1.5rem;
}

.preset-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.preset-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.preset-chip:hover {
  border-color: var(--cyan-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.preset-chip.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.2));
  border-color: var(--cyan-primary);
  color: #ffffff;
  box-shadow: 0 0 15px -3px var(--cyan-glow);
}

/* Tool Deck Container */
.calc-tool {
  background: linear-gradient(170deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-md) !important;
  padding: 2rem !important;
  box-shadow: var(--shadow-md) !important;
  margin: 1.5rem 0 2.5rem !important;
  display: grid !important;
  gap: 2rem !important;
}

@media (min-width: 900px) {
  .calc-tool {
    grid-template-columns: 1.15fr 0.85fr !important;
    align-items: start !important;
    gap: 2.25rem !important;
  }
}

/* Inputs Side */
.calc-form-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.calc-input {
  display: flex;
  flex-direction: column;
}

.calc-input label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.calc-input input,
.calc-input select {
  width: 100%;
  background: #080d16 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-sm) !important;
  color: #ffffff !important;
  font-family: var(--font-mono) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  padding: 0.85rem 1rem !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.18s ease !important;
}

.calc-input input:focus,
.calc-input select:focus {
  outline: none !important;
  border-color: var(--cyan-primary) !important;
  box-shadow: 0 0 0 3px var(--cyan-glow), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  background: #0b121e !important;
}

.calc-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan-primary), #0284c7);
  color: #04101e;
  box-shadow: 0 4px 15px -2px var(--cyan-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -4px var(--cyan-glow);
  background: linear-gradient(135deg, #7dd3fc, var(--cyan-primary));
}

.button-secondary {
  background: var(--bg-surface-elevated) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-sm) !important;
}

.button-secondary:hover {
  background: var(--bg-surface-hover) !important;
  border-color: var(--border-strong) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   RESULT PANEL: THE EXECUTIVE FINANCIAL TILE (BLOOMBERG/STRIPE TERMINAL)
   ========================================================================== */
.result-panel {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.08) 0%, rgba(14, 21, 36, 0.96) 55%, rgba(9, 14, 24, 0.98) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.85rem !important;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) {
  .result-panel {
    position: sticky !important;
    top: 96px !important;
  }
}

.result-panel::before {
  content: 'LIVE ESTIMATE';
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.result-panel h2, .result-panel h3 {
  font-size: 0.84rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-weight: 800 !important;
  color: var(--text-muted) !important;
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
}

.result-value {
  font-family: var(--font-mono) !important;
  font-size: clamp(2.4rem, 4vw, 3.2rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  margin: 0.5rem 0 1.25rem !important;
  word-break: break-word !important;
  text-shadow: 0 0 30px var(--emerald-glow) !important;
}

.result-breakdown {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  margin-bottom: 1.35rem;
  font-size: 0.92rem;
}

.result-breakdown div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.result-breakdown strong {
  font-family: var(--font-mono);
  color: #f8fafc;
  font-weight: 700;
}

.result-actions #copy-result {
  width: 100%;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.result-actions #copy-result:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--cyan-primary) !important;
  color: var(--cyan-primary) !important;
}

/* Timesheet input styling */
.timesheet-grid {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.timesheet-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 90px;
  gap: 0.6rem;
  align-items: center;
}

.timesheet-row span {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CARDS, SECTIONS & STRUCTURED CONTENT
   ========================================================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.prose-card {
  padding: 2.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.section-card {
  margin-top: 1.5rem;
  padding: 1.75rem 2rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* Formulas & Method Box */
.formula-box {
  margin: 2rem 0;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, #0a0f1a, #080d15);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--cyan-primary);
  box-shadow: var(--shadow-sm);
}

.formula-box h2 {
  font-size: 1.2rem;
  margin-top: 0;
  color: #ffffff;
}

.formula-box p:first-of-type {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cyan-primary);
  background: rgba(56, 189, 248, 0.08);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin: 1rem 0;
}

/* Input Guide Cards */
.input-guide-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.25rem;
}

.input-guide-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.input-guide-card:hover {
  border-color: var(--border-strong);
}

.input-guide-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #ffffff;
}

.input-guide-card p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.input-guide-card small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Example Callout */
.example-box {
  margin: 2rem 0;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(99, 102, 241, 0.08), rgba(14, 21, 36, 0.9));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-left: 4px solid var(--indigo-accent);
}

.example-box h2 {
  font-size: 1.2rem;
  margin-top: 0;
  color: #ffffff;
}

/* Quick Reference Conversion Table & FMLA Card */
.quick-table-card {
  margin-top: 2.25rem;
  padding: 2rem;
}
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}
.conversion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  text-align: left;
}
.conversion-table th {
  background: #090e17;
  color: var(--cyan-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 1.15rem;
  border-bottom: 2px solid var(--border-strong);
}
.conversion-table td {
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
}
.conversion-table tr:hover td {
  background: rgba(56, 189, 248, 0.06);
}
.conversion-table .highlight-row td {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #ffffff !important;
  font-weight: 600;
  border-top: 1px solid rgba(16, 185, 129, 0.35);
  border-bottom: 1px solid rgba(16, 185, 129, 0.35);
}
.fmla-callout-card {
  margin-top: 1.75rem;
  padding: 1.65rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.1) 0%, rgba(14, 21, 36, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 4px solid var(--emerald-primary);
}
.fmla-callout-card h3 {
  margin-top: 0;
  color: #ffffff;
  font-size: 1.15rem;
}
.fmla-callout-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}
.fmla-callout-card ul {
  padding-left: 1.35rem;
  margin: 0.75rem 0 0;
  color: var(--text-body);
}
.fmla-callout-card li {
  margin-bottom: 0.45rem;
  font-size: 0.94rem;
}

/* Guide Tool Launcher Card */
.guide-tool-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.08) 0%, rgba(14, 21, 36, 0.95) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-left: 4px solid var(--cyan-primary) !important;
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
}
@media (max-width: 760px) {
  .guide-tool-launcher {
    flex-direction: column;
    align-items: flex-start;
  }
}
.launcher-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan-primary);
  display: inline-block;
  margin-bottom: 0.35rem;
}
.launcher-copy h3 {
  margin: 0 0 0.35rem;
  color: #ffffff;
  font-size: 1.15rem;
}
.launcher-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.launcher-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Checklists with Custom Checkmarks */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.check-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.8rem;
  color: var(--text-body);
  font-size: 0.96rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--emerald-soft);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

/* FAQs */
.faq-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.faq-list details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
}

.faq-list details[open] {
  border-color: rgba(56, 189, 248, 0.3);
  background: var(--bg-surface);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.02rem;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cyan-primary);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* Sidebar Stack */
.sidebar-stack {
  display: grid;
  gap: 1.5rem;
}

.side-card {
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.side-card h2 {
  font-size: 1.05rem;
  margin-top: 0;
  color: #ffffff;
  letter-spacing: -0.01em;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Card Grids for Home & Categories */
.section {
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: -0.03em;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 65ch;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.category-card, .calc-card, .guide-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card:hover, .calc-card:hover, .guide-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card h3, .calc-card h3, .guide-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0.65rem;
  color: #ffffff;
}

.category-card h3 a:hover, .calc-card h3 a:hover, .guide-card h3 a:hover {
  color: var(--cyan-primary);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.text-link {
  color: var(--cyan-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.text-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Two Column Layouts */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 820px) {
  .two-column { grid-template-columns: 1fr; }
}

.mini-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.mini-list a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.18s ease;
}

.mini-list a:hover {
  border-color: var(--cyan-primary);
  color: #ffffff;
  transform: translateX(3px);
}

/* AdSlot Stability */
.ad-slot-shell {
  min-height: 90px;
  margin: 2rem 0;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border-strong);
  background: #04060a;
  padding: 4rem 0 3rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-grid h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-top: 0;
}

.footer-grid h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan-primary);
  margin-top: 0;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-grid ul a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-grid ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: #ffffff; }
