/* Gsr Inc — shared styles. One file, four themes (hub, chromatic, kago, moki). Mobile first. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Press Start 2P";
  src: url("/assets/fonts/pressstart2p.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
  --gutter: 20px;
  --radius: 22px;

  /* default = hub */
  --bg: #161e34;
  --bg-2: #1f2a4a;
  --ink: #f4f5f8;
  --muted: #a6adbd;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
  --accent-ink: #12151d;
  --focus: #8ab4ff;
  color-scheme: dark;
}

/* ---------- themes ---------- */
body.t-chromatic {
  --bg: #161e34;
  --bg-2: #1f2a4a;
  --ink: #f3f5fb;
  --muted: #aeb6cc;
  --card: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #f6a43c;
  --accent-ink: #1b1405;
}
body.t-kago {
  --bg: #161e34; /* same background as Chromatic */
  --bg-2: #1f2a4a;
  --ink: #f7f2ec;
  --muted: #b9c0d3;
  --card: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #a85d43;
  --accent-ink: #ffffff;
}
body.t-moki {
  --bg: #f8f8f8;
  --bg-2: #efefef;
  --ink: #3a3a3a;
  --muted: #666666;
  --card: #ffffff;
  --line: #555555;
  --accent: #4a4a4a;
  --accent-ink: #ffffff;
  --focus: #1a4fd6;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.t-chromatic, body.t-kago, body.t-hub {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-color: var(--bg);
}
main { flex: 1 0 auto; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 10px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { padding-block: 16px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; line-height: 1.1; }
.top .back { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.top .back:hover { color: var(--ink); text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding-block: 20px 56px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
body.t-kago .eyebrow { color: #e0a088; }
body.t-moki .eyebrow { color: var(--muted); }
h1 { font-size: clamp(34px, 9vw, 56px); font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
body.t-kago h1 em { color: #e0a088; }
.lead { font-size: clamp(18px, 4.6vw, 21px); color: var(--muted); margin-top: 16px; max-width: 34em; }
.lead strong { color: var(--ink); font-weight: 700; }

/* store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 28px; }
.stores a { display: inline-block; line-height: 0; position: relative; border-radius: 9px; transition: transform 0.15s ease; }
.stores a:hover { transform: translateY(-2px); }
.stores .appstore img, .stores .play img { height: 48px; width: auto; }
html[data-os="ios"] .stores .play { order: 2; }
html[data-os="ios"] .stores .appstore { order: 1; }
html[data-os="android"] .stores .play { order: 1; }
html[data-os="android"] .stores .appstore { order: 2; }
.soon-tag {
  position: absolute; top: -9px; right: -8px; z-index: 1;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; line-height: 1.3;
}
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--card); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* phone frame */
.phone {
  position: relative; width: min(100%, 290px); margin-inline: auto;
  border-radius: 38px; padding: 9px; background: #0a0c11;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.phone > * { border-radius: 30px; width: 100%; height: auto; background: #000; }
.phone.is-video > video { aspect-ratio: 9 / 16; object-fit: cover; }
body.t-moki .phone { background: #3a3a3a; box-shadow: 8px 8px 0 #cfcfcf; border-radius: 22px; }
body.t-moki .phone > * { border-radius: 14px; }

.phone.bare { padding: 0; background: none; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.phone.bare > * { border-radius: 0; }

/* ---------- sections ---------- */
section { padding-block: 56px; }
.section-head { max-width: 40em; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(27px, 6.4vw, 38px); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card .num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px;
}
body.t-kago .card .num { background: #c0735a; }

/* light band (Kago "calm" sections, legal pages) */
.band-light {
  --ink: #2a2622; --muted: #5d5650; --card: #ffffff; --line: rgba(42, 38, 34, 0.14);
  background: #f7f2ec; color: var(--ink);
}
.band-light .eyebrow, body.t-kago .band-light .eyebrow { color: #a85d43; }
.band-light .card .num, body.t-kago .band-light .card .num { background: #a85d43; color: #fff; }
.band-light .section-head h2 { color: #2a2622; }

/* screenshot scroller */
.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.shots figure { margin: 0; flex: 0 0 min(66vw, 250px); scroll-snap-align: center; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); background: #0a0c11; }
.shots figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); text-align: center; }
body.t-moki .shots img { border: 2px solid var(--line); border-radius: 6px; }

/* checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
body.t-chromatic .checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231b1405' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}

/* final call to action */
.cta-final { text-align: center; padding-block: 64px 72px; }
.cta-final h2 { font-size: clamp(28px, 7vw, 42px); font-weight: 800; }
.cta-final p { color: var(--muted); margin-top: 12px; }
.cta-final .stores { justify-content: center; }

/* score banner (Chromatic, after the web demo) */
.score-banner {
  display: none; margin-top: 8px; padding: 16px 18px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.score-banner.show { display: block; }
.score-banner b { font-size: 1.3em; }


/* ---------- hub ---------- */
.hub-hero { padding-block: 34px 20px; text-align: center; }
.hub-hero .wrap { display: block; }
.hub-hero h1 { max-width: 14em; margin-inline: auto; }
.hub-hero .lead { margin-inline: auto; }
.apps { padding-block: 20px 64px; }
.app-card {
  display: grid; gap: 16px; grid-template-columns: 84px 1fr; align-items: center;
  padding: 22px; border-radius: 26px; text-decoration: none;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.7); }
.app-card img { width: 84px; height: 84px; border-radius: 20px; }
.app-card h2 { font-size: 24px; font-weight: 800; }
.app-card .tag { font-size: 15px; opacity: 0.85; margin-top: 2px; }
.app-card p.desc { grid-column: 1 / -1; font-size: 17px; opacity: 0.92; }
.pills { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.pill.go { margin-left: auto; background: #fff; color: #12151d; }
/* all cards share one colour; only Moki (light, pixel look) differs */
.app-card { --c1: #2a3a66; --c2: #12192e; }
.app-card.moki { --c1: #5b5b5b; --c2: #2f2f2f; }
.app-card.moki h2 { font-family: "Press Start 2P", monospace; font-size: 18px; line-height: 1.3; font-weight: 400; letter-spacing: 0; }

/* ---------- Moki pixel flavour ---------- */
body.t-moki h1, body.t-moki h2, body.t-moki .eyebrow, body.t-moki .card h3 {
  font-family: "Press Start 2P", ui-monospace, monospace; font-weight: 400; letter-spacing: 0; line-height: 1.35;
}
body.t-moki h1 { font-size: clamp(24px, 7.2vw, 40px); }
body.t-moki .section-head h2, body.t-moki .cta-final h2 { font-size: clamp(16px, 4.2vw, 24px); }
body.t-moki .card h3 { font-size: 14px; margin-bottom: 12px; }
body.t-moki .eyebrow { font-size: 11px; }
body.t-moki .card, body.t-moki .btn, body.t-moki .score-banner {
  border-radius: 0; border: 2px solid var(--line);
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}
body.t-moki .btn-primary { background: var(--accent); color: #fff; }
body.t-moki .card .num { border-radius: 0; font-family: "Press Start 2P", monospace; font-size: 13px; background: var(--accent); }
body.t-moki .checks li::before { border-radius: 0; background-color: var(--accent); }
body.t-moki .stores a { border-radius: 8px; }
body.t-moki .soon-tag { border-radius: 0; }
body.t-moki .band-dark { background: #3a3a3a; color: #f2f2f2; --ink: #f2f2f2; --muted: #cfcfcf; --card: #4a4a4a; --line: #8a8a8a; }

/* ---------- legal / support pages ---------- */
.doc { padding-block: 24px 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 7vw, 42px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink); opacity: 0.92; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc li + li { margin-top: 6px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
body.t-hub .doc a, body.t-kago .doc a { color: #9cc0ff; }
details.faq { border-top: 1px solid var(--line); padding: 14px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style-position: outside; }
details.faq p { margin-top: 10px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { padding-block: 32px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .apps-links { font-weight: 600; }

/* ---------- cookie / measurement consent ---------- */
.consent {
  position: fixed; inset: auto 12px 12px 12px; z-index: 50; max-width: 560px; margin-inline: auto;
  background: #fff; color: #1a1a1a; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); font-size: 15px; line-height: 1.45;
}
.consent p { margin: 0 0 12px; }
.consent a { color: #1a4fd6; }
.consent .row { display: flex; gap: 10px; flex-wrap: wrap; }
.consent button {
  font: inherit; font-weight: 700; padding: 10px 18px; min-height: 44px; border-radius: 999px; cursor: pointer;
  border: 2px solid #1a1a1a; background: #fff; color: #1a1a1a;
}
.consent button.yes { background: #1a1a1a; color: #fff; }

/* ---------- larger screens ---------- */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .hero { padding-block: 40px 80px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .shots { justify-content: center; overflow: visible; padding-inline: 0; margin-inline: 0; flex-wrap: wrap; }
  .shots figure { flex: 0 1 220px; }
  .apps .grid { grid-template-columns: repeat(2, 1fr); }
  .app-card { grid-template-columns: 1fr; align-content: start; padding: 28px; }
  .app-card img { width: 96px; height: 96px; }
  .pill.go { margin-left: 0; }
  .foot .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

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

/* Moki: dark band needs a light tick */
body.t-moki .band-dark .checks li::before { background-color: #8a8a8a; }

/* buttons inside legal/support pages keep their own text colour */
.doc a.btn { color: var(--accent-ink); text-decoration: none; }
.doc a.btn-primary { background: var(--accent); }
