/*
 * 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;
  /* The app's springs (ViblyMotion.swift: quick 0.28/0.82, gentle 0.45/0.86, bouncy 0.38/0.68)
     sampled into CSS; a plain ease-out where linear() is missing. */
  --spring-quick: cubic-bezier(.2, .9, .3, 1);
  --spring-gentle: cubic-bezier(.16, 1, .3, 1);
  --spring-bouncy: cubic-bezier(.34, 1.4, .64, 1);
  --t-quick: 340ms; --t-gentle: 520ms; --t-bouncy: 550ms;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-quick: linear(0, 0.016, 0.058, 0.118, 0.189, 0.266, 0.345, 0.423, 0.498, 0.568, 0.633, 0.692, 0.745, 0.791, 0.832, 0.866, 0.896, 0.921, 0.942, 0.959, 0.972, 0.983, 0.992, 0.998, 1.003, 1.006, 1.009, 1.01, 1.011, 1.011, 1.01, 1.008, 1.006, 1.004, 1);
    --spring-gentle: linear(0, 0.015, 0.053, 0.108, 0.173, 0.243, 0.316, 0.389, 0.459, 0.526, 0.588, 0.645, 0.697, 0.743, 0.785, 0.821, 0.852, 0.88, 0.903, 0.923, 0.939, 0.953, 0.965, 0.974, 0.982, 0.988, 0.993, 0.997, 0.999, 1.001, 1.003, 1.004, 1.005, 1.004, 1);
    --spring-bouncy: linear(0, 0.023, 0.084, 0.17, 0.27, 0.375, 0.481, 0.581, 0.674, 0.756, 0.827, 0.887, 0.936, 0.975, 1.004, 1.026, 1.04, 1.049, 1.053, 1.054, 1.052, 1.049, 1.044, 1.038, 1.032, 1.027, 1.021, 1.017, 1.012, 1.009, 1.005, 1.003, 1.001, 0.999, 0.998, 1);
  }
}
*, *::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;
  --sh: var(--ink);
  /* Released: springs back off its shadow (quick spring). */
  transition: transform var(--t-quick) var(--spring-quick), box-shadow var(--t-quick) var(--spring-quick);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--ink); color: #fff; --sh: var(--tomato); box-shadow: var(--lift) var(--lift) 0 var(--sh) }
/* Pressed: lands on its shadow, which stays put (PopButtonStyle, 80 ms ease-out). */
.btn:active { transform: translate(var(--lift), var(--lift)); box-shadow: 0 0 0 var(--sh); opacity: 1; transition-duration: 80ms; transition-timing-function: ease-out }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:active) { transform: translate(-1px, -1px); box-shadow: calc(var(--lift) + 1px) calc(var(--lift) + 1px) 0 var(--sh) }
}
.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 main { max-width: 712px; margin: 0 auto; padding: 28px 16px 48px }
.doc main > header { text-align: center; margin-bottom: 24px }
.doc main .badge { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--sun); border: var(--line); display: grid; place-items: center }
.doc main .badge svg { width: 28px; height: 28px; fill: var(--ink) }
.doc main h1 { margin: 0; color: var(--ink); font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -.01em }
.doc main .updated { margin: 8px 0 0; color: var(--muted); font-size: 14px }
.doc main .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 main .card.tint { background: var(--sun-t) }
.doc main h2 { margin: 0 0 8px; color: var(--ink); font-weight: 800; font-size: 18px; line-height: 1.3 }
.doc main p { margin: 0 0 10px }
.doc main p:last-child, .doc main ul:last-child { margin-bottom: 0 }
.doc main ul { margin: 0 0 10px; padding-left: 20px }
.doc main li { margin: 0 0 6px }
.doc main li::marker { color: var(--indigo) }

/* ---------- Site header: sticker navigation (every page; docs/WEBSITE_TEAM_PLAN_2026-11-17.md, N4) ---------- */
/* Each section is a tilted Pop sticker; the one you are in lifts. Scrolled down on a wide screen the
   stickers stack into a pile that fans out under the pointer or keyboard focus. On a phone the pile
   is a button that scatters the stickers down the right edge. Behaviour: /assets/site.js. */
@font-face {
  font-family: "Permanent Marker";
  src: url("/assets/fonts/permanent-marker.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root { --marker: "Permanent Marker", "Comic Sans MS", cursive }
header.top { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 1.5px solid transparent; transition: background .3s, border-color .3s }
header.top.small { background: rgba(255, 247, 232, .96); border-bottom-color: #e6dac2 }
header.top .bar { display: flex; align-items: center; gap: 16px; max-width: 1160px; height: 72px; margin: 0 auto; padding: 0 16px }
header.top .brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0 }
header.top .brand img { height: 34px; width: auto }
header.top .btn { min-height: 44px; padding: 0 18px; font-size: 15px; flex-shrink: 0 }
.stickers { display: flex; align-items: center; margin-left: auto; padding: 6px 4px }
.stickers a { position: relative; font-weight: 800; font-size: 14px; color: var(--ink); background: var(--k); border: var(--line); border-radius: 12px; padding: 6px 12px; box-shadow: 2px 3px 0 var(--ink); transform: rotate(var(--r)); margin-left: -2px; white-space: nowrap;
  transition: transform .35s var(--spring-bouncy), box-shadow .35s var(--spring-bouncy), margin .45s var(--spring-gentle), opacity .25s }
.stickers a:nth-child(1) { --k: var(--sun); --r: -4deg } .stickers a:nth-child(2) { --k: var(--mint); --r: 3deg }
.stickers a:nth-child(3) { --k: var(--gum); --r: -2deg } .stickers a:nth-child(4) { --k: var(--sky); --r: 4deg }
.stickers a:nth-child(5) { --k: var(--tomato); --r: -3deg } .stickers a:nth-child(6) { --k: var(--indigo-t); --r: 2deg }
.stickers a.on, .stickers a[aria-current="page"] { transform: rotate(0) translateY(-4px) scale(1.08); box-shadow: 3px 6px 0 var(--ink); z-index: 2 }
.stickers a.on::after, .stickers a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); transform: translateX(-50%) }
.stickers a:active { opacity: 1 }
@media (hover: hover) and (pointer: fine) {
  .stickers a:hover { transform: rotate(0) translateY(-4px) scale(1.08); box-shadow: 3px 6px 0 var(--ink); z-index: 3 }
}
.pile { display: none }
@media (min-width: 900px) {
  header.top .btn { margin-left: 8px }
  header.top.small .stickers a { margin-left: -46px }
  header.top.small .stickers a:first-child { margin-left: 0 }
  header.top.small .stickers:hover a, header.top.small .stickers:focus-within a { margin-left: 4px }
}
@media (max-width: 899px) {
  header.top .bar { height: 64px; gap: 10px }
  header.top .btn { min-height: 42px; padding: 0 16px; font-size: 15px }
  .stickers { position: absolute; right: 16px; top: 62px; flex-direction: column; align-items: flex-end; gap: 10px; margin: 0; padding: 0; visibility: hidden; transition: visibility 0s .45s }
  .stickers a { font-size: 19px; padding: 9px 18px; margin: 0; opacity: 0; transform: translateY(-30px) rotate(var(--r)) scale(.8) }
  .stickers a.on, .stickers a[aria-current="page"] { transform: translateY(-30px) rotate(var(--r)) scale(.8) }
  .stickers a.on::after, .stickers a[aria-current="page"]::after { display: none }
  header.top.open .stickers { visibility: visible; transition: none }
  header.top.open .stickers a { opacity: 1; transform: rotate(var(--r)) }
  header.top.open .stickers a.on, header.top.open .stickers a[aria-current="page"] { transform: rotate(0) scale(1.06); box-shadow: 3px 6px 0 var(--ink) }
  header.top.open .stickers a:nth-child(2) { transition-delay: .04s } header.top.open .stickers a:nth-child(3) { transition-delay: .08s }
  header.top.open .stickers a:nth-child(4) { transition-delay: .12s } header.top.open .stickers a:nth-child(5) { transition-delay: .16s }
  header.top.open .stickers a:nth-child(6) { transition-delay: .2s }
  .pile { display: inline-grid; position: relative; margin-left: auto; width: 52px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent }
  .pile i { position: absolute; inset: 9px 11px; border: var(--line); border-radius: 10px; background: var(--k); transition: transform .35s var(--spring-bouncy), opacity .2s }
  .pile i:nth-child(1) { --k: var(--sky); transform: translate(5px, -3px) rotate(14deg) }
  .pile i:nth-child(2) { --k: var(--gum); transform: translate(-4px, 1px) rotate(-12deg) }
  .pile i:nth-child(3) { --k: var(--sun); transform: translateY(2px) rotate(3deg) }
  header.top.open .pile i:nth-child(1) { transform: rotate(45deg) scale(.9) }
  header.top.open .pile i:nth-child(2) { transform: rotate(-45deg) scale(.9) }
  header.top.open .pile i:nth-child(3) { transform: scale(.2); opacity: 0 }
}

/* ---------- Site footer: the big closing (every page, F1) ---------- */
footer.site { background: var(--paper); border-top: var(--line); padding: 52px 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; color: var(--body); font-size: 15px; text-align: left }
footer.site .in { max-width: 1160px; margin: 0 auto; padding: 0 16px }
footer.site .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px }
footer.site .about { display: grid; gap: 14px; align-content: start }
footer.site .about > img { height: 34px; width: auto }
footer.site .about p { margin: 0; max-width: 22em }
footer.site .qr { display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35 }
footer.site .qr img { width: 80px; height: 80px; border: var(--line); border-radius: 12px; padding: 5px; background: var(--paper) }
footer.site .fh { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 }
footer.site li { margin: 0 }
footer.site ul a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); font-weight: 700 }
@media (hover: hover) and (pointer: fine) { footer.site ul a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px } }
footer.site .giant { position: relative; margin-top: 40px; font-weight: 800; letter-spacing: -.06em; line-height: .8; font-size: clamp(84px, 22vw, 250px); color: var(--ink); white-space: nowrap; user-select: none }
footer.site .giant span { position: absolute; left: 50%; top: -.06em; font-family: var(--marker); font-weight: 400; letter-spacing: 0; font-size: .3em; color: var(--tomato); text-shadow: 2px 2px 0 var(--ink); transform: rotate(-8deg) }
footer.site .legal { margin-top: 18px; padding-top: 14px; border-top: 1.5px solid #eee6d6; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; font-size: 13px; color: var(--muted) }
@media (max-width: 760px) {
  footer.site { padding-top: 40px }
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 22px 16px }
  footer.site .about { grid-column: 1 / -1 }
  footer.site .qr { display: none }
  footer.site .giant { margin-top: 32px }
}
@media (prefers-reduced-motion: reduce) { header.top, .stickers, .stickers a, .pile i { transition: none } }

/* ---------- Written words (Selam, the founders' names, Sen?, görüşürüz!) ----------
   Each letter of the marker font is an outline path, used as a clip (the real letter) and as a thick
   pen stroke drawn along it, letter after letter (built from assets/fonts/permanent-marker.woff2;
   docs/WEBSITE_TEAM_PLAN_2026-11-17.md, T13). The margins line the SVG up with where the text sat. */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }
.ink { display: block; height: 1.427em; width: auto; margin: -.2135em 0; overflow: visible; filter: drop-shadow(2px 2px 0 var(--ink)) }
.ink use { fill: none; stroke: currentColor; stroke-width: 240; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--L) var(--L); stroke-dashoffset: 0 }
@keyframes inkWrite { from { stroke-dashoffset: var(--L) } }
footer.site .giant.ink-wait .ink use { stroke-dashoffset: var(--L) }
footer.site .giant.ink-go .ink use { animation: inkWrite var(--t) var(--d) cubic-bezier(.5, 0, .45, 1) both }
@media (prefers-reduced-motion: reduce) { .ink use { animation: none !important; stroke-dashoffset: 0 !important } }

