/* oddrally.app: supporting pages for the mobile app. Tokens match src/design/tokens.ts. */
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(/fonts/SpaceGrotesk_700Bold.ttf) format("truetype"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/Inter_400Regular.ttf) format("truetype"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/Inter_600SemiBold.ttf) format("truetype"); }
:root {
  --bg: #10131c; --surface: #202530; --raised: #2a303d; --text: #f8fafc; --muted: #a1a7b5;
  --primary: #cbfa48; --primary-ink: #10131c; --violet: #8057f5; --violet-text: #b9a5ff;
  --coral: #ff5268; --border: #3a414f; --control-border: #7c8496;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
h1, h2, h3 { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; margin: 0; }
h1 { font-size: 32px; line-height: 38px; }
h2 { font-size: 20px; line-height: 28px; margin-top: 32px; }
p, li { color: var(--muted); }
strong { color: var(--text); }
[hidden] { display: none !important; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.narrow .stores { justify-content: center; }
.narrow .avail { width: 100%; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.top .logo img { height: 56px; width: auto; display: block; margin-left: -6px; }
.top nav { display: flex; align-items: center; gap: 32px; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--primary); }
.top nav a.get:hover { color: var(--primary-ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; content: ""; position: relative; }
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu nav { position: absolute; right: 0; top: 48px; z-index: 5; flex-direction: column; align-items: stretch; gap: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 8px; }
.menu nav a { padding: 12px; border-radius: 12px; }
@media (max-width: 720px) { .top > nav { display: none; } .menu { display: block; } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px/24px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; background: transparent; color: var(--text); border: 1.5px solid var(--violet); }
.button.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.button.get { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); border-radius: 10px; min-height: 44px; padding: 0 20px; font-size: 15px; }
.button.block { display: flex; width: 100%; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 10px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 60px; min-width: 184px; padding: 6px 22px; border-radius: 12px; background: #000; border: 1.5px solid var(--text); color: var(--text); text-decoration: none; }
.store small { font-size: 11px; line-height: 14px; color: var(--text); }
.store b { font: 600 21px/24px Inter, system-ui, sans-serif; letter-spacing: -0.01em; }
.store.primary { border-color: var(--primary); }
.store.pending { cursor: default; }
.avail { margin: 0; width: min(100%, 382px); text-align: center; color: var(--text); font-size: 15px; }

/* Landing: flat blocks, big type, photos as they are. No gradients, glows or shadows. */
body { overflow-x: clip; }
.lp-hero { display: flex; flex-direction: column; padding: 8px 0 40px; }
.lp-photo { position: relative; border-radius: 8px; overflow: hidden; height: clamp(260px, 38vw, 500px); }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.lp-sticker { position: absolute; right: 24px; top: 28px; margin: 0; padding: 10px 18px; background: var(--primary); color: var(--primary-ink); font: 700 clamp(22px, 3vw, 40px)/0.95 "Space Grotesk", sans-serif; letter-spacing: -0.02em; transform: rotate(4deg); }
.lp-tags { position: absolute; left: 20px; top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.lp-tags span { background: var(--bg); color: var(--text); padding: 8px 14px; border-radius: 6px; }
.lp-tags b { background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.lp-hero h1 { position: relative; margin: clamp(-84px, -6.2vw, -24px) 0 0; font-size: clamp(56px, 15.3vw, 196px); line-height: 0.84; letter-spacing: -0.055em; text-transform: uppercase; }
.lp-hero h1 em { font-style: normal; color: var(--primary); }
.lp-intro { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; margin-top: 28px; }
.lp-intro > p { margin: 0; max-width: 26ch; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; color: var(--text); }
.lp-intro > p span { color: var(--muted); }
.lp-intro .stores { margin: 0 0 10px; }
.lp-intro .avail { width: auto; text-align: left; color: var(--muted); }
.lp .store { background: transparent; border: 2px solid var(--text); border-radius: 10px; }
.tiles { display: flex; flex-wrap: wrap; gap: 20px; }
.tile { flex: 1 1 260px; min-width: 0; min-height: 300px; border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.tile h2 { margin: 0; font-size: 34px; line-height: 1; }
.tile p { margin: 0; }
.tile.lime { background: var(--primary); color: var(--primary-ink); justify-content: space-between; }
.tile.lime p { color: var(--primary-ink); margin-top: 8px; }
.tile.lime svg { width: 56px; height: 56px; fill: none; stroke: var(--primary-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile.surface { background: var(--surface); }
.tile.surface p { color: #c9ced9; }
.tile.violet { background: var(--violet); }
.tile.white { background: var(--text); color: var(--bg); justify-content: space-between; }
.tile.white p { color: #4a5060; margin-top: 6px; }
.tile.white p.big { margin: 0; color: var(--bg); font: 700 72px/1 "Space Grotesk", sans-serif; letter-spacing: -0.04em; }
.tile.photo { position: relative; padding: 0; overflow: hidden; }
.tile.photo.wide { flex: 2 1 540px; }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.rows { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 6px; background: var(--bg); color: var(--text); }
.rows b { font-weight: 600; }
.tile.surface .rows b { color: var(--primary); }
.tile.violet .rows li { background: #6a45db; }
.tile.violet .rows li.first { background: var(--text); color: var(--bg); }
.chips { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chips b, .chips span { padding: 10px 14px; border-radius: 6px; background: var(--text); color: var(--bg); font-weight: 600; }
.chips b { background: var(--primary); }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; padding: 56px 0 0; }
.lp-cta > div { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.lp-cta h2 { margin: 0; font-size: clamp(40px, 6vw, 88px); line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; }
.lp-cta p { margin: 0; font-size: 22px; color: #c9ced9; }
.lp-cta .button { border-radius: 10px; min-height: 56px; padding: 0 28px; }
.lp-cta img { flex: 0 1 400px; min-width: 0; width: min(400px, 100%); height: auto; margin: 0 auto; }
.lp-legal { margin: 64px 0 16px; padding: 28px 0; border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); color: var(--text); font: 700 clamp(26px, 3.6vw, 52px)/1.1 "Space Grotesk", sans-serif; letter-spacing: -0.02em; }
.lp-legal span { color: var(--muted); }
.hero.plain { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding: 48px 0 32px; }
.hero.plain h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
.phone-plain { justify-self: center; width: min(400px, 80vw); height: auto; }
@media (max-width: 820px) {
  .hero.plain { grid-template-columns: 1fr; }
  .lp-photo { height: 300px; }
  .lp-photo img { object-position: 42% 30%; }
  .lp-sticker { right: 10px; top: auto; bottom: 44px; font-size: 19px; padding: 8px 12px; }
  .lp-tags { display: none; }
  .store { flex: 1 1 140px; min-width: 0; padding: 6px 16px; }
  .store b { font-size: 19px; }
  .tile { min-height: 240px; }
  .lp-intro > div { flex: 1 1 100%; }
}

/* Sub-pages */
.page { padding: 16px 0 48px; }
.page .lead { font-size: 18px; line-height: 28px; color: var(--text); }
.title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 16px; }
.title svg { flex: none; width: 48px; height: 48px; stroke: var(--violet-text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.title svg.lime { stroke: var(--primary); }
.title svg.coral { stroke: var(--coral); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin: 16px 0; }
.card p { margin: 4px 0; }
.note { font-size: 14px; line-height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
input, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--control-border); background: var(--surface); color: var(--text); font: 400 16px/24px Inter, system-ui, sans-serif; }
textarea { min-height: 96px; resize: vertical; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }
.inline .button { border-color: var(--violet); background: var(--violet); }
.topics details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin: 8px 0; }
.topics summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.topics summary::-webkit-details-marker { display: none; }
.topics summary::after { content: "›"; color: var(--muted); }
.topics details[open] summary::after { transform: rotate(90deg); }
.topics details p { margin: 0; padding: 0 16px 14px; }
.checks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 600; }
.checks.no li::before { content: "×"; background: var(--coral); }
.checks b { display: block; color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 32px 0 48px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 24px; align-items: start; }
.foot img { height: 60px; width: auto; margin-left: -6px; }
.foot h3 { font: 600 14px/20px Inter, sans-serif; margin: 0 0 8px; }
.foot a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--text); }
.studio { margin-top: 24px; color: var(--muted); }
.studio a { color: var(--text); }
.legal { margin-top: 24px; }
.studio + .legal { margin-top: 8px; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: no-preference) { .button, .store { transition: opacity 120ms; } .button:hover, .store:hover { opacity: 0.85; } }

/* Status */
.status-banner.up { border-color: var(--primary); }
.status-banner.down { border-color: var(--coral); }
.services { list-style: none; margin: 16px 0; padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.services li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--text); font-weight: 600; }
.services li + li { border-top: 1px solid var(--border); }
.services li span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--control-border); }
.services li.up span::before { background: var(--primary); }
.services li.down span::before { background: var(--coral); }
.services b { font-weight: 400; color: var(--muted); }
.services li.up b { color: var(--primary); }
.services li.down b { color: var(--coral); }
