/* ==========================================================================
   Lightspeed Creations — global stylesheet
   Flat design. No gradients, no heavy shadows. Navy + ink on white.
   Mobile-first. One file, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #1F4E78;
  --navy-dark: #163A5A;
  --navy-tint: #EAF1F7;

  /* Text */
  --ink: #1B2430;
  --ink-light: #5B6470;

  /* Surfaces */
  --white: #FFFFFF;
  --surface: #F5F8FA;
  --surface-alt: #EAF1F7;

  /* Lines */
  --border: #DCE5EE;
  --border-strong: #C3D3E2;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale (4/8 rhythm) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;

  /* Layout */
  --container: 1120px;
  --gutter: 1.25rem;
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --header-h: 68px;

  /* Motion */
  --t: 180ms ease-out;
  --spring: 260ms cubic-bezier(.34, 1.56, .64, 1);
  --ease-out-expo: 550ms cubic-bezier(.16, 1, .3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(27, 36, 48, 0.06);
  --shadow-md: 0 12px 28px -12px rgba(27, 36, 48, 0.18);
  --shadow-navy: 0 14px 30px -10px rgba(31, 78, 120, 0.4);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  margin: 0 0 var(--s-4);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.375rem); font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
li { margin-bottom: var(--s-2); }

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--navy); color: #fff; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 2rem; } }

.section { padding-block: clamp(3rem, 8vw, 5rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.section--tint { background: var(--surface); }
.section--tint-alt { background: var(--surface-alt); }
.section--navy { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.section--navy h2, .section--navy h3 { color: #fff; }
/* Subtle glow texture so navy panels aren't a flat, dead block of colour */
.section--navy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 85% 0%, rgba(255,255,255,0.09), transparent 60%),
    radial-gradient(ellipse 50% 50% at 8% 100%, rgba(255,255,255,0.07), transparent 60%);
  pointer-events: none;
}
.section--navy .container { position: relative; z-index: 1; }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-light); font-size: 1.0625rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--s-3);
}
.section--navy .eyebrow { color: var(--navy-tint); }

.lede { font-size: clamp(1.0625rem, 2.2vw, 1.1875rem); color: var(--ink-light); }
.muted { color: var(--ink-light); }
.center { text-align: center; }

/* Generic responsive grid */
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--t), color var(--t), border-color var(--t),
    transform var(--spring), box-shadow 240ms ease-out;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.96); transition-duration: 90ms; }

/* Diagonal light sweep on hover — a small, tasteful "alive" cue, not a gimmick */
.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-18deg);
  transition: left 520ms ease-out;
}
.btn:hover::after { left: 130%; }

.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; box-shadow: var(--shadow-navy); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn--outline:hover { background: var(--navy-tint); border-color: var(--navy); color: var(--navy-dark); box-shadow: var(--shadow-md); }
.btn--outline::after { background: linear-gradient(115deg, transparent, rgba(31,78,120,0.14), transparent); }

.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--navy-tint); border-color: var(--navy-tint); color: var(--navy-dark); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.35); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.btn-row--center { justify-content: center; }

/* Inline text link with chevron */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 220ms ease-out;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -8px rgba(27, 36, 48, 0.16); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

/* Logo lockup: icon SVG (brand asset) + wordmark, matching the horizontal logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding-block: 0.5rem;
}
.logo img { width: 30px; height: 30px; flex: none; }
.logo-text {
  display: block;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-size: 1.0625rem;
}
.logo-text .a { display: block; font-weight: 800; color: var(--navy); }
.logo-text .b { display: block; font-weight: 400; color: var(--ink); }

/* Footer variant (on navy) */
.logo--light .logo-text .a { color: #fff; }
.logo--light .logo-text .b { color: var(--navy-tint); }

.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t);
}
.nav-toggle:hover { background: var(--surface); border-color: var(--border-strong); }
.nav-toggle:active { transform: scale(0.94); }
/* Both icons stack in place; opacity+rotate cross-fades between them instead
   of an instant display:none/block swap. */
.nav-toggle .icon-open,
.nav-toggle .icon-close {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -12px 0 0 -12px;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.16,1,.3,1);
}
.nav-toggle .icon-open { opacity: 1; transform: rotate(0deg); }
.nav-toggle .icon-close { opacity: 0; transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .icon-open { opacity: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: rotate(0deg); }

/* Backdrop behind the mobile menu — injected by js/nav.js, click to close */
.nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(27, 36, 48, 0.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
  z-index: 90;
}
.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}

.nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: var(--s-2) var(--gutter) var(--s-5);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.16,1,.3,1), visibility 0s linear 220ms;
}
.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.16,1,.3,1), visibility 0s linear 0s;
}

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

.nav a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color var(--t), transform var(--t);
}
.nav a:hover { color: var(--navy); transform: translateX(4px); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }

.nav .nav-cta { margin-top: var(--s-4); }
/* .nav a sets colour/border for plain nav links — the CTA must win those back. */
.nav .nav-cta .btn { width: 100%; border-bottom: 0; }
.nav .nav-cta .btn--primary { color: #fff; background: var(--navy); }
.nav .nav-cta .btn--primary:hover { color: #fff; background: var(--navy-dark); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-backdrop { display: none; }
  .nav {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav ul {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .nav a {
    position: relative;
    padding: 0.5rem 0.75rem;
    border-bottom: 0;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    transition: color var(--t), background-color var(--t);
  }
  .nav a:hover { background: var(--surface); transform: none; }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.3rem;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms cubic-bezier(.16,1,.3,1);
  }
  .nav a:hover::after,
  .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a[aria-current="page"] {
    background: var(--navy-tint);
  }
  .nav .nav-cta a::after { display: none; }

  .logo img { transition: transform var(--spring); }
  .logo:hover img { transform: rotate(-8deg) scale(1.08); }
  .nav .nav-cta { margin-top: 0; margin-left: 0.5rem; }
  .nav .nav-cta .btn {
    width: auto;
    min-height: 42px;
    padding: 0.45rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 9vw, 5.5rem);
  border-bottom: 1px solid var(--border);
}

/* Decorative, non-interactive background shapes — breaks up the flat white
   panel without adding a photo. Slow float, fully inert to a11y tree. */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero-bg::before {
  width: 26rem;
  height: 26rem;
  top: -12rem;
  right: -8rem;
  background: radial-gradient(circle, var(--navy-tint), transparent 72%);
  animation: hero-float-a 16s ease-in-out infinite;
}
.hero-bg::after {
  width: 20rem;
  height: 20rem;
  bottom: -11rem;
  left: -7rem;
  background: radial-gradient(circle, #d8e6f1, transparent 72%);
  animation: hero-float-b 18s ease-in-out infinite;
}
@keyframes hero-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-1.5rem, 1.75rem) scale(1.05); }
}
@keyframes hero-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(1.75rem, -1.5rem) scale(1.05); }
}

.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 46rem; }
.hero h1 { margin-bottom: var(--s-5); }
.hero .lede { margin-bottom: var(--s-6); max-width: 38rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: var(--s-5);
  background: var(--navy-tint);
  border-radius: var(--pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.tag svg { width: 16px; height: 16px; flex: none; animation: tag-pulse 2.6s ease-in-out infinite; }
@keyframes tag-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

/* Trust strip under hero */
.trust {
  display: grid;
  gap: var(--s-4);
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: clamp(1.75rem, 4vw, 2.25rem);
  border-top: 1px solid var(--border);
}
@media (min-width: 700px) { .trust { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.trust-item svg { width: 22px; height: 22px; flex: none; color: var(--navy); margin-top: 2px; transition: transform var(--spring); }
.trust-item:hover svg { transform: scale(1.15) rotate(-6deg); }
.trust-item strong { display: block; font-size: 0.9375rem; }
.trust-item span { display: block; font-size: 0.9375rem; color: var(--ink-light); }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  transition: transform var(--ease-out-expo), box-shadow var(--ease-out-expo), border-color var(--t);
}
.section--tint .card, .section--tint-alt .card { background: #fff; }

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--ink-light); margin-bottom: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-4);
  background: var(--navy-tint);
  border-radius: var(--radius-sm);
  color: var(--navy);
  transition: transform var(--spring), background-color var(--t), color var(--t);
}
.card-icon svg { width: 24px; height: 24px; }
.card:hover .card-icon { transform: scale(1.1) rotate(-4deg); background: var(--navy); color: #fff; }

/* --------------------------------------------------------------------------
   8. Pricing
   -------------------------------------------------------------------------- */
.price-grid { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  /* 2px on every card so the featured one doesn't sit 1px off from its neighbours */
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.price-card {
  transition: transform var(--ease-out-expo), box-shadow var(--ease-out-expo), border-color var(--t);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card--featured { border-color: var(--navy); box-shadow: 0 8px 24px -14px rgba(31,78,120,0.35); }
.price-card--featured:hover { box-shadow: var(--shadow-navy); }

.price-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Stacked (mobile): badge sits in normal flow above the title.
   Side by side (>=900px): badge is lifted out of flow and its row reserved on
   every card, so all three titles share a baseline at full width. */
.price-card .price-badge { align-self: flex-start; margin-bottom: var(--s-3); }

@media (min-width: 900px) {
  .price-card { padding-top: calc(var(--s-5) + 2.25rem); }
  .price-card .price-badge {
    position: absolute;
    top: var(--s-5);
    left: var(--s-5);
    margin-bottom: 0;
  }
}

.price-card h2 {
  margin-bottom: var(--s-2);
  font-size: clamp(1.15rem, 2.4vw, 1.375rem);
  font-weight: 700;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: var(--s-2);
}
.price-amount .num {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.price-amount .unit { font-size: 0.9375rem; font-weight: 600; color: var(--ink-light); }

.price-turnaround {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--s-4);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-light);
}
.price-turnaround svg { width: 17px; height: 17px; flex: none; color: var(--navy); }

.price-card > p { color: var(--ink-light); }

.feature-list {
  list-style: none;
  margin: var(--s-4) 0 var(--s-5);
  padding: 0;
  flex-grow: 1;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.9375rem;
}
.feature-list li:last-child { margin-bottom: 0; }
.feature-list svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  color: var(--navy);
}

.price-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: clamp(2rem, 4vw, 2.5rem);
  padding: var(--s-5);
  background: var(--surface-alt);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.price-note svg { width: 22px; height: 22px; flex: none; color: var(--navy); margin-top: 2px; }
.price-note p { margin-bottom: 0; }

/* Compact pricing snapshot (home page) */
.snapshot {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 900px) { .snapshot { grid-template-columns: repeat(3, 1fr); } }

.snapshot-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.snapshot-item {
  transition: transform var(--ease-out-expo), box-shadow var(--ease-out-expo), border-color var(--t);
}
.snapshot-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.snapshot-item--featured { border-color: var(--navy); }
.snapshot-item--featured:hover { box-shadow: var(--shadow-navy); }
.snapshot-item .price-badge { align-self: flex-start; margin-bottom: var(--s-3); }
@media (min-width: 900px) {
  .snapshot-item { padding-top: calc(var(--s-5) + 2.25rem); }
  .snapshot-item .price-badge {
    position: absolute;
    top: var(--s-5);
    left: var(--s-5);
    margin-bottom: 0;
  }
}
.snapshot-item h3 {
  margin-bottom: var(--s-1);
  font-size: 1.125rem;
}
.snapshot-item .price-amount { margin-bottom: var(--s-1); }
.snapshot-item p { color: var(--ink-light); font-size: 0.9375rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. Case study
   -------------------------------------------------------------------------- */
.case {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--ease-out-expo), transform var(--ease-out-expo);
}
.case:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.case + .case { margin-top: var(--s-5); }

.case-head {
  padding: var(--s-5);
  background: var(--navy);
  color: #fff;
}
.case-head h2,
.case-head h3 { color: #fff; margin-bottom: var(--s-2); font-size: clamp(1.25rem, 3vw, 1.6rem); }
.case-head p { margin-bottom: 0; color: var(--navy-tint); font-size: 0.9375rem; }

.case-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: var(--s-3);
  padding: 0.25rem 0.7rem;
  background: rgba(255,255,255,0.15);
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.case-status svg { width: 14px; height: 14px; }

.case-body { padding: var(--s-5); }
.case-body h4 { margin-bottom: var(--s-2); }

.case-split { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .case-split { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }

.case-list { list-style: none; margin: 0; padding: 0; }
.case-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--ink-light);
  margin-bottom: 0.65rem;
}
.case-list svg { width: 19px; height: 19px; flex: none; margin-top: 3px; }
.case-list--problem svg { color: #B3402C; }
.case-list--fix svg { color: var(--navy); }

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-light);
}

/* Empty slot for future case studies */
.case-placeholder {
  margin-top: var(--s-5);
  padding: var(--s-6) var(--s-5);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-light);
}
.case-placeholder p { margin-bottom: 0; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   10. Process steps
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  transition: transform var(--ease-out-expo), box-shadow var(--ease-out-expo), border-color var(--t);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-4);
  background: var(--navy);
  color: #fff;
  border-radius: var(--pill);
  font-weight: 800;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  transition: transform var(--spring);
}
.step:hover .step-num { transform: scale(1.1) rotate(-6deg); }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--ink-light); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   11. Prose (About)
   -------------------------------------------------------------------------- */
.prose { max-width: 40rem; }
.prose p { font-size: 1.0625rem; }
.prose h2 { margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); }

.pull {
  margin: var(--s-6) 0;
  padding: var(--s-5);
  background: var(--surface-alt);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pull p { margin-bottom: 0; font-weight: 600; font-size: 1.0625rem; }

/* --------------------------------------------------------------------------
   12. FAQ search
   Filters the .accordion-item list client-side. Reuses .field/.field input
   from section 14 (Forms) for identical label/input styling and touch size.
   -------------------------------------------------------------------------- */
.faq-search { max-width: 44rem; margin-bottom: var(--s-5); }
.faq-search .field { margin-bottom: var(--s-2); }
.faq-search-status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-light);
}

/* (FAQ answers use the .accordion component — see section 19) */

/* --------------------------------------------------------------------------
   13. Testimonial placeholder (honest — no fabricated quotes)
   -------------------------------------------------------------------------- */
.notice {
  max-width: 42rem;
  margin-inline: auto;
  padding: var(--s-6) var(--s-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.notice svg { width: 30px; height: 30px; margin: 0 auto var(--s-4); color: var(--navy); }
.notice h3 { margin-bottom: var(--s-2); }
.notice p { color: var(--ink-light); margin-bottom: var(--s-4); }
.notice p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form-layout { display: grid; gap: clamp(2rem, 5vw, 3rem); }
@media (min-width: 900px) { .form-layout { grid-template-columns: 1.35fr 1fr; gap: 4rem; } }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
}
@media (min-width: 600px) { .form-card { padding: var(--s-6); } }

.field { margin-bottom: var(--s-5); }
.field:last-of-type { margin-bottom: var(--s-5); }

.field label {
  display: block;
  margin-bottom: var(--s-2);
  font-weight: 600;
  font-size: 0.9375rem;
}
.req { color: #B3402C; }

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;      /* 16px — prevents iOS zoom on focus */
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--t);
}
.field textarea { min-height: 150px; resize: vertical; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6470' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.6rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--navy); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: 3px solid var(--navy-tint);
  outline-offset: 0;
}

.field-hint {
  display: block;
  margin-top: var(--s-2);
  font-size: 0.875rem;
  color: var(--ink-light);
}

/* Honeypot — hidden from humans, visible to bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footnote {
  margin-top: var(--s-4);
  font-size: 0.875rem;
  color: var(--ink-light);
}

/* Contact sidebar */
.contact-aside h3 { margin-bottom: var(--s-3); }
.contact-block {
  padding: var(--s-5);
  background: var(--surface-alt);
  border-radius: var(--radius);
  margin-bottom: var(--s-4);
}
.contact-block:last-child { margin-bottom: 0; }
.contact-block h3 { font-size: 1.0625rem; }
.contact-block p { color: var(--ink-light); font-size: 0.9375rem; }
.contact-block a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .inner { max-width: 40rem; margin-inline: auto; }
.cta-band p {
  color: var(--navy-tint);
  font-size: 1.0625rem;
  margin-bottom: var(--s-6);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--navy-tint);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.footer-top {
  display: grid;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.4fr 1fr; gap: var(--s-8); }
}

.footer-about p {
  margin-top: var(--s-4);
  margin-bottom: var(--s-4);
  font-size: 0.9375rem;
  max-width: 26rem;
  color: var(--navy-tint);
}
.footer-about a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.footer-nav h2 { color: #fff; font-size: 0.9375rem; margin-bottom: var(--s-3); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  color: var(--navy-tint);
  text-decoration: none;
  font-size: 0.9375rem;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   17. Thank-you / utility page
   -------------------------------------------------------------------------- */
.centered-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(4rem, 12vw, 7rem);
}
.centered-page .inner { max-width: 34rem; }
.centered-page .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--s-5);
  background: var(--navy-tint);
  border-radius: var(--pill);
  color: var(--navy);
}
.centered-page .badge-icon svg { width: 32px; height: 32px; }

/* --------------------------------------------------------------------------
   18. Scroll reveal
   Elements start slightly lowered/faded, animate in once when they cross
   into view. JS (site.js) adds .is-visible via IntersectionObserver; if JS
   never runs, or IO isn't supported, the fallback below keeps content shown.
   -------------------------------------------------------------------------- */
/* Scoped under .js (set synchronously in <head>, see the inline script at the
   top of <body>) so that with JavaScript off — or before it runs — every
   .reveal element is just plain visible content. Nothing is ever hidden
   from a no-JS visitor or a crawler. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--ease-out-expo), transform var(--ease-out-expo);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Stagger direct children of grouped reveals so cards don't all land at once */
.js .grid.reveal > *,
.js .steps.reveal > *,
.js .price-grid.reveal > *,
.js .snapshot.reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--ease-out-expo), transform var(--ease-out-expo);
}
.js .grid.reveal.is-visible > *,
.js .steps.reveal.is-visible > *,
.js .price-grid.reveal.is-visible > *,
.js .snapshot.reveal.is-visible > * { opacity: 1; transform: none; }

.js .grid.reveal > *:nth-child(1), .js .steps.reveal > *:nth-child(1), .js .price-grid.reveal > *:nth-child(1), .js .snapshot.reveal > *:nth-child(1) { transition-delay: 0ms; }
.js .grid.reveal > *:nth-child(2), .js .steps.reveal > *:nth-child(2), .js .price-grid.reveal > *:nth-child(2), .js .snapshot.reveal > *:nth-child(2) { transition-delay: 90ms; }
.js .grid.reveal > *:nth-child(3), .js .steps.reveal > *:nth-child(3), .js .price-grid.reveal > *:nth-child(3), .js .snapshot.reveal > *:nth-child(3) { transition-delay: 180ms; }
.js .grid.reveal > *:nth-child(4), .js .steps.reveal > *:nth-child(4), .js .price-grid.reveal > *:nth-child(4), .js .snapshot.reveal > *:nth-child(4) { transition-delay: 270ms; }

/* Same stagger for accordion sections (the homepage's two accordions, and
   the FAQ page) — includes border-color/box-shadow so the accordion-item's
   own hover/open transition (section 19) isn't lost under the more specific
   selector here. */
.js .accordion.reveal > .accordion-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--ease-out-expo), transform var(--ease-out-expo), border-color var(--t), box-shadow var(--t);
}
.js .accordion.reveal.is-visible > .accordion-item { opacity: 1; transform: none; }
.js .accordion.reveal > .accordion-item:nth-child(1) { transition-delay: 0ms; }
.js .accordion.reveal > .accordion-item:nth-child(2) { transition-delay: 70ms; }
.js .accordion.reveal > .accordion-item:nth-child(3) { transition-delay: 140ms; }
.js .accordion.reveal > .accordion-item:nth-child(4) { transition-delay: 210ms; }
.js .accordion.reveal > .accordion-item:nth-child(5) { transition-delay: 280ms; }
.js .accordion.reveal > .accordion-item:nth-child(6) { transition-delay: 350ms; }

/* --------------------------------------------------------------------------
   19. Accordion
   Button-driven, not native <details> — gives us animated height, a
   numbered/iconic trigger, and roving keyboard support (see js/accordion.js)
   while staying to the WAI-ARIA accordion pattern (button + aria-expanded +
   aria-controls + a labelled region).
   -------------------------------------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: var(--s-3); }

.accordion-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.accordion-item:has(.accordion-trigger[aria-expanded="true"]) {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.accordion-heading { margin: 0; }

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  width: 100%;
  min-height: 64px;
  padding: var(--s-4) var(--s-5);
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t), color var(--t);
}
.accordion-trigger:hover { color: var(--navy); background: var(--surface); }
.accordion-trigger:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; border-radius: var(--radius-sm); }

.accordion-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--pill);
  background: var(--navy-tint);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--t), color var(--t), transform var(--spring);
}
.accordion-trigger[aria-expanded="true"] .accordion-num { background: var(--navy); color: #fff; transform: scale(1.08); }

.accordion-title { flex: 1; }

.accordion-chevron {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--navy);
  transition: transform 280ms cubic-bezier(.16,1,.3,1);
}
.accordion-trigger[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); }

/* No explicit height here on purpose: default is auto (fully visible), so an
   accordion with no JS just reads as a stack of open sections. js/accordion.js
   sets an inline pixel height only once it has taken over a given panel. */
.accordion-panel {
  overflow: hidden;
  transition: height 280ms cubic-bezier(.16,1,.3,1);
}
.accordion-panel-inner {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--ink-light);
}
.accordion-panel-inner p { font-size: 0.9688rem; }
.accordion-panel-inner p:last-child { margin-bottom: 0; }
.accordion-panel-inner a { font-weight: 600; }

/* --------------------------------------------------------------------------
   20. Click ripple
   A short-lived circle on .btn press, sized/positioned by js/site.js from
   the actual click point. Purely a click reaction — nothing tracks the
   cursor while it's just moving around.
   -------------------------------------------------------------------------- */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  opacity: 0.9;
  pointer-events: none;
  animation: btn-ripple-out 520ms ease-out forwards;
}
.btn--outline .btn-ripple { background: rgba(31, 78, 120, 0.18); }
@keyframes btn-ripple-out {
  to { transform: scale(1); opacity: 0; }
}

/* --------------------------------------------------------------------------
   21. Back to top
   Injected by js/site.js once the page has scrolled past the hero. Fixed,
   fades in/out, never shifts layout.
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-5);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: var(--pill);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  visibility: hidden;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.16,1,.3,1), visibility 0s linear 220ms, background-color var(--t);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.16,1,.3,1), visibility 0s linear 0s, background-color var(--t);
}
.back-to-top:hover { background: var(--navy-dark); transform: translateY(-3px); }
.back-to-top:active { transform: translateY(0) scale(0.92); }
.back-to-top svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   22. Form submit loading state
   -------------------------------------------------------------------------- */
.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
/* .btn--primary/.btn--light also put a spotlight on ::before (section 25) —
   opacity/background/inset reset to !important here so the spinner always
   shows regardless of hover state while loading. */
.btn.is-loading::before {
  content: "";
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  background: none !important;
  opacity: 1 !important;
  animation: btn-spin 700ms linear infinite;
}
.btn--outline.is-loading::before,
.btn--light.is-loading::before {
  border-color: rgba(31, 78, 120, 0.25);
  border-top-color: var(--navy);
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   23. Scroll progress bar
   Injected by js/site.js. A 1:1 readout of scroll position, not decorative
   motion, so it's not gated behind reduced-motion — same treatment as the
   back-to-top button's visibility toggle.
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), #4E8FC4);
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 110;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   24. Card tilt
   A few degrees of perspective tilt that tracks the pointer while it's over
   a card, driven by js/site.js. Fully inert on touch (no hover) and skipped
   entirely under reduced-motion. The lift/shadow on :hover below still
   applies either way, so touch and reduced-motion users still get feedback.
   -------------------------------------------------------------------------- */
.card, .price-card, .snapshot-item, .step {
  transform-style: preserve-3d;
}

/* --------------------------------------------------------------------------
   25. Button spotlight
   A soft radial highlight that follows the pointer while it's over a
   primary/light button — contained entirely inside that one button, gone
   the instant the pointer leaves it. Not a page-wide cursor follower.
   -------------------------------------------------------------------------- */
.btn--primary::before,
.btn--light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(160px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.38), transparent 62%);
  transition: opacity 200ms ease-out;
}
.btn--primary:hover::before,
.btn--light:hover::before { opacity: 1; }

/* --------------------------------------------------------------------------
   26. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle { display: none !important; }
  body { color: #000; }
}
