/* ==========================================================================
   Virtual Advisor — Design System
   RVK Business Advisory Services Pvt Ltd
   Brand palette extracted from logo:
   Blue #0068A0 · Orange #EF7F1A · Green #72AD44 · Charcoal #2B2A29 · Gray #727271
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --blue: #0068a0;
  --blue-dark: #00517d;
  --blue-darker: #013a59;
  --blue-light: #e8f3f9;
  --blue-mid: #4a9cc7;
  --orange: #ef7f1a;
  --orange-dark: #d96e0d;
  --orange-light: #fdf1e4;
  --green: #72ad44;
  --green-dark: #5d9134;
  --green-light: #f0f7e9;
  --charcoal: #2b2a29;
  --gray: #727271;
  --gray-light: #a5a5a4;
  --line: #e3e8ec;
  --bg-soft: #f5f8fa;
  --white: #ffffff;

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-head: "DM Sans", "Segoe UI", -apple-system, sans-serif;
  --font-body: "DM Sans", "Segoe UI", -apple-system, sans-serif;

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Texture: fine film grain (SVG turbulence) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");

  /* Scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.625rem;
  --fs-3xl: 3.25rem;

  /* Layout */
  --container: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(43, 42, 41, 0.08);
  --shadow: 0 6px 24px rgba(1, 58, 89, 0.1);
  --shadow-lg: 0 14px 40px rgba(1, 58, 89, 0.16);
  --header-h: 84px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange);
}

ul,
ol {
  padding-left: 1.3em;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.22;
  color: var(--charcoal);
}

/* Display serif for the two top levels — the editorial signature */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
h4, .h4 { font-size: var(--fs-md); }

em, .accent-italic {
  font-style: italic;
}

h1 em, h2 em {
  font-variation-settings: "SOFT" 60, "WONK" 1;
  color: var(--orange);
}

p + p { margin-top: 1em; }

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

::selection {
  background: var(--blue);
  color: var(--white);
}

/* Film grain over everything — kills digital flatness */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  pointer-events: none;
  z-index: 2000;
}

/* Brand tricolor hairline — the logo's orange/green/blue as a signature edge */
.brand-rule {
  height: 3px;
  background: linear-gradient(90deg,
    var(--orange) 0%, var(--orange) 22%,
    var(--green) 22%, var(--green) 34%,
    var(--blue) 34%, var(--blue) 100%);
}

/* ---------- Utilities ---------- */
.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-green { color: var(--green); }

.section {
  padding: 88px 0;
}

.section--soft {
  background:
    radial-gradient(900px 400px at 105% 0%, rgba(0, 104, 160, 0.05), transparent 60%),
    radial-gradient(700px 380px at -5% 100%, rgba(239, 127, 26, 0.045), transparent 60%),
    var(--bg-soft);
}
.section--blue {
  position: relative;
  background:
    radial-gradient(1000px 500px at 90% -20%, rgba(239, 127, 26, 0.16), transparent 60%),
    radial-gradient(800px 460px at 0% 120%, rgba(114, 173, 68, 0.14), transparent 60%),
    linear-gradient(150deg, var(--blue-darker) 0%, #024a72 55%, var(--blue-dark) 100%);
  color: #dbeaf3;
  overflow: hidden;
}
.section--blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.06;
  pointer-events: none;
}
.section--blue > * { position: relative; }
.section--blue h2,
.section--blue h3 { color: var(--white); }

.section--tight { padding: 56px 0; }

/* Section headings */
.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
}

.section-head h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.section-head .lead {
  color: var(--gray);
  font-size: var(--fs-md);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 15px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.25s var(--ease-out),
    background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(239, 127, 26, 0.35);
}

.btn--primary:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(239, 127, 26, 0.42);
}

.btn--blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 104, 160, 0.3);
}

.btn--blue:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--blue-dark);
}

.btn--sm { padding: 10px 22px; font-size: var(--fs-xs); }

/* Text link with arrow */
.link-more {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link-more:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow 0.25s ease;
}

/* brand tricolor signature edge */
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg,
    var(--orange) 0%, var(--orange) 18%,
    var(--green) 18%, var(--green) 28%,
    var(--blue) 28%, var(--blue) 100%);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.topbar {
  background: var(--blue-darker);
  color: #bcd8e8;
  font-size: var(--fs-xs);
  padding: 7px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a { color: #dcecf5; }
.topbar a:hover { color: var(--orange); }

.topbar__contacts {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar__tagline {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #9cc3da;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 52px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--charcoal);
  padding: 10px 14px;
  border-radius: 8px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.is-active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-menu .caret {
  font-size: 0.6em;
  transition: transform 0.2s ease;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}

.nav-menu li:hover > .dropdown,
.nav-menu li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu li:hover > a .caret,
.nav-menu li:focus-within > a .caret { transform: rotate(180deg); }

.dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--charcoal);
}

.dropdown li a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.dropdown__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  padding: 10px 14px 4px;
}

.nav-cta { flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--blue-dark);
  transition: all 0.25s ease;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(239, 127, 26, 0.2), transparent 60%),
    radial-gradient(800px 480px at -6% 115%, rgba(114, 173, 68, 0.16), transparent 60%),
    radial-gradient(900px 600px at 55% 40%, rgba(74, 156, 199, 0.22), transparent 65%),
    linear-gradient(160deg, var(--blue-darker) 0%, #024a72 55%, var(--blue-dark) 100%);
  color: #d9eaf4;
  padding: 92px 0 84px;
  overflow: hidden;
}

/* Signature: ledger ruling — account-book horizontal rules with the double
   vertical margin rule of Indian cash books (rendered in brand turmeric) */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to bottom,
      transparent 0, transparent 35px,
      rgba(255, 255, 255, 0.055) 35px, rgba(255, 255, 255, 0.055) 36px),
    linear-gradient(to right,
      transparent calc(4.5% - 1px), rgba(239, 127, 26, 0.4) calc(4.5% - 1px),
      rgba(239, 127, 26, 0.4) 4.5%, transparent 4.5%,
      transparent calc(4.5% + 7px), rgba(239, 127, 26, 0.4) calc(4.5% + 7px),
      rgba(239, 127, 26, 0.4) calc(4.5% + 8px), transparent calc(4.5% + 8px));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.35));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.35));
  pointer-events: none;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.07;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  max-width: 820px;
  margin-bottom: 16px;
}

.page-hero .lead {
  max-width: 700px;
  font-size: var(--fs-md);
  color: #c3dcea;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-bottom: 22px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.breadcrumbs a { color: #9cc3da; }
.breadcrumbs a:hover { color: var(--orange); }

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumbs [aria-current] { color: var(--white); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow:
    0 1px 2px rgba(1, 58, 89, 0.06),
    0 8px 28px rgba(1, 58, 89, 0.07);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s var(--ease-out);
  overflow: hidden;
}

/* cursor spotlight — set --mx/--my from js */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%),
    rgba(0, 104, 160, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 2px 4px rgba(1, 58, 89, 0.07),
    0 18px 44px rgba(1, 58, 89, 0.13);
}

.card:hover::before { opacity: 1; }

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--gray);
  font-size: var(--fs-sm);
}

.card .link-more { margin-top: 18px; }

/* Icon chip used on cards */
.icon-chip {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 1.6rem;
}

.icon-chip svg { width: 30px; height: 30px; }

.icon-chip--orange { background: var(--orange-light); color: var(--orange); }
.icon-chip--green { background: var(--green-light); color: var(--green-dark); }

/* Feature list card variant */
/* Ledger-margin panel: the double vertical rule of an account book's margin */
.card--flat {
  box-shadow: none;
  background:
    linear-gradient(to right,
      var(--orange) 0, var(--orange) 2px,
      transparent 2px, transparent 8px,
      rgba(239, 127, 26, 0.5) 8px, rgba(239, 127, 26, 0.5) 9px,
      transparent 9px),
    var(--bg-soft);
  border: 0;
  border-radius: 6px var(--radius-lg) var(--radius-lg) 6px;
  padding-left: 34px;
}

.card--flat:hover { transform: none; box-shadow: none; }
.card--flat::before { content: none; }

/* Linked card */
.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 13px;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  font-size: var(--fs-sm);
}

/* Audit tick — the accountant's swooshed checkmark, not a UI checkbox */
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d9134' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15.5 C5 17.5 7 19 8.5 19.5 C10 16 14 7.5 21 3.5'/%3E%3C/svg%3E");
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
}

.checklist--2col {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 36px;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split__media {
  position: relative;
  z-index: 0;
}

/* offset editorial frame behind media */
.split__media::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: -14px;
  bottom: -14px;
  border: 2px solid rgba(0, 104, 160, 0.16);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.split__media::before {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: -26px;
  top: -26px;
  background:
    radial-gradient(circle at center, var(--orange) 3px, transparent 3.5px);
  background-size: 15px 15px;
  z-index: 1;
  opacity: 0.85;
}

.split__media img {
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(1, 58, 89, 0.2);
  width: 100%;
  object-fit: cover;
}

/* Section-image parallax drift: JS sets --drift-shift (transform-only).
   Marked with .parallax-drift in the markup so it stays opt-in per page. */
.parallax-drift { transform: translate3d(0, var(--drift-shift, 0px), 0); }

@media (prefers-reduced-motion: reduce) {
  .parallax-drift { transform: none; }
}

.split h2 { margin-bottom: 18px; }
.split p { color: var(--gray); }
.split .checklist { margin-top: 24px; }
.split .btn { margin-top: 30px; }

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
}

/* the accountant's double rule under a settled total */
.stat__num::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 5px;
  border-top: 1.5px solid rgba(239, 127, 26, 0.85);
  border-bottom: 1px solid rgba(239, 127, 26, 0.55);
}

.stat__num .accent { color: var(--orange); }

.stat__label {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: #a8cadd;
}

/* ---------- Steps / process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 26px 30px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -22px;
  left: 26px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(239, 127, 26, 0.35);
}

.step .h4 { margin-bottom: 8px; }
.step p { color: var(--gray); font-size: var(--fs-sm); }

/* ---------- Accordion (FAQ) ---------- */
.accordion {
  display: grid;
  gap: 14px;
}

.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.accordion__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 800;
  color: var(--charcoal);
  text-align: left;
}

.accordion__btn::after {
  content: "+";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.accordion__item.is-open .accordion__btn::after {
  content: "–";
  transform: rotate(180deg);
  background: var(--orange);
  color: var(--white);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion__panel-inner {
  padding: 0 24px 22px;
  color: var(--gray);
  font-size: var(--fs-sm);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 560px;
}

table.data th {
  background: var(--blue-dark);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
}

table.data td {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

table.data tbody tr:nth-child(even) { background: var(--bg-soft); }

table.data .yes { color: var(--green-dark); font-weight: 700; }
table.data .no { color: var(--gray-light); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(600px 300px at 92% 110%, rgba(239, 127, 26, 0.28), transparent 60%),
    radial-gradient(500px 280px at 4% -30%, rgba(114, 173, 68, 0.16), transparent 60%),
    linear-gradient(120deg, var(--blue-darker), #02507c);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  color: #d9eaf4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to bottom,
      transparent 0, transparent 33px,
      rgba(255, 255, 255, 0.06) 33px, rgba(255, 255, 255, 0.06) 34px),
    linear-gradient(to right,
      transparent calc(6% - 1px), rgba(239, 127, 26, 0.45) calc(6% - 1px),
      rgba(239, 127, 26, 0.45) 6%, transparent 6%,
      transparent calc(6% + 7px), rgba(239, 127, 26, 0.45) calc(6% + 7px),
      rgba(239, 127, 26, 0.45) calc(6% + 8px), transparent calc(6% + 8px));
  pointer-events: none;
}

.cta-band h2 em { color: var(--orange); }

.cta-band h2 {
  color: var(--white);
  font-size: var(--fs-xl);
  margin-bottom: 10px;
}

.cta-band p { max-width: 560px; }

.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.form-field label .req { color: var(--orange); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--charcoal);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-field textarea { resize: vertical; min-height: 130px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 104, 160, 0.12);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--gray);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}

.badge--blue { background: var(--blue-light); color: var(--blue-dark); }
.badge--orange { background: var(--orange-light); color: var(--orange-dark); }
.badge--green { background: var(--green-light); color: var(--green-dark); }

/* ---------- Real images (swapped in from AI generation) ---------- */
.img-real {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(1, 58, 89, 0.18);
}

.img-real--169 { aspect-ratio: 16 / 9; }
.img-real--43 { aspect-ratio: 4 / 3; }
.img-real--32 { aspect-ratio: 3 / 2; }
.img-real--11 { aspect-ratio: 1 / 1; }

/* ---------- Image placeholder (until AI images are dropped in) ---------- */
.img-ph {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(1, 58, 89, 0.18);
  background:
    radial-gradient(420px 260px at 85% 10%, rgba(239, 127, 26, 0.28), transparent 60%),
    radial-gradient(360px 240px at 8% 95%, rgba(114, 173, 68, 0.24), transparent 60%),
    linear-gradient(135deg, rgba(0, 104, 160, 0.92), rgba(1, 58, 89, 0.97));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #bcd8e8;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.img-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(239, 127, 26, 0.25), transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(114, 173, 68, 0.22), transparent 45%);
}

.img-ph span { position: relative; z-index: 1; }

.img-ph--169 { aspect-ratio: 16 / 9; }
.img-ph--43 { aspect-ratio: 4 / 3; }
.img-ph--11 { aspect-ratio: 1 / 1; }
.img-ph--32 { aspect-ratio: 3 / 2; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(0, 104, 160, 0.35), transparent 60%),
    var(--blue-darker);
  color: #a8cadd;
  font-size: var(--fs-sm);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg,
    var(--orange) 0%, var(--orange) 18%,
    var(--green) 18%, var(--green) 28%,
    var(--blue) 28%, var(--blue) 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 72px 0 56px;
}

.footer-brand img {
  height: 46px;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 12px;
  width: auto;
}

.footer-brand p {
  margin-top: 18px;
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.site-footer .h4 {
  color: var(--white);
  font-size: var(--fs-base);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer-links a { color: #a8cadd; }
.footer-links a:hover { color: var(--orange); }

.footer-contact {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 4px;
  stroke: var(--orange);
}

.footer-contact a { color: #cfe3ef; }
.footer-contact a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  font-size: var(--fs-xs);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom a { color: #cfe3ef; }

/* ---------- Scroll reveal ---------- */
/* Hidden initial state only applies when JS is present (html.js), so no-JS
   users see all content. main.js adds the .js class before observing. */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered child entrance — .stagger is added by js only (no-js safe) */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal,
  .reveal { opacity: 1; transform: none; transition: none; }
  .stagger > * { opacity: 1; transform: none; transition: none; }
  /* Neutralise hover-lift / spring motion */
  .btn,
  .card,
  .link-more::after,
  .nav-menu .caret,
  .accordion__icon,
  .btn:hover,
  .card:hover,
  .btn:active {
    transition: none;
    transform: none;
  }
}

/* ---------- Skip link ---------- */
/* Branded pill, visually hidden until keyboard focus. Sits above the film-grain
   overlay (z 2000) so it is fully visible when tabbed to. */
.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  transform: translateY(-160%);
  background: var(--blue);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 3000;
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--white);
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}

/* ---------- Reading progress (article pages only) ---------- */
/* Injected by main.js only on pages with .article-body. Fixed just beneath the
   sticky header; --header-h is kept in sync from JS. */
.reading-progress {
  position: fixed;
  top: var(--reading-progress-top, var(--header-h));
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg,
    var(--orange) 0%, var(--orange) 40%,
    var(--green) 40%, var(--green) 55%,
    var(--blue) 55%, var(--blue) 100%);
  z-index: 999;
  pointer-events: none;
  transition: transform 0.1s linear;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress { transition: none; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-spring),
    visibility 0.3s, background-color 0.2s ease;
  z-index: 2100;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.back-to-top:hover {
  background: var(--orange);
  color: var(--white);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s linear, visibility 0.2s; transform: none; }
  .back-to-top.is-visible { transform: none; }
}

/* ---------- Inline form validation ---------- */
.field-error {
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--orange-dark);
  margin-top: -2px;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--orange-dark);
}

.form-field input[aria-invalid="true"]:focus,
.form-field select[aria-invalid="true"]:focus,
.form-field textarea[aria-invalid="true"]:focus {
  border-color: var(--orange-dark);
  box-shadow: 0 0 0 4px rgba(217, 110, 13, 0.15);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 46px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; --fs-3xl: 2.4rem; --fs-2xl: 2rem; }

  .section { padding: 64px 0; }

  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .checklist--2col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 32px; }

  .topbar__tagline { display: none; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 96px 24px 40px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1100;
  }

  .nav-menu.is-open { transform: translateX(0); }

  .nav-menu > li > a {
    padding: 14px 12px;
    font-size: var(--fs-base);
    justify-content: space-between;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--blue-light);
    border-radius: 0;
    margin: 0 0 8px 12px;
    padding: 0;
    display: none;
    min-width: 0;
  }

  .nav-menu li.is-open > .dropdown { display: block; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav-cta { display: none; }

  /* Sits below .site-header (z-index 1000) so the drawer inside the header
     stays clickable; still dims all page content. */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 58, 89, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 990;
  }

  .nav-overlay.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .page-hero { padding: 60px 0 54px; }
  .brand img { height: 42px; }
}
