/* ==========================================================================
   Pavse — pavse.app
   One stylesheet, no framework, no external requests.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see /assets/fonts/OFL-*.txt) --- */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/baloo-2-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/baloo-2-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --bg: #fffdf8;
  --surface: #ffffff;
  --ink: #000000;          /* outlines + text */
  --muted: #3d3d3d;
  --on-accent: #000000;    /* text sitting on blue / yellow / pink */

  --blue: #3a86ff;
  --yellow: #ffb703;
  --pink: #e6a8dd;

  --stroke: 5px;           /* matches the mascot's 5px round-capped strokes */
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);

  --font-display: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131313;
    --surface: #1d1d1d;
    --ink: #f5f1e8;        /* outlines flip to warm off-white */
    --muted: #c9c4ba;
    --on-accent: #000000;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;   /* belt and braces; layout is built not to overflow */
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: break-word;
  hyphens: manual;
}

p { margin: 0; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--blue); }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--yellow);
  color: var(--on-accent);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 800;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Header -------------------------------------------------------- */
.site-header { padding-block: 18px; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.wordmark .dot {
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  margin-left: 0.08em;
  background: var(--blue);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.lang-switch {
  display: flex;
  border: 3px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
}
.lang-switch a {
  padding: 8px 12px;
  text-decoration: none;
  min-width: 44px;
  text-align: center;
}
.lang-switch a + a { border-left: 3px solid var(--ink); }
.lang-switch a[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
}
.lang-switch a:not([aria-current]):hover { background: var(--yellow); color: var(--on-accent); }

/* ---------- Hero ---------------------------------------------------------- */
.hero { padding-block: 28px 56px; }

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
  background: var(--surface);
}

.hero h1 {
  font-size: clamp(2.35rem, 9.6vw, 5.4rem);
  line-height: 1.04;
}
.hero h1 .line { display: block; text-wrap: balance; }

/* marker-style highlight behind a word */
.mark {
  display: inline-block;
  padding: 0 0.16em;
  margin: 0.04em 0;
  border: var(--stroke) solid var(--ink);
  border-radius: 0.28em;
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.mark--yellow { background: var(--yellow); transform: rotate(-2deg); }
.mark--pink   { background: var(--pink); }
.mark--blue   { background: var(--blue); }

/* hand-drawn underline: inline SVG, 5px round-capped stroke */
.squiggle {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.squiggle svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2em;
  width: 100%;
  height: 0.32em;
  overflow: visible;
}
.squiggle path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.hero .lede {
  margin-top: 26px;
  font-size: clamp(1.08rem, 3.6vw, 1.3rem);
  color: var(--muted);
  max-width: 34em;
}
.hero .lede strong { color: var(--ink); }

.badges {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 12px;
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: default;
  user-select: none;
  max-width: 100%;
}
.badge-soon .play {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
}
.badge-soon .play svg { width: 16px; height: 16px; margin-left: 3px; }
.badge-soon .play--pink { background: var(--pink); }
.badge-soon .play--pink svg { margin-left: 0; }
.badge-soon .play--pink path { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.badge-soon .play path { fill: var(--on-accent); stroke: var(--on-accent); stroke-width: 2; stroke-linejoin: round; }
.badge-soon .txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.badge-soon .small { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.badge-soon .big { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }

/* MASCOT SLOT ---------------------------------------------------------------
   Drop the mascot SVG inside .mascot-slot and remove the .is-empty class.
   The box is square and capped, so it will not shift the surrounding layout.
   Mobile: sits above the headline. Desktop (>= 900px): right column.        */
.mascot-slot {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  order: -1;
}
.mascot-slot > svg,
.mascot-slot > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mascot-slot.is-empty { display: none; }

@media (max-width: 899px) {
  .mascot-slot { max-width: 260px; }
}

/* ---------- Sections ------------------------------------------------------ */
.section { padding-block: 56px; }

.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.9rem, 6.5vw, 3rem); }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.1rem; }

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.step {
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 24px;
  min-width: 0;
}

.step-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--on-accent);
  margin-bottom: 16px;
}
.step:nth-child(1) .step-num { background: var(--blue); }
.step:nth-child(2) .step-num { background: var(--yellow); }
.step:nth-child(3) .step-num { background: var(--pink); }

.step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Privacy block — the differentiator */
.privacy-band {
  background: var(--blue);
  color: var(--on-accent);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 32px 20px;
  position: relative;
}

.privacy-band .kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink);
  border: 3px solid #000;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.privacy-band h2 {
  font-size: clamp(2rem, 8.4vw, 4rem);
  line-height: 1.05;
}
.privacy-band h2 .line { display: block; }
.privacy-band h2 .hl {
  display: inline-block;
  margin-top: 0.22em;
  background: var(--yellow);
  border: var(--stroke) solid #000;
  border-radius: 0.3em;
  padding: 0.08em 0.24em 0.14em;
  box-shadow: 5px 5px 0 #000;
  transform: rotate(-1deg);
  text-wrap: balance;
}

.facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fffdf8;
  color: #000;
  border: 3px solid #000;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
  min-width: 0;
}
.facts svg { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.facts path {
  fill: none;
  stroke: #000;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-band .more {
  display: inline-block;
  margin-top: 24px;
  font-weight: 800;
  color: #000;
}

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  margin-top: 40px;
  border-top: var(--stroke) solid var(--ink);
  padding-block: 32px 40px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-weight: 800;
}
.footer-links a { display: inline-block; padding-block: 6px; }
.footer-meta { color: var(--muted); font-size: 0.95rem; }
.footer-meta { display: flex; flex-direction: column; gap: 2px; }
.footer-meta .maker { color: var(--ink); }
@media (min-width: 720px) { .footer-meta { text-align: right; } }

/* ---------- Legal / prose pages ------------------------------------------ */
.prose-page { padding-block: 24px 40px; }

.prose {
  max-width: 44rem;
}
.prose h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); }
.prose .meta {
  margin-top: 12px;
  display: inline-block;
  font-weight: 800;
  background: var(--yellow);
  color: var(--on-accent);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
}
.prose .summary {
  margin-top: 28px;
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  font-size: 1.1rem;
}
.prose .summary p + p { margin-top: 10px; }
.prose h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 10px;
}
.prose p + p,
.prose p + ul,
.prose ul + p { margin-top: 12px; }
.prose ul { padding-left: 1.3em; margin: 12px 0 0; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--blue); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0 4px;
  overflow-wrap: anywhere;
}

/* ---------- 404 ----------------------------------------------------------- */
.notfound {
  min-height: 62vh;
  display: grid;
  align-content: center;
  padding-block: 40px;
}
.notfound .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 30vw, 11rem);
  line-height: 0.9;
  display: flex;
  gap: 0.06em;
}
.notfound .code span {
  border: var(--stroke) solid var(--ink);
  border-radius: 0.18em;
  padding: 0 0.12em;
  color: var(--on-accent);
  box-shadow: var(--shadow);
}
.notfound .code span:nth-child(1) { background: var(--blue); transform: rotate(-3deg); }
.notfound .code span:nth-child(2) { background: var(--yellow); }
.notfound .code span:nth-child(3) { background: var(--pink); transform: rotate(3deg); }
.notfound h1 { margin-top: 32px; font-size: clamp(1.8rem, 7vw, 3rem); }
.notfound .tr { margin-top: 10px; color: var(--muted); font-size: 1.15rem; }
.notfound .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  font-weight: 800;
  text-decoration: none;
}
.btn--yellow { background: var(--yellow); color: var(--on-accent); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- Larger screens ------------------------------------------------ */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .site-header { padding-block: 26px; }
  .hero { padding-block: 56px 88px; }
  .section { padding-block: 72px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .privacy-band { padding: 48px 44px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .prose .summary { padding: 26px 28px; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; }
  .mascot-slot { order: 0; }
  /* Until the mascot arrives, the copy owns the full width. */
  .hero-grid:has(> .mascot-slot.is-empty) { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1024px) {
  .privacy-band { padding: 64px 64px; }
}

/* ---------- Motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .btn:active { transform: none; }
}
