/* Thrillr Pack website. One look: the app's deep blue, its light blue highlight and the gold rim of its Trip mode button. */
@font-face { font-family: "Gabarito"; src: url("fonts/gabarito_700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("fonts/gabarito_800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken_400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken_600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --night: #081a46;
  --deep: #0a2358;
  --blue: #0b2a6b;
  --accent: #2f6fe4;
  --sky: #9cc2ff;
  --mist: #d2e0f5;
  --card: #ffffff;
  --ink: #0a2358;
  --ink-sub: #536a93;
  --gold: #f2b636;
  --mint: #1e8a5f;
  --mint-bg: #dff3ea;
  --line: rgba(255, 255, 255, 0.16);
  --head: "Gabarito", "Trebuchet MS", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: #fff;
  font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
em { font-style: normal; color: var(--sky); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* ---- top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(8, 26, 70, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--head); }
.brand svg { height: 34px; width: auto; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; opacity: 0.82; }
.top nav a:hover { opacity: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px;
  background: #fff; color: var(--ink); border: 2px solid var(--gold); text-decoration: none; font: 600 15px/1 var(--body);
  box-shadow: 0 0 22px rgba(242, 182, 54, 0.25);
}

/* ---- hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 78% 20%, #17409a 0%, var(--deep) 45%, var(--night) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-block: 72px 84px; }
.kick { font: 600 14px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.hero h1 { font-size: clamp(44px, 7vw, 84px); margin: 16px 0 20px; }
.lede { font-size: 20px; max-width: 34em; color: var(--mist); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: flex; align-items: center; gap: 12px; min-width: 200px; height: 60px; padding: 0 18px; border-radius: 16px;
  background: #fff; color: var(--ink); text-decoration: none; border: 2px solid transparent;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; color: var(--ink-sub); line-height: 1.1; }
.store b { display: block; font: 700 18px/1.15 var(--head); }
.store[aria-disabled="true"] { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: var(--line); cursor: default; }
.store[aria-disabled="true"] small { color: var(--sky); }
.fine { margin-top: 14px; font-size: 14px; color: var(--sky); }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; color: var(--night); pointer-events: none; }

/* ---- phone mock-ups: drawn here, in the app's own colours */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; padding: 14px 12px 18px; border-radius: 38px; position: relative;
  background: linear-gradient(170deg, #1a4db0 0%, #0b2a6b 46%, #081a46 100%);
  border: 6px solid #020a1f; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--ink); font-size: 13px; line-height: 1.3;
}
.phone .bar { display: flex; align-items: center; gap: 8px; color: #fff; padding: 6px 6px 12px; font: 700 15px/1 var(--head); }
.phone .bar svg { height: 22px; width: auto; }
.phone h4 { font: 800 22px/1.05 var(--head); color: #fff; margin: 2px 6px 12px; letter-spacing: -0.01em; }
.card { background: var(--card); border-radius: 18px; padding: 12px 14px; margin-top: 10px; }
.card b { font-weight: 600; }
.card .sub { color: var(--ink-sub); font-size: 11.5px; }
.rowx { display: flex; align-items: center; gap: 10px; }
.rowx > .grow { flex: 1; min-width: 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 9px; font-size: 11px; font-weight: 600; background: var(--mint-bg); color: var(--mint); white-space: nowrap; }
.tag.sky { background: #dce8fa; color: #1f56c8; }
.tag.gold { background: #fdf0cf; color: #8a5a00; }
.tag.grey { background: #eceff5; color: var(--ink-sub); }
.dot { width: 34px; height: 34px; border-radius: 11px; background: #dce8fa; flex: none; display: grid; place-items: center; color: #1f56c8; font: 700 13px/1 var(--head); }
.num { font: 800 22px/1 var(--head); }
.bar6 { display: flex; gap: 2px; height: 6px; margin: 6px 0 4px; }
.bar6 i { border-radius: 3px; background: #1f56c8; }
.fab { position: absolute; right: 18px; bottom: 22px; height: 40px; padding: 0 14px; border-radius: 20px; background: #fff; border: 2px solid var(--gold); display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; box-shadow: 0 0 18px rgba(242, 182, 54, 0.4); }
/* the dotted path joining a day's stops */
.rail { position: relative; padding-left: 46px; }
.rail::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; border-left: 2px dotted #9fb3d6; }
.rail .stop { position: relative; padding: 7px 0; }
.rail .stop::before { content: ""; position: absolute; left: -46px; top: 5px; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #7fb0ff, #2f6fe4); }
.rail .stop:nth-child(2)::before { background: linear-gradient(135deg, #f6c56b, #d98a2b); }
.rail .stop:nth-child(3)::before { background: linear-gradient(135deg, #7fd3b0, #1e8a5f); }
.warn { font-size: 11px; color: #8a5a00; background: #fdf0cf; border-radius: 8px; padding: 3px 8px; display: inline-block; margin-bottom: 2px; }
.medal { width: 46px; height: 46px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #ffe9a6, #f2b636 55%, #b9820f); border: 3px solid #fff3cc; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.medal.silver { background: radial-gradient(circle at 35% 30%, #fff, #c9d3e3 55%, #8793a8); border-color: #eef2f8; }
.sos { background: #c62828; color: #fff; border-radius: 16px; text-align: center; padding: 14px; font: 800 18px/1 var(--head); margin-top: 10px; }

/* ---- why */
.why { padding-block: 72px; }
.why h2, .sec h2, .get h2, .keep h2 { font-size: clamp(32px, 4.6vw, 52px); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.tile { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.tile svg { width: 30px; height: 30px; color: var(--sky); }
.tile h3 { font-size: 21px; margin: 14px 0 8px; }
.tile p { font-size: 15.5px; color: var(--mist); }

/* ---- sections */
.sec { padding-block: 64px; border-top: 1px solid var(--line); }
.sec .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sec:nth-of-type(even) .copy { order: 2; }
.sec .copy p.say { font-size: 19px; color: var(--mist); margin: 16px 0 20px; max-width: 30em; }
.sec ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sec li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 16.5px; }
.sec li svg { width: 22px; height: 22px; margin-top: 2px; color: var(--sky); }
.sec li b { font-weight: 600; }
.plain { margin-top: 18px; font-size: 14.5px; color: var(--sky); border-left: 2px solid var(--gold); padding-left: 12px; max-width: 34em; }

/* ---- promises, download, footer */
.keep { padding-block: 64px; border-top: 1px solid var(--line); background: var(--deep); }
.keep .tiles { grid-template-columns: repeat(3, 1fr); }
.get { padding-block: 84px; text-align: center; background: radial-gradient(900px 420px at 50% 0%, #17409a 0%, var(--deep) 55%, var(--night) 100%); border-top: 1px solid var(--line); }
.get .stores { justify-content: center; }
.get p { color: var(--mist); margin-top: 14px; }
footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 14px; color: var(--sky); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer .brand { font-size: 16px; color: #fff; }
footer .brand svg { height: 24px; }
footer span:last-child { margin-left: auto; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .top .pill { margin-left: auto; }
  .hero .wrap, .sec .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero .wrap { padding-block: 44px 96px; }
  .sec:nth-of-type(even) .copy { order: 0; }
  .tiles, .keep .tiles { grid-template-columns: 1fr 1fr; }
  footer span:last-child { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .tiles, .keep .tiles { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; }
  .lede { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* grid and flex children may shrink, so long words wrap inside them and the page never scrolls sideways */
.hero .wrap > *, .sec .wrap > *, .tiles > *, .store > span { min-width: 0; }
.why .kick, .sec .kick, .keep .kick { margin-bottom: 12px; }
body { overflow-x: hidden; }

/* ---- reading pages: privacy, terms, support */
.doc { padding-block: 56px 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin: 14px 0 16px; }
.doc .lede { margin-bottom: 8px; }
.doc section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h2 { font-size: 26px; margin: 0 0 12px; }
.doc section h2 + h2, .doc ul + h2 { margin-top: 28px; }
.doc h3 { font-size: 19px; margin: 22px 0 8px; color: var(--sky); font-weight: 700; }
.doc p, .doc li { color: var(--mist); font-size: 16.5px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.doc b { color: #fff; font-weight: 600; }
.doc a { color: var(--sky); }
.doc .plain { margin-top: 14px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.doc ul + p, .doc ol + p { margin-top: 12px; }

/* ---- real screens from the app, in a plain phone frame */
.shot { margin: 0 auto; width: 280px; max-width: 100%; position: relative; }
.shot img { display: block; width: 100%; height: auto; border-radius: 34px; border: 7px solid #020a1f; background: #020a1f;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.shot figcaption { margin-top: 12px; text-align: center; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.duo { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.duo .shot { width: 260px; }
.duo .back { transform: translate(40px, 34px) rotate(4deg); opacity: 0.92; }
.duo .front { transform: translateX(-40px) rotate(-3deg); z-index: 1; }
@media (max-width: 560px) {
  .shot { width: 240px; }
  .duo .shot { width: 190px; }
  .duo .back { transform: translate(24px, 24px) rotate(4deg); }
  .duo .front { transform: translateX(-24px) rotate(-3deg); }
}

/* The page an invitation link opens (open/): one action, then how to get the app */
.open .stores { margin-top: 26px; }
.open #openapp { border-color: var(--gold); box-shadow: 0 0 22px rgba(242, 182, 54, 0.35); }
.open .codebox { display: inline-block; margin-top: 8px; padding: 14px 22px; border-radius: 16px; background: #fff; color: var(--ink); border: 2px solid var(--gold); font: 800 26px/1 var(--head); letter-spacing: 0.08em; word-break: break-all; }
.open a.store { color: var(--ink); text-decoration: none; }
.open a.store[aria-disabled="true"] { color: #fff; }
.open a.store svg { color: inherit; }
.open a.store b { color: inherit; }
.open button.store { font: inherit; cursor: pointer; text-align: left; color: var(--ink); }
.open button.store b { color: inherit; }
.open button.store.ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: var(--line); }
.open button.store.ghost small { color: var(--sky); }
.open .linkline { margin-top: 14px; font-size: 14px; color: var(--sky); word-break: break-all; user-select: all; -webkit-user-select: all; }
.open .store[hidden] { display: none; }

/* The Google Play test button and its dialog (index.html) */
button.store { font: inherit; cursor: pointer; text-align: left; }
.store.ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: var(--line); }
.store.ghost small { color: var(--sky); }
.store[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 16px; background: rgba(3, 10, 30, 0.66); }
.modal[hidden] { display: none; }
.sheet { position: relative; width: min(100%, 440px); background: var(--card); color: var(--ink); border-radius: 24px; border-top: 4px solid var(--gold); padding: 26px 24px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.sheet h3 { font: 800 24px/1.15 var(--head); margin: 0 40px 12px 0; }
.sheet p { margin: 0 0 14px; font-size: 15px; color: var(--ink-sub); }
.sheet b { color: var(--ink); word-break: break-all; }
.sheet label { display: flex; flex-direction: column; gap: 6px; font: 600 14px/1.2 var(--body); color: var(--ink); margin-bottom: 14px; }
.sheet input { font: 400 16px/1.2 var(--body); color: var(--ink); padding: 12px 14px; border: 1.5px solid #c9d6ee; border-radius: 12px; background: #f6f9ff; }
.sheet input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.sheet .captcha { min-height: 78px; margin-bottom: 12px; }
.sheet .err { color: #b42318; font-weight: 600; font-size: 14px; }
.sheet .go { width: 100%; height: 48px; border: 0; border-radius: 999px; background: #2f6fe4; color: #fff; font: 700 16px/1 var(--head); cursor: pointer; box-shadow: 0 0 0 2px var(--gold); margin-bottom: 12px; }
.sheet .go:disabled { opacity: 0.6; cursor: default; }
.sheet .fine { font-size: 12.5px; margin: 0; color: var(--ink-sub); }
.sheet .x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #c9d6ee; background: #fff; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
