/* ==========================================================================
   AFS — "Ledger Blue" design system
   A premium light theme grounded in the accounting world: paper-white ground,
   ink type, #0074A2 brand accents, and mono tabular figures set like a ledger.
   The brand + tick scales and the cool-grey ink scale are the only colour
   knobs; the amber "self-assessed" badge and the WhatsApp green are semantic
   and deliberately sit outside the palette.
   ========================================================================== */

:root {
  --paper:      #FBFBF9;
  --tint:       #F3F5F6;
  --rule:       #E4E7E9;
  --rule-soft:  #EDF0F1;

  --ink-950:    #070D10;
  --ink-900:    #0E171B;
  --ink-800:    #1A252B;
  --ink-700:    #2A363C;
  --ink-600:    #3E4B51;
  --ink-500:    #5A656B;
  --ink-400:    #7C868B;
  --ink-300:    #A7AFB3;
  --ink-200:    #CCD1D4;

  --brand-700:  #01597B;
  --brand-600:  #0074A2;
  --brand-500:  #0687B4;
  --brand-300:  #71BCD6;
  --brand-100:  #D2E7F1;
  --brand-50:   #EFF6FA;

  --tick:       #0090B5;
  --tick-400:   #35BEDD;
  --amber:      #B4801E;

  --sp-section: clamp(4.5rem, 8.5vw, 7.5rem);
  --radius:     16px;
  --radius-lg:  22px;

  --shadow-sm:  0 1px 2px rgba(14, 23, 27, .05);
  --shadow-md:  0 10px 30px -14px rgba(14, 23, 27, .16);
  --shadow-lg:  0 26px 60px -26px rgba(14, 23, 27, .28);

  --header-h:   80px;   /* Nav bar height — sized for the wordmark + its tagline */
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body { background: var(--paper); }

/* Selection */
::selection { background: var(--brand-100); color: var(--brand-700); }

/* Layout shell -------------------------------------------------------- */
/* EDIT ME — the single knob for content width. Sections and image bands run
   edge to edge; only this inner shell is capped so text stays readable. */
.shell {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .shell { padding-inline: 1.75rem; } }
@media (min-width: 1024px){ .shell { padding-inline: 2.5rem; } }
@media (min-width: 1536px){ .shell { padding-inline: 3.5rem; } }

/* Vertical rhythm. Modifiers touch one axis only, so they never fight. */
.section { padding-block: var(--sp-section); }
.section-sm { padding-block: clamp(3rem, 5.5vw, 4.5rem); }
.section-flush-top { padding-top: 0; }
.section-flush-bottom { padding-bottom: 0; }

.bg-tint { background: var(--tint); }
.bg-ink  { background: var(--ink-900); }

/* Hairline divider used between same-coloured sections */
.rule-top { border-top: 1px solid var(--rule); }

/* Accessibility ------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
}
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--ink-900); color: #fff;
  padding: .6rem 1rem; border-radius: 8px; font-size: .875rem; font-weight: 600;
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow-rule {
  display: block; width: 1.75rem; height: 1px;
  background: currentColor; opacity: .5;
}
.eyebrow-on-dark { color: var(--brand-300); }

.section-title {
  margin-top: 1rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -.022em;
  color: var(--ink-900);
  text-wrap: balance;
}
.section-lead {
  margin-top: 1.125rem;
  font-size: 1.0625rem; line-height: 1.7;
  color: var(--ink-500);
  max-width: 46rem;
}

.title-sm {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink-900);
}

/* Mono micro-label, e.g. "03 / Close" */
.mono-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-400);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px;
  padding: .7rem 1.35rem;
  font-size: .875rem; font-weight: 600; line-height: 1;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
  text-align: center;
}
.btn-lg { padding: .9rem 1.6rem; font-size: .9375rem; }

.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary { background: var(--ink-900); color: #fff; }
.btn-secondary:hover { background: var(--ink-800); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--ink-800); border-color: var(--rule); }
.btn-outline:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-700); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 600; color: var(--brand-600);
  transition: gap .2s, color .2s;
}
.link-arrow:hover { color: var(--brand-700); gap: .65rem; }

/* ==========================================================================
   Utility strip + header
   ========================================================================== */

.topbar {
  background: var(--ink-900);
  color: var(--ink-300);
  font-size: .75rem;
  padding-block: .5rem;
}
.topbar-item { display: flex; align-items: center; gap: .4rem; }
.topbar-link { transition: color .2s; }
.topbar-link:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 249, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 6px 24px -18px rgba(14,23,27,.4);
  background: rgba(251, 251, 249, .96);
}

.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
}

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

/* Wordmark. Height is the knob; width follows the intrinsic 400×87 ratio. */
.brand-logo {
  display: block; width: auto;
  height: 2.25rem;
  max-width: 100%;
}
@media (min-width: 640px)  { .brand-logo { height: 2.5rem; } }
@media (min-width: 1024px) { .brand-logo { height: 2.75rem; } }

/* The wordmark's tagline is near-black, so the dark footer needs it reversed.
   Replace with a supplied light-on-dark asset if one becomes available. */
.brand-logo-invert { filter: brightness(0) invert(1); }

.nav-links { display: none; align-items: center; gap: .25rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  display: block; padding: .55rem .8rem;
  font-size: .9rem; font-weight: 500; color: var(--ink-600);
  border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--ink-900); background: var(--tint); }
.nav-link.is-active { color: var(--brand-700); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .1rem;
  height: 2px; border-radius: 2px; background: var(--brand-600);
}

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 10px; border: 1px solid var(--rule);
  color: var(--ink-800); background: #fff;
  transition: background-color .2s, border-color .2s;
}
.menu-btn:hover { background: var(--tint); border-color: var(--ink-200); }

.mobile-menu { border-top: 1px solid var(--rule); background: var(--paper); }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem .25rem;
  font-size: 1rem; font-weight: 500; color: var(--ink-700);
  border-bottom: 1px solid var(--rule-soft);
  transition: color .2s;
}
.mobile-link:hover { color: var(--brand-700); }
.mobile-link.is-active { color: var(--brand-700); font-weight: 600; }

/* ==========================================================================
   THE SIGNATURE: ledger rows
   Label · dotted leader · mono tabular figure · audit tick
   ========================================================================== */

.ledger-row {
  display: flex; align-items: baseline; gap: .6rem;
  padding-block: .55rem;
  font-size: .9375rem;
}
.ledger-label { color: var(--ink-600); flex-shrink: 0; }
.ledger-dots {
  flex: 1 1 auto; min-width: 1.5rem;
  border-bottom: 1px dotted var(--ink-300);
  transform: translateY(-.28em);
}
.ledger-value {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: .875rem; font-weight: 500;
  color: var(--ink-900);
  flex-shrink: 0;
}

/* The ledger sheet — a stylised close statement used as a hero artifact */
.ledger-sheet {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}
@media (min-width: 640px) { .ledger-sheet { padding: 1.75rem; } }

.ledger-sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.badge-closed {
  display: inline-flex; align-items: center; gap: .35rem;
  border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
  padding: .3rem .7rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

/* Column chart built from the close data */
.close-chart {
  display: flex; align-items: flex-end; gap: .4rem;
  height: 5.5rem; margin-top: 1.25rem;
}
.close-chart span {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--brand-100), var(--brand-500));
}

/* ==========================================================================
   Cards & chips
   ========================================================================== */

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.75rem; }
@media (min-width: 768px) { .card-pad { padding: 2rem; } }

.card-hover { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200, #AAD3E4);
  box-shadow: var(--shadow-md);
}

/* Surface modifiers — declared after .card so they win the background */
.card-ink  { background: var(--ink-900); border-color: transparent; color: #fff; }
.card-tint { background: var(--tint); box-shadow: none; }
.card-ink .icon-tile {
  background: rgba(255,255,255,.1); border-color: transparent; color: var(--brand-300);
}

.icon-tile {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 12px;
  background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.icon-tile-ink { background: var(--ink-900); color: var(--brand-300); border-color: transparent; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  border-radius: 999px; border: 1px solid var(--rule);
  background: var(--paper);
  padding: .35rem .75rem;
  font-size: .8125rem; font-weight: 500; color: var(--ink-600);
}
.chip-mono {
  display: inline-flex; align-items: center; gap: .4rem;
  border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
  padding: .35rem .75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}

.monogram-lg {
  display: grid; place-items: center;
  width: 6rem; height: 6rem; border-radius: 18px;
  background: var(--ink-900); color: var(--brand-300);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.5rem; font-weight: 600; letter-spacing: .05em;
}

/* Service teaser (home) */
.service-teaser {
  display: block;
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-teaser:hover {
  transform: translateY(-3px); border-color: var(--brand-200, #AAD3E4);
  box-shadow: var(--shadow-md);
}
.service-teaser-icon {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
  transition: background-color .25s, color .25s;
}
.service-teaser:hover .service-teaser-icon { background: var(--brand-600); color: #fff; }
.service-teaser-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.25rem;
  font-size: .8125rem; font-weight: 600; color: var(--brand-600);
  transition: gap .2s;
}
.service-teaser:hover .service-teaser-link { gap: .7rem; }

/* Ink variant of the teaser (the "not sure where to start" card) */
.service-teaser-ink {
  background: var(--ink-900); border-color: transparent; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
}
.service-teaser-ink:hover { border-color: rgba(113,188,214,.45); }
.service-teaser-ink .service-teaser-icon {
  background: rgba(255,255,255,.1); border-color: transparent; color: var(--brand-300);
}
.service-teaser-ink:hover .service-teaser-icon { background: var(--brand-600); color: #fff; }
.service-teaser-ink .service-teaser-link { color: var(--brand-300); }

/* Metric figure */
.metric-value {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 600; letter-spacing: -.02em; line-height: 1;
  color: var(--ink-900);
}
.metric-label {
  margin-top: .6rem;
  font-size: .8125rem; color: var(--ink-500);
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
  position: relative;
  background: var(--ink-900);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .26;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14,23,27,.95) 12%, rgba(14,23,27,.7) 60%, rgba(14,23,27,.45) 100%);
}
.page-hero-title {
  margin-top: 1.125rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -.025em;
  color: #fff; text-wrap: balance;
}
.page-hero-lead {
  margin-top: 1.125rem;
  font-size: 1.0625rem; line-height: 1.7;
  color: var(--ink-300);
  max-width: 40rem;
}
.page-hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
@media (min-width: 768px) { .page-hero-stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.page-hero-stats dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-300);
}
.page-hero-stats dd {
  margin-top: .4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.0625rem; font-weight: 500; color: #fff;
}

/* Breadcrumb */
.crumbs {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .8125rem; color: var(--ink-400);
  padding-block: 1rem;
}
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--brand-700); }
.crumbs [aria-current] { color: var(--ink-700); font-weight: 500; }

/* ==========================================================================
   Home hero — full-bleed slider
   The photo is the section background at every breakpoint, so the hero always
   spans the full viewport width. Slides are stacked in a single grid cell:
   the tallest one sets the height, so nothing below the hero shifts on change.
   ========================================================================== */

.home-hero {
  position: relative;
  background: var(--ink-950);
  overflow: hidden;   /* inactive slides drift sideways — keep that off the page */
}

.hero-slider { position: relative; }

.hero-slides { display: grid; }

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  display: grid; align-content: center;
  padding-block: clamp(2rem, 5vh, 4rem);
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease-out, visibility .5s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

/* Background photo + scrim ------------------------------------------------- */
.hero-slide-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-slide-media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-slide-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,13,16,.72) 0%, rgba(7,13,16,.62) 45%, rgba(7,13,16,.86) 100%);
}
@media (min-width: 1024px) {
  .hero-slide-media::after {
    background:
      linear-gradient(96deg, rgba(7,13,16,.95) 0%, rgba(7,13,16,.88) 38%, rgba(7,13,16,.55) 72%, rgba(7,13,16,.68) 100%);
  }
}

/* Slow drift on the photo keeps a static composition feeling alive */
.hero-slide.is-active .hero-slide-media img { animation: heroPan 14s ease-out forwards; }
@keyframes heroPan { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Slide content ----------------------------------------------------------- */
.hero-slide-inner {
  position: relative;
  display: grid; gap: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 1024px) {
  .hero-slide-inner {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem);
    align-items: center; gap: clamp(2.5rem, 4vw, 4.5rem);
  }
}

.hero-slide-copy { max-width: 42rem; }

/* Directional drift so a change reads as movement, not just a crossfade */
.hero-slide-copy, .hero-slide-figure {
  transition: transform .7s cubic-bezier(.22, .9, .28, 1), opacity .5s ease-out;
}
.hero-slide:not(.is-active) .hero-slide-copy   { transform: translateX(-1.75rem); opacity: 0; }
.hero-slide:not(.is-active) .hero-slide-figure { transform: translateX(1.75rem);  opacity: 0; }

.home-hero-title {
  margin-top: 1.5rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
}
/* Accent phrase inside a hero headline — light enough to read on the photo */
.hero-accent { color: var(--brand-300); }

.home-hero-lead {
  margin-top: 1.375rem;
  font-size: 1.0625rem; line-height: 1.75; color: var(--ink-200);
  max-width: 36rem;
}
@media (min-width: 640px) { .home-hero-lead { font-size: 1.125rem; } }

.hero-points {
  display: grid; gap: .625rem 1.75rem;
  margin-top: 2rem;
  font-size: .9375rem;
}
@media (min-width: 640px) { .hero-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-points li {
  display: flex; align-items: flex-start; gap: .625rem;
  color: rgba(255,255,255,.84);
}
.hero-points svg { margin-top: .1875rem; flex-shrink: 0; color: var(--tick-400); }

.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

/* The ledger sheet stays a light card — the signature artifact on the photo */
.hero-ledger { box-shadow: 0 30px 60px -20px rgba(7,13,16,.65); }
@media (min-width: 1024px) { .hero-ledger { margin-left: auto; } }

/* Chrome ------------------------------------------------------------------ */
.hero-controls {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(7,13,16,.55);
  backdrop-filter: blur(6px);
}
.hero-controls-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .875rem;
  /* Clear the fixed WhatsApp button, which sits over this bar on first load */
  padding-right: 5.25rem;
}

.hero-tabs { display: flex; align-items: stretch; gap: .25rem; min-width: 0; }
.hero-tab {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: .125rem;
  padding: .5rem .9rem .625rem 0;
  border-bottom: 2px solid rgba(255,255,255,.14);
  text-align: left; cursor: pointer;
  transition: border-color .25s;
}
.hero-tab + .hero-tab { padding-left: .9rem; }
.hero-tab-no {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: .6875rem; font-weight: 500; letter-spacing: .14em;
  color: rgba(255,255,255,.45);
  transition: color .25s;
}
.hero-tab-label {
  font-size: .8125rem; font-weight: 500; color: rgba(255,255,255,.62);
  white-space: nowrap;
  transition: color .25s;
}
.hero-tab:hover .hero-tab-no,
.hero-tab:hover .hero-tab-label { color: #fff; }
.hero-tab.is-active .hero-tab-no    { color: var(--brand-300); }
.hero-tab.is-active .hero-tab-label { color: #fff; font-weight: 600; }

/* Autoplay progress fills the active tab's rule */
.hero-tab-progress {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand-300);
  transform: scaleX(0); transform-origin: left;
}
.hero-tab.is-active .hero-tab-progress { transform: scaleX(1); }
.hero-slider.is-playing .hero-tab.is-active .hero-tab-progress {
  animation: heroProgress var(--hero-delay, 7000ms) linear forwards;
}
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-arrows { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.hero-arrow {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.85);
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s, transform .2s;
}
.hero-arrow:hover {
  border-color: var(--brand-300); background: rgba(255,255,255,.14); color: #fff;
  transform: translateY(-1px);
}

/* Static trust line under the slider — never moves with the slides */
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem 2rem;
  padding-block: 1.125rem;
  font-size: .75rem; color: var(--ink-500);
}

@media (max-width: 767px) {
  .hero-tab-label { display: none; }
  .hero-tab { padding-right: .5rem; }
  .hero-tab + .hero-tab { padding-left: .5rem; }
  .hero-controls-inner { gap: 1rem; }
}

/* Keep the hero to roughly one screen on smaller devices: the chart goes first,
   then the whole sheet. The ledger device still appears further down the page. */
@media (max-width: 1023px) {
  .hero-ledger .close-chart,
  .hero-ledger .close-chart + p { display: none; }
}
@media (max-width: 767px) {
  .hero-slide-figure { display: none; }
}

/* ==========================================================================
   Process (typed sequence — numbering is meaningful here)
   ========================================================================== */

.step { position: relative; padding-left: 4.25rem; }
.step-no {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 12px;
  background: #fff; border: 1px solid var(--rule);
  font-family: "IBM Plex Mono", monospace;
  font-size: .9375rem; font-weight: 600; color: var(--brand-600);
  box-shadow: var(--shadow-sm);
}
.step-line {
  position: absolute; left: 1.5rem; top: 3.25rem; bottom: -2rem;
  width: 1px; background: var(--rule);
}
@media (min-width: 1024px) {
  .step { padding-left: 0; padding-top: 4.25rem; }
  .step-no { top: 0; left: 0; }
  .step-line { left: 3.25rem; right: -2rem; top: 1.5rem; bottom: auto; width: auto; height: 1px; }
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-item {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item.is-open { border-color: var(--brand-200, #AAD3E4); box-shadow: var(--shadow-md); }
.faq-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.15rem 1.4rem;
  text-align: left; cursor: pointer;
}
.faq-q {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem; font-weight: 500; color: var(--ink-900); letter-spacing: -.01em;
}
.faq-sign {
  display: grid; place-items: center; flex-shrink: 0;
  width: 1.85rem; height: 1.85rem; border-radius: 8px;
  background: var(--tint); color: var(--brand-600);
  transition: transform .3s, background-color .25s, color .25s;
}
.faq-item.is-open .faq-sign { transform: rotate(45deg); background: var(--brand-600); color: #fff; }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease-out; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-answer {
  padding: 0 1.4rem 1.25rem;
  font-size: .9375rem; line-height: 1.7; color: var(--ink-500);
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.price-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.price-card.is-featured {
  border-color: var(--brand-600);
  box-shadow: var(--shadow-lg);
}
.price-flag {
  position: absolute; top: -.75rem; left: 2rem;
  border-radius: 999px; background: var(--brand-600); color: #fff;
  padding: .3rem .8rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.price-value {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 2.75rem; font-weight: 600; letter-spacing: -.03em; line-height: 1;
  color: var(--ink-900);
}
.price-unit { font-size: .8125rem; color: var(--ink-400); }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-label {
  display: block;
  font-size: .8125rem; font-weight: 500; color: var(--ink-700);
  margin-bottom: .4rem;
}
.form-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: #fff;
  padding: .7rem .9rem;
  font-family: inherit; font-size: .9375rem; color: var(--ink-900);
  transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder { color: var(--ink-300); }
.form-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(0, 116, 162, .12);
}
select.form-input { appearance: none; background-image: none; cursor: pointer; }

.alert {
  display: flex; align-items: flex-start; gap: .65rem;
  border-radius: 12px; padding: .9rem 1.1rem;
  font-size: .875rem; line-height: 1.6;
  border: 1px solid;
}
.alert-ok   { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.alert-warn { background: #FEF6EC; border-color: #F6E2C4; color: #8A5A12; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  background: var(--ink-900);
  padding-block: clamp(3.5rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.cta-band-media { position: absolute; inset: 0; z-index: -1; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14,23,27,.94) 15%, rgba(14,23,27,.66) 100%);
}
.cta-band-inner {
  display: flex; flex-direction: column; gap: 2rem;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; }
}
.cta-band-title {
  margin-top: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: #fff;
}
.cta-band-text { margin-top: .85rem; color: var(--ink-300); max-width: 34rem; line-height: 1.7; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .75rem; flex-shrink: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink-900); color: var(--ink-300); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }

.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0,1fr);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 2rem; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-brand { grid-column: auto; } }

.footer-heading {
  font-family: "IBM Plex Mono", monospace;
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-300);
}
.footer-list { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .7rem; font-size: .875rem; }
.footer-list a { color: var(--ink-300); transition: color .2s; }
.footer-list a:hover { color: #fff; }

.footer-contact { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-300); transition: color .2s; }
.footer-contact:hover { color: #fff; }

.footer-bottom {
  display: flex; flex-direction: column; gap: 1rem;
  align-items: center; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .75rem; color: var(--ink-400);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: #fff; }

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 40;
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; border-radius: 999px;
  background: #1FA855; color: #fff;
  box-shadow: 0 12px 28px -10px rgba(31,168,85,.6);
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.07); }

/* ==========================================================================
   Prose (legal pages)
   ========================================================================== */

.prose-legal h2 {
  margin-top: 2.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1875rem; font-weight: 600; color: var(--ink-900); letter-spacing: -.01em;
}
.prose-legal p { margin-top: .85rem; line-height: 1.75; color: var(--ink-500); font-size: .9375rem; max-width: 44rem; }

/* Sticky table of contents for legal pages */
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.toc a {
  display: block; padding: .4rem 0;
  font-size: .8125rem; color: var(--ink-500);
  border-left: 2px solid var(--rule); padding-left: .85rem;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--brand-700); border-color: var(--brand-300); }

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease-out, transform .55s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card-hover:hover, .service-teaser:hover, .whatsapp-fab:hover { transform: none; }
  .faq-panel { transition: none; }
  .hero-slide { transition: none; }
  .hero-slide-copy, .hero-slide-figure { transition: none; transform: none !important; }
  .hero-slide:not(.is-active) .hero-slide-copy,
  .hero-slide:not(.is-active) .hero-slide-figure { opacity: 1; }
  .hero-slide.is-active .hero-slide-media img { animation: none; }
  .hero-slider.is-playing .hero-tab.is-active .hero-tab-progress { animation: none; }
}
