/*
 * Vibley "Pop" style for the web: the website and the legal pages share this file.
 * The tokens are the app's own (apps/ios/Vibly/Core/DesignSystem/PopDesignSystem.swift):
 * cream ground, ink text and 2 px ink outlines, cards and buttons on a 3 px hard shadow,
 * radius 18. Ink text on light fills, white only on ink and indigo (Pop.label(on:)).
 * docs/WEBSITE_PLAN.md, docs/WEBSITE_PLAN_2026-11-16.md
 */
/* The app's own font file, subset to Latin + Turkish and served from here, so no
   visitor's address goes to a font CDN. SIL Open Font License 1.1 (assets/fonts/OFL.txt). */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
:root {
  --ink: #14163A; --body: #3F4258; --muted: #6E7088;
  --cream: #FFF7E8; --paper: #FFFFFF;
  --indigo: #5B5BF7; --indigo-t: #E4E4FF;
  --tomato: #FF5E3A; --tomato-t: #FFE3DA;
  --sun: #FFD23F; --sun-t: #FFF3C4;
  --mint: #00C48C; --mint-t: #D5F5EA;
  --gum: #FF8FB1; --gum-t: #FFE3EC;
  --sky: #3FB6FF; --sky-t: #DDF1FF;
  --line: 2px solid var(--ink);
  --lift: 3px;
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } *, *::before, *::after { transition: none !important; animation: none !important } }
body { margin: 0; background: var(--cream); color: var(--body); font: 400 16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, sans-serif }
img { max-width: 100%; display: block }
a { color: var(--indigo); font-weight: 700; text-decoration: none }
a:active { opacity: .6 }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px }
strong { color: var(--ink) }
::selection { background: var(--sun); color: var(--ink) }
html { accent-color: var(--indigo); caret-color: var(--indigo) }

/* ---------- Shared pieces ---------- */
.box { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--lift) var(--lift) 0 var(--ink) }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 800 16px/1 inherit; font-family: inherit;
  box-shadow: var(--lift) var(--lift) 0 var(--ink); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active, .btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); opacity: 1 }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--lift) var(--lift) 0 var(--tomato) }
.btn-primary:active, .btn-primary:hover { box-shadow: 1px 1px 0 var(--tomato) }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0 }
.btn small { display: block; font-size: 11px; font-weight: 700; opacity: .75; margin-bottom: 2px }
.btn .stack { text-align: left; line-height: 1.1 }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 800; background: var(--paper); color: var(--ink) }
.live::before { content: ""; display: inline-block; flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); border: 1.5px solid var(--ink) }
mark { background: var(--sun); color: var(--ink); padding: 0 .12em; margin: 0 -.04em; border-radius: .22em; -webkit-box-decoration-break: clone; box-decoration-break: clone }

/* ---------- Legal pages: <body class="doc"> ---------- */
.doc { padding: 28px 16px calc(40px + env(safe-area-inset-bottom)) }
.doc main { max-width: 680px; margin: 0 auto }
.doc header { text-align: center; margin-bottom: 24px }
.doc .badge { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--sun); border: var(--line); display: grid; place-items: center }
.doc .badge svg { width: 28px; height: 28px; fill: var(--ink) }
.doc h1 { margin: 0; color: var(--ink); font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -.01em }
.doc .updated { margin: 8px 0 0; color: var(--muted); font-size: 14px }
.doc .card { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: 0 var(--lift) 0 var(--ink); padding: 18px 20px; margin: 0 0 16px }
.doc .card.tint { background: var(--sun-t) }
.doc h2 { margin: 0 0 8px; color: var(--ink); font-weight: 800; font-size: 18px; line-height: 1.3 }
.doc p { margin: 0 0 10px }
.doc p:last-child, .doc ul:last-child { margin-bottom: 0 }
.doc ul { margin: 0 0 10px; padding-left: 20px }
.doc li { margin: 0 0 6px }
.doc li::marker { color: var(--indigo) }
.doc footer { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px }
.doc footer a { margin: 0 6px }
