:root {
  --ink: #1a1c2b;
  --muted: #5b5f7a;
  --faint: #8b8fa8;
  --faint-2: #a9adc7;
  --accent: #4f46e5;
  --accent-hover: #3f37cf;
  --accent-hover-2: #625bea;
  --link-hover: #372fc4;
  --accent-soft: #e7e5fb;
  --canvas: #f2f3fa;
  --surface: #fff;
  --surface-2: #f7f8fd;
  --surface-3: #fbfbfe;
  --surface-4: #eceefa;
  --surface-5: #eeeffb;
  --track: #e7e9f6;
  --track-2: #e9eaf7;
  --line: #e3e5f2;
  --line-2: #edeef8;
  --line-3: #ebedf8;
  --line-4: #f1f2fa;
  --dark: #1a1c2b;
  --dark-text: #d7d9e6;
  --dark-text-2: #e4e5f0;
  --dashed: #c9cced;
  --purple-2: #7b74f0;
  --pink: #c07ae0;
}

* { box-sizing: border-box; }
/* The header is sticky, so a plain #anchor jump lands the target flush under it —
   scroll-padding-top keeps section titles clear of the header on every anchor click. */
html { scroll-padding-top: 80px; }
html, body { margin: 0; padding: 0; background: var(--canvas); }
body {
  font-family: 'Instrument Sans', Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--link-hover); }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: 'JetBrains Mono', monospace; }

.nav-link { color: var(--muted); }
.nav-link:hover { color: var(--ink); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--dashed); color: var(--ink); }
.btn-pro { background: var(--accent); color: #fff; }
.btn-pro:hover { background: var(--accent-hover-2); color: #fff; }

.lang-pill { border: none; font-family: inherit; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: transparent; color: var(--muted); }
.lang-pill.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(26,28,43,0.12); }

.mock-tab-btn { border: none; font-family: inherit; font-size: 13px; padding: 6px 14px; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 500; }
.mock-tab-btn.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(26,28,43,0.1); }

.action-row { display: grid; grid-template-columns: 30px minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line-4); cursor: pointer; background: transparent; }
.action-row.active { background: var(--surface-5); }

.pricing-cta:hover { border-color: var(--dashed); color: var(--ink); }

@media (max-width: 760px) {
  header .site-header-inner { flex-wrap: wrap; }
}

/* ---- Soft landing ---- */
.soft-band p { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 500; color: var(--muted); line-height: 1.4; letter-spacing: -0.01em; margin: 0; }

/* ---- Story / steps ---- */
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 30px); }
.step-num { display: grid; place-items: center; width: 30px; aspect-ratio: 1; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 700; margin-bottom: 18px; }

/* ---- Meet Stippy ---- */
.stippy-band { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -30px rgba(26,28,43,0.25); }
.stippy-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
.stippy-art { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface-4); aspect-ratio: 1; }
.stippy-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.speech-bubble { position: relative; display: inline-block; margin-top: 18px; background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; font-size: 1.02rem; line-height: 1.4; padding: 15px 19px; border-radius: 16px; }
.speech-bubble::after { content: ""; position: absolute; left: 28px; bottom: -7px; width: 14px; height: 14px; background: var(--accent-soft); clip-path: polygon(0 0, 100% 0, 0 100%); }

/* ---- End CTA ---- */
.cta-band { background: var(--accent); color: #fff; border-radius: 20px; }
.cta-band a.btn-primary { background: #fff; color: var(--accent-hover); }
.cta-band a.btn-primary:hover { background: #f2f3fa; color: var(--accent-hover); }

/* ---- Mascot motion ---- */
/* Oversized so the bob's translateY never uncovers the container's own background at
   the top/bottom edge — the extra size is clipped by the parent's overflow:hidden.
   Scoped to .hero-art/.stippy-art specifically so it wins over the plain "…-art img"
   sizing rules below (same specificity would otherwise lose on source order). */
.hero-art img.mascot-bob, .stippy-art img.mascot-bob { width: 112%; height: 112%; margin: -6%; object-fit: cover; }
.mascot-bob { animation: stippy-bob 4.6s ease-in-out infinite; }

/* mascot-stippy.webp's subject (the arch) sits left-of-center in the source photo itself
   — needs a bigger zoom than the shared oversize above to have enough crop headroom to
   shift the visible window left and actually center it, not just cover the bob's edges. */
.stippy-art img.mascot-bob.stippy-recenter, .hero-art img.mascot-bob.stippy-recenter { width: 112%; height: 112%; margin: -6% 0 0 -1%; }
@keyframes stippy-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) {
  .mascot-bob { animation: none !important; }
}

/* ---- Hero ---- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr); gap: 48px; align-items: center; text-align: left; }
.hero-art { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px -30px rgba(26,28,43,0.35); border: 1px solid var(--line); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art .art-caption, .stippy-art .art-caption { position: absolute; top: 0; left: 0; right: 0; padding: clamp(18px, 4vw, 30px); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.55rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }

@media (max-width: 760px) {
  .stippy-split { grid-template-columns: 1fr !important; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 640px) {
  footer .footer-grid { grid-template-columns: 1fr !important; }
}
