/* =========================================================
   AcaDAMN Design System
   "We Write, You Succeed"
   ========================================================= */

:root {
  /* Brand colour tokens */
  --blue-primary: #0A528E;
  --blue-dark: #054178;
  --navy-deep: #07345C;
  --blue-secondary: #1260A5;
  --blue-bright: #3979C4;
  --blue-soft: #6E9ADC;
  --blue-pale: #EAF3FB;
  --bg-main: #F8FAFC;
  --white: #FFFFFF;
  --text-primary: #142B3C;
  --text-muted: #627585;
  --border: #DCE6EF;
  --border-hover: #B8D2E8;
  --gold: #E8C94F;
  --gold-pale: #FFF6D6;

  /* Shadows */
  --shadow-card: 0 8px 30px rgba(5, 65, 120, 0.06);
  --shadow-card-hover: 0 12px 36px rgba(5, 65, 120, 0.10);
  --shadow-quote: 0 20px 60px rgba(5, 65, 120, 0.14);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Spacing */
  --section-y: 96px;
  --section-y-tablet: 72px;
  --section-y-mobile: 56px;
  --container-max: 1220px;

  /* Type */
  --font-body: 'Manrope', 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Manrope', 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 750; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; }
h1 { font-size: 52px; line-height: 1.08; font-weight: 700; }
h2 { font-size: 38px; line-height: 1.15; font-weight: 700; }
h3 { font-size: 23px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-secondary);
}
.lede { font-size: 18px; line-height: 1.7; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.text-muted { color: var(--text-muted); }

@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  :root { --section-y: var(--section-y-tablet); }
}
@media (max-width: 640px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  :root { --section-y: var(--section-y-mobile); }
}

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-y) 0; }
.bg-white { background: var(--white); }
.bg-tint { background: var(--bg-main); }
.bg-pale { background: var(--blue-pale); }
.bg-navy { background: var(--navy-deep); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy p { color: var(--white); }
.bg-navy .text-soft { color: var(--blue-soft); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue-primary); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--white); color: var(--blue-primary); border-color: var(--blue-primary); }
.btn-secondary:hover { background: var(--blue-pale); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-tertiary { background: transparent; color: var(--blue-primary); padding: 8px 0; font-weight: 700; gap: 6px; }
.btn-tertiary::after { content: '→'; transition: transform .15s ease; }
.btn-tertiary:hover::after { transform: translateX(3px); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Cards (base) ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.tag {
  display: inline-flex; align-items: center; padding: 5px 12px;
  background: var(--blue-pale); color: var(--blue-primary);
  border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700;
}
.badge-gold {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
  background: var(--gold-pale); color: #6B5A16;
  border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700;
}
.icon-box {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--blue-pale); display: flex; align-items: center; justify-content: center;
  color: var(--blue-primary); flex-shrink: 0;
}
.icon-box svg { width: 26px; height: 26px; }

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--navy-deep); color: var(--white);
  font-size: 13.5px; font-weight: 600; text-align: center; padding: 9px 20px;
}
.promo-bar a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px 24px; }
.brand img { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav a.nav-link {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 8px;
  font-weight: 600; font-size: 15px; color: var(--text-primary);
}
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-expanded="true"] { color: var(--blue-primary); background: var(--blue-pale); }
.nav-item { position: relative; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; color: var(--text-primary);
}
.icon-btn:hover { background: var(--blue-pale); color: var(--blue-primary); }
.whatsapp-header-btn { background: #25D366; color: #fff; }
.whatsapp-header-btn:hover { background: #1EBE5A; color: #fff; }
.nav-toggle { display: none; }

/* Mega menu */
.mega-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 760px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-quote); padding: 28px; display: none; gap: 28px; grid-template-columns: repeat(3, 1fr);
}
.mega-menu.open { display: grid; }
.mega-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-secondary); margin-bottom: 12px; }
.mega-col a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--text-primary); }
.mega-col a:hover { color: var(--blue-primary); }
.mega-footer { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 4px; }

@media (max-width: 1024px) {
  .main-nav, .header-actions .btn-secondary, .icon-btn.search-icon { display: none; }
  .nav-toggle { display: flex; }
  .mega-menu { position: static; width: auto; transform: none; box-shadow: none; border: none; padding: 8px 0 8px 12px; grid-template-columns: 1fr; }
}

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed; inset: 0; background: var(--white); z-index: 200;
  transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.mobile-drawer nav { padding: 8px 20px 32px; }
.mobile-drawer .nav-link { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; }
.mobile-drawer .cta-row { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #FFFFFF 0%, var(--blue-pale) 100%); padding: 72px 0 var(--section-y); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.hero h1 { margin: 14px 0 18px; }
.reassurance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.reassurance-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.reassurance-item .dot { width: 30px; height: 30px; border-radius: 8px; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--blue-primary); flex-shrink: 0; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 13.5px; color: var(--text-muted); }
.stars { color: var(--gold); letter-spacing: 2px; }

/* Hero headline effects: kinetic word-swap + highlighter underline */
.cycle-word-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }
.cycle-word-inner { display: inline-block; color: var(--blue-primary); }
.cycle-word-inner.cycle-out { animation: cycleOut .28s cubic-bezier(.4,0,.7,.4) forwards; }
.cycle-word-inner.cycle-in { animation: cycleIn .4s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes cycleOut { to { opacity: 0; transform: translateY(14px) rotate(2deg); } }
@keyframes cycleIn { from { opacity: 0; transform: translateY(-14px) rotate(-2deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }

.highlight-wrap { position: relative; z-index: 0; display: inline-block; white-space: nowrap; }
.highlight-mark { position: absolute; left: -3%; top: 4%; width: 106%; height: 92%; z-index: -1; overflow: visible; pointer-events: none; }
.highlight-mark path {
  fill: none; stroke: var(--gold); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round;
  opacity: .6; mix-blend-mode: multiply;
  stroke-dasharray: 420; stroke-dashoffset: 420;
}
.highlight-mark.draw path { animation: drawHighlight 1s cubic-bezier(.3,.8,.3,1) .5s forwards; }
@keyframes drawHighlight { to { stroke-dashoffset: 0; } }

/* Discount badge under the quote estimate */
.discount-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: #7A5F00;
  background: linear-gradient(100deg, var(--gold-pale) 0%, #FFFDF3 45%, #FFF1B8 55%, var(--gold-pale) 100%);
  background-size: 220% 100%;
  border: 1px solid #F0DFA0;
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  margin: 0 0 10px;
  box-shadow: 0 0 0 0 rgba(232, 201, 79, .45);
  animation: discountShimmer 3.2s linear infinite, discountPulse 2.4s ease-in-out infinite;
}
.discount-badge svg { flex-shrink: 0; }
@keyframes discountShimmer { 0% { background-position: 220% 0; } 100% { background-position: -20% 0; } }
@keyframes discountPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 201, 79, .45); }
  50% { box-shadow: 0 0 0 7px rgba(232, 201, 79, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cycle-word-inner.cycle-out, .cycle-word-inner.cycle-in { animation: none; }
  .highlight-mark.draw path { animation: none; stroke-dashoffset: 0; }
  .discount-badge { animation: none; }
}

/* Quote calculator card */
.quote-card {
  background: var(--white); border: 1px solid var(--border-hover); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-quote); padding: 30px; position: sticky; top: 96px;
}
.quote-card .field { margin-bottom: 16px; }
.quote-card label { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.quote-card select, .quote-card input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; color: var(--text-primary); background: var(--white);
}
.quote-card select:focus, .quote-card input:focus { border-color: var(--blue-primary); }
.quote-estimate {
  display: flex; align-items: baseline; justify-content: space-between;
  background: var(--blue-pale); border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0;
}
.quote-estimate .price { font-size: 28px; font-weight: 800; color: var(--blue-primary); }
.quote-estimate .label { font-size: 12.5px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .quote-card { position: static; }
}
@media (max-width: 640px) {
  .reassurance-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-strip .grid { grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13.5px; font-weight: 600; }
.trust-item svg { color: var(--blue-primary); }

/* ---------- WhatsApp order banner ---------- */
.whatsapp-banner {
  display: flex; align-items: center; gap: 24px; justify-content: space-between;
  background: var(--blue-pale); border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg); padding: 26px 32px; flex-wrap: wrap;
}
.whatsapp-banner .wa-left { display: flex; align-items: center; gap: 18px; }
.whatsapp-banner .wa-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(37,211,102,.35);
}
.whatsapp-banner h3 { margin: 0 0 4px; font-size: 19px; }
.whatsapp-banner p { margin: 0; font-size: 14.5px; }
.whatsapp-banner .btn-whatsapp {
  background: #25D366; color: #fff; border-color: #25D366;
}
.whatsapp-banner .btn-whatsapp:hover { background: #1EBE5A; }
@media (max-width: 720px) {
  .whatsapp-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .whatsapp-banner .btn-whatsapp { width: 100%; justify-content: center; }
}

/* ---------- Benefit / feature cards ---------- */
.benefit-card { padding: 26px; }
.benefit-card h3 { margin: 14px 0 8px; font-size: 18.5px; }
.benefit-card p { font-size: 14.5px; margin: 0; }

/* ---------- Stats ---------- */
.stats-strip { text-align: center; }
.stat-item .num { font-size: 42px; font-weight: 800; color: var(--blue-primary); display: block; }
.stat-item .cap { font-size: 14px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.demo-note {
  text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 20px;
  background: var(--gold-pale); display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill);
}
.demo-note-wrap { text-align: center; }

/* ---------- Expert cards ---------- */
.expert-card { padding: 22px; text-align: left; }
.expert-photo {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm); background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center; color: var(--blue-secondary); margin-bottom: 16px; overflow: hidden;
}
.expert-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.expert-meta .rating { color: var(--gold); font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.expert-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.expert-stats { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-muted); margin: 10px 0 16px; }
.expert-actions { display: flex; gap: 10px; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.carousel-track > * { scroll-snap-align: start; }
@media (min-width: 1025px) { .carousel-track.desktop-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
@media (max-width: 1024px) { .carousel-track > * { min-width: 280px; } }

/* ---------- Services tabs ---------- */
.service-tabs-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.service-tab-btn {
  padding: 11px 20px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--white); font-weight: 700; font-size: 14.5px; color: var(--text-muted);
}
.service-tab-btn.active { background: var(--blue-primary); border-color: var(--blue-primary); color: var(--white); }
.service-tab-panel { display: none; }
.service-tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.service-tab-illustration {
  aspect-ratio: 4/3; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--blue-pale), var(--white));
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--blue-soft);
}
.service-includes { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.service-includes li { display: flex; gap: 10px; font-size: 15px; color: var(--text-primary); align-items: flex-start; }
.service-includes li svg { color: var(--blue-primary); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 900px) { .service-tab-panel.active { grid-template-columns: 1fr; } .service-tab-illustration { order: -1; } }

/* ---------- How it works ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step-item { text-align: center; padding: 0 8px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--blue-primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 16px; font-size: 18px;
}
@media (max-width: 900px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Subject / location tiles ---------- */
.subject-tile {
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.subject-tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.subject-tile:hover::before { transform: scaleX(1); }
.subject-tile .icon-box {
  margin-bottom: 4px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .25s ease, color .25s ease;
}
.subject-tile:hover .icon-box { background: var(--blue-primary); color: var(--white); transform: scale(1.12) rotate(-6deg); }
.subject-tile h3 { transition: color .2s ease; }
.subject-tile:hover h3 { color: var(--blue-primary); }
/* Staggered entrance only — delay resets to 0 once revealed so hover stays instant */
#subjects .subject-tile.reveal:not(.in):nth-child(4n+2) { transition-delay: 70ms; }
#subjects .subject-tile.reveal:not(.in):nth-child(4n+3) { transition-delay: 140ms; }
#subjects .subject-tile.reveal:not(.in):nth-child(4n+4) { transition-delay: 210ms; }
#subjects .subject-tile.reveal.in { transition-delay: 0ms; }
.location-card { overflow: hidden; padding: 0; }
.location-img { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--blue-secondary), var(--blue-primary)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-weight: 700; }
.location-body { padding: 18px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { padding: 32px 26px; text-align: left; position: relative; }
.pricing-card.featured { border-color: var(--blue-primary); box-shadow: var(--shadow-quote); transform: translateY(-14px); }
.pricing-card .price { font-size: 38px; font-weight: 800; color: var(--blue-primary); margin: 14px 0 4px; }
.pricing-card .price small { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.pricing-card ul { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 26px; }
.pricing-card ul li { display: flex; gap: 8px; font-size: 14.5px; align-items: flex-start; }
.pricing-card ul li svg { color: var(--blue-primary); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-card.featured { transform: none; } }
.table-wrap { overflow-x: auto; margin-top: 48px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14.5px; }
table.compare th { background: var(--blue-pale); font-weight: 700; }

/* ---------- Samples ---------- */
.sample-card { padding: 22px; }
.sample-doc-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--navy-deep); color: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.sample-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; font-size: 12.5px; color: var(--text-muted); }
.sample-meta span { background: var(--bg-main); padding: 4px 10px; border-radius: var(--radius-pill); }

/* ---------- Tools ---------- */
.tool-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tool-card:nth-child(3n+2) { background: var(--blue-pale); }
.tool-card:nth-child(5n+4) { background: var(--gold-pale); }

/* ---------- Integrity ---------- */
.integrity-card { padding: 26px; }

/* ---------- Reviews ---------- */
.review-card { padding: 24px; }
.review-card .rating { color: var(--gold); margin-bottom: 10px; }
.review-card .meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; padding: 88px 0; }
.final-cta h2 { font-size: 40px; max-width: 640px; margin: 0 auto 16px; }
.final-cta p { max-width: 560px; margin: 0 auto 32px; color: var(--blue-soft); font-size: 17px; }
.final-cta .btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Articles ---------- */
.article-card { overflow: hidden; padding: 0; }
.article-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue-pale), var(--blue-soft)); }
.article-body { padding: 20px; }
.article-body .meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 56px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 4px; background: none; border: none; text-align: left; font-weight: 700; font-size: 16px; color: var(--text-primary);
}
.faq-q .plus { flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--blue-primary); transition: transform .2s ease; }
.faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 4px 18px; color: var(--text-muted); font-size: 14.5px; }
.faq-group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-secondary); margin: 28px 0 4px; }
.faq-group-title:first-child { margin-top: 0; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand-box { background: var(--white); border-radius: var(--radius-md); padding: 16px 20px; display: inline-block; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.footer-brand-box img { height: 44px; display: block; }
.site-footer h4 { color: var(--white); font-size: 14px; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.75); font-size: 14px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 13px; color: rgba(255,255,255,.6); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 1024px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Floating support ---------- */
.floating-support { position: fixed; right: 24px; bottom: 24px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.floating-support-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-quote); padding: 18px; width: 240px; display: none; flex-direction: column; gap: 10px;
}
.floating-support-panel.open { display: flex; }
.floating-support-panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; background: var(--blue-pale); color: var(--blue-primary); }
.floating-toggle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--blue-primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; border: none; box-shadow: var(--shadow-quote);
}
.mobile-sticky-bar { display: none; }
@media (max-width: 720px) {
  .floating-support { right: 16px; bottom: 84px; }
  .mobile-sticky-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
    background: var(--white); border-top: 1px solid var(--border); padding: 10px 14px; gap: 10px;
  }
  .mobile-sticky-bar .btn { flex: 1; }
  body { padding-bottom: 68px; }
}

/* ---------- Breadcrumbs / page header ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--text-muted); padding: 20px 0 0; }
.breadcrumbs a { color: var(--blue-secondary); }
.page-hero { padding: 40px 0 64px; background: linear-gradient(180deg, #FFFFFF 0%, var(--blue-pale) 100%); }
.page-hero h1 { max-width: 760px; }
.page-hero p.lede { max-width: 640px; }

/* ---------- Prototype / demo banner ---------- */
.demo-banner {
  background: var(--gold-pale); border-bottom: 1px solid #EBDFA8;
  color: #6B5A16; font-size: 13.5px; font-weight: 600; text-align: center; padding: 10px 20px;
}
.demo-banner strong { font-weight: 800; }

/* ---------- Order wizard ---------- */
.wizard-shell { max-width: 860px; margin: 0 auto; }
.wizard-progress { display: flex; gap: 6px; margin-bottom: 40px; }
.wizard-progress .dot { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--border); }
.wizard-progress .dot.done, .wizard-progress .dot.current { background: var(--blue-primary); }
.wizard-step-label { font-size: 13px; font-weight: 700; color: var(--blue-secondary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }
.wizard-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.wizard-field-grid.full { grid-template-columns: 1fr; }
.wizard-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.wizard-field select, .wizard-field input, .wizard-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--text-primary);
}
.wizard-field textarea { resize: vertical; }
.wizard-nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.plan-select-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.plan-select-card {
  border: 2px solid var(--border); border-radius: var(--radius-md); padding: 22px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; background: var(--white);
}
.plan-select-card.selected { border-color: var(--blue-primary); box-shadow: 0 0 0 3px var(--blue-pale); }
.plan-select-card input { display: none; }
.plan-select-card .price { font-size: 26px; font-weight: 800; color: var(--blue-primary); margin: 8px 0; }
.extras-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.extra-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.extra-row label { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.extra-row .extra-price { color: var(--blue-primary); font-weight: 700; font-size: 14px; }
.quote-summary-card { background: var(--blue-pale); border-radius: var(--radius-md); padding: 24px; margin: 20px 0; }
.quote-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; border-bottom: 1px solid rgba(10,82,142,.12); }
.quote-summary-row:last-child { border-bottom: none; }
.quote-summary-row.total { font-weight: 800; font-size: 18px; color: var(--blue-primary); padding-top: 14px; }
.confirmation-box { text-align: center; padding: 48px 24px; }
.confirmation-box .check-circle {
  width: 72px; height: 72px; border-radius: 50%; background: var(--blue-pale); color: var(--blue-primary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}

/* ---------- Dashboard layout (customer + admin) ---------- */
.dash-shell { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.dash-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; }
.dash-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px;
  font-weight: 700; font-size: 14.5px; color: var(--text-muted);
}
.dash-sidebar a:hover { background: var(--blue-pale); color: var(--blue-primary); }
.dash-sidebar a.active { background: var(--blue-primary); color: var(--white); }
.dash-tab-panel { display: none; }
.dash-tab-panel.active { display: block; }
.dash-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.dash-stat-card { padding: 20px; }
.dash-stat-card .num { font-size: 28px; font-weight: 800; color: var(--blue-primary); }
.dash-stat-card .cap { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.data-table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data-table th, table.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
table.data-table th { background: var(--bg-main); font-weight: 700; color: var(--text-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.status-pill { display: inline-flex; padding: 4px 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; }
.status-pill.in-progress { background: var(--gold-pale); color: #6B5A16; }
.status-pill.review { background: var(--blue-pale); color: var(--blue-primary); }
.status-pill.complete { background: #E4F5E9; color: #1E7A3E; }
.status-pill.paid { background: #E4F5E9; color: #1E7A3E; }
.status-pill.pending { background: var(--gold-pale); color: #6B5A16; }
.message-thread { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 12px; }
.message-thread .from { font-weight: 700; font-size: 14.5px; }
.message-thread .msg-meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
@media (max-width: 900px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; flex-direction: row; overflow-x: auto; }
  .plan-select-grid { grid-template-columns: 1fr; }
  .wizard-field-grid { grid-template-columns: 1fr; }
  .dash-stat-row { grid-template-columns: 1fr; }
}

/* ---------- Auth ---------- */
.auth-shell { max-width: 440px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: var(--bg-main); padding: 5px; border-radius: var(--radius-pill); }
.auth-tab-btn { flex: 1; padding: 10px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; background: none; border: none; color: var(--text-muted); }
.auth-tab-btn.active { background: var(--white); color: var(--blue-primary); box-shadow: var(--shadow-card); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
