/* japri.to base: tokens (palette A, owner 2026-12-03), self-hosted fonts, shared rules.
 * Source of truth for the values: brand/tokens.css. No inline styles anywhere (CSP style-src 'self'). */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --paper: oklch(98.6% 0.004 100);
  --paper-2: oklch(95.6% 0.006 100);
  --stripe: oklch(97.1% 0.008 100);
  --surface: oklch(99.8% 0.002 100);
  --line: oklch(90% 0.012 300);
  --ink: oklch(21% 0.06 320);
  --ink-muted: oklch(47% 0.04 300);
  --hl: oklch(84% 0.08 281);
  --hl-soft: oklch(94% 0.025 281);
  --on-hl: oklch(21% 0.06 320);
  --tint: oklch(95% 0.02 300);
  --tint-2: oklch(90.5% 0.045 300);
  --glow-a: oklch(84% 0.08 281 / 0.45);
  --glow-b: oklch(72% 0.12 305 / 0.2);
  --on-ink: oklch(98.6% 0.004 100);
  --on-ink-muted: oklch(80% 0.02 300);
  --line-ink: oklch(98.6% 0.004 100 / 0.16);
  --danger: oklch(52% 0.19 27);
  --shadow: oklch(21% 0.06 320 / 0.08);
  --shadow-lg: oklch(21% 0.06 320 / 0.16);
  --scrim: oklch(21% 0.06 320 / 0.45);
  --ink-hover: oklch(30% 0.06 320);
  --hl-hover: oklch(80% 0.1 281);
  --hl-behind: oklch(84% 0.08 281); /* the highlight behind running text */
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* Night mode, 19.00 to 06.00 local time (js/night.js; owner, 4 Dec 2026, PP Tunas GF03). The brand's dark values
 * (brand/tokens.css); the light ink becomes the button ground, so on-ink turns dark. */
:root[data-theme="night"] {
  color-scheme: dark;
  --paper: oklch(18% 0.05 315);
  --paper-2: oklch(21% 0.052 315);
  --stripe: oklch(19.5% 0.05 315);
  --surface: oklch(23% 0.055 315);
  --line: oklch(33% 0.05 315);
  --ink: oklch(96.5% 0.006 100);
  --ink-muted: oklch(78% 0.03 300);
  --hl-soft: oklch(32% 0.07 281);
  --tint: oklch(27% 0.05 315);
  --tint-2: oklch(31% 0.06 310);
  --glow-a: oklch(84% 0.08 281 / 0.16);
  --glow-b: oklch(72% 0.12 305 / 0.12);
  --on-ink: oklch(18% 0.05 315);
  --on-ink-muted: oklch(42% 0.04 310);
  --line-ink: oklch(18% 0.05 315 / 0.16);
  --danger: oklch(72% 0.15 27);
  --shadow: oklch(8% 0.03 315 / 0.4);
  --shadow-lg: oklch(8% 0.03 315 / 0.6);
  --scrim: oklch(8% 0.03 315 / 0.6);
  --ink-hover: oklch(88% 0.02 300);
  --hl-behind: oklch(44% 0.11 281); /* deeper at night, so the light ink on it stays readable */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-muted); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-style: normal; overflow-wrap: anywhere; min-width: 0; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mark { background: linear-gradient(to top, var(--hl-behind) 0 40%, transparent 40%); padding: 0 4px; }

/* Buttons: pills, ink fill for the one primary action */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 700 16px var(--sans); white-space: nowrap; cursor: pointer; }
.btn:hover { color: var(--on-ink); background: var(--ink-hover); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 15px; font-weight: 600; }
.btn--lime { background: var(--hl); color: var(--on-hl); }
.btn--lime:hover { background: var(--hl-hover); color: var(--on-hl); }
.btn--outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink-muted); }
.btn--outline:hover { background: var(--hl-soft); color: var(--ink); }
.btn[disabled] { background: var(--line); color: var(--ink-muted); cursor: not-allowed; }

/* Trust chip */
.trust { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; background: var(--hl-soft); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.trust--box { display: flex; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 18px; }
.trust svg { flex: none; }

/* Floating nav pill */
.nav-wrap { position: sticky; top: 16px; z-index: 10; display: flex; justify-content: center; padding: 16px 16px 0; }
.nav { width: 100%; max-width: 880px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 10px 10px 20px; box-shadow: 0 10px 30px var(--shadow); }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 32px; font-size: 15px; font-weight: 600; }
@media (max-width: 640px) { .nav__links { display: none; } }

/* Footer: inline, ink band */
.footer { background: var(--ink); color: var(--on-ink); padding: 72px 24px 32px; }
.footer__in { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__in img { height: 36px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; font-weight: 500; }
.footer a, .footer span { color: var(--on-ink-muted); }
.footer a:hover { color: var(--on-ink); }
.footer span { font-size: 13px; }

/* Hero ground: Trybe's light column stripes with a plum glow left and a lavender glow right. The stripes are centred on
   the page, so one stripe sits exactly under the centre (the j tile) at any width. */
.ground { background: radial-gradient(40% 34% at 0% 34%, var(--glow-b), transparent 72%), radial-gradient(40% 34% at 100% 58%, var(--glow-a), transparent 72%), linear-gradient(90deg, var(--stripe) 0 180px, var(--paper) 180px 360px) calc(50% + 90px) 0 / 360px 100% repeat-x; }
.section-title { text-align: center; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }

/* Cookie question (js/consent.js). Phones: one compact row at the bottom, and the page keeps room under it
 * (html.has-cb), so it never sits over the hero form or a screen's bottom button. Computers: a card at the right. */
.cb { position: fixed; z-index: 50; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 18px; background: var(--ink); color: var(--on-ink); box-shadow: 0 16px 48px var(--shadow-lg); font-size: 13px; line-height: 18px; }
.cb p { flex: 1; min-width: 0; margin: 0; color: var(--on-ink-muted); }
.cb .cb__more { display: none; }
.cb a { color: var(--on-ink); text-decoration: underline; font-weight: 600; }
.cb__btns { display: flex; gap: 6px; flex: none; }
.cb button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; font: 700 14px var(--sans); white-space: nowrap; cursor: pointer; background: var(--line-ink); color: var(--on-ink); }
.cb .cb__yes { background: var(--hl); color: var(--on-hl); }
.cb button:hover { filter: brightness(1.08); }
.cb button:focus-visible, .cb a:focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; }
html.has-cb body { padding-bottom: 76px; }
html.has-cb .flow__col { min-height: calc(100svh - 76px); }
@media (min-width: 640px) {
  .cb { left: auto; right: 20px; bottom: 20px; width: 380px; display: grid; gap: 10px; padding: 14px 16px; border-radius: 20px; font-size: 14px; line-height: 20px; }
  .cb .cb__more { display: inline; }
  .cb__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cb button { font-size: 15px; }
  html.has-cb body { padding-bottom: 0; }
  html.has-cb .flow__col { min-height: 100svh; }
}
/* The age step of Google sign-in (js/age-step.js, PP Tunas change 1): one card over a dimmed page, one button. */
.age-step { width: min(360px, calc(100vw - 32px)); margin: auto; border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 48px var(--shadow-lg); }
.age-step::backdrop { background: var(--scrim); }
.age-step h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 800; }
.age-step p { margin: 8px 0 20px; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.age-step__later { display: block; margin: 12px auto 0; padding: 8px 12px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.age-step__later:hover { color: var(--ink); }
