/* ==========================================================================
   Tax Orbit - Design System
   Palette: deep indigo base, azure/violet gradient brand, emerald accent,
            amber highlight. Motion-rich but reduced-motion safe.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #0a1a3c;
  --navy-2: #112a5c;
  --blue: #1763e8;
  --blue-dark: #0f4bc0;
  --violet: #5b46e5;
  --green: #0fb98e;
  --green-dark: #0a9773;
  --gold: #f5a524;
  --gold-soft: #fff4de;

  /* Surfaces */
  --white: #fff;
  --light: #f3f7fe;
  --light-2: #e9f0fd;
  --tint-blue: #e8f0fe;
  --tint-green: #e3f8f2;
  --tint-gold: #fff6e6;

  /* Ink */
  --text: #10203d;
  --muted: #5a6a86;
  --border: #dde6f4;
  --danger: #b02a1a;

  /* Effects */
  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  --grad-accent: linear-gradient(135deg, var(--green) 0%, #17c9d6 100%);
  --grad-deep: linear-gradient(135deg, var(--navy) 0%, #163a7a 55%, #24246b 100%);
  --grad-warm: linear-gradient(135deg, var(--gold) 0%, #ff7a45 100%);
  --shadow-sm: 0 4px 14px rgba(10, 26, 60, 0.06);
  --shadow: 0 18px 44px rgba(10, 26, 60, 0.1);
  --shadow-lg: 0 28px 70px rgba(10, 26, 60, 0.16);
  --shadow-brand: 0 14px 32px rgba(23, 99, 232, 0.28);
  --shadow-green: 0 14px 32px rgba(15, 185, 142, 0.28);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-back: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.68;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { text-decoration: none; color: var(--blue); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
:focus-visible { outline: 3px solid rgba(23, 99, 232, 0.5); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }

.container { width: min(calc(100% - 34px), var(--container)); margin-inline: auto; }
.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; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--navy); padding: 10px 16px; z-index: 999; border-radius: 8px; box-shadow: var(--shadow); font-weight: 700; }
.skip-link:focus { left: 12px; }

/* ============================== KEYFRAMES ============================== */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floatX { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px); } }
@keyframes pulseRing { 0% { transform: scale(0.9); opacity: 0.75; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }
@keyframes shimmer { 0% { background-position: -180% 0; } 100% { background-position: 180% 0; } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes fadeUpIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: none; } }
@keyframes barGrow { from { transform: scaleY(0.05); } to { transform: scaleY(1); } }
@keyframes dashDraw { to { stroke-dashoffset: 0; } }
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }

/* ============================== TOPBAR ============================== */
.topbar {
  background: var(--grad-deep);
  background-size: 200% 200%;
  animation: gradientShift 16s ease infinite;
  color: #cfe0f7;
  font-size: 0.82rem;
  position: relative;
  z-index: 101;
}
.topbar .container { display: flex; gap: 20px; justify-content: space-between; align-items: center; min-height: 42px; flex-wrap: wrap; }
.topbar-items { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar a { position: relative; }
.topbar a:hover { color: #fff; }
.topbar a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1.5px; background: var(--green); transition: width 0.28s var(--ease); }
.topbar a:hover::after { width: 100%; }
.topbar-items span { opacity: 0.85; }

/* ============================== HEADER / NAV ============================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(221, 230, 244, 0.8);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(10, 26, 60, 0.09); background: rgba(255, 255, 255, 0.96); }
.site-header::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--scroll-progress, 0%);
  background: var(--grad-brand); transition: width 0.1s linear; border-radius: 0 2px 2px 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 22px; position: relative; transition: min-height 0.3s var(--ease); }
.site-header.scrolled .nav-wrap { min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; white-space: nowrap; }
.logo:hover { color: inherit; }
.logo-mark { flex: 0 0 auto; width: 58px; height: 44px; display: grid; place-items: center; transition: transform 0.5s var(--ease-out-back); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; }
.nav-links a { font-weight: 650; font-size: 0.93rem; position: relative; padding: 6px 2px; color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2.5px;
  background: var(--grad-brand); border-radius: 2px; transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--blue); }

.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions .btn { white-space: nowrap; padding: 11px 18px; font-size: 0.88rem; }
/* Duplicated CTAs that surface only inside the open mobile menu, where
   .nav-actions is hidden. */
.nav-cta { display: none; }
.menu-toggle {
  display: none; min-width: 46px; min-height: 46px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; font-size: 1.3rem; color: var(--navy);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.menu-toggle:hover { background: var(--tint-blue); transform: scale(1.04); }

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 24px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 0.95rem; text-align: center; position: relative; overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background-color 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.34) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); background-size: 160% 160%; }
.btn-primary:hover { color: #fff; box-shadow: 0 18px 40px rgba(23, 99, 232, 0.38); background-position: 100% 50%; }
.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: var(--shadow-green); }
.btn-accent:hover { color: #fff; box-shadow: 0 18px 40px rgba(15, 185, 142, 0.4); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { color: #fff; background: var(--navy-2); }
.btn-outline { border-color: #c3d2e8; background: #fff; color: var(--text); }
.btn-outline:hover { background: var(--tint-blue); border-color: var(--blue); color: var(--blue-dark); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--blue); padding-inline: 10px; }
.btn-ghost:hover { color: var(--violet); background: var(--tint-blue); }
.btn-light { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-lg { min-height: 56px; padding: 15px 30px; font-size: 1rem; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Arrow that slides on hover */
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================== EYEBROW / HEADINGS ============================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; color: var(--green-dark);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem;
  background: var(--tint-green); padding: 7px 14px; border-radius: 999px; margin-bottom: 4px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(15, 185, 142, 0.18); }
.eyebrow.blue { color: var(--blue-dark); background: var(--tint-blue); }
.eyebrow.blue::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(23, 99, 232, 0.16); }
.eyebrow.gold { color: #94620a; background: var(--tint-gold); }
.eyebrow.gold::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.2); }

.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* A real underline rather than a positioned bar: skip-ink breaks the stroke
   around descenders (the "y" in "drift away"), which a pseudo-element cannot do
   without sitting so low it collides with the paragraph below. */
.underline-swoosh {
  white-space: nowrap; /* keep the underlined phrase on one line */
  text-decoration-line: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.15em;
  text-decoration-skip-ink: auto;
}

/* ============================== HERO ============================== */
.hero {
  position: relative; padding: 96px 0 104px; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 6%, rgba(91, 70, 229, 0.14), transparent 60%),
    radial-gradient(760px 480px at 4% 82%, rgba(15, 185, 142, 0.13), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--light) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(23, 99, 232, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 99, 232, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 72%);
  pointer-events: none;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; z-index: 0; }
.blob-1 { width: 420px; height: 420px; background: rgba(23, 99, 232, 0.28); top: -120px; right: -80px; animation: floatY 11s ease-in-out infinite; }
.blob-2 { width: 340px; height: 340px; background: rgba(15, 185, 142, 0.26); bottom: -110px; left: -60px; animation: floatX 13s ease-in-out infinite; }
.blob-3 { width: 260px; height: 260px; background: rgba(245, 165, 36, 0.2); top: 44%; left: 46%; animation: floatY 9s ease-in-out infinite reverse; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr); gap: 60px; align-items: center; }
.hero h1, .page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.05; margin: 18px 0; max-width: 14ch; }
.hero h1 { animation: fadeUpIn 0.8s var(--ease) both; }
.hero > .container > .hero-grid > div > .eyebrow { animation: fadeUpIn 0.6s var(--ease) both; }
.hero p { animation: fadeUpIn 0.9s 0.1s var(--ease) both; }
.hero-actions { animation: fadeUpIn 1s 0.2s var(--ease) both; }
.page-hero h1 { max-width: 16ch; }
.hero p, .page-hero p, .section-head p, .card p, .cta p { color: var(--muted); }
.hero p { font-size: 1.12rem; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0; }

.trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; animation: fadeUpIn 1.1s 0.3s var(--ease) both; }
.trust-item { display: flex; gap: 10px; align-items: center; color: #33445f; font-size: 0.93rem; font-weight: 600; }
.tick {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint-green); color: var(--green-dark); font-weight: 900; font-size: 0.75rem;
  transition: transform 0.3s var(--ease-out-back), background 0.3s var(--ease);
}
.trust-item:hover .tick { transform: scale(1.18) rotate(-8deg); background: var(--green); color: #fff; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
  animation: popIn 0.9s 0.15s var(--ease-out-back) both;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; transition: transform 1.2s var(--ease); }
.hero-media:hover img { transform: scale(1.05); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 60, 0) 45%, rgba(10, 26, 60, 0.55) 100%); }

.dashboard {
  position: relative; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-lg); animation: popIn 0.9s 0.15s var(--ease-out-back) both;
}
.dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dashboard-top h2 { margin: 4px 0 0; font-size: 1.35rem; }
.dashboard-top small { color: var(--muted); font-weight: 600; }
.mini-badge {
  padding: 7px 13px; border-radius: 999px; background: var(--tint-green); color: var(--green-dark);
  font-size: 0.74rem; font-weight: 800; white-space: nowrap; position: relative;
}
.mini-badge::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--green); animation: pulseRing 2.2s ease-out infinite;
}

/* Animated bar chart */
.chart {
  height: 190px; margin: 24px 0; border-radius: var(--radius); padding: 18px 16px 14px;
  background: linear-gradient(180deg, var(--tint-blue), #fff);
  display: flex; align-items: flex-end; gap: 10px; overflow: hidden; border: 1px solid var(--border);
}
.chart .bar {
  flex: 1; border-radius: 7px 7px 3px 3px; background: var(--grad-brand);
  transform-origin: bottom; animation: barGrow 1s var(--ease-out-back) both;
  min-height: 12%;
}
.chart .bar:nth-child(1) { height: 38%; animation-delay: 0.15s; }
.chart .bar:nth-child(2) { height: 58%; animation-delay: 0.25s; background: var(--grad-accent); }
.chart .bar:nth-child(3) { height: 44%; animation-delay: 0.35s; }
.chart .bar:nth-child(4) { height: 76%; animation-delay: 0.45s; background: var(--grad-accent); }
.chart .bar:nth-child(5) { height: 62%; animation-delay: 0.55s; }
.chart .bar:nth-child(6) { height: 92%; animation-delay: 0.65s; background: var(--grad-warm); }

.dashboard-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric, .result-item { background: var(--light); padding: 14px; border-radius: 12px; transition: background 0.25s var(--ease), transform 0.25s var(--ease); }
.metric:hover { background: var(--tint-blue); transform: translateY(-3px); }
.metric small, .result-item small { color: var(--muted); font-size: 0.78rem; }
.metric strong, .result-item strong { display: block; font-weight: 800; }

.floating-card {
  position: absolute; right: -22px; bottom: -36px; background: var(--grad-deep); color: #fff;
  padding: 20px; border-radius: var(--radius); width: 246px; box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite; z-index: 3;
}
.floating-card small { display: block; color: #c3d3e9; margin: 6px 0 14px; font-size: 0.82rem; line-height: 1.5; }
.floating-card .btn { width: 100%; }

.hero-badge {
  position: absolute; left: -26px; top: 34px; z-index: 3;
  background: #fff; border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; animation: floatY 7s 0.6s ease-in-out infinite;
}
.hero-badge .hb-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-warm); color: #fff; font-weight: 900; }
.hero-badge strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.hero-badge span { font-size: 0.78rem; color: var(--muted); }

/* ============================== TRUST STRIP ============================== */
.trust-strip { margin-top: -46px; position: relative; z-index: 5; }
.trust-panel {
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow);
  border-radius: var(--radius-lg); padding: 28px 24px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
}
.stat { text-align: center; padding: 6px 8px; border-radius: 12px; transition: background 0.28s var(--ease), transform 0.28s var(--ease); }
.stat:hover { background: var(--light); transform: translateY(-4px); }
.stat strong { font-size: 1.6rem; display: block; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.stat span { font-size: 0.83rem; color: var(--muted); }

/* Counter row */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.counter { text-align: center; padding: 30px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); transition: transform 0.3s var(--ease), background 0.3s var(--ease); }
.counter:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.14); }
.counter .num { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -0.03em; white-space: nowrap; }
/* Must stay inline: the label rule below would otherwise make this a block. */
.counter .num .suffix { color: var(--gold); display: inline; }
.counter > span { display: block; margin-top: 8px; font-size: 0.88rem; color: #bed0ea; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.counter-band { background: var(--grad-deep); background-size: 200% 200%; animation: gradientShift 18s ease infinite; position: relative; overflow: hidden; }
.counter-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px); background-size: 40px 40px; }
.counter-band .container { position: relative; z-index: 1; }

/* ============================== SECTIONS ============================== */
.section { padding: 92px 0; position: relative; }
.section.alt { background: var(--light); }
.section.dark { background: var(--grad-deep); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: #c3d3e9; }
.section-head { display: flex; justify-content: space-between; gap: 34px; align-items: flex-end; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2.05rem, 4vw, 3.1rem); margin: 12px 0 0; }
.section-head p { margin: 0; max-width: 46ch; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center p { max-width: 60ch; }

/* ============================== TABS / FILTERS ============================== */
.audience-tabs, .filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.audience-tab, .filter-btn {
  min-height: 46px; border: 1.5px solid var(--border); background: #fff; padding: 10px 18px;
  border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: var(--text);
  transition: all 0.28s var(--ease);
}
.audience-tab:hover, .filter-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.audience-tab.active, .filter-btn.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }

.audience-panel, .info-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow-sm); animation: fadeUpIn 0.45s var(--ease);
}
.info-panel { display: block; }
.audience-panel h3, .info-panel h2, .info-panel h3 { margin-top: 10px; }
.info-list { margin: 0; padding-left: 0; list-style: none; }
.info-list li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.info-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--tint-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230a9773'%3E%3Cpath d='M6.2 11.4 3 8.2l1.1-1.1 2.1 2.1 5-5L12.3 5z'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ============================== CARDS ============================== */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease), border-color 0.34s var(--ease);
}
/* Keeps the button row level across cards of differing text length in a row. */
.card .card-actions, .card > .btn { margin-top: auto; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card[hidden] { display: none; }
.card h2, .card h3 { margin: 18px 0 10px; font-size: 1.28rem; }
.card p { margin-bottom: 0; font-size: 0.96rem; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.icon-box {
  flex: 0 0 auto; width: 56px; min-width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; background: var(--grad-brand); color: #fff;
  font-weight: 900; font-size: 1.05rem; box-shadow: var(--shadow-brand);
  transition: transform 0.4s var(--ease-out-back), border-radius 0.4s var(--ease);
}
.icon-box img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.icon-box svg { width: 27px; height: 27px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .icon-box, .contact-item:hover .icon-box { transform: rotate(-8deg) scale(1.08); border-radius: 50%; }
.icon-box.green { background: var(--grad-accent); box-shadow: var(--shadow-green); }
.icon-box.gold { background: var(--grad-warm); box-shadow: 0 14px 32px rgba(245, 165, 36, 0.3); }
.icon-box.deep { background: var(--grad-deep); box-shadow: 0 14px 32px rgba(10, 26, 60, 0.26); }

/* Media card (image on top) */
.media-card { padding: 0; }
.media-card .media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--light-2);
}
.media-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.media-card:hover .media img { transform: scale(1.09); }
.media-card .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 60, 0) 40%, rgba(10, 26, 60, 0.62) 100%);
  opacity: 0.85; transition: opacity 0.4s var(--ease);
}
.media-card:hover .media::after { opacity: 1; }
.media-card .media .tag {
  position: absolute; left: 16px; top: 16px; z-index: 2; background: rgba(255, 255, 255, 0.94);
  color: var(--blue-dark); font-size: 0.74rem; font-weight: 800; padding: 6px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.media-card .media .float-icon {
  position: absolute; right: 18px; bottom: -26px; z-index: 2; width: 54px; height: 54px;
  border-radius: 16px; display: grid; place-items: center; background: var(--grad-accent);
  color: #fff; box-shadow: var(--shadow-green); transition: transform 0.4s var(--ease-out-back);
}
.media-card .media .float-icon img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.media-card:hover .media .float-icon { transform: rotate(-10deg) scale(1.1); }
.media-card .body { padding: 30px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.media-card .body h3, .media-card .body h2 { margin-top: 0; }

/* ============================== STEPS ============================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 46px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.step {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; text-align: center;
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.step h3 { font-size: 1.16rem; margin: 16px 0 8px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.step-num {
  width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto;
  background: var(--grad-brand); color: #fff; font-weight: 900; font-size: 1.3rem;
  box-shadow: var(--shadow-brand); transition: transform 0.4s var(--ease-out-back), border-radius 0.4s var(--ease);
}
.step:hover .step-num { transform: scale(1.1) rotate(-8deg); border-radius: 50%; }
.step:nth-child(2) .step-num { background: var(--grad-accent); box-shadow: var(--shadow-green); }
.step:nth-child(3) .step-num { background: var(--grad-warm); box-shadow: 0 14px 32px rgba(245, 165, 36, 0.3); }

/* ============================== ABOUT SPLIT ============================== */
.feature-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.feature-split.reverse .fs-media { order: 2; }
.fs-media { position: relative; }
.fs-media .frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff;
}
.fs-media .frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.6; transition: transform 1.1s var(--ease); }
.fs-media:hover .frame img { transform: scale(1.06); }
.fs-media .frame-sm {
  position: absolute; right: -30px; bottom: -40px; width: 46%; border-radius: var(--radius);
  overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); animation: floatY 7s ease-in-out infinite;
}
.fs-media .frame-sm img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fs-media .exp-badge {
  position: absolute; left: -24px; bottom: 40px; background: var(--grad-warm); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center;
  animation: floatY 6s 0.5s ease-in-out infinite; z-index: 2;
}
.fs-media .exp-badge strong { display: block; font-size: 2rem; line-height: 1; }
.fs-media .exp-badge span { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.fs-body h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); margin: 14px 0 18px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 28px; }
.check-item { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; font-size: 0.95rem; }
.check-item .tick { margin-top: 2px; }

/* Highlight mini-cards */
.mini-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mini-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease);
  position: relative; overflow: hidden;
}
.mini-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--tint-blue); transition: transform 0.5s var(--ease); z-index: 0;
}
.mini-card:hover::after { transform: scale(1.6); }
.mini-card > * { position: relative; z-index: 1; }
.mini-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.mini-card h3 { font-size: 1.18rem; margin: 18px 0 8px; }
.mini-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ============================== CALCULATOR ============================== */
.calculator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 0.88fr); gap: 30px; align-items: start; }
.form-card, .result-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.result-card { background: linear-gradient(160deg, #fff, var(--tint-blue)); position: sticky; top: 120px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full, .result-item.full { grid-column: 1 / -1; }
.checkbox-field label { display: flex; gap: 11px; align-items: flex-start; font-weight: 500; }
label { font-weight: 700; font-size: 0.88rem; color: #29395a; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 13px 15px; border: 1.5px solid #cbd8ea; border-radius: 12px;
  background: #fff; color: var(--text); font-size: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: #a9c0e2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 99, 232, 0.14); }
input[type="checkbox"] { min-height: auto; width: auto; accent-color: var(--blue); }
textarea { resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(176, 42, 26, 0.1); }
.field-error { min-height: 1.2em; color: var(--danger); font-size: 0.84rem; font-weight: 600; }
.form-status { min-height: 1.3em; color: var(--muted); font-size: 0.92rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.result-item { background: #fff; border: 1px solid var(--border); }
.result-item strong { font-size: 1.1rem; color: var(--blue-dark); }
.notice, .security-note { padding: 15px 17px; border-radius: 12px; font-size: 0.89rem; margin: 16px 0; }
.notice { background: var(--tint-gold); border: 1px solid #f0cf88; color: #7a5806; }
.security-note { background: #fff2ef; border: 1px solid #efb3a8; color: #8a2b1a; }

/* ============================== WHY GRID ============================== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why {
  padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.why:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: linear-gradient(140deg, #fff, var(--tint-blue)); }
.why strong { font-size: 0.97rem; font-weight: 700; line-height: 1.45; }

/* ============================== TESTIMONIALS ============================== */
.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.testimonial {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px;
  position: relative; transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease);
}
.testimonial::before {
  content: "\201C"; position: absolute; right: 24px; top: 6px; font-size: 5.5rem; line-height: 1;
  color: var(--tint-blue); font-family: Georgia, serif;
}
.testimonial:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.testimonial p { position: relative; z-index: 1; font-size: 0.98rem; color: #3b4a66; }
.t-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; font-size: 1rem; }
.t-person { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.t-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--tint-blue); }
.t-person strong { display: block; font-size: 0.98rem; }
.t-person span { font-size: 0.83rem; color: var(--muted); }

/* ============================== FAQ ============================== */
.faq { display: grid; gap: 14px; max-width: 900px; margin-inline: auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.faq-item.open { box-shadow: var(--shadow); border-color: #bcd3f5; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 22px 58px 22px 24px;
  font-weight: 700; font-size: 1.03rem; color: var(--text); position: relative; min-height: 64px;
  transition: color 0.25s var(--ease);
}
.faq-q:hover { color: var(--blue); }
.faq-q::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; background: var(--tint-blue);
  background-image: linear-gradient(var(--blue), var(--blue)), linear-gradient(var(--blue), var(--blue));
  background-size: 12px 2px, 2px 12px; background-position: center, center; background-repeat: no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease);
}
.faq-item.open .faq-q::after { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.42s var(--ease); }
.faq-a > div { padding: 0 24px 22px; color: var(--muted); font-size: 0.96rem; }

/* ============================== MARQUEE ============================== */
.marquee { overflow: hidden; padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.05rem; color: #7d8ba5; white-space: nowrap; letter-spacing: -0.01em; }
.marquee-item::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }

/* ============================== TABLES ============================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--border); text-align: left; }
th { background: var(--tint-blue); font-weight: 800; font-size: 0.9rem; color: var(--navy); }
tbody tr { transition: background 0.2s var(--ease); }
tbody tr:hover { background: var(--light); }
tbody tr:last-child td { border-bottom: 0; }

/* ============================== PAGE HERO ============================== */
/* Photo banner. The element background is the gradient fallback; ::after paints
   the photo over it and ::before lays the tint + grid on top, all below content. */
.page-hero {
  padding: 96px 0 88px; position: relative; overflow: hidden; color: #fff;
  background: var(--grad-deep); isolation: isolate;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img, none);
  background-size: cover; background-position: center;
  transform: scale(1.09); animation: heroZoom 16s var(--ease) forwards;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(100deg, rgba(8, 22, 52, 0.95) 0%, rgba(14, 36, 82, 0.9) 45%, rgba(34, 34, 104, 0.76) 100%);
  background-size: 54px 54px, 54px 54px, auto;
}
/* Per-page banner photos (only bg/1-4 and breadcrumb-bg are real files). */
.page-hero.ph-about, .page-hero.ph-contact, .page-hero.ph-legal { --hero-img: url("../images/bg/breadcrumb-bg.jpg"); }
.page-hero.ph-services { --hero-img: url("../images/bg/4.jpg"); }
.page-hero.ph-details, .page-hero.ph-blog { --hero-img: url("../images/bg/1.jpg"); }
.page-hero.ph-calculator, .page-hero.ph-resources { --hero-img: url("../images/bg/3.jpg"); }
.page-hero.ph-404 { --hero-img: url("../images/bg/2.jpg"); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; animation: fadeUpIn 0.7s var(--ease) both; }
.page-hero p { color: #c6d6ef; max-width: 62ch; font-size: 1.06rem; animation: fadeUpIn 0.85s 0.1s var(--ease) both; }
.breadcrumbs { font-size: 0.87rem; color: #a9c0e2; margin-bottom: 4px; }
.breadcrumbs a { color: #fff; font-weight: 600; }
.breadcrumbs a:hover { color: var(--gold); }

.search-box { max-width: 440px; margin-bottom: 22px; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 34px; align-items: start; }

/* ============================== BLOG ============================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-card { overflow: hidden; padding: 0; }
.article-visual { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--tint-blue), var(--tint-green)); display: grid; place-items: center; font-size: 2rem; color: var(--blue); font-weight: 900; }
.article-visual:not(:has(img)) { aspect-ratio: 16 / 10; }
.article-visual img { width: 100%; height: auto; object-fit: contain; object-position: center; display: block; }
.article-meta { display: flex; gap: 14px; font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.article-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.article-body .btn { margin-top: auto; align-self: flex-start; }
.article-body h2, .article-body h3 { font-size: 1.2rem; margin: 0 0 10px; }

/* ============================== CONTACT ============================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr); gap: 30px; }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); align-items: flex-start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-item:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.contact-item address { font-style: normal; color: var(--muted); font-size: 0.93rem; }
.contact-item .icon-box { font-size: 0.85rem; }
.map-placeholder {
  min-height: 260px; margin-top: 20px; background: linear-gradient(140deg, var(--tint-blue), var(--tint-green));
  border: 1px solid var(--border); border-radius: var(--radius); display: grid; place-items: center;
  color: var(--muted); text-align: center; padding: 26px; gap: 10px;
}
.map-embed { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); line-height: 0; }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; filter: saturate(1.05); }

/* ============================== CTA ============================== */
.cta {
  background: var(--grad-deep); background-size: 200% 200%; animation: gradientShift 16s ease infinite;
  color: #fff; border-radius: var(--radius-lg); padding: 58px; position: relative; overflow: hidden;
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 185, 142, 0.34), transparent 70%);
  top: -180px; right: -120px; animation: floatY 10s ease-in-out infinite;
}
.cta::after {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.26), transparent 70%);
  bottom: -160px; left: -100px; animation: floatX 12s ease-in-out infinite;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 14px 0; }
.cta p { color: #c6d6ef; max-width: 60ch; margin-inline: auto; }
.cta .hero-actions { justify-content: center; }
.cta .eyebrow { background: rgba(255, 255, 255, 0.14); color: #fff; }
.cta .eyebrow::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.22); }

/* ============================== FOOTER ============================== */
.footer { background: #050f22; color: #b8c8de; padding: 76px 0 26px; position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; top: -180px; left: 50%; width: 700px; height: 360px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(23, 99, 232, 0.22), transparent 70%); pointer-events: none;
}
.footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer p { font-size: 0.93rem; }
.footer-title { color: #fff; font-size: 1.02rem; margin: 0 0 16px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 2px; background: var(--grad-accent); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 10px 0; font-size: 0.93rem; }
.footer a { position: relative; }
.footer a:hover { color: #fff; padding-left: 6px; }
.footer-grid ul a { transition: color 0.25s var(--ease), padding-left 0.25s var(--ease); }
.footer-note { background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--gold); padding: 14px 16px; border-radius: 0 10px 10px 0; font-size: 0.88rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 44px; padding-top: 24px; font-size: 0.84rem; }
.footer-bottom a { color: #d6e3f3; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 0.78rem; font-weight: 800;
  transition: transform 0.3s var(--ease-out-back), background 0.3s var(--ease);
}
.social a:hover { background: var(--grad-brand); transform: translateY(-4px) scale(1.06); padding-left: 0; }

/* ============================== MODAL / TOAST / MISC ============================== */
.modal { position: fixed; inset: 0; background: rgba(5, 15, 34, 0.72); backdrop-filter: blur(5px); display: none; place-items: center; padding: 20px; z-index: 300; }
.modal.open { display: grid; animation: fadeUpIn 0.28s var(--ease); }
.modal-card {
  background: #fff; max-width: 640px; width: min(100%, 640px); border-radius: var(--radius-lg);
  padding: 32px; max-height: min(90vh, 780px); overflow: auto; box-shadow: var(--shadow-lg);
  animation: popIn 0.36s var(--ease-out-back);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 1.5rem; }
.close-modal {
  min-width: 46px; min-height: 46px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
  font-size: 1.5rem; line-height: 1; color: var(--muted); transition: all 0.25s var(--ease);
}
.close-modal:hover { background: #fff2ef; color: var(--danger); transform: rotate(90deg); }

.toast {
  position: fixed; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px));
  background: var(--grad-deep); color: #fff; padding: 16px 20px; border-radius: 14px;
  transform: translateY(160px); transition: transform 0.35s var(--ease-out-back); z-index: 400;
  box-shadow: var(--shadow-lg); font-size: 0.93rem;
}
.toast.show { transform: translateY(0); }

.cookie {
  position: fixed; left: 20px; bottom: 20px; max-width: 420px; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 22px; border-radius: var(--radius);
  z-index: 250; animation: fadeUpIn 0.5s 1s var(--ease) both;
}
.cookie strong { display: block; margin-bottom: 6px; }
.cookie p { font-size: 0.88rem; color: var(--muted); }

.back-top {
  position: fixed; right: 20px; bottom: 92px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--grad-brand); color: #fff; z-index: 220; box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.8);
  transition: all 0.35s var(--ease-out-back); display: grid; place-items: center; font-size: 1.1rem;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-4px) scale(1.06); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 24px; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; z-index: 219;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.42); transition: transform 0.35s var(--ease-out-back);
}
.wa-float:hover { transform: scale(1.1); color: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: pulseRing 2.4s ease-out infinite; z-index: -1; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ============================== REVEAL ANIMATIONS ============================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--delay, 0s); }
.reveal[data-anim="left"] { transform: translateX(-40px); }
.reveal[data-anim="right"] { transform: translateX(40px); }
.reveal[data-anim="zoom"] { transform: scale(0.9); }
.reveal[data-anim="fade"] { transform: none; }
.reveal.visible { opacity: 1; transform: none; }
/* Sideways entrances push content past the viewport edge on narrow screens,
   which makes mobile browsers zoom out to fit. Fall back to vertical there. */
@media (max-width: 900px) {
  .reveal[data-anim="left"], .reveal[data-anim="right"] { transform: translateY(28px); }
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1150px) {
  .nav-links { gap: 15px; }
  .nav-actions .btn-outline { display: none; }
}
@media (max-width: 1020px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: calc(100% + 1px); left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 14px; border: 1px solid var(--border);
    box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius); gap: 2px;
    animation: fadeUpIn 0.3s var(--ease);
  }
  .nav-links.open li { border-bottom: 1px solid var(--light); }
  .nav-links.open li:last-child { border-bottom: 0; }
  .nav-links.open a { display: block; padding: 13px 10px; }
  .nav-links.open a::after { display: none; }
  .nav-links.open .nav-cta { display: block; border-bottom: 0; }
  .nav-links.open .nav-cta .btn { width: 100%; margin-top: 10px; padding: 12px 18px; }
  .hero-grid, .calculator, .split, .contact-grid, .audience-panel, .feature-split { grid-template-columns: 1fr; }
  .feature-split { gap: 46px; }
  .feature-split.reverse .fs-media { order: 0; }
  .fs-media .frame-sm { right: 0; width: 40%; }
  .fs-media .exp-badge { left: 0; }
  .cards, .blog-grid, .testimonials, .mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.four, .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floating-card { right: 8px; }
  .hero-badge { left: 0; }
  .steps::before { display: none; }
  .result-card { position: static; }
  .topbar .container { justify-content: center; }
  .topbar-items:last-child { display: none; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 84px; }
  .topbar { display: none; }
  .container { width: min(calc(100% - 26px), var(--container)); }
  .nav-wrap, .site-header.scrolled .nav-wrap { min-height: 70px; }
  .hero { padding: 56px 0 70px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.05rem, 9vw, 2.75rem); max-width: 100%; }
  .hero p { font-size: 1rem; }
  .page-hero { padding: 56px 0 52px; }
  .section { padding: 60px 0; }
  .section-head { display: block; margin-bottom: 30px; }
  .section-head .btn { margin-top: 16px; }
  .trust-list, .form-grid, .result-grid, .cards, .cards.two, .cards.four, .blog-grid, .steps,
  .why-grid, .trust-panel, .footer-grid, .dashboard-cards, .testimonials, .mini-cards,
  .counters, .check-grid { grid-template-columns: 1fr; }
  .trust-strip { margin-top: -30px; }
  .floating-card, .hero-badge, .fs-media .frame-sm, .fs-media .exp-badge { position: static; width: auto; margin-top: 16px; animation: none; }
  .fs-media .frame-sm { width: 100%; }
  .cta { padding: 34px 24px; }
  .hero-actions .btn, .button-row .btn, .cta .btn { width: 100%; }
  .form-card, .result-card, .modal-card, .audience-panel, .info-panel { padding: 22px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .back-top { bottom: 88px; right: 14px; }
  .wa-float { right: 14px; bottom: 20px; }
  .marquee-track { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .footer, .back-top, .wa-float, .cookie, .toast, .modal, .hero-actions, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 16px 0; }
}

/* ============================== BLOG CMS (scoped additions) ============================== */
.blog-search { display: flex; gap: 12px; max-width: 700px; margin-bottom: 18px; }
.blog-search input { flex: 1; min-width: 0; }
.blog-categories, .blog-pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.blog-pagination { justify-content: center; margin: 38px 0 0; }
.blog-categories .btn, .blog-pagination .btn { min-height: 42px; padding: 8px 16px; }
.blog-empty { padding: 42px; text-align: center; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.blog-article-wrap { max-width: 860px; }
.blog-featured { margin: 24px 0 36px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.blog-featured img { width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center; display: block; }
.blog-content { font-size: 1.06rem; line-height: 1.82; overflow-wrap: anywhere; }
.blog-content h2 { margin-top: 2em; }.blog-content h3 { margin-top: 1.7em; }
.blog-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.blog-content blockquote { margin: 28px 0; padding: 20px 24px; background: var(--tint-blue); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.blog-author { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); }
.blog-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.blog-post-nav a { max-width: 46%; font-weight: 700; color: var(--blue); }
.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; }

/* ============================== ADMIN (isolated from public pages) ============================== */
.admin-body { background: var(--light); }.admin-header { background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.admin-header .container { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-weight: 650; }.admin-header form { margin: 0; }
.admin-header .btn { min-height: 38px; padding: 7px 14px; }.admin-main { padding: 42px 0 70px; }.admin-title { margin-bottom: 24px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }.admin-login .form-card { width: min(100%, 460px); }.admin-login .logo { margin-bottom: 22px; }
.admin-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px; margin: 22px 0; }
.admin-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }.admin-stats .card { padding: 24px; }.admin-stats span { color: var(--muted); }.admin-stats strong { display: block; font-size: 2rem; color: var(--navy); margin-top: 8px; }
.admin-table-wrap { overflow-x: auto; }.admin-table { width: 100%; border-collapse: collapse; }.admin-table th,.admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }.admin-table td:first-child { white-space: normal; }
.admin-actions { display: flex; gap: 12px; align-items: center; }.admin-actions form { margin: 0; }.admin-actions button,.admin-table form button { border: 0; background: none; color: var(--danger); padding: 0; font: inherit; }
.admin-status { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--light-2); }.admin-status.published { color: var(--green-dark); background: var(--tint-green); }
.admin-alert { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--tint-green); color: var(--green-dark); margin-bottom: 20px; }.admin-alert.error { background: #fff0ed; color: var(--danger); }
.admin-two-column { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(0,1.3fr); gap: 24px; align-items: start; }.admin-two-column .admin-panel { margin-top: 0; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--light); }.editor-toolbar button { border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 7px 10px; }
.rich-editor { min-height: 360px; padding: 18px; border: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: #fff; }.rich-editor:focus { outline: 2px solid rgba(23,99,232,.2); border-color: var(--blue); }
.admin-image-preview { display: block; max-width: 220px; max-height: 140px; object-fit: cover; border-radius: var(--radius-sm); margin-top: 10px; }.field-help,.field small { color: var(--muted); }
@media (max-width: 900px) { .admin-header .container { align-items: flex-start; flex-direction: column; padding-block: 14px; }.admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.admin-two-column { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .blog-search { flex-direction: column; }.blog-post-nav { flex-direction: column; }.blog-post-nav a { max-width: 100%; }.admin-stats { grid-template-columns: 1fr; }.admin-panel { padding: 20px; }.admin-header nav { gap: 10px; font-size: .88rem; } }
