/* Gemini Casino app download site.
   Palette and type are the brand's (geminicasino/brand/tokens.css, Brandbook v7):
   jet ground, neutral grey ramp, commit green with dark ink, support blue for links.
   Cards use borders, not shadows. Radii: buttons 12, cards 14, pills 999. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-variable-latin.woff2") format("woff2");
}

:root {
  --bg: #0a0a0b;
  --bg-deep: #050506;
  --chrome: #18181b;
  --surface: #131315;
  --surface-2: #1b1b1e;
  --surface-3: #242428;
  --edge: #2a2a2f;
  --text: #ffffff;
  --muted: #a0a3ad;
  --dim: #62656f;
  --blue: #1475e1;
  --blue-hi: #3d8ff0;
  --blue-deep: #0e5ab8;
  --green: #00e701;
  --green-ink: #05270a;
  --green-drop: #0a8a0b;
  --win: #3ddc84;
  --ios-blue: #0a84ff;
  --and-green: #3ddc84;
  --col: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 800; }
p { margin: 0 0 1em; }
.defs { position: absolute; }
[hidden] { display: none !important; }

/* OS-dependent blocks */
body[data-os="ios"] .only-android { display: none; }
body[data-os="android"] .only-ios { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  font-weight: 800; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap;
  text-decoration: none !important; transition: transform .08s ease, background-color .15s ease;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-green { background: var(--green); color: var(--green-ink); box-shadow: 0 4px 0 var(--green-drop); }
.btn-green:hover { background: #22ff23; }
.btn-green:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-drop); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--edge); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--surface-3); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- header ---------- */
.top {
  max-width: var(--col); margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; gap: 24px;
}
.brand img { width: 186px; height: auto; }
.top-nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; }
.top-nav a { color: var(--muted); }
.top-nav a:hover { color: #fff; text-decoration: none; }
@media (max-width: 760px) {
  .top-nav { display: none; }
  .top .btn { margin-left: auto; }
  .brand img { width: 150px; }
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--col); margin: 0 auto; padding: 40px var(--pad) 72px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); font-stretch: 112%; font-weight: 800; line-height: 1.0;
  max-width: 12ch;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 48ch; margin: 22px 0 26px; }
.platforms { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; font-weight: 600; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; }
.os-logo { width: 18px; height: 18px; fill: #fff; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .hero h1 { max-width: none; }
}

/* the phone */
.hero-phone { display: flex; justify-content: center; }
.phone {
  width: 300px; aspect-ratio: 300 / 620; border-radius: 46px; padding: 10px;
  background: #151517; border: 1px solid #333338;
  box-shadow: 0 0 0 1px #0a0a0b, 0 40px 80px -30px rgba(0, 231, 1, .18);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 28px; transform: translateX(-50%); background: #0a0a0b; border-radius: 999px; z-index: 3; }
.screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(0, 231, 1, .22), transparent 60%),
    radial-gradient(70% 40% at 80% -5%, rgba(20, 117, 225, .25), transparent 60%),
    linear-gradient(180deg, #0f0f12, #050506);
}
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px 0; font-size: 13px; font-weight: 700; }
.signal { display: inline-flex; gap: 2px; align-items: flex-end; }
.signal i { width: 3px; background: #fff; border-radius: 1px; height: 5px; display: block; }
.signal i:nth-child(2) { height: 8px; } .signal i:nth-child(3) { height: 11px; }
.homegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 14px; padding: 42px 22px 0; }
.tile { aspect-ratio: 1; border-radius: 14px; background: var(--surface-3); opacity: .55; position: relative; }
.tile.t1 { background: linear-gradient(135deg, #3a3a44, #26262c); }
.tile.t2 { background: linear-gradient(135deg, #2f3a4a, #1e252d); }
.tile.t3 { background: linear-gradient(135deg, #4a3a3a, #2a2222); }
.tile.t4 { background: linear-gradient(135deg, #3a4a3f, #212a24); }
.tile.t5 { background: linear-gradient(135deg, #44405a, #27253a); }
.tile.t6 { background: linear-gradient(135deg, #3b3b3b, #202020); }
.tile.t7 { background: linear-gradient(135deg, #2d4347, #1a2a2d); }
.tile.t8 { background: linear-gradient(135deg, #4a4232, #2b261c); }
.tile.t9 { background: linear-gradient(135deg, #343a4a, #1d2130); }
.tile.t10 { background: linear-gradient(135deg, #3f3f46, #232327); }
.tile.t11 { background: linear-gradient(135deg, #3a3f3a, #202420); }
.tile.t12, .tile.t13, .tile.t14, .tile.t15 { background: linear-gradient(135deg, #3d3d45, #27272c); }
.tile.app { opacity: 1; background: none; border-radius: 0; }
.tile.app img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px -8px rgba(0, 231, 1, .55); }
.tile.app b { position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); white-space: nowrap; font-size: 9.5px; font-weight: 600; letter-spacing: 0; }
.dock { position: absolute; left: 14px; right: 14px; bottom: 16px; display: flex; gap: 14px; padding: 12px 16px; background: rgba(255,255,255,.08); border-radius: 26px; backdrop-filter: blur(10px); }
.dock .tile { flex: 1; }

/* install sheets inside the phone */
.sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #1c1c1e; color: #fff; border-radius: 22px; padding: 14px 16px 16px; font-size: 12px; z-index: 2; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 14px; }
.sheet-cancel { color: var(--ios-blue); font-weight: 500; }
.sheet-title { font-weight: 700; font-size: 13px; }
.sheet-add { color: var(--ios-blue); font-weight: 700; }
.sheet-row { display: flex; align-items: center; gap: 12px; background: #2c2c2e; border-radius: 12px; padding: 10px; }
.sheet-row img { width: 48px; height: 48px; border-radius: 10px; }
.sheet-row b { display: block; font-size: 13px; }
.sheet-row small { color: #9a9aa0; font-size: 11px; }
.sheet-note { margin: 12px 2px 0; color: #9a9aa0; font-size: 11px; line-height: 1.4; }
.sheet-android { background: #1f2023; border-radius: 22px; }
.and-head { display: flex; align-items: center; gap: 12px; }
.and-head img { width: 36px; height: 36px; border-radius: 9px; }
.and-head b { display: block; font-size: 14px; }
.and-head small { color: #9a9aa0; font-size: 11px; }
.and-actions { display: flex; justify-content: flex-end; gap: 22px; margin-top: 8px; font-weight: 700; font-size: 13px; color: #c6d9ff; }
.and-install { color: #0a0a0b; background: #a8c7fa; padding: 6px 14px; border-radius: 999px; }
body[data-os="ios"] .sheet-android { display: none; }
body[data-os="android"] .sheet-ios { display: none; }

/* one orchestrated moment on load: the icon lands, then the sheet rises */
@media (prefers-reduced-motion: no-preference) {
  .tile.app img { animation: land .55s cubic-bezier(.2, 1.2, .3, 1) .35s both; }
  .sheet { animation: rise .5s cubic-bezier(.2, .9, .2, 1) 1.05s both; }
}
@keyframes land { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }

/* ---------- steps ---------- */
.steps { max-width: var(--col); margin: 0 auto; padding: 24px var(--pad) 40px; border-top: 1px solid var(--edge); }
.steps-head { padding: 40px 0 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.steps h2, .why h2, .faq h2, .desk h2, .close h2 { font-size: clamp(28px, 3.4vw, 40px); }
.os-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--edge); border-radius: 999px; padding: 4px; }
.os-switch button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 9px;
}
.os-switch button svg { width: 17px; height: 17px; fill: currentColor; }
.os-switch button[aria-selected="true"] { background: var(--surface-3); color: #fff; }
.os-detected { width: 100%; margin: -8px 0 0; color: var(--dim); font-size: 14px; }

.step {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(280px, 380px); gap: 24px 28px;
  padding: 36px 0; border-top: 1px solid var(--edge);
}
.step-num {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green); color: var(--green-ink); font-weight: 900; font-size: 24px;
  box-shadow: 0 4px 0 var(--green-drop);
}
.step h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.step ol { margin: 0 0 14px; padding-left: 22px; }
.step ol li { margin: 0 0 8px; padding-left: 4px; }
.step ol li::marker { color: var(--green); font-weight: 800; }
.plain { list-style: none; padding: 0; margin: 0 0 14px; }
.plain li { padding: 7px 0 7px 18px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hint { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .step { grid-template-columns: 44px minmax(0, 1fr); }
  .step-num { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
  .step-shot { grid-column: 2; }
}
@media (max-width: 480px) {
  .step { grid-template-columns: 1fr; gap: 14px; }
  .step-shot { grid-column: 1; }
}

/* faux OS snippets beside each step */
.step-shot { align-self: start; }
.shot { position: relative; border: 1px solid var(--edge); border-radius: 14px; background: var(--surface); padding: 18px; }
.ios-share { background: #1c1c1e; border-radius: 12px; overflow: hidden; font-size: 15px; }
.ios-share-row { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; padding: 12px 14px; border-top: 1px solid #2c2c2e; color: #fff; }
.ios-share-row:first-child { border-top: 0; }
.ios-share-row .ico { width: 24px; height: 24px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.is-hot { background: #2c2c2e; color: #fff; font-weight: 700; }
.ios-share-row.is-hot .ico { color: var(--ios-blue); }
.and-menu { background: #1f2023; border-radius: 10px; padding: 6px 0; font-size: 15px; }
.and-menu-row { padding: 11px 18px; display: flex; align-items: center; gap: 14px; }
.and-menu-row.is-hot { background: #2a2b30; }
.and-menu-row.is-hot .ico { color: var(--and-green); }
/* a pulsing ring marks the row to tap */
.is-hot { position: relative; }
.ios-share-row.is-hot::after, .and-menu-row.is-hot::after {
  content: ""; position: absolute; top: 50%; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--green); pointer-events: none; transform: translate(-50%, -50%);
}
.ios-share-row.is-hot::after { right: 26px; transform: translate(50%, -50%); }
.and-menu-row.is-hot::after { left: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .ios-share-row.is-hot::after { animation: pulse-r 1.8s ease-out infinite; }
  .and-menu-row.is-hot::after { animation: pulse-l 1.8s ease-out infinite; }
}
@keyframes pulse-r { 0% { transform: translate(50%, -50%) scale(.6); opacity: .9; } 100% { transform: translate(50%, -50%) scale(1.5); opacity: 0; } }
@keyframes pulse-l { 0% { transform: translate(-50%, -50%) scale(.6); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

.reg { font-size: 14px; }
.reg-tabs { display: flex; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.reg-tabs span { flex: 1; text-align: center; padding: 8px; border-radius: 999px; color: var(--muted); font-weight: 700; }
.reg-tabs .is-on { background: var(--surface-3); color: #fff; }
.reg-field { border: 1px solid var(--edge); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; background: var(--surface-2); }
.reg-field small { display: block; color: var(--dim); font-size: 11px; font-weight: 600; }
.reg-check { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; padding: 5px 0; }
.reg-check i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--edge); display: inline-block; flex: none; }
.reg-check i.on { background: var(--green); border-color: var(--green); position: relative; }
.reg-check i.on::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--green-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.reg-btn { margin-top: 10px; text-align: center; background: var(--green); color: var(--green-ink); font-weight: 800; border-radius: 12px; padding: 12px; box-shadow: 0 4px 0 var(--green-drop); }

.notif { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--edge); border-radius: 16px; padding: 12px 14px; font-size: 13px; margin-bottom: 14px; }
.notif img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.notif b { display: block; font-size: 13px; }
.notif span { color: var(--muted); line-height: 1.35; display: block; }
.notif small { color: var(--dim); align-self: flex-start; }
.perm { background: #2a2a2d; border-radius: 14px; padding: 16px 16px 0; text-align: center; font-size: 14px; }
.perm b { display: block; font-size: 15px; line-height: 1.3; }
.perm p { color: #b5b5ba; font-size: 12.5px; margin: 6px 0 12px; }
.perm-actions { display: flex; border-top: 1px solid #3a3a3e; margin: 0 -16px; }
.perm-actions span { flex: 1; padding: 12px; color: var(--ios-blue); font-weight: 500; }
.perm-actions span + span { border-left: 1px solid #3a3a3e; }
.perm-actions .is-hot { background: transparent; font-weight: 700; }
.perm-android { text-align: left; padding-bottom: 12px; background: #1f2023; }
.perm-android .perm-actions { border: 0; justify-content: flex-end; margin: 10px 0 0; gap: 8px; }
.perm-android .perm-actions span { flex: none; color: #a8c7fa; padding: 8px 14px; border: 0; }
.perm-android .perm-actions .is-hot { background: #a8c7fa; color: #0a0a0b; border-radius: 999px; }

/* ---------- desktop / QR ---------- */
.desk { max-width: var(--col); margin: 0 auto; padding: 8px var(--pad) 40px; display: flex; gap: 32px; align-items: center; }
.desk-qr { flex: none; padding: 14px; background: var(--surface); border: 1px solid var(--edge); border-radius: 14px; }
.desk p { color: var(--muted); max-width: 52ch; }
.desk h2 { margin-bottom: 10px; }

/* ---------- why ---------- */
.why { max-width: var(--col); margin: 0 auto; padding: 56px var(--pad); border-top: 1px solid var(--edge); }
.why h2 { margin-bottom: 28px; }
.why dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.why dl div { padding: 18px 0; border-top: 1px solid var(--edge); }
.why dt { font-weight: 800; font-size: 19px; margin-bottom: 4px; }
.why dd { margin: 0; color: var(--muted); max-width: 44ch; }
@media (max-width: 700px) { .why dl { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: var(--col); margin: 0 auto; padding: 56px var(--pad); border-top: 1px solid var(--edge); }
.faq h2 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--edge); }
.faq details:last-of-type { border-bottom: 1px solid var(--edge); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--muted); max-width: 70ch; padding-bottom: 18px; margin: 0; }

/* ---------- close ---------- */
.close { max-width: var(--col); margin: 0 auto; padding: 64px var(--pad) 72px; text-align: center; border-top: 1px solid var(--edge); }
.close img { margin: 0 auto 18px; width: 120px; }
.close p { color: var(--muted); margin: 10px auto 24px; max-width: 44ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--edge); background: var(--bg-deep); padding: 36px var(--pad) 48px; }
.foot-row { max-width: var(--col); margin: 0 auto 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-row img { width: 150px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; font-size: 14px; font-weight: 600; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: #fff; }
.foot-legal { max-width: var(--col); margin: 0 auto 10px; color: var(--dim); font-size: 13px; line-height: 1.5; }
.foot-legal:empty { display: none; }
.age { display: inline-block; border: 1.5px solid var(--dim); border-radius: 999px; padding: 0 7px; font-weight: 800; margin-right: 6px; font-size: 12px; }
