/* Piksio marketing site — shared styles.
   Tokens mirror render-studio-design/tokens/*.css (cream paper, ink outlines,
   hard "pop" shadows, Fredoka + Space Grotesk). Keep names in sync with the DS. */

:root {
  --pink-50: #ffedf6; --pink-100: #ffd2ea; --pink-500: #ff2e9a; --pink-600: #e01480; --pink-700: #b80e68;
  --yellow-50: #fffbe0; --yellow-100: #fff3b0; --yellow-400: #ffd400; --yellow-600: #d1aa00;
  --blue-50: #eaf0ff; --blue-400: #6690ff; --blue-500: #3a6fff;
  --lime-500: #a6ff3d; --grape-500: #8b5cf6; --tangerine-500: #ff7a1a;
  --paper-0: #fffdf8; --paper-50: #fff8ec; --paper-100: #fcefda;
  --sand-200: #f2e2c4; --sand-300: #e2d0ae;
  --stone-500: #9c8b78; --stone-600: #776a5c;
  --ink-800: #3a332c; --ink-900: #241f1b; --ink-950: #14110f;
  --green-50: #e6f9ee; --green-500: #1faa59; --red-500: #ff4d5e;

  --brand: var(--pink-500);
  --brand-strong: var(--pink-600);
  --brand-soft: var(--pink-50);
  --secondary: var(--yellow-400);
  --accent: var(--blue-500);
  --ink: var(--ink-950);
  --text-body: var(--ink-900);
  --text-muted: var(--stone-600);
  --surface-page: var(--paper-50);
  --surface-card: #ffffff;
  --surface-sunken: var(--paper-100);
  --border-subtle: var(--sand-300);

  --font-display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Permanent Marker', 'Comic Sans MS', cursive;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius-control: 999px;
  --radius-field: 16px;
  --radius-card: 22px;
  --radius-panel: 32px;
  --radius-blob-1: 42% 58% 55% 45% / 48% 42% 58% 52%;

  --border-w: 2.5px;
  --pop-sm: 3px 3px 0 var(--ink);
  --pop-md: 6px 6px 0 var(--ink);
  --pop-lg: 10px 10px 0 var(--ink);
  --pop-pressed: 1px 1px 0 var(--ink);
  --shadow-float: 0 12px 32px rgba(20, 17, 15, 0.14);

  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1200px;
  --section-y: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
section { padding: var(--section-y) 0; position: relative; }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(42px, 6.4vw, 78px); }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 600; line-height: 1.2; }
.hl { color: var(--brand); }
.hl-under {
  background: linear-gradient(transparent 62%, var(--yellow-400) 62%, var(--yellow-400) 92%, transparent 92%);
  padding: 0 4px;
}
.eyebrow {
  display: inline-block;
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 16px;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-800); max-width: 620px; margin: 20px 0 0; }
.hand { font-family: var(--font-hand); font-weight: 400; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.section-head { max-width: 760px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 17px/1 var(--font-display);
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: var(--radius-control);
  border: var(--border-w) solid var(--ink);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--pop-sm);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s var(--ease-bounce), box-shadow .15s var(--ease-out), background .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: var(--pop-pressed); }
.btn-lg { font-size: 19px; padding: 18px 32px; }
.btn-sm { font-size: 15px; padding: 10px 18px; }
.btn-yellow { --btn-bg: var(--yellow-400); --btn-fg: var(--ink); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--paper-0); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border-color: transparent; }
.btn-ghost:hover { box-shadow: none; transform: none; text-decoration: underline; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1 var(--font-body);
  padding: 7px 12px;
  border-radius: var(--radius-control);
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
}
.chip-yellow { background: var(--yellow-400); }
.chip-pink { background: var(--brand); color: #fff; }
.chip-soft { background: var(--brand-soft); border-color: var(--brand); color: var(--pink-700); }
.chip-blue { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-500); }
.tag {
  font: 400 13px/1 var(--font-mono);
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--yellow-50);
  border: 1.5px dashed var(--yellow-600);
  color: var(--ink-800);
}

/* ---------- Card ---------- */
.card {
  background: var(--surface-card);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--pop-md);
  padding: 28px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--ink); }
.nav .row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav .logo img { height: 34px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: 8px 14px; border-radius: var(--radius-control);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.nav ul a:hover, .nav ul a[aria-current="page"] { background: var(--paper-100); }
.nav .actions { display: flex; align-items: center; gap: 8px; }
.nav .login { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 12px; }
.nav .login:hover { text-decoration: underline; }
.nav-toggle { display: none; background: #fff; border: 2px solid var(--ink); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; box-shadow: var(--pop-sm); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 0 auto; position: relative; content: ''; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
@media (max-width: 920px) {
  .nav ul, .nav .login { display: none; }
  .nav-toggle { display: block; }
  .nav.open ul {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper-50); border-bottom: 2px solid var(--ink);
    padding: 12px 16px 20px;
  }
  .nav.open ul a { font-size: 18px; padding: 12px 14px; }
  .nav.open ul .mobile-only { display: block; }
}
.nav ul .mobile-only { display: none; }
@media (max-width: 420px) { .nav .actions .btn { padding: 10px 14px; font-size: 14px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper-100); padding: 72px 0 40px; }
.footer a { color: var(--paper-100); text-decoration: none; }
.footer a:hover { color: var(--yellow-400); }
.footer .grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer .brand img { height: 34px; margin-bottom: 16px; }
.footer .brand p { color: var(--stone-500); font-size: 15px; max-width: 300px; margin: 0; }
.footer h4 { font: 700 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--yellow-400); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer .bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink-800); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--stone-500); }
@media (max-width: 800px) { .footer .grid { grid-template-columns: 1fr 1fr; } .footer .brand { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Final CTA band (shared) ---------- */
.cta-band { padding: var(--section-y) 0; }
.cta-box {
  position: relative; overflow: hidden;
  background: var(--brand); color: #fff;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-panel);
  box-shadow: var(--pop-lg);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/texture-halftone.svg') 0 0 / 22px 22px;
  opacity: .08; pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; }
.cta-box p { font-size: 19px; max-width: 560px; margin: 18px auto 32px; color: #fff; opacity: .95; }
.cta-box .fine { font-size: 14px; margin: 18px auto 0; opacity: .85; }
.cta-box .sticker {
  position: absolute; top: 22px; right: 28px;
  font-family: var(--font-hand); font-size: 20px; color: var(--ink);
  background: var(--yellow-400); padding: 8px 14px; border: 2px solid var(--ink); border-radius: 12px;
  transform: rotate(6deg); box-shadow: var(--pop-sm);
}
@media (max-width: 700px) { .cta-box .sticker { display: none; } }

/* ---------- FAQ (shared) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-list details {
  background: #fff; border: var(--border-w) solid var(--ink);
  border-radius: 18px; box-shadow: var(--pop-sm);
  padding: 0; transition: box-shadow .2s;
}
.faq-list details[open] { box-shadow: var(--pop-md); }
.faq-list summary {
  list-style: none; cursor: pointer;
  padding: 20px 60px 20px 24px; position: relative;
  font: 600 19px/1.3 var(--font-display); color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; font: 700 20px/1 var(--font-body);
  background: var(--yellow-400); transition: transform .25s var(--ease-bounce);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
/* The answer is written either as a <div> wrapper or as a bare <p>, so pad both:
   a bare <p> used to sit flush against the card border. 24px matches the summary. */
.faq-list details > div,
.faq-list details > p { padding: 0 24px 22px; color: var(--ink-800); }
.faq-list details > p { margin: 0; }
.faq-list details > div p { margin: 0 0 10px; }
.faq-list details > div p:last-child { margin-bottom: 0; }
