/* MKM Logic: shared styles */

:root {
  --bg: #0b0e15;
  --bg-soft: #10141d;
  --bg-footer: #0e1219;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f2f4f8;
  --muted: #b4bcc9;
  --faint: #8b93a3;
  --accent: #0ea5e9;
  --accent-soft: #7dd3fc;
  --accent-dim: rgba(14, 165, 233, 0.12);
  --accent-glow: rgba(14, 165, 233, 0.35);
  --radius: 14px;
  --dur: 300ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1200px;
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

/* Kill double-tap-to-zoom on interactive elements (pinch zoom still works) */
a, button, input, select, textarea, summary, label {
  touch-action: manipulation;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent); }

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

::selection { background: var(--accent); color: #04141f; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; position: relative; }

.section-heading { margin-bottom: 12px; }
.section-intro { color: var(--muted); max-width: 620px; margin-bottom: 48px; font-size: 1.1rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

/* Ambient section glows: keep it dark, stop it feeling like a void */
#services {
  background: radial-gradient(ellipse 55% 45% at 85% 0%, rgba(14, 165, 233, 0.07), transparent 70%);
}
#testimonials {
  background: radial-gradient(ellipse 50% 55% at 10% 100%, rgba(56, 90, 200, 0.09), transparent 70%);
}
#faq {
  background: radial-gradient(ellipse 55% 45% at 90% 100%, rgba(14, 165, 233, 0.06), transparent 70%);
}
#contact {
  background: radial-gradient(ellipse 65% 55% at 50% 100%, rgba(14, 165, 233, 0.08), transparent 72%);
}

/* Section divider line */
.divider {
  height: 1px;
  border: 0;
  margin: 0 auto;
  max-width: var(--maxw);
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 3000;
  background: var(--accent);
  color: #04141f;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; color: #04141f; }

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 1500;
  box-shadow: 0 0 12px var(--accent-glow);
}

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

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.wordmark:hover { color: var(--text); }
.wordmark .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  z-index: 1200;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
    z-index: 1100;
  }
  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--dur) var(--ease);
  }
  .nav-links a { font-size: 1.4rem; font-weight: 600; color: var(--text); padding: 10px; }
  body.menu-open { overflow: hidden; }
}

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

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  min-height: 44px;
}
.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9 60%);
  color: #04141f;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: #04141f;
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0) scale(0.98); }

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

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  will-change: transform;
}
.hero-bg::before,
.hero-bg::after,
.hero-bg .blob {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
}
.hero-bg::before {
  width: 55vw; height: 55vw;
  max-width: 720px; max-height: 720px;
  top: -10%; right: -12%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  width: 45vw; height: 45vw;
  max-width: 560px; max-height: 560px;
  bottom: -18%; left: -10%;
  background: radial-gradient(circle, rgba(56, 90, 200, 0.22), transparent 65%);
  animation: drift-b 28s ease-in-out infinite alternate;
}
.hero-bg .blob {
  width: 30vw; height: 30vw;
  max-width: 400px; max-height: 400px;
  top: 40%; left: 42%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.10), transparent 70%);
  animation: drift-a 34s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6%, 8%) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.05); }
  to   { transform: translate(7%, -6%) scale(0.95); }
}

/* Faint grid over hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero h1 {
  margin-bottom: 20px;
  background: linear-gradient(120deg, var(--text) 55%, var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
}

.hero .sub {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero .lede {
  color: var(--muted);
  max-width: 560px;
  font-size: 1.125rem;
  margin-bottom: 40px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero .container { position: relative; width: 100%; }
.hero-copy { position: relative; z-index: 1; }

/* Mobile/tablet: faint, behind the text, bleeding off the right edge (hero clips it) */
.hero-art {
  display: block;
  position: absolute;
  right: -22%;
  top: 50%;
  width: min(78vw, 380px);
  height: auto;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  animation: float-slow 9s ease-in-out infinite alternate;
}
@media (min-width: 1200px) {
  .hero-copy { max-width: 640px; }
  .hero-art {
    right: 0;
    width: min(30vw, 460px);
    opacity: 1;
  }
}
@keyframes float-slow {
  from { transform: translateY(-54%); }
  to   { transform: translateY(-47%); }
}

/* Section illustration grids (about, who-for) */
.about-grid, .who-grid { display: grid; gap: 48px; align-items: center; }
.about-grid > *, .who-grid > * { min-width: 0; }
.about-art, .who-art { width: 100%; max-width: 440px; height: auto; margin: 0 auto; opacity: 0.95; }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0, 680px) 1fr; }
  .who-grid   { grid-template-columns: minmax(0, 720px) 1fr; }
  .about-art, .who-art { max-width: 100%; }
}

/* Floating action buttons: back-to-top + contact, bottom right */
.fab-stack {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 900;
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  background: rgba(16, 20, 29, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fab svg { width: 22px; height: 22px; }
.fab-stack.show .fab {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.fab:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
}
.fab-contact {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9 60%);
  color: #04141f;
  border-color: transparent;
}
.fab-stack.hide-contact .fab-contact {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
@media print { .fab-stack { display: none; } }

/* ---------- Cards (services, testimonials) ---------- */

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(14, 165, 233, 0.18), 0 0 36px rgba(14, 165, 233, 0.10);
  background: var(--surface-2);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
@media (max-width: 768px) { .steps::before { display: none; } }

.step { position: relative; }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.18);
}
.step h3 { font-size: 1.35rem; font-weight: 700; }
.step p { color: var(--muted); margin: 0; }

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

.testimonial blockquote {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: var(--text);
  position: relative;
  padding-top: 34px;
}
.testimonial blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: -6px;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
  font-weight: 800;
}
.testimonial cite {
  font-style: normal;
  color: var(--faint);
  font-size: 0.92rem;
}

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

.about-copy { max-width: 720px; }
.about-copy p { color: var(--muted); }
.about-copy p strong { color: var(--text); font-weight: 600; }

/* ---------- Checklist (Sound Familiar) ---------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 16px;
}
.checklist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.checklist li:hover { border-color: rgba(14, 165, 233, 0.35); transform: translateX(4px); }
.checklist .check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  stroke: var(--accent);
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 800px; display: grid; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--dur) var(--ease);
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(14, 165, 233, 0.4); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  animation: faq-in 320ms var(--ease);
}
.faq-item .faq-body p { margin: 0; }

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  max-width: 840px;
  margin-inline: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
#contact .section-heading,
#contact .section-intro,
#contact .eyebrow { text-align: center; }
#contact .section-intro { margin-inline: auto; }
@media (max-width: 640px) { .contact-card { padding: 28px 20px; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}
.field label .req { color: var(--accent); }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 300;
  padding: 13px 15px;
  min-height: 44px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230ea5e9' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field ::placeholder { color: var(--faint); }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
/* Service chips: buttons that toggle, no visible checkbox */
.check-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
  user-select: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  min-height: 48px;
}
.check-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.15);
}
.check-pill:active { transform: translateY(0) scale(0.97); }
.check-pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.check-pill::before {
  content: '';
  width: 0;
  height: 12px;
  margin-right: 0;
  opacity: 0;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%237dd3fc' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: width var(--dur) var(--ease), margin var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.check-pill:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.check-pill:has(input:checked) {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.18);
}
.check-pill:has(input:checked)::before {
  width: 14px;
  margin-right: 9px;
  opacity: 1;
}

/* Honeypot: hidden from humans, present for bots */
.hp-field {
  position: absolute;
  left: -6000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin-top: 16px; color: var(--accent-soft); }
.form-status.error { color: #f87171; }

.form-success {
  text-align: center;
  padding: 48px 20px;
  animation: faq-in 500ms var(--ease);
}
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--muted); }

.contact-meta {
  margin-top: 28px;
  color: var(--faint);
  font-size: 0.95rem;
  text-align: center;
}

/* Spinner on submit */
.btn .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(4, 20, 31, 0.35);
  border-top-color: #04141f;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -3px;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--accent-glow), transparent) 1;
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-center { text-align: center; color: var(--muted); font-size: 0.95rem; }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: var(--faint); display: flex; padding: 8px; }
.footer-social a:hover { color: var(--accent-soft); }
.footer-social svg { width: 21px; height: 21px; }
.footer-links {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
}
.footer-links a { color: var(--faint); margin: 0 12px; }
.footer-links a:hover { color: var(--accent-soft); }
.footer-copy {
  text-align: center;
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.85rem;
}
@media (max-width: 768px) {
  .footer-grid { flex-direction: column; }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
.reveal[data-delay="5"] { transition-delay: 450ms; }

/* ---------- 404 ---------- */

.page-404 {
  min-height: 82svh;
  display: flex;
  align-items: center;
  text-align: center;
}
.page-404 .code {
  font-size: clamp(6rem, 20vw, 11rem);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.75;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.page-404 .inner { margin: 0 auto; max-width: 520px; }
.page-404 p { color: var(--muted); margin-bottom: 32px; }

/* ---------- Prose pages (privacy) ---------- */

.prose-page { padding-top: 160px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.prose .updated { color: var(--faint); font-size: 0.9rem; }

/* ---------- 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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: none !important; }
}

/* ---------- Print ---------- */

@media print {
  body { background: #fff; color: #000; }
  body::after, .site-nav, .scroll-progress, .hero-bg, .nav-toggle, .hero-ctas, .site-footer .footer-social { display: none !important; }
  section { padding: 24px 0; }
  a { color: #000; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 0.85em; }
  .card, .faq-item, .contact-card, .checklist li { border: 1px solid #ccc; background: none; }
}
