/* ==========================================================
   Uplift Tax — Design System
   Mobile-first. No external dependencies. No build step.
   ========================================================== */

/* ----------------------------------------------------------
   CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  /* Colours */
  --navy:      #0d2240;
  --blue:      #1a4480;
  --mid:       #2563eb;
  --accent:    #0ea5e9;
  --white:     #ffffff;
  --off-white: #f8fafc;
  --slate:     #475569;
  --text:      #1e293b;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --input-border: #cbd5e1;
  --error:     #dc2626;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  clamp(1.25rem, 2.5vw, 1.5rem);
  --text-3xl:  clamp(1.5rem, 3vw, 2rem);
  --text-4xl:  clamp(2rem, 4vw, 2.75rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 1200px;
  --gutter:    1.5rem;

  /* Borders */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow:    0 4px 12px rgba(0,0,0,0.10);
}

/* ----------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mid);
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,0.4);
  transition: color 150ms ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration-color: #1d4ed8;
}

ul, ol {
  padding-left: var(--space-6);
}

strong {
  font-weight: 600;
}

/* ----------------------------------------------------------
   Layout Utilities
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; }
  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

@media (min-width: 1024px) {
  :root { --gutter: 3rem; }
}

.section--white    { background: var(--white); }
.section--off-white { background: var(--off-white); }
.section--navy     { background: var(--navy); color: var(--white); }
.section--blue     { background: var(--blue); color: var(--white); }

/* ----------------------------------------------------------
   Typography Helpers
   ---------------------------------------------------------- */
.heading-1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.heading-3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.25;
}

.heading-4 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
}

.text-lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--slate);
}

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

.text-small {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.section-label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav__logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav__links {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  gap: var(--space-6);
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 150ms ease;
}

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

.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-4) 0;
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__mobile li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__mobile a {
  display: block;
  padding: var(--space-4) var(--gutter);
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.nav__mobile a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}

@media (min-width: 768px) {
  .nav__hamburger { display: none; }
  .nav__links     { display: flex; }
  .nav__mobile    { display: none !important; }
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 14px 28px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* CTA — accent blue, highest priority */
.btn--cta {
  background: var(--accent);
  color: var(--white);
}

.btn--cta:hover {
  background: #0284c7;
  color: var(--white);
  text-decoration: none;
}

/* Primary — mid blue */
.btn--primary {
  background: var(--mid);
  color: var(--white);
}

.btn--primary:hover {
  background: #1d4ed8;
  color: var(--white);
  text-decoration: none;
}

/* Secondary — outline */
.btn--secondary {
  background: transparent;
  border-color: var(--mid);
  color: var(--mid);
}

.btn--secondary:hover {
  background: var(--mid);
  color: var(--white);
  text-decoration: none;
}

/* Outline on dark bg */
.btn--outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

.btn--lg {
  font-size: var(--text-lg);
  padding: 18px 36px;
}

.btn--full {
  display: block;
  width: 100%;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .hero {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

.hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.hero__headline {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  max-width: 800px;
}

.hero__sub {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-8);
  max-width: 640px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

@media (min-width: 480px) {
  .hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.hero__trust-item {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__trust-item::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   Cards
   ---------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.card--on-grey {
  background: var(--white);
}

.card--on-white {
  background: var(--off-white);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
  color: var(--mid);
}

.card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.card__heading {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.card__body {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: 1.65;
}

.card__stat {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--navy);
  margin-top: var(--space-4);
}

/* ----------------------------------------------------------
   Grid Layouts
   ---------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ----------------------------------------------------------
   Steps
   ---------------------------------------------------------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-top: 2px;
}

.step__content {}

.step__heading {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.step__body {
  color: var(--slate);
  line-height: 1.65;
}

.step__time {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  background: #f0f9ff;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: var(--space-2);
}

/* ----------------------------------------------------------
   FAQ / Accordion
   ---------------------------------------------------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-6);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  transition: background 150ms ease;
}

.faq__question:hover {
  background: var(--off-white);
}

.faq__question::after {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--mid);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 200ms ease;
}

.faq__question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--slate);
  line-height: 1.7;
  display: none;
}

.faq__answer.is-open {
  display: block;
}

/* ----------------------------------------------------------
   Stats / Social Proof
   ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

.stat {
  text-align: center;
  padding: var(--space-6);
}

.stat__number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.4;
}

/* ----------------------------------------------------------
   CTA Banner
   ---------------------------------------------------------- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  text-align: center;
}

.cta-banner__heading {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cta-banner__body {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 480px) {
  .cta-banner__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ----------------------------------------------------------
   Callout Box (accountant, partner section)
   ---------------------------------------------------------- */
.callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--mid);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.callout--navy {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 4px solid var(--accent);
}

.callout__heading {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.callout--navy .callout__heading {
  color: var(--white);
}

.callout__body {
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.callout--navy .callout__body {
  color: rgba(255,255,255,0.8);
}

/* ----------------------------------------------------------
   Forms
   ---------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text);
  transition: border-color 100ms ease, box-shadow 100ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--mid);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: var(--space-2);
}

/* Checkboxes */
.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--mid);
  cursor: pointer;
}

.form-checkbox__label {
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
}

/* Hidden honeypot */
.form-honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* Confirmation */
.form-confirmation {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

.form-confirmation__heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.form-confirmation__body {
  color: var(--slate);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   Page Header (inner pages)
   ---------------------------------------------------------- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .page-header {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

.page-header__heading {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  max-width: 720px;
}

.page-header__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   Section headings
   ---------------------------------------------------------- */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-heading__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.section-heading--light .section-heading__title {
  color: var(--white);
}

.section-heading__body {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.section-heading--light .section-heading__body {
  color: rgba(255,255,255,0.7);
}

/* ----------------------------------------------------------
   Disclaimer
   ---------------------------------------------------------- */
.disclaimer {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  padding: var(--space-4);
  border-top: 1px solid var(--border);
  margin-top: var(--space-8);
}

/* ----------------------------------------------------------
   Process timeline (How It Works)
   ---------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-8);
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -48px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  z-index: 1;
}

.timeline__heading {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.timeline__body {
  color: var(--slate);
  line-height: 1.65;
}

.timeline__duration {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  background: #f0f9ff;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: var(--space-2);
}

/* ----------------------------------------------------------
   Partner PLP specific
   ---------------------------------------------------------- */
.plp-hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-16) 0;
}

.plp-section {
  padding: var(--space-12) 0;
}

.plp-section:nth-child(even) {
  background: var(--off-white);
}

.volume-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.volume-table th,
.volume-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.volume-table th {
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
}

.volume-table tr:last-child td {
  border-bottom: none;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: var(--space-12) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.footer__logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  max-width: 260px;
  line-height: 1.5;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 150ms ease;
}

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

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

/* ----------------------------------------------------------
   Privacy Policy
   ---------------------------------------------------------- */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.prose h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose p {
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.prose ul, .prose ol {
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--mid);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* ----------------------------------------------------------
   Utility classes
   ---------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ==========================================================
   Blog — Enhanced Design System
   ========================================================== */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--mid));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Breadcrumb */
.breadcrumb {
  padding: var(--space-4) 0 var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--mid); }
.breadcrumb__sep { margin: 0 var(--space-2); opacity: 0.5; }

/* Blog hero */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1e3a5f 100%);
  color: var(--white);
  padding: var(--space-16) 0 var(--space-12);
  margin-bottom: var(--space-12);
}
.blog-hero__category {
  display: inline-block;
  background: rgba(14,165,233,0.2);
  color: var(--accent);
  border: 1px solid rgba(14,165,233,0.4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: var(--space-4);
}
.blog-hero__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: var(--space-6);
  max-width: 800px;
}
.blog-hero__intro {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 740px;
  margin-bottom: var(--space-6);
}
.blog-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}
.blog-hero__meta span { display: flex; align-items: center; gap: 6px; }

/* Blog layout: content + sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-12);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
}

/* TOC sidebar */
.blog-sidebar { position: sticky; top: 88px; }
.toc {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.toc__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.toc__list { list-style: none; padding: 0; }
.toc__list li { margin-bottom: var(--space-2); }
.toc__list a {
  font-size: var(--text-sm);
  color: var(--slate);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  transition: all 150ms;
}
.toc__list a:hover,
.toc__list a.active {
  color: var(--mid);
  border-left-color: var(--mid);
}
.toc-cta {
  margin-top: var(--space-6);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius);
  padding: var(--space-6);
  color: white;
  text-align: center;
}
.toc-cta p { font-size: var(--text-sm); color: rgba(255,255,255,0.8); margin-bottom: var(--space-4); line-height: 1.5; }
.toc-cta .btn { font-size: var(--text-sm); padding: 10px 16px; display: block; }

/* Blog content */
.blog-content { min-width: 0; }
.blog-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--navy);
  margin: var(--space-12) 0 var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  scroll-margin-top: 88px;
}
.blog-content h2:first-child { margin-top: 0; border-top: none; }
.blog-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  margin: var(--space-8) 0 var(--space-3);
}
.blog-content p {
  margin-bottom: var(--space-5);
  line-height: 1.8;
  font-size: 1.05rem;
  color: #2d3748;
}
.blog-content ul, .blog-content ol {
  margin: var(--space-4) 0 var(--space-6) var(--space-6);
}
.blog-content li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
  font-size: 1.05rem;
}
.blog-content strong { color: var(--navy); }
.blog-content a { font-weight: 500; }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}
.stat-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  color: white;
}
.stat-card__number {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-card__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

/* Callout boxes */
.callout {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  border-left: 4px solid;
}
.callout--key {
  background: #eff6ff;
  border-color: var(--mid);
}
.callout--warning {
  background: #fffbeb;
  border-color: #f59e0b;
}
.callout--success {
  background: #f0fdf4;
  border-color: #16a34a;
}
.callout--info {
  background: #f0f9ff;
  border-color: var(--accent);
}
.callout__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.callout--key .callout__title { color: var(--blue); }
.callout--warning .callout__title { color: #b45309; }
.callout--success .callout__title { color: #15803d; }
.callout--info .callout__title { color: #0369a1; }
.callout p { margin-bottom: 0; font-size: var(--text-sm); line-height: 1.7; }
.callout p + p { margin-top: var(--space-3); }

/* Data table */
.data-table-wrap { overflow-x: auto; margin: var(--space-8) 0; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.data-table th {
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.data-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table tr:nth-child(even) td { background: var(--off-white); }
.data-table tr:hover td { background: #eff6ff; }
.data-table td strong { color: var(--navy); }

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0 !important;
}

/* Worked example box */
.worked-example {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-8) 0;
}
.worked-example__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.worked-example__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--space-4);
}
.worked-example__row:last-child { border-bottom: none; }
.worked-example__row span:first-child { color: var(--slate); font-size: 0.95rem; }
.worked-example__row span:last-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
.worked-example__total {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 2px solid var(--navy);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--navy);
}

/* Steps list */
.steps { list-style: none; padding: 0; margin: var(--space-6) 0; }
.steps li {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  align-items: flex-start;
}
.steps__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--mid);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-top: 2px;
}
.steps__content h3 { margin-top: 0; font-size: 1rem; }
.steps__content p { font-size: 0.95rem; margin-bottom: 0; }

/* FAQ enhanced */
.blog-faq { margin: var(--space-12) 0; }
.blog-faq h2 { margin-bottom: var(--space-6); }
.blog-faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.blog-faq__q {
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: var(--white);
  transition: background 150ms;
}
.blog-faq__q:hover { background: var(--off-white); }
.blog-faq__q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: var(--space-4);
  transition: transform 200ms;
}
.blog-faq__item.open .blog-faq__q::after { transform: rotate(45deg); }
.blog-faq__a {
  padding: 0 var(--space-6);
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}
.blog-faq__item.open .blog-faq__a {
  padding: 0 var(--space-6) var(--space-5);
  max-height: 500px;
}
.blog-faq__a p { font-size: 0.95rem; margin-bottom: 0; color: var(--slate); }

/* Related posts */
.related-posts {
  border-top: 1px solid var(--border);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
}
.related-posts__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-6);
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}
.related-post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  color: inherit;
  transition: all 200ms;
  display: block;
  background: var(--white);
}
.related-post-card:hover {
  border-color: var(--mid);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}
.related-post-card__cat {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.related-post-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
}

/* CTA block */
.blog-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  margin: var(--space-12) 0;
  color: white;
}
.blog-cta h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-4);
  border: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}
.blog-cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-6);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.blog-cta .btn { display: inline-block; }
