@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/fonts/nunito-400.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(/fonts/nunito-700.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/nunito-800.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(/fonts/nunito-900.woff2) format("woff2"); }

:root {
  /* Brand colors from the app (app/lib/core/theme/app_theme.dart) */
  --violet: #5b3df5;
  --violet-deep: #2a1b7a;
  --amber: #ffb020;
  --teal: #12b5a6;

  --bg: #ffffff;
  --bg-alt: #f5f3ff;
  --text: #1c1838;
  --muted: #5d5a78;
  --line: #e6e2fb;
  --card: #ffffff;
  --shadow: 0 30px 60px -20px rgba(42, 27, 122, 0.35);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12101f;
    --bg-alt: #1a1730;
    --text: #f1efff;
    --muted: #b4b0d0;
    --line: #2d2950;
    --card: #1e1a36;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 900; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
[hidden] { display: none !important; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.2rem; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: none; gap: 24px; margin-left: auto; font-weight: 700; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--violet); }
@media (min-width: 820px) { .nav { display: flex; } }
.langs { display: flex; gap: 4px; margin-left: auto; }
.nav + .langs { margin-left: 8px; }
.langs a, .langs button {
  font: inherit; font-size: 0.85rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
  background: none; color: var(--muted); text-decoration: none; cursor: pointer;
}
.langs .active { color: var(--violet); border-color: var(--line); background: var(--bg-alt); }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(91, 61, 245, 0.25), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(18, 181, 166, 0.15), transparent 60%);
  overflow: hidden;
}
.hero-inner { display: grid; gap: 48px; padding: 56px 16px 72px; align-items: center; }
@media (min-width: 720px) { .hero-inner { padding: 72px 32px 96px; } }
@media (min-width: 920px) { .hero-inner { grid-template-columns: 1.1fr 0.9fr; } }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line);
  color: var(--violet); font-weight: 800; font-size: 0.9rem;
}
@media (prefers-color-scheme: dark) { .pill { color: #b9a9ff; } }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-phones { position: relative; height: 520px; max-width: 440px; width: 100%; margin: 0 auto; }
.hero-phones .phone { position: absolute; width: 230px; }
.hero-phones .phone-front { left: 0; top: 0; z-index: 2; }
.hero-phones .phone-back { right: 0; top: 60px; transform: rotate(5deg); opacity: 0.95; }
@media (min-width: 480px) { .hero-phones .phone { width: 250px; } .hero-phones { height: 580px; } }

/* Phone frame */
.phone {
  margin: 0; padding: 8px; border-radius: 36px;
  background: #0d0b1a; box-shadow: var(--shadow);
  width: 100%; max-width: 280px;
}
.phone img { border-radius: 28px; width: 100%; }
@media (prefers-color-scheme: dark) { .phone { box-shadow: 0 0 0 1px #3a3560, var(--shadow); } }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 170px; padding: 10px 20px; border-radius: 14px;
  background: var(--text); color: var(--bg); text-decoration: none; line-height: 1.2;
  transition: transform 0.15s ease;
}
.store:hover { transform: translateY(-2px); }
.store small { font-size: 0.75rem; font-weight: 700; opacity: 0.8; }
.store strong { font-size: 1.15rem; font-weight: 900; }
.store-off { background: transparent; color: var(--muted); border: 2px dashed var(--line); cursor: default; }
.store-off:hover { transform: none; }
.soon { color: var(--muted); font-size: 0.95rem; font-weight: 700; }

/* Steps */
.steps { padding: 80px 0; }
.step-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .step-list { grid-template-columns: repeat(3, 1fr); } }
.step-list li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.step-list p { color: var(--muted); margin: 0; }
.step-no {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 12px; background: var(--violet); color: #fff; font-weight: 900;
}

/* Feature rows */
.feature { padding: 72px 0; }
.feature-alt { background: var(--bg-alt); }
.feature-inner { display: grid; gap: 40px; align-items: center; justify-items: center; }
.feature-copy { max-width: 520px; }
.feature-copy p:not(.kicker) { color: var(--muted); font-size: 1.1rem; }
.feature .phone { max-width: 260px; }
@media (min-width: 820px) {
  .feature-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-inner.reverse .feature-copy { order: 2; }
  .feature-inner .feature-copy { justify-self: start; }
  .feature-inner.reverse .feature-copy { justify-self: end; }
}
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 900; font-size: 0.85rem; color: var(--violet); margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { .kicker { color: #a996ff; } }
.feature-dark {
  background: linear-gradient(135deg, var(--violet-deep), var(--violet));
  color: #fff;
}
.feature-dark .kicker { color: var(--amber); }
.feature-dark .feature-copy p:not(.kicker) { color: rgba(255, 255, 255, 0.85); }

/* Extras */
.extras { padding: 80px 0; }
.extras-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .extras-grid { grid-template-columns: repeat(3, 1fr); } }
.extra { border-top: 4px solid var(--teal); padding-top: 20px; }
.extra:nth-child(2) { border-color: var(--amber); }
.extra:nth-child(3) { border-color: var(--violet); }
.extra p { color: var(--muted); margin: 0; }

/* Call to action */
.cta { padding: 0 0 88px; }
.cta-inner {
  text-align: center; padding: 56px 24px; border-radius: 32px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep)); color: #fff;
}
.cta-inner p { color: rgba(255, 255, 255, 0.85); }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: var(--violet-deep); }
.cta .store-off { background: transparent; color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.4); }
.cta .soon { color: rgba(255, 255, 255, 0.8); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer .langs { margin-left: 0; }

/* Invite page */
.invite { min-height: calc(100vh - 65px); display: grid; place-items: center; padding: 40px 16px; }
.invite-card {
  width: 100%; max-width: 460px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 36px 24px; box-shadow: var(--shadow);
}
.invite-card h1 { font-size: 1.9rem; }
.invite-card > p { color: var(--muted); }
.invite-icon { margin: 0 auto 20px; border-radius: 20px; }
.invite-label { margin: 24px 0 4px !important; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.invite-code {
  font-size: 2rem; font-weight: 900; letter-spacing: 0.12em; color: var(--text) !important;
  background: var(--bg-alt); border-radius: 16px; padding: 10px; word-break: break-all;
}
.button {
  display: block; padding: 14px 20px; border-radius: 16px; margin: 20px 0;
  background: var(--violet); color: #fff; font-weight: 900; text-decoration: none;
}
.button:hover { background: #4a2fe0; }
.invite-help { font-size: 0.95rem; }
.invite .stores { justify-content: center; margin-top: 16px; }
.invite-more { display: inline-block; margin-top: 12px; font-weight: 800; color: var(--violet); }
