/* Nawelni website: one stylesheet for every page. No build step, no external requests. */

/* Brand: the app icon's royal blue, and the orange of its shopping bag. */
:root {
  --bg: #f6f8ff;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --text: #0d1433;
  --muted: #586078;
  --line: #e2e7f6;
  --brand: #1230d1;
  --brand-text: #1230d1;
  --on-brand: #ffffff;
  --ink: #061a7a;
  --hero: radial-gradient(1000px 600px at 85% -10%, rgb(40 90 255 / 0.55), transparent 60%),
    radial-gradient(700px 500px at 105% 105%, rgb(255 138 31 / 0.28), transparent 60%),
    linear-gradient(160deg, #0a2fbf 0%, #061a7a 55%, #04104f 100%);
  --gradient: linear-gradient(115deg, #ffa41c 0%, #ff7a1a 50%, #f2531c 100%);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060b22;
    --surface: #0d1536;
    --surface-2: #131d47;
    --text: #eef1ff;
    --muted: #a3abc9;
    --line: #1f2a58;
    --brand: #3d5cff;
    --brand-text: #93a6ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.site-header .container { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: rgb(255 255 255 / 0.78); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; }
.site-header .btn { margin-left: auto; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}

/* ── Buttons and store badges ───────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
}
.btn-gradient { background: var(--gradient); color: #fff; font-weight: 700; text-shadow: 0 1px 1px rgb(150 50 0 / 0.35); box-shadow: 0 8px 24px -8px rgb(255 110 20 / 0.65); }
.btn-gradient:hover { filter: brightness(1.06); }
.btn-ghost { color: #fff; border: 1px solid rgb(255 255 255 / 0.28); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 170px; padding: 9px 18px 9px 14px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgb(255 255 255 / 0.22);
}
.badge:hover { background: #0b1230; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.15; }
.badge small { font-size: 11px; opacity: 0.85; }
.badge strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.badge[aria-disabled="true"] { opacity: 0.6; cursor: default; }

/* Which phone the visitor has (set by app.js): show only what fits it. */
html[data-platform="android"] [data-store="ios"],
html[data-platform="ios"] [data-store="android"],
html[data-platform="desktop"] .mobile-only { display: none; }
html:not([data-platform="desktop"]) .desktop-only { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  background: var(--hero);
  color: #fff;
  padding: 56px 0 72px;
}
.hero .container { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 104px; }
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14); color: rgb(255 255 255 / 0.9);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 4px rgb(62 224 143 / 0.2); }
.hero h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 800; margin: 20px 0 16px; letter-spacing: -0.025em; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: rgb(255 255 255 / 0.78); max-width: 34em; }
.hero-actions { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.hero-actions .hint { font-size: 14px; color: rgb(255 255 255 / 0.6); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; color: rgb(255 255 255 / 0.7); font-size: 14px; }
.hero-stats strong { display: block; color: #fff; font-size: 22px; }

/* A phone drawn in CSS around a real screen of the app, with the icon's speed lines. */
.phone-wrap { position: relative; display: flex; justify-content: center; }
@media (min-width: 1100px) {
  .phone-wrap::before {
    content: ""; position: absolute; left: calc(50% - 250px); top: 40%;
    width: 96px; height: 16px; border-radius: 999px; background: rgb(255 255 255 / 0.9);
    box-shadow: -34px 34px 0 rgb(255 255 255 / 0.55), -6px 68px 0 rgb(255 255 255 / 0.3);
  }
}
.phone {
  width: 280px; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1d2a66, #050a26);
  box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.7), inset 0 0 0 1px rgb(255 255 255 / 0.12);
  transform: rotate(-3deg);
}
/* The top strip stands in for the phone's status bar (cut from the screenshot). */
.screen { height: 100%; border-radius: 34px; background: #ffffff; overflow: hidden; padding-top: 20px; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .kicker { color: var(--brand-text); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 12px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-text); margin-bottom: 16px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* Real app screens: a row that scrolls sideways on phones, four columns on wide screens. */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62%); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  margin: 0 -16px; padding: 0 16px 12px;
}
@media (min-width: 720px) { .shots { grid-auto-columns: minmax(220px, 38%); margin: 0 -24px; padding: 0 24px 12px; scroll-padding: 0 24px; } }
@media (min-width: 980px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }
.shot { margin: 0; scroll-snap-align: start; }
.shot img {
  width: 100%; height: auto; border-radius: 26px; border: 6px solid #0d1433; background: #fff;
  box-shadow: 0 24px 48px -28px rgb(6 26 122 / 0.6);
}
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.shot figcaption b { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }

/* Stores already in the app. */
.stores { display: grid; gap: 16px; }
@media (min-width: 820px) { .stores { grid-template-columns: repeat(3, 1fr); } }
.store { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.store-head { display: flex; gap: 12px; align-items: center; }
.store-head h3 { font-size: 19px; }
.store-head small { color: var(--muted); font-size: 14px; }
.store-avatar {
  width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--gradient); color: #fff; font-weight: 800; font-size: 20px;
}
.store p { color: var(--muted); }
.store .store-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text); font-size: 14px; font-weight: 600; }
.store .store-meta:empty { display: none; }
.rating { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; }
.rating svg { width: 16px; height: 16px; color: #f5a400; }
.tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--brand-text); }

.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  background: var(--gradient); color: #fff; font-weight: 800;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); }

.download {
  border-radius: 28px; padding: 40px 24px; color: #fff; overflow: hidden;
  background: var(--hero);
  display: grid; gap: 32px; align-items: center;
}
@media (min-width: 820px) { .download { grid-template-columns: 1fr auto; padding: 56px; } }
.download h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.download p { color: rgb(255 255 255 / 0.78); margin: 12px 0 24px; font-size: 18px; }
.download .actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.qr { background: #fff; border-radius: 20px; padding: 14px; text-align: center; color: #0d1433; width: 200px; }
.qr img { width: 172px; height: 172px; }
.qr small { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; }

.partners { display: grid; gap: 16px; }
@media (min-width: 820px) { .partners { grid-template-columns: 1fr 1fr; } }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.partner h3 { font-size: 21px; margin-bottom: 8px; }
.partner p { color: var(--muted); margin-bottom: 16px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 15px; }
.site-footer .container { display: grid; gap: 24px; }
@media (min-width: 820px) { .site-footer .container { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer .brand { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── Legal pages ────────────────────────────────────────────────────────── */

.page-hero { background: var(--hero); color: #fff; padding: 48px 0 40px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.page-hero p { color: rgb(255 255 255 / 0.72); margin-top: 10px; }

.legal { max-width: 760px; padding: 40px 16px 72px; }
@media (min-width: 720px) { .legal { padding: 48px 24px 88px; } }
.legal h2 { font-size: 22px; margin: 40px 0 12px; scroll-margin-top: 80px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin: 6px 0; }
.legal .muted { color: var(--muted); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 8px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; columns: 2 220px; column-gap: 32px; }
.toc a { text-decoration: none; }

.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; background: var(--surface-2); }

.cards-2 { display: grid; gap: 16px; margin: 20px 0 8px; }
@media (min-width: 720px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card ol { margin-bottom: 0; }
.card .btn { margin-top: 8px; }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { filter: brightness(1.08); }

/* ── 404 ────────────────────────────────────────────────────────────────── */

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.not-found h1 { font-size: 48px; font-weight: 800; }
.not-found p { color: var(--muted); margin: 12px 0 24px; }
