/* Deiii — presentation site. Same tokens as the app (deiii_colors.dart). */
/* Fonts are served by this site (no Google Fonts: visitors' IPs stay here).
   Sora for headings; the system UI font for text. */
@font-face {
  font-family: Sora;
  src: url("/assets/fonts/Sora-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}
:root {
  --ink: #141416;
  --bg: #0e0e10;
  --surface-1: #17171a;
  --surface-2: #1f1f23;
  --surface-3: #2a2a2f;
  --amber: #ffc233;
  --amber-soft: rgba(255, 194, 51, .15);
  --bone: #f5f3ee;
  --text-2: #a9a7a2;
  --text-3: #6f6d69;
  --stroke: rgba(255, 255, 255, .08);
  --stroke-strong: rgba(255, 255, 255, .16);
  --radius: 28px;
  --gutter: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font: 400 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: Sora, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); background: rgba(14, 14, 16, .72); border-bottom: 1px solid var(--stroke); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav__brand img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--text-2); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--bone); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--stroke); }
.lang button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background .25s var(--ease), color .25s; }
.lang button[aria-pressed="true"] { background: var(--amber); color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 96px; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(255, 194, 51, .14), transparent); z-index: -1; pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--amber); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.hero__title { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; font-weight: 700; }
.hero__lead { color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); margin-top: 22px; max-width: 34ch; }
.note { color: var(--text-3); font-size: 14px; margin-top: 14px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores--center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 16px; background: var(--bone); color: var(--ink); transition: transform .25s var(--spring), box-shadow .25s; box-shadow: 0 0 0 0 rgba(255, 194, 51, 0); }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(255, 194, 51, .45); }
.store:active { transform: scale(.97); }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; font: 600 18px/1.1 Sora, sans-serif; }
.store small { font: 500 11px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; opacity: .7; }

.hero__card-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__card { border: 0; padding: 0; background: none; cursor: pointer; width: min(440px, 100%); border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px var(--stroke-strong); transition: transform .4s var(--ease); }
.hero__card:hover { transform: translateY(-4px) rotate(-.4deg); }
.hero__card svg { width: 100%; height: auto; border-radius: var(--radius); }
.hint { color: var(--text-3); font-size: 13px; }

.card-title { font: 600 24px Sora, sans-serif; fill: var(--bone); }
.card-head, .stat { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transform-box: fill-box; }
.stat { transition-delay: calc(var(--i) * .22s); }
.stat__label { font: 600 13px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .1em; fill: rgba(245, 243, 238, .7); text-anchor: middle; }
.stat__value { font: 700 36px Sora, sans-serif; fill: var(--bone); text-anchor: middle; font-variant-numeric: tabular-nums; }
.stat__unit { font-size: 17px; fill: rgba(245, 243, 238, .7); font-weight: 600; }
#morph.is-stats .stat, #morph.is-stats .card-head { opacity: 1; transform: none; }

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: linear-gradient(180deg, transparent, var(--surface-1) 20%, var(--surface-1) 80%, transparent); }
.section__title { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 700; max-width: 22ch; }
.section__lead { color: var(--text-2); margin-top: 14px; max-width: 52ch; font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature { background: var(--surface-1); border: 1px solid var(--stroke); border-radius: 24px; padding: 28px; transition: border-color .3s, transform .4s var(--ease); }
.feature:hover { border-color: rgba(255, 194, 51, .4); transform: translateY(-3px); }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--amber-soft); margin-bottom: 20px; }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15.5px; }

.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; align-items: start; }
.phone { margin: 0; text-align: center; }
.phone img { width: 100%; height: auto; aspect-ratio: 540 / 1168; border-radius: 34px; border: 6px solid #232327; background: var(--surface-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.phone--lift { margin-top: 48px; }
.phone figcaption { color: var(--text-2); font-size: 14px; margin-top: 14px; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px; border-radius: 24px; border: 1px solid var(--stroke); background: linear-gradient(180deg, var(--surface-1), transparent); }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--ink); font: 700 18px Sora, sans-serif; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 15.5px; }

.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta .section__title { max-width: none; }
.cta__mark { margin-bottom: 24px; width: 64px; height: auto; }

.footer { border-top: 1px solid var(--stroke); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 20px; color: var(--text-2); font-size: 14px; }
.footer__links a:hover { color: var(--bone); }
.footer__copy { margin-left: auto; color: var(--text-3); font-size: 13px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.features .reveal:nth-child(3n + 2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(3n + 3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.phones .reveal:nth-child(2) { transition-delay: .08s; }
.phones .reveal:nth-child(3) { transition-delay: .16s; }
.phones .reveal:nth-child(4) { transition-delay: .24s; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .stores { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .phones { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .phones { gap: 14px; }
  .phone img { border-radius: 24px; border-width: 4px; }
  .phone--lift { margin-top: 28px; }
  .section { padding: 72px 0; }
  .footer__copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Legal pages */
.legal { max-width: 760px; padding: 56px 0 96px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 10px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--bone); }
.legal__same { color: var(--text-3); font-size: 14px; margin-top: 10px; }
.legal__meta { color: var(--text-2); font-size: 14px; margin: 14px 0 4px; line-height: 1.7; }
.legal__eula { margin-top: 72px; font-size: clamp(24px, 4vw, 32px); }
.legal h3 { font-size: 17px; margin: 22px 0 8px; color: var(--bone); }
.legal a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* Live location + Vambaza invite pages */
.share { max-width: 640px; padding: 56px 0 96px; }
.share h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.08; }
.share__sport { color: var(--amber); font-weight: 600; margin-top: 8px; min-height: 1.5em; }
.share__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.share__stats > div, .share__card { background: var(--surface-1); border: 1px solid var(--stroke); border-radius: 20px; padding: 16px; }
.share__stats dt, .share__label { color: var(--text-3); font-size: 13px; margin: 0; }
.share__stats dd { margin: 4px 0 0; font: 700 24px Sora, sans-serif; font-variant-numeric: tabular-nums; }
.share__card { margin: 28px 0; padding: 24px; }
.share__when { font: 600 22px Sora, sans-serif; text-transform: capitalize; }
.share__label { margin-top: 18px; }
.share__where { font-weight: 600; }
.share__message { margin-top: 14px; color: var(--text-2); font-style: italic; }
.share__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.share .btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 999px; background: var(--amber); color: var(--ink); font-weight: 600; transition: transform .25s var(--spring); }
.share .btn:active { transform: scale(.97); }
.share .btn--ghost { background: var(--amber-soft); color: var(--amber); }
.share .note { margin-top: 24px; }
.share__more { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; display: inline-block; margin-top: 18px; }
@media (max-width: 560px) { .share__stats { grid-template-columns: 1fr; } }

[data-push] { margin-left: auto; }
