/* =========================================================
   Graviton Analytics stylesheet
   Palette sampled from the logo artwork:
   blue  #5474FB   ·   slate #466D86   ·   on white
   ========================================================= */

:root {
  /* brand */
  --blue: #5474fb;
  --blue-deep: #3d5ce4;
  --blue-dark: #2c47c4;
  /* solid button fill: the brand blue deepened so white label text clears AA (5.38:1) */
  --blue-btn: #415ee0;
  --blue-btn-hover: #344dcb;
  --blue-tint: #eef2ff;
  --blue-line: #dbe3ff;
  --slate: #466d86;
  --slate-deep: #2f4f63;
  --slate-soft: #9fb4c3;

  /* neutrals */
  --ink: #0d1a2b;
  --text: #4c5a6d;
  --muted: #5f6d82;
  --line: #e6ebf3;
  --line-strong: #d4dde8;
  --bg: #ffffff;
  --alt: #f6f9fc;

  --ring: rgba(84, 116, 251, .22);

  --radius: 12px;
  --radius-lg: 18px;
  --wrap: 1160px;

  --shadow-sm: 0 1px 2px rgba(13, 26, 43, .05), 0 2px 6px rgba(13, 26, 43, .04);
  --shadow-md: 0 18px 40px -26px rgba(28, 51, 84, .3), 0 3px 10px rgba(13, 26, 43, .05);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.028em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 14px; left: 14px; width: auto; height: auto; margin: 0;
  clip: auto; background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200; font-weight: 600;
}

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

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn.full { width: 100%; }

.btn-primary {
  background: var(--blue-btn); color: #fff;
  box-shadow: 0 1px 2px rgba(38, 60, 170, .22), 0 12px 24px -14px rgba(65, 94, 224, .7);
}
.btn-primary:hover { background: var(--blue-btn-hover); box-shadow: 0 2px 5px rgba(38, 60, 170, .24), 0 16px 30px -14px rgba(65, 94, 224, .75); }
.btn-primary:active { background: var(--blue-dark); }

.btn-ghost {
  color: var(--ink); background: #fff; border-color: var(--line-strong);
}
.btn-ghost:hover { color: var(--blue-deep); border-color: var(--blue); background: var(--blue-tint); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 8px 26px -22px rgba(13, 26, 43, .55); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo img { height: 38px; width: auto; flex: none; }
.logo-text {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: .12em; line-height: 1.08; text-transform: uppercase;
  color: var(--blue);
}
.logo-text span { color: var(--slate); font-weight: 500; font-size: 10.5px; letter-spacing: .17em; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { font-size: 14.5px; color: var(--text); transition: color .16s ease; }
.nav > a:hover { color: var(--blue-deep); }
.nav > a.btn { color: #fff; }

.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 0; cursor: pointer;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 9px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 15px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.4px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 80%);
  padding: 84px 0 0;
}

/* ---------------- Free Data Assessment ---------------- */
#assessment {
  background: var(--alt);
}
#assessment .section-head {
  max-width: 680px;
  margin: 0 auto;
}
#assessment .kicker {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em;
  color: var(--blue-deep);
}
#assessment h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  color: var(--ink);
}
#assessment .section-sub {
  font-size: 1.02rem; color: var(--muted); line-height: 1.55; max-width: 60ch;
}
.assessment-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px; max-width: 680px; margin: 24px auto 0;
}
.assessment-card h3 {
  font-size: 1.12rem; margin-bottom: 24px; color: var(--ink);
}
.assessment-card ul {
  list-style: none; margin: 0 0 24px; padding: 0;
}
.assessment-card li {
  font-size: 15px; color: var(--text); margin-bottom: 12px; position: relative; padding-left: 24px;
}
.assessment-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700;
}
.assessment-note {
  font-size: 12.5px; color: var(--muted); margin-top: 16px; line-height: 1.5;
}

/* ---------------- Hero ---------------- */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(84, 116, 251, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 116, 251, .07) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(115% 85% at 55% 0%, #000 12%, transparent 74%);
  -webkit-mask-image: radial-gradient(115% 85% at 55% 0%, #000 12%, transparent 74%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(20px); }
.glow-a {
  width: 680px; height: 680px; top: -340px; right: -150px;
  background: radial-gradient(circle, rgba(84, 116, 251, .16), transparent 68%);
}
.glow-b {
  width: 560px; height: 560px; bottom: -300px; left: -190px;
  background: radial-gradient(circle, rgba(70, 109, 134, .12), transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: 48px; align-items: center;
}

.hero h1 {
  color: var(--ink);
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  letter-spacing: -.035em;
  max-width: 15ch;
}
.lede { margin-top: 22px; font-size: 1.06rem; color: var(--muted); max-width: 52ch; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; }
.chips li {
  font-size: 12.5px; color: var(--slate-deep); padding: 5px 11px; border-radius: 999px;
  background: var(--blue-tint); border: 1px solid var(--blue-line);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Orbit visual */
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 440px; margin-left: auto; width: 100%; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.spinner { transform-origin: 210px 210px; animation: spin 70s linear infinite; }
.spinner-reverse { transform-origin: 210px 210px; animation: spin 46s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42%; aspect-ratio: 1 / 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 3px;
  background: radial-gradient(circle at 50% 32%, #ffffff, #eff3ff 78%);
  border: 1px solid var(--blue-line);
  box-shadow: 0 22px 48px -30px rgba(84, 116, 251, .5), inset 0 1px 0 #fff;
  padding: 10px;
}
.core-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--blue); font-weight: 700;
}
.core strong { font-size: 14.5px; color: var(--ink); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }

.node {
  position: absolute; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; color: var(--slate-deep);
  padding: 6px 12px; border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px -16px rgba(13, 26, 43, .5);
}
.node.n1 { top: 4%; left: 6%; }
.node.n2 { top: 22%; right: -4%; }
.node.n3 { bottom: 20%; right: -2%; }
.node.n4 { bottom: 3%; left: 18%; }
.node.n5 { top: 52%; left: -8%; }

/* Platform strip */
.platforms {
  position: relative;
  margin-top: 44px; padding: 22px 28px 26px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.platforms-label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--slate); font-weight: 700; flex: none;
}
.platforms-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 0; padding: 0; }
.platforms-list li { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: -.01em; }

/* ---------------- Sections ---------------- */
section[id] { scroll-margin-top: 92px; }
main > .section { padding: 56px 0; }
.section-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 680px; }
.section-head h2, .about-copy h2, .contact-copy h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
}
.section-sub { margin-top: 16px; color: var(--muted); font-size: 1.02rem; max-width: 60ch; }

.kicker {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em;
  color: var(--blue-deep);
}
.kicker-light { color: rgba(255, 255, 255, .92); }

/* Services */
.services { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px 30px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.service:hover { border-color: var(--blue-line); box-shadow: var(--shadow-md); }
.service-top { display: flex; align-items: flex-start; margin-bottom: 16px; }
.service-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: var(--blue-tint); color: var(--blue-deep); border: 1px solid var(--blue-line);
}
.service-icon svg { width: 21px; height: 21px; }
.service h3 { font-size: 1.16rem; margin-bottom: 10px; }
.service > p { font-size: 15px; color: var(--muted); }
.service-list {
  list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line);
  display: grid; gap: 9px;
}
.service-list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text); }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--blue); opacity: .65;
}
@media (min-width: 1021px) {
  .service > p { flex: 1; }
  @supports (grid-template-rows: subgrid) {
    .services { row-gap: 0; }
    .service { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  }
}

/* Steps */
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps li { border-top: 2px solid var(--line-strong); padding-top: 22px; position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 52px; height: 2px; background: var(--blue); }
.step-num { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.steps h3 { font-size: 1.08rem; margin: 10px 0 8px; }
.steps p { font-size: 14.5px; color: var(--muted); }

/* About */
.about-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.about-copy p { margin-top: 18px; color: var(--muted); }
.about-copy .about-lead {
  font-size: 1.12rem; line-height: 1.55; color: var(--ink); font-weight: 500;
  padding-left: 16px; border-left: 2px solid var(--blue);
}
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillars li {
  background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
}
.pillars h3 { font-size: .99rem; margin-bottom: 7px; }
.pillars p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy .section-sub { max-width: 46ch; }

.contact-details { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-details li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; }
.detail-label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--slate); font-weight: 700; padding-top: 3px;
}
.contact-details p { font-size: 15px; color: var(--text); }
.contact-details a { color: var(--blue-deep); font-weight: 500; }
.contact-details a:hover { text-decoration: underline; }
.contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-md);
}
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--font); font-size: 15px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: #fff; width: 100%; transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #a4b1c2; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--ring);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d9542b; }
.contact-form .btn { margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form-msg { font-size: 13.5px; font-weight: 500; min-height: 18px; color: #17794f; }
.form-msg.is-error { color: #c2410c; }

/* ---------------- Book a call ---------------- */
.book { padding: 64px 0 80px; }
.book-inner { max-width: 760px; }
.book-inner h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 10px; }
.book-form { margin-top: 36px; }
.book-picker { margin-bottom: 20px; }
.book-picker [hidden] { display: none; }
.book-zone { max-width: 320px; margin-bottom: 20px; }
.book-picker select {
  width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 14px;
}
.book-picker :is(select, button):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.book-calendar-body { display: grid; grid-template-columns: minmax(0, 310px) minmax(0, 1fr); gap: 26px; }
.book-month { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.book-month h2, .book-times legend { font-size: 15px; font-weight: 700; color: var(--ink); }
.book-week, .book-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.book-week { margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.book-month button, .book-grid button {
  display: grid; place-items: center; min-width: 0; min-height: 34px; padding: 0;
  border: 1px solid transparent; border-radius: 8px; background: var(--blue-tint);
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.book-month button { width: 34px; border-color: var(--line); font-size: 19px; }
.book-picker button:disabled { color: var(--muted); background: transparent; opacity: .6; cursor: default; }
.book-grid button[aria-pressed="true"] { color: #fff; background: var(--blue-btn); }
.book-times { min-width: 0; margin: 0; padding: 12px 0 0 20px; border: 0; border-left: 1px solid var(--line); }
.book-times legend { padding-left: 20px; }
@media (max-width: 620px) {
  .book-picker { padding: 18px 14px; }
  .book-calendar-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .book-times { border-left: 0; padding: 8px 0 0; }
  .book-times legend { padding-left: 0; }
}
.book-slots { display: flex; flex-wrap: wrap; gap: 10px; }
.book-slot { position: relative; cursor: pointer; }
.book-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.book-slot span {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.book-slot input:checked + span {
  background: var(--blue-btn); border-color: var(--blue-btn); color: #fff;
}
.book-slot input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.book-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.book-card .field + .field { margin-top: 14px; }
.book-card .btn { margin-top: 18px; }
.book-card .form-note { margin-top: 10px; }
.book-errors {
  margin-top: 26px; padding: 16px 18px; border: 1px solid #f0c9ae;
  border-radius: var(--radius); background: #fff7f2; color: #8a3d10;
}
.book-errors ul { margin: 0; padding-left: 20px; }
.book-errors li { font-size: 14.5px; line-height: 1.5; }
.book-errors li + li { margin-top: 6px; }
.book-success { margin-top: 18px; }
.book-slot-line { margin: 18px 0 0; font-size: 1.15rem; color: var(--ink); }
.book-muted { font-size: 13px; color: var(--muted); }
.book-success .book-muted { margin-top: 14px; }
.book-success .btn { margin-top: 22px; }
.book-cta { margin-top: 22px; }

/* ---------------- Footer ---------------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); padding: 66px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand p { margin-top: 16px; font-size: 14.5px; max-width: 32ch; line-height: 1.6; color: var(--muted); }
.footer-brand .footer-meta { margin-top: 14px; font-size: 13px; color: var(--slate); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .13em;
  color: var(--ink); font-weight: 700; margin-bottom: 6px;
}
.footer-col a { font-size: 14.5px; color: var(--muted); transition: color .16s ease; }
.footer-col a:hover { color: var(--blue-deep); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px; padding-bottom: 26px;
  font-size: 13px; color: var(--muted);
}

/* ---------------- Reveal ---------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s cubic-bezier(.2, .7, .3, 1), transform .65s cubic-bezier(.2, .7, .3, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 32ch; }
  .lede { max-width: 56ch; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .services { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 28px 22px; display: none;
    box-shadow: 0 24px 40px -28px rgba(13, 26, 43, .55);
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav > a.btn { margin-top: 12px; border-bottom: none; padding: 12px 16px; font-size: 15px; justify-content: center; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.7rem); max-width: 100%; }
  .hero-visual { max-width: 320px; }
  .node { font-size: 11px; padding: 5px 9px; }
  .node.n2 { right: -2%; }
  .node.n3 { right: 0; }
  .node.n5 { left: -2%; }
  .logo img { height: 32px; }
  .logo-text { font-size: 13px; }
  .logo-text span { font-size: 9.5px; }
  .platforms { margin-top: 32px; gap: 14px; padding-left: 20px; padding-right: 20px; }
  .platforms-list { gap: 10px 22px; }
  main > .section { padding: 36px 0; }
  .book { padding: 68px 0; }
  .services, .steps, .pillars { grid-template-columns: 1fr; }
  .service { padding: 24px 22px 26px; }
  .contact-form-wrap { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-details li { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* FAQ */
.faq-list { margin: 24px 0 0; max-width: 760px; }
.faq { border-top: 1px solid var(--line); padding: 22px 0; }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.018em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after {
  content: "+"; flex: none; color: var(--blue-deep);
  font-family: var(--font); font-size: 19px; font-weight: 500; line-height: 1.1;
}
.faq[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--blue-deep); }
.faq p { margin-top: 13px; font-size: 14.5px; line-height: 1.62; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .spinner, .spinner-reverse { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------- Theme toggle ---------------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; flex: none; margin-left: auto;
  cursor: pointer; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 9px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue-deep); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }

/* =========================================================
   Dark theme
   Set as data-theme="dark" on <html> by the inline boot script
   in <head>. Everything above is authored for light surfaces;
   this block repaints the components that hardcode white.
   ========================================================= */
[data-theme="dark"] {
  --blue: #8aa2ff;
  --blue-deep: #a8baff;
  --blue-dark: #7b95f7;
  --blue-tint: #16203a;
  --blue-line: #26365a;
  --slate: #9db6c8;
  --slate-deep: #c2d2df;
  --slate-soft: #5e778c;

  --ink: #e9f0f9;
  --text: #b6c4d4;
  --muted: #8fa2b7;
  --line: #1e2c3c;
  --line-strong: #2b3c4f;
  --bg: #0b1522;
  --alt: #111d2c;

  --ring: rgba(138, 162, 255, .3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .35);
  --shadow-md: 0 18px 40px -26px rgba(0, 0, 0, .85), 0 3px 10px rgba(0, 0, 0, .4);
}

[data-theme="dark"] .site-header { background: rgba(11, 21, 34, .92); }
[data-theme="dark"] .hero { background: linear-gradient(180deg, #0e1a29 0%, #0b1522 80%); }

[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .nav-toggle,
[data-theme="dark"] .node,
[data-theme="dark"] .book-slot span { background: var(--alt); }

[data-theme="dark"] .assessment-card,
[data-theme="dark"] .service,
[data-theme="dark"] .contact-form-wrap,
[data-theme="dark"] .book-card { background: var(--alt); }

[data-theme="dark"] .site-footer { background: var(--bg); }

[data-theme="dark"] .core {
  background: radial-gradient(circle at 50% 32%, #1a2941, #121d2d 78%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 22px 48px -30px rgba(0, 0, 0, .9);
}

[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea {
  background: #0e1926; color: var(--ink); border-color: var(--line-strong);
}
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder { color: #6d8098; }

[data-theme="dark"] .book-errors { background: #2a1a13; border-color: #5b3520; color: #ffc7a1; }
[data-theme="dark"] .skip:focus { background: var(--ink); color: var(--bg); }

@media (max-width: 820px) {
  [data-theme="dark"] .nav { background: var(--alt); }
}
