:root {
  --navy: #0E1A33;
  --navy-2: #142446;
  --navy-soft: #1B2A4A;
  --accent: #0EA5E9;
  --accent-hover: #0284C7;
  --accent-light: #E0F2FE;
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #14192A;
  --ink-2: #3A4156;
  --muted: #6B7388;
  --hairline: rgba(14, 26, 51, 0.10);
  --hairline-strong: rgba(14, 26, 51, 0.18);
  --shadow-sm: 0 1px 0 rgba(14, 26, 51, 0.04), 0 4px 12px rgba(14, 26, 51, 0.04);
  --shadow-md: 0 1px 0 rgba(14, 26, 51, 0.04), 0 12px 32px rgba(14, 26, 51, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-w: 1200px;
  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button { font-family: inherit; cursor: pointer; }

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 760px;
}

.section-head h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.section-head p {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  margin: 0;
  max-width: 600px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 18px rgba(53, 89, 224, 0.28);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 10px 24px rgba(53, 89, 224, 0.36); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { background: rgba(14, 26, 51, 0.04); }

.btn-on-dark {
  background: white;
  color: var(--navy);
}
.btn-on-dark:hover { background: #EAEFFB; }

.btn-ghost-on-dark {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost-on-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn[disabled]:hover { transform: none; }

.btn-arrow svg { transition: transform 0.2s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(247, 246, 242, 0.72);
  border-bottom: 1px solid transparent;
  /* Floating-nav baseline: full-width, flush, square — exactly as before */
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: 0 0 0 0 rgba(14, 26, 51, 0), 0 0 0 0 rgba(14, 26, 51, 0);
  transition:
    max-width 320ms cubic-bezier(0.16, 1, 0.3, 1),
    margin 320ms cubic-bezier(0.16, 1, 0.3, 1),
    top 320ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
    background 320ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav.scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(247, 246, 242, 0.88);
}
/* Detached floating pill once scrolled past the threshold */
.nav.nav--floating {
  top: 12px;
  max-width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: rgba(247, 246, 242, 0.9);
  border-bottom-color: transparent;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.nav-inner { transition: height 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.nav.nav--floating .nav-inner { height: 60px; } /* slight condense */
@media (prefers-reduced-motion: reduce) {
  .nav, .nav-inner { transition: none; }
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--ink);
}
.logo-mark {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
  color: var(--navy);
}
.logo-mark .lm-spark { color: var(--accent); }
.nav .logo-mark { color: var(--navy); }
footer .logo-mark { color: white; }
footer .logo-mark .lm-spark { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(14, 26, 51, 0.05); }
.nav-links a { white-space: nowrap; }

.nav-links a.nav-book {
  margin-left: 6px;
  padding: 7px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.nav-links a.nav-book::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}
.nav-links a.nav-book:hover { background: white; border-color: var(--ink); }

.nav-cta {
  font-size: 14px !important;
  padding: 10px 18px !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 16px var(--pad-x) 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-menu[hidden] { display: none; }
  /* When the nav is a floating pill, drop the menu flush under it */
  .nav.nav--floating .mobile-menu {
    top: 60px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .mobile-menu a {
    padding: 14px 6px;
    border-bottom: 1px solid var(--hairline);
    font-size: 17px;
    color: var(--ink);
  }
  .mobile-menu .btn { margin-top: 12px; align-self: flex-start; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: white;
  overflow: hidden;
  padding-top: clamp(72px, 8vw, 96px);
  padding-bottom: clamp(96px, 10vw, 144px);
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 60% at 30% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 30% 40%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(53,89,224,0.45) 0%, rgba(53,89,224,0) 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero h1 .accent-word {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #7DD3FC;
}

/* Hero cycling verb — reserves width via an invisible sizer (longest word),
   words stack on top and fade/slide between each other */
.hero h1 .cycle {
  position: relative;
  display: inline-block;
}
.hero h1 .cycle .cycle-sizer { visibility: hidden; }
.hero h1 .cycle .cycle-w {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.28em);
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero h1 .cycle .cycle-w.is-active {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .cycle .cycle-w { transition: none; }
}

/* Visually-hidden, screen-reader-only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero p.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 0 36px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: var(--font-mono);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-trust {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 540px;
}
.hero-trust-stars {
  display: inline-flex;
  gap: 2px;
}
.hero-trust-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.14);
}
.hero-trust-line {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}
.hero-trust-line strong {
  color: white;
  font-weight: 600;
}

/* Hero visual: stacked card system */
.hero-stack {
  position: relative;
  height: 460px;
  display: none;
}
@media (min-width: 980px) {
  .hero-stack { display: block; }
}

.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.hero-card .label {
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 8px;
}
.hero-card .value {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
}

.hc-1 {
  top: 20px; left: 4%;
  width: 240px;
  transform: rotate(-3deg);
}
.hc-2 {
  top: 60px; right: 0;
  width: 260px;
  transform: rotate(2deg);
}
.hc-3 {
  bottom: 20px; left: 18%;
  width: 280px;
  transform: rotate(1deg);
}

.hc-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 3px 7px;
  border-radius: 999px;
}

.hc-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.hc-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.hc-bar i:first-child { background: #FF6057; }
.hc-bar i:nth-child(2) { background: #FFBD2E; }
.hc-bar i:nth-child(3) { background: #28C840; }
.hc-bar .url {
  margin-left: 8px;
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  flex: 1;
  text-align: center;
}

.hc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.hc-row:last-child { border-bottom: none; }
.hc-row strong { color: white; font-family: var(--font); font-weight: 500; }

.hc-search {
  background: rgba(255,255,255,0.08);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.hc-result {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hc-result strong { color: white; font-family: var(--font); display: block; margin-bottom: 4px; }
.hc-result .url { color: var(--accent); font-size: 11px; }

@media (max-width: 979px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ---------- Problem ---------- */

.problem {
  background: var(--bg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.problem-card {
  background: var(--bg);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background 0.2s ease;
}
.problem-card:hover { background: var(--surface); }

.problem-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.problem-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.problem-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.problem-card .glyph {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */

.services {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-md);
}

.service-card .num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin-bottom: 6px;
}
.service-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 1px dashed var(--hairline-strong);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.service-card:hover .service-icon::after { opacity: 1; }

.service-card h3 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.service-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--hairline-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1;
}

.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.process-step h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 0;
  letter-spacing: -0.015em;
}

.process-step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .process-grid { grid-template-columns: 1fr; gap: 36px; }
  .process-grid::before { display: none; }
}

/* ---------- Pricing ---------- */

.pricing {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 32px 30px 32px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { border-color: var(--hairline-strong); }

.price-card.featured {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}
.price-card.featured h3 { color: white; }
.price-card.featured .price-amt { color: white; }
.price-card.featured .price-note { color: rgba(255,255,255,0.6); }
.price-card.featured ul li { color: rgba(255,255,255,0.85); }
.price-card.featured ul li svg { color: #B6C8FF; }
.price-card.featured .deliver { border-top-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.price-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.price-card.featured .price-name { color: rgba(255,255,255,0.6); }

.price-amt {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}
.price-amt .currency { font-size: 22px; vertical-align: top; margin-right: 2px; opacity: 0.7; }
.price-amt .price-from {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.price-card.featured .price-amt .price-from { color: rgba(255,255,255,0.6); }
.price-note {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 24px;
}

.price-card h3 {
  margin: 18px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.price-card ul {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.price-card ul li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.deliver {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding: 14px 0 18px;
  letter-spacing: 0.04em;
}

.price-card .btn { width: 100%; }

.pricing-note {
  text-align: center;
  margin-top: 36px;
  color: var(--muted);
  font-size: 14.5px;
}
.pricing-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 940px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}

/* ---------- Case studies ---------- */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--hairline-strong);
}

.case-frame {
  background: linear-gradient(180deg, #E7EAF2 0%, #DDE2EE 100%);
  padding: 20px 20px 0;
  position: relative;
}

.case-browser {
  background: white;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--hairline);
  border-bottom: none;
  overflow: hidden;
}
.case-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  background: #F4F5F8;
}
.case-browser-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #D9DBE3;
}
.case-browser-bar i:first-child { background: #FF6057; }
.case-browser-bar i:nth-child(2) { background: #FFBD2E; }
.case-browser-bar i:nth-child(3) { background: #28C840; }
.case-browser-bar .url-pill {
  flex: 1;
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
  display: flex; align-items: center; gap: 6px;
}
.case-screenshot {
  height: 280px;
  background: #0E1A33;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.case-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.case-screenshot .placeholder-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: white;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.case-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-tag {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(53, 89, 224, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.case-body h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.case-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Featured case */
.case-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.case-feature-media { display: flex; flex-direction: column; gap: 14px; }
.case-browser-lg { box-shadow: 0 18px 40px rgba(14, 26, 51, 0.12); border-radius: 10px; overflow: hidden; }
.case-screenshot-lg {
  height: clamp(260px, 28vw, 360px);
  background: #0E1A33;
  overflow: hidden;
}
.case-screenshot-lg img {
  width: 100%; height: auto; display: block; object-fit: cover; object-position: top center;
}
.case-thumbs {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
}
.case-thumb {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 16 / 10;
}
.case-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.case-thumb-mobile { aspect-ratio: 9 / 14; background: #0E1A33; }
.case-thumb-mobile img { object-position: top center; object-fit: cover; }

.case-feature-body { display: flex; flex-direction: column; gap: 14px; }
.case-feature-body h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 4px 0 2px;
}
.case-feature-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}
.case-feature-body p.case-result {
  color: var(--ink);
  font-weight: 500;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 14px;
  margin-top: 4px;
}
.case-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.case-timeline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}
.case-deliverables {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.case-chip {
  font-size: 12.5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

.cases-grid-soon { margin-top: 20px; grid-template-columns: 1fr; }
.cases-grid-soon .case-card.coming-soon { min-height: 220px; }

@media (max-width: 880px) {
  .case-feature { grid-template-columns: 1fr; }
}

.case-card.coming-soon {
  background: transparent;
  border: 1px dashed var(--hairline-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  min-height: 360px;
  color: var(--muted);
  gap: 8px;
}
.case-card.coming-soon:hover { transform: none; box-shadow: none; }
.case-card.coming-soon h3 { font-size: 18px; color: var(--ink-2); margin: 0; }
.case-card.coming-soon p { font-size: 14px; margin: 0; max-width: 280px; }

@media (max-width: 880px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */

.testimonials {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 36px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--hairline-strong);
}

.quote-glyph {
  position: absolute;
  top: 6px;
  left: 24px;
  font-family: "Instrument Serif", serif;
  font-size: 110px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
  pointer-events: none;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-wrap: pretty;
  position: relative;
  z-index: 1;
}

.testimonial-card figcaption {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  margin-top: auto;
}
.t-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.t-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.testimonial-card-placeholder {
  background: transparent;
  border-style: dashed;
}
.testimonial-card-placeholder blockquote {
  color: var(--muted);
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 22px;
}
.testimonial-card-placeholder .quote-glyph { opacity: 0.08; }
.testimonial-card-placeholder:hover { transform: none; box-shadow: none; }

@media (max-width: 980px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ---------- Insights ---------- */

.insights {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--hairline-strong);
}

.insight-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.insight-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 1;
}
.insight-thumb-deco {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  padding: 24px;
}
.insight-thumb-deco span {
  width: 36px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
}
.insight-thumb-deco span:nth-child(2) { width: 24px; background: rgba(255,255,255,0.6); }
.insight-thumb-deco span:nth-child(3) { width: 12px; background: rgba(255,255,255,0.85); }

/* Textured thumb: dot-grid + large topical watermark icon */
.insight-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.13) 1px, transparent 0);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 75% 22%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 95% 85% at 75% 22%, #000, transparent 72%);
  pointer-events: none;
}
.insight-thumb-icon {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 108px;
  height: 108px;
  transform: translate(-50%, -50%) rotate(-8deg);
  color: rgba(255,255,255,0.22);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.insight-card:hover .insight-thumb-icon { transform: translate(-50%, -50%) rotate(-8deg) scale(1.06); }

.insight-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.insight-body h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: balance;
}
.insight-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.insight-read {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.insight-read svg { transition: transform 0.2s ease; }
.insight-card:hover .insight-read svg { transform: translateX(3px); }

@media (max-width: 880px) { .insights-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */

.about {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-bio {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.about-bio strong { font-weight: 600; }

.signature {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 28px;
  color: var(--ink-2);
  margin-top: 12px;
}

.about-tagline {
  display: inline-block;
  margin: 8px 0 0;
  padding: 10px 16px;
  background: var(--navy);
  color: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.about-tagline::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.trust-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.trust-list li:last-child { border-bottom: none; }
.trust-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.trust-list h4 {
  margin: 4px 0 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.trust-list p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

@media (max-width: 880px) {
  .about-inner { grid-template-columns: 1fr; }
}

/* ---------- Audit CTA ---------- */

.audit-cta {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.audit-cta-inner {
  position: relative;
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
.audit-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 80% at 80% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 80% 50%, black, transparent 80%);
  z-index: 0;
}
.audit-cta-inner::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(53,89,224,0.5), transparent 60%);
  bottom: -180px;
  left: -120px;
  z-index: 0;
}

.audit-cta-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.audit-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.audit-cta h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 700;
  text-wrap: balance;
}
.audit-cta p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.78);
  margin: 0 0 32px;
  max-width: 520px;
}

/* ---------- Contact ---------- */

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-aside h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.04;
}
.contact-aside p {
  color: var(--ink-2);
  font-size: 16px;
  margin: 0 0 28px;
  max-width: 360px;
}
.contact-aside .contact-bits {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 8px;
}
.contact-aside .contact-bits div {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}

form.contact-form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(53, 89, 224, 0.12);
}
.form-field input.error,
.form-field select.error,
.form-field textarea.error { border-color: #DC2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); }
.form-error { color: #DC2626; font-size: 12px; margin-top: 2px; }

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

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-foot small { color: var(--muted); font-size: 13px; }

.form-success {
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.form-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(53, 89, 224, 0.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 { font-size: 22px; margin: 0; letter-spacing: -0.015em; font-weight: 600; }
.form-success p { color: var(--ink-2); margin: 0; max-width: 360px; }
.form-success[hidden] { display: none; }

@media (max-width: 880px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
}
footer .logo { color: white; }
footer .footer-tag {
  margin-top: 14px;
  font-size: 14px;
  max-width: 320px;
  color: rgba(255,255,255,0.65);
}
footer .footer-locations {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 360px;
  color: rgba(255,255,255,0.4);
}
footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
footer .footer-links a:hover { color: white; }

footer .footer-social {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  width: fit-content;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}
footer .footer-social:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
}
footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 36px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

@media (max-width: 760px) {
  footer .container { grid-template-columns: 1fr; }
}

/* ---------- Trust bar (clinic-style) ---------- */

.trust-bar {
  padding-top: clamp(36px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}
.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
}
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  border-right: 1px solid var(--hairline);
}
.trust-bar-item:last-child { border-right: none; }
.trust-bar-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.trust-bar-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-bar-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trust-bar-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 760px) {
  .trust-bar-grid { grid-template-columns: 1fr; }
  .trust-bar-item { border-right: none; border-bottom: 1px solid var(--hairline); }
  .trust-bar-item:last-child { border-bottom: none; }
}

/* ---------- Smart site features (replaces services) ---------- */

.smartsite {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.smartsite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  grid-auto-flow: dense;
  gap: 18px;
}
.smartsite-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.smartsite-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.smartsite-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ic-bg, var(--accent-light));
  color: var(--ic, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
}
.smartsite-card h3 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}
.smartsite-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
/* ===== Smart Site: bento + reveal + hover (all scoped to .smartsite-grid) ===== */

/* Bento hero — the AI chatbot card spans 2x2 and anchors the grid */
.smartsite-grid .smartsite-card--hero {
  grid-column: span 2;
  grid-row: span 2;
  padding: 34px 32px 32px;
}
.smartsite-grid .smartsite-card--hero h3 { font-size: 20px; }
.smartsite-grid .smartsite-card--hero .smartsite-icon { width: 56px; height: 56px; }

/* Larger icon tiles + scale-in on reveal (accent-light bg already inherited) */
.smartsite-grid .smartsite-icon {
  width: 52px;
  height: 52px;
  scale: 0.85;
  transition: scale 500ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}
.smartsite-grid.in .smartsite-icon { scale: 1; }

/* Keep the grid container visible — we stagger its cards rather than the block */
.smartsite-grid.reveal { opacity: 1; transform: none; transition: none; }

/* Staggered scroll reveal — driven by the independent `translate` property so the
   `transform`-based hover tilt never conflicts with it */
.smartsite-grid .smartsite-card {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 500ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    translate 500ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.smartsite-grid.in .smartsite-card { opacity: 1; translate: 0 0; }
.smartsite-grid .smartsite-card:nth-child(1) { --reveal-delay: 0ms; }
.smartsite-grid .smartsite-card:nth-child(2) { --reveal-delay: 80ms; }
.smartsite-grid .smartsite-card:nth-child(3) { --reveal-delay: 160ms; }
.smartsite-grid .smartsite-card:nth-child(4) { --reveal-delay: 240ms; }
.smartsite-grid .smartsite-card:nth-child(5) { --reveal-delay: 320ms; }
.smartsite-grid .smartsite-card:nth-child(6) { --reveal-delay: 400ms; }

/* Hover life + subtle 3D tilt — desktop / pointer devices only */
@media (hover: hover) {
  .smartsite-grid { perspective: 1000px; }
  .smartsite-grid .smartsite-card:hover {
    transform: translateY(-2px) rotateX(2deg) rotateY(-2deg);
    box-shadow: var(--shadow-md);
    border-color: var(--hairline-strong);
  }
}

/* Responsive: clean 2-col tablet, single-column mobile — hero resets to 1x1 */
@media (max-width: 940px) {
  .smartsite-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    grid-auto-flow: row;
  }
  .smartsite-grid .smartsite-card--hero { grid-column: auto; grid-row: auto; }
  .smartsite-grid .smartsite-card--hero .smartsite-icon { width: 52px; height: 52px; }
}
@media (max-width: 620px) {
  .smartsite-grid { grid-template-columns: 1fr; }
}

/* Reduced motion — everything static, no reveal / tilt / hover-motion */
@media (prefers-reduced-motion: reduce) {
  .smartsite-grid .smartsite-card,
  .smartsite-grid .smartsite-icon {
    opacity: 1 !important;
    translate: none !important;
    scale: none !important;
    transition: none !important;
  }
  .smartsite-grid .smartsite-card:hover { transform: none !important; }
}

/* ---------- Security / GDPR ---------- */

.security {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.security-note {
  margin: 26px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
@media (max-width: 620px) { .security-grid { grid-template-columns: 1fr; } }

/* ---------- Demos ---------- */

.demos {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
}
.demos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.demo-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.demo-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at center, rgba(14, 165, 233, 0.18), transparent 70%),
    linear-gradient(135deg, #0E1A33 0%, #1B2A4A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
}
.demo-play {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(14, 165, 233, 0.4);
}
.demo-placeholder-label {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  z-index: 1;
}
.demo-body {
  padding: 24px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-body .demo-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.demo-body h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.demo-body p {
  margin: 2px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
/* Live demo card — whole card is a clickable link */
.demo-card-live {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.demo-card-live:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.demo-card-live:hover .demo-cta { gap: 12px; }
.demo-card-live:hover .demo-play { transform: scale(1.04); }
.demo-play { transition: transform 0.2s ease; }

/* Live-demo card with real homepage screenshot */
.demo-video-shot { background: #0E1A33; }
.demo-video-shot::before { display: none; } /* drop the dot pattern over the photo */
.demo-shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}
.demo-card-live:hover .demo-shot-img { transform: scale(1.03); }
.demo-video-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14,26,51,0.42) 0%, rgba(14,26,51,0.04) 26%, rgba(14,26,51,0.10) 60%, rgba(14,26,51,0.62) 100%);
}
.demo-video-shot .demo-live-badge,
.demo-video-shot .demo-play,
.demo-video-shot .demo-placeholder-label { z-index: 2; }
.demo-video-shot .demo-placeholder-label { text-shadow: 0 1px 6px rgba(14,26,51,0.6); }

.demo-live-badge {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.demo-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28C840;
  box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.5);
  animation: demoLivePulse 2s infinite;
}
@keyframes demoLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(40, 200, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); }
}
.demo-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--accent);
  transition: gap 0.2s ease;
}

/* Second demo card — static "coming soon" note, not a fake video */
.demo-video-soon {
  background:
    radial-gradient(ellipse at center, rgba(14, 165, 233, 0.10), transparent 70%),
    linear-gradient(135deg, #0E1A33 0%, #1B2A4A 100%);
}
.demo-soon-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) { .demos-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .demo-live-dot { animation: none; } }

/* ---------- Full-bleed accent CTA banner ---------- */

.cta-banner {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: white;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.12) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 70% at 80% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 50%, black, transparent 80%);
  z-index: 0;
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: left;
}
.cta-banner-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 16px;
}
.cta-banner h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  font-weight: 700;
  text-wrap: balance;
  color: white;
}
.cta-banner .btn-on-accent {
  background: var(--navy);
  color: white;
  padding: 16px 26px;
  font-size: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.cta-banner .btn-on-accent:hover { background: #061128; }

/* ---------- Marquee band (above footer) ---------- */

.marquee {
  display: block;
  background: var(--navy);
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee-group span {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: white;
  padding: 22px 0;
}
.marquee-group .marquee-dot {
  color: var(--accent);
  margin: 0 0.6em;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Typography — Design System v2.1 =====
   Headings: Instrument Serif (single weight 400 — requesting heavier
   weights would only faux-bold the typeface, so headings normalise to 400).
   Body / UI / labels: DM Sans (handled via --font / --font-mono). */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
}
/* Match the specific heading selectors that carry their own weight so they
   render at Instrument Serif's true 400 rather than synthetic bold. */
.section-head h2,
.hero h1,
.problem-card h3,
.service-card h3,
.process-step h3,
.price-card h3,
.case-body h3,
.case-feature-body h3,
.insight-body h3,
.smartsite-card h3,
.demo-body h3,
.audit-cta h2,
.contact-aside h2,
.form-success h3,
.cta-banner h2 {
  font-weight: 400;
}

/* ===== Feature cards: Smart Site + GDPR (override of the above) ===== */

/* 1. Card subheadings use DM Sans (body), not the display serif.
   Size & spacing unchanged — only the typeface + weight change. */
.smartsite-card h3 {
  font-family: var(--font);
  font-weight: 500;
}

/* 2. Per-icon colour — controlled palette from the pre-approved accents.
   Each tile tints its background to a soft light version of the same colour.
   Adjacent cards differ; both sections share the same palette for consistency. */
.smartsite-grid > .smartsite-card:nth-child(1) .smartsite-icon { --ic: #0A6E8C; --ic-bg: #DAE9EE; } /* Clinical Blue  */
.smartsite-grid > .smartsite-card:nth-child(2) .smartsite-icon { --ic: #8B6B3D; --ic-bg: #EEE9E2; } /* Warm Bronze    */
.smartsite-grid > .smartsite-card:nth-child(3) .smartsite-icon { --ic: #0F5F5C; --ic-bg: #DBE8E7; } /* Deep Teal      */
.smartsite-grid > .smartsite-card:nth-child(4) .smartsite-icon { --ic: #6E2E3A; --ic-bg: #E9E0E1; } /* Muted Burgundy */
.smartsite-grid > .smartsite-card:nth-child(5) .smartsite-icon { --ic: #2D4A3A; --ic-bg: #E0E4E1; } /* Forest         */
.smartsite-grid > .smartsite-card:nth-child(6) .smartsite-icon { --ic: #0A6E8C; --ic-bg: #DAE9EE; } /* Clinical Blue  */

.security-grid > .smartsite-card:nth-child(1) .smartsite-icon { --ic: #0A6E8C; --ic-bg: #DAE9EE; } /* Clinical Blue  */
.security-grid > .smartsite-card:nth-child(2) .smartsite-icon { --ic: #0F5F5C; --ic-bg: #DBE8E7; } /* Deep Teal      */
.security-grid > .smartsite-card:nth-child(3) .smartsite-icon { --ic: #6E2E3A; --ic-bg: #E9E0E1; } /* Muted Burgundy */
.security-grid > .smartsite-card:nth-child(4) .smartsite-icon { --ic: #2D4A3A; --ic-bg: #E0E4E1; } /* Forest         */
