/* Public site styles. Hand-written; the pages themselves are generated by the Studio (studio/generator.js).
   Look: one bright page color (--accent, set per site) with black ink, Tanker for big headings, Mona Sans for text. */

@font-face { font-family: "Tanker"; src: url("fonts/tanker.woff2") format("woff2"); font-display: swap; }
@font-face {
  font-family: "Mona Sans"; src: url("fonts/mona-sans.woff2") format("woff2"); font-weight: 200 900; font-display: swap;
  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;
}

:root {
  --accent: #c49b00;
  --ink: #151515;
  --ink-2: rgba(21, 21, 21, .74);
  --ink-3: rgba(21, 21, 21, .56);
  --line: rgba(21, 21, 21, .2);
  --soft: rgba(21, 21, 21, .07);
  --display: "Tanker", "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html.noscroll, html.noscroll body { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  background: var(--accent); color: var(--ink);
  font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--accent); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.narrow { max-width: 860px; }
@media (max-width: 900px) { .wrap { padding: 0 24px; } }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: .9; letter-spacing: .012em; margin: 0; text-wrap: balance;
}
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.fill { fill: currentColor; stroke: none; }
.flag { width: 18px; height: 11.25px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); flex: none; }

/* ---------- buttons ---------- */
.key {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 26px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--ink); color: var(--accent);
  font: 700 17px/1 var(--font); text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .65);
  transition: transform .15s ease, box-shadow .15s ease;
}
.key:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .6); }
.key:active { transform: translateY(1px); }
.key .ico { width: 22px; height: 22px; }
.key-sm { height: 48px; padding: 0 18px; gap: 10px; font-size: 15.5px; }
.key-big { height: 66px; padding: 0 30px; font-size: 20px; }
.key-light { background: var(--accent); color: var(--ink); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .7); }
.key.wide { width: 100%; justify-content: center; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.ghost {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px; border-radius: 14px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.ghost:hover { background: var(--ink); color: var(--accent); }
.ghost .ico { width: 20px; height: 20px; }
.ghost.icon { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 12px; }
.tlink {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 2px;
  color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.tlink .go { width: 18px; height: 18px; transition: transform .2s ease; }
.tlink:hover .go { transform: translateX(4px); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar { position: relative; z-index: 5; }
.tb { display: flex; align-items: center; gap: 16px; padding-top: 30px; padding-bottom: 10px; }
.who { display: flex; flex-direction: column; text-decoration: none; line-height: 1.3; min-width: 0; }
.who b { font-weight: 700; font-size: 17px; }
.who span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 16px; }
a.who:hover b { text-decoration: underline; text-underline-offset: 3px; }
.tb-right { margin-left: auto; }
@media (max-width: 560px) {
  .tb { padding-top: 18px; }
  .tb .key-sm { width: 48px; padding: 0; justify-content: center; border-radius: 50%; }
  .tb .key-sm .lbl { display: none; }
}

/* ---------- squiggle lines ---------- */
.squig { position: relative; height: 12px; padding-right: 8px; color: rgba(21, 21, 21, .62); }
.squig svg { display: block; width: 100%; height: 12px; overflow: visible; }
.squig path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.squig::after { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: 2px solid currentColor; border-radius: 50%; box-sizing: border-box; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; margin-top: -86px; padding-top: 86px; overflow: hidden; }
.hero .terrain { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 75% 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 36%, transparent 74%);
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 94%, transparent) 40%, color-mix(in srgb, var(--accent) 45%, transparent) 62%, transparent 80%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; background: linear-gradient(transparent, var(--accent)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.hero-text { padding: 48px 0 90px; }
.hero h1 { font-size: clamp(72px, 9.6vw, 150px); }
@media (max-width: 960px) { .hero h1 { font-size: clamp(72px, 15vw, 150px); } }
.lead { font-size: 18.5px; line-height: 1.55; color: var(--ink-2); max-width: 58ch; margin: 0; }
.hero .lead { margin-top: 30px; font-size: 19px; }
.facts { margin: 20px 0 42px; font-weight: 650; font-size: 15.5px; color: var(--ink-2); letter-spacing: .01em; }
.hero-art { align-self: end; padding-bottom: 20px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero::before { background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 90%, transparent) 55%, color-mix(in srgb, var(--accent) 45%, transparent) 74%, transparent 90%); }
  .hero-text { padding-bottom: 10px; }
  .hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .hero .keys .key { flex: 1 1 100%; justify-content: center; }
}

/* ---------- scenes: island, balloons, device ---------- */
.scene { position: relative; width: 100%; }
.scene .float { position: absolute; inset: 0; animation: bob 7s ease-in-out infinite; }
.scene svg.art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.bl { transform-box: view-box; animation: sway 5.5s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

.device {
  position: absolute; left: 50%; bottom: var(--b); transform: translateX(-50%) rotate(var(--rot, 0deg)); transform-origin: 50% 100%;
  padding: 9px; border-radius: 30px; background: #121212;
  box-shadow: inset 0 0 0 2px #2c2c2c, 0 34px 50px -26px rgba(0, 0, 0, .7);
}
.device .screen { width: 100%; height: 100%; overflow: hidden; border-radius: 22px; background: #000; }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.device.phone { width: 34%; aspect-ratio: 9 / 17.5; --rot: 3deg; }
.device.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 26%; height: 5.5%; max-height: 22px; transform: translateX(-50%); border-radius: 99px; background: #121212; z-index: 1; }
.device.tablet { width: 44%; aspect-ratio: 3 / 4; border-radius: 26px; --rot: -2deg; }
.device.tablet .screen { border-radius: 18px; }
.device.laptop { width: 74%; aspect-ratio: 16 / 10.4; border-radius: 16px 16px 6px 6px; padding: 8px 8px 12px; }
.device.laptop .screen { border-radius: 8px; }
.device.laptop::after { content: ""; position: absolute; left: -7%; right: -7%; bottom: -12px; height: 13px; border-radius: 2px 2px 14px 14px; background: linear-gradient(#2a2a2a, #0d0d0d); }
.show .device.phone { width: 30%; }
.show .device.tablet { width: 40%; }
.hero-scene .device.tablet { width: 40%; }

/* ---------- showcases ---------- */
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.jump span { font-weight: 700; margin-right: 6px; }
.jump a { padding: 8px 14px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.jump a:hover { background: var(--ink); color: var(--accent); }
.show { padding: 84px 0 36px; }
.show .wrap > .squig { margin-bottom: 70px; }
.show-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.show.flip .show-text { order: 2; }
.show-head { display: flex; align-items: center; gap: 26px; margin-bottom: 22px; }
.show-head h2, .app-head h1 { font-size: min(var(--fs, 120px), 17vw); }
.tile {
  width: 66px; height: 66px; flex: none; border-radius: 19px; display: grid; place-items: center; font-size: 36px;
  background: var(--ink); color: var(--accent);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6);
}
.tile .ico { width: 28px; height: 28px; }
.big-line { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.22; letter-spacing: -.01em; margin: 0 0 14px; max-width: 30ch; }
.show .lead { margin-bottom: 12px; }
.meta { color: var(--ink-2); font-size: 15.5px; font-weight: 500; margin: 0 0 32px; }
.show .keys { max-width: 640px; }
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 26px; max-width: 640px; }
.stat { display: flex; flex-direction: column; padding: 0 22px; border-left: 1.5px solid var(--line); min-width: 0; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { font-size: 46px; line-height: 1; margin-bottom: 7px; }
.stat span { font-weight: 700; font-size: 15px; line-height: 1.3; }
.stat small { color: var(--ink-2); font-size: 14px; line-height: 1.35; margin-top: 2px; }
@media (max-width: 960px) {
  .show { padding-top: 80px; }
  .show-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .show.flip .show-text { order: 0; }
  .show-art { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .show-head { gap: 16px; }
  .tile { width: 54px; height: 54px; font-size: 30px; border-radius: 16px; }
  .show .keys .key { flex: 1 1 100%; justify-content: center; }
  .stats { max-width: none; }
  .stat { padding: 0 14px; }
  .stat:first-child { padding-left: 0; }
  .stat b { font-size: 36px; }
  .stat span { font-size: 13.5px; }
  .stat small { font-size: 12.5px; }
}

/* ---------- app page ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 30px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.back:hover { color: var(--ink); }
.app-head { display: flex; align-items: center; gap: 26px; margin-bottom: 20px; }
.app-head + .big-line { max-width: 40ch; }
.stage {
  --arw: 16; --arh: 9;
  position: relative; margin: 10px auto 0; overflow: hidden;
  width: min(100%, calc(min(76vh, 780px) * var(--arw) / var(--arh)));
  aspect-ratio: var(--arw) / var(--arh);
  background: #000; border-radius: 20px;
  box-shadow: 0 0 0 3px var(--ink), 0 30px 60px -28px rgba(0, 0, 0, .6);
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.poster { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; display: grid; place-items: center; background: #111; z-index: 1; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: blur(10px) brightness(.6); transform: scale(1.1); }
.poster .key { position: relative; }
.poster:hover .key { transform: translateY(-2px) scale(1.03); }
.stage .exit {
  display: none; position: absolute; z-index: 3; top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left));
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); place-items: center; cursor: pointer;
  background: var(--ink); color: var(--accent); opacity: .85;
}
.stage .exit .ico { width: 16px; height: 16px; }
.stage.immersive {
  position: fixed; inset: 0; z-index: 300; width: 100%; height: 100%; height: 100dvh; margin: 0;
  aspect-ratio: auto; border-radius: 0; box-shadow: none;
}
.stage.immersive .exit { display: grid; }
.tools { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; }
.app-scene { max-width: 620px; margin: 0 auto; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; }
@media (max-width: 960px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.section { margin: 64px 0 0; }
.h-sm { font-size: 46px; margin-bottom: 18px; }
.h-md { font-size: clamp(54px, 7vw, 84px); margin: 22px 0 26px; }
.prose { font-size: 18px; }
.prose p { margin: 0 0 1em; }
.prose.big { font-size: 20px; color: var(--ink-2); }
.prose a { font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.tags span { padding: 5px 12px; border-radius: 999px; background: var(--soft); font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.section .squig { margin-top: 36px; }
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; }
.shots a { flex: none; scroll-snap-align: start; }
.shots img { height: 300px; width: auto; border-radius: 14px; box-shadow: 0 0 0 2.5px var(--ink); }

.dl { display: flex; flex-direction: column; gap: 18px; }
.dl-key { height: auto; min-height: 66px; padding: 12px 20px; }
.dl-key .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.dl-key b { font-size: 17px; }
.dl-key small { font-weight: 500; font-size: 13px; opacity: .72; overflow: hidden; text-overflow: ellipsis; }
.note { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; margin: 14px 2px 0; }

.tipcard { position: relative; overflow: hidden; padding: 28px; border-radius: 20px; background: var(--ink); color: var(--accent); }
.tipcard h3 { font-size: 44px; margin-bottom: 10px; }
.tipcard p { margin: 0 0 22px; color: color-mix(in srgb, var(--accent) 78%, transparent); }
.tipcard .keys { gap: 14px; }

.more .minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.mini {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; text-decoration: none;
  background: var(--ink); color: var(--accent); transition: transform .2s ease;
  box-shadow: 0 18px 32px -20px rgba(0, 0, 0, .65);
}
.mini:hover { transform: translateY(-4px); }
.mini img { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; height: auto; }
.mini-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.mini-body b { font-size: 38px; }
.mini-body span { font-size: 15px; color: color-mix(in srgb, var(--accent) 75%, transparent); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- about / 404 ---------- */
.page-title { font-size: clamp(64px, 10vw, 140px); margin: 0 0 30px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; font-size: 17px; }
.checks .ico { width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: var(--ink); color: var(--accent); stroke-width: 3; margin-top: 1px; }
.nf { text-align: center; padding-top: 40px; }
.big404 { font-size: clamp(160px, 30vw, 320px); }
.nf p { color: var(--ink-2); font-size: 18px; margin: 0 0 32px; }

/* ---------- footer ---------- */
.foot { margin-top: 120px; padding: 0 0 44px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 26px; color: var(--ink-2); font-size: 16px; }
.foot-row a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.foot-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-row .ico { width: 16px; height: 16px; }
.foot .linkish { color: var(--ink); }

/* ---------- tip dialog ---------- */
dialog.tip { width: calc(100% - 32px); max-width: 440px; margin: max(16px, 7vh) auto auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
dialog.tip::backdrop { background: rgba(10, 10, 10, .55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
dialog.tip[open] .tipbox { animation: pop .3s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.tipbox {
  position: relative; padding: 30px 26px 22px; border-radius: 24px; background: var(--accent);
  box-shadow: 0 0 0 3px var(--ink), 0 40px 80px -24px rgba(0, 0, 0, .7);
  max-height: calc(100dvh - 32px); overflow-y: auto;
}
.tipbox .x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--soft); display: grid; place-items: center; cursor: pointer; }
.tipbox .x:hover { background: var(--ink); color: var(--accent); }
.tiphead { text-align: center; margin-bottom: 22px; }
.tiphead .tile { margin: 0 auto 16px; width: 58px; height: 58px; border-radius: 17px; }
.tiphead h2 { font-size: 50px; margin-bottom: 8px; }
.tiphead p { margin: 0 auto; color: var(--ink-2); font-size: 16px; max-width: 32ch; }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; }
.amounts button {
  height: 48px; padding: 0 4px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 16px;
  border: 2px solid var(--ink); background: transparent; transition: background .15s, color .15s;
}
.amounts button:hover { background: var(--soft); }
.amounts button[aria-pressed="true"] { background: var(--ink); color: var(--accent); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 16px 0 20px; padding: 4px; border-radius: 14px; border: 2px solid var(--ink); }
.seg button { height: 40px; border: 0; border-radius: 9px; background: none; font-weight: 700; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--accent); }
.pane { text-align: center; }
.qr { width: 232px; height: 232px; margin: 0 auto 10px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 3px var(--ink); }
.qr img { width: 100%; height: 100%; }
.hint { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.number { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin: 8px 0 6px; font-size: 15px; color: var(--ink-2); }
.number b { color: var(--ink); font-size: 18px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--ink); background: none; cursor: pointer; font-size: 13.5px; font-weight: 700; }
.copy:hover { background: var(--ink); color: var(--accent); }
.copy .ico { width: 15px; height: 15px; }
#showQr { justify-content: center; width: 100%; }
.only-phone { display: none !important; }
.is-phone .only-phone { display: flex !important; }
.is-phone .qrwrap { display: none; }
.is-phone .qrwrap.show { display: block; }
.fine { margin: 20px 0 0; color: var(--ink-3); font-size: 12.5px; text-align: center; }
.mt { margin-top: 14px; }
@media (max-width: 520px) {
  dialog.tip { width: 100%; max-width: none; margin: auto 0 0; }
  .tipbox { border-radius: 24px 24px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  dialog.tip[open] .tipbox { animation: up .3s cubic-bezier(.2, .9, .3, 1); }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
}

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 500;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 12px; background: var(--ink); color: var(--accent); font-weight: 700; font-size: 15px;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
