/* Tokens, type, buttons, nav, footer, doodles and reveal. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/caveat.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #fbf7f0;
  --paper-2: #f3ece0;
  --card: #fffdf9;
  --ink: #1f2a37;
  --ink-2: #4b5563;
  --ink-3: #8a94a6;
  --line: #e8e0d2;
  --blue: #1b6ae8;
  --blue-2: #1557c4;
  --blue-soft: #e6effd;
  --marker: #f2643b;
  --sun: #ffd666;
  --green: #22a06b;
  --night: #1f2a37;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --radius: 20px;
  --shadow-1: 0 1px 2px rgba(60, 40, 10, .06), 0 10px 30px -14px rgba(60, 40, 10, .22);
  --shadow-2: 0 40px 80px -36px rgba(31, 42, 55, .5), 0 0 0 1px rgba(31, 42, 55, .07);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 32px);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a06b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13c2 1 3 3 4 5 3-6 6-9 10-12'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* Paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.hand { font-family: var(--hand); font-weight: 600; line-height: 1.15; }
.kicker {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-block-end: 14px;
}
.section-title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 700 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn:focus-visible { outline: 3px solid rgba(27, 106, 232, .45); outline-offset: 3px; }
.btn-primary {
  color: #fff; background: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 0 var(--blue-2), 0 14px 24px -10px rgba(27, 106, 232, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 0 var(--blue-2), 0 18px 30px -12px rgba(27, 106, 232, .75); }
.btn-primary:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 0 var(--blue-2), 0 6px 12px -8px rgba(27, 106, 232, .7); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn-light { color: var(--night); background: #fff; box-shadow: 0 4px 0 #c9d6ea; }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 0 var(--blue-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .78);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(60, 40, 10, .35); }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.nav-brand { display: flex; }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-inline-start: auto; }
}

/* Hand-drawn strokes: pathLength=1 lets one dash cover any path */
.doodle { fill: none; stroke: var(--marker); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) .35s; }
.js .is-in .draw { stroke-dashoffset: 0; }
.js .is-in .draw + .draw { transition-delay: 1.2s; transition-duration: .4s; }

/* Scroll reveal (only when JS runs, so content never stays hidden). Uses `translate`
   so it composes with the `transform` that tilt and 3D entrances own. */
.js [data-reveal]:not(.hero) {
  opacity: 0; translate: 0 40px;
  transition: opacity .8s var(--ease), translate .9s var(--ease), transform .9s var(--ease);
}
.js [data-reveal].is-in:not(.hero) { opacity: 1; translate: none; }

/* Footer */
.footer { margin-block-start: 96px; border-block-start: 1px solid var(--line); padding-block: 48px 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand p { margin-block-start: 8px; color: var(--ink-2); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { margin-block-start: 28px; color: var(--ink-3); font-size: 14px; }
.powered-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 32px; padding-inline: var(--gutter); }
.powered {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2); text-decoration: none;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.powered strong { color: var(--ink); }
.powered:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--ink-3), var(--shadow-1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
