@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(/fonts/Outfit_400Regular.ttf) format('truetype'); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(/fonts/Outfit_600SemiBold.ttf) format('truetype'); }
@font-face { font-family: Outfit; font-weight: 700; font-display: swap; src: url(/fonts/Outfit_700Bold.ttf) format('truetype'); }

:root {
  --bone: #e6dfcf;
  --text: #f6f6ee;
  --muted: #a0a09c;
  --bg: #000;
  --card: #111;
  --card-2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.09);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.9, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 Outfit, system-ui, sans-serif; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 20px; }
.narrow { width: min(760px, 100%); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 8px 14px; border-radius: 10px; background: var(--bone); color: #000; }
.skip:focus { top: 12px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease-out); }
.nav.is-stuck { border-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; color: var(--bone); }
.brand img { border-radius: 8px; }
.nav-links { display: none; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color 0.2s var(--ease-out); }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang { display: grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); border: 1px solid var(--line); transition: color 0.2s var(--ease-out); }
.lang:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border-radius: 10px; background: var(--bone); color: #000; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn.is-soon { background: var(--card-2); color: var(--bone); border: 1px solid var(--line); }

/* Hero */
.hero { padding-block: 64px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pill { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--bone); font-size: 14px; font-weight: 600; }
h1 { font-size: clamp(38px, 8vw, 72px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; color: var(--bone); max-width: 14em; }
.lead { max-width: 34em; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px; border-radius: 14px; background: var(--bone); color: #000; text-decoration: none; text-align: left; }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: grid; line-height: 1.2; }
.store small { font-size: 12px; opacity: 0.7; }
.store b { font-size: 16px; font-weight: 600; }
.store.is-soon { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.hero-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 900px; margin-top: 28px; }
.hero-cards .char:nth-child(1) { transform: translateY(14px) rotate(-2deg); }
.hero-cards .char:nth-child(3) { transform: translateY(14px) rotate(2deg); }

/* Character card (same art as the app) */
.char { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 0 0 1px rgba(230, 223, 207, 0.03), 0 24px 60px rgba(0, 0, 0, 0.6); }
.char-art { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card-2); }
.char-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.char figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 4px 4px; min-width: 0; text-align: left; }
.char figcaption img { width: 32px; height: 32px; flex: none; }
.char figcaption span { display: grid; min-width: 0; line-height: 1.25; }
.char figcaption b { font-size: 15px; font-weight: 600; color: var(--bone); }
.char figcaption small { font-size: 13px; color: var(--muted); }

.strip { padding: 22px 20px; margin-top: 32px; border-block: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; }

/* Sections */
.section { padding-block: 72px; }
.head { display: grid; gap: 12px; max-width: 40em; margin-bottom: 36px; }
.label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; }
h2 { font-size: clamp(28px, 5vw, 44px); line-height: 1.14; letter-spacing: -0.02em; font-weight: 600; color: var(--bone); }
.head p:not(.label) { color: var(--muted); }

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.paths .char:last-child { grid-column: 1 / -1; max-width: calc(50% - 6px); justify-self: center; width: 100%; }

.steps { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--card-2); color: var(--bone); font-size: 15px; font-weight: 600; }
.steps b { color: var(--text); font-weight: 600; }

.screens { display: flex; gap: 12px; margin-top: 24px; margin-inline: -20px; padding-inline: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screens img { flex: 0 0 62%; min-width: 0; border-radius: 16px; border: 1px solid var(--line); scroll-snap-align: center; }

.features { display: grid; gap: 12px; }
.feature { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; }
.feature svg { width: 26px; height: 26px; fill: none; stroke: var(--bone); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.feature h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.feature p { color: var(--muted); font-size: 16px; }

/* FAQ: opens with ease-out, closes with ease-in */
.faq { display: grid; gap: 10px; }
.qa { border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.qa h3 { font-size: 17px; font-weight: 600; }
.qa button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 14px 18px; background: none; border: 0; cursor: pointer; text-align: left; font-weight: 600; }
.qa svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--bone); stroke-width: 1.8; stroke-linecap: round; transition: transform 0.22s var(--ease-in); }
.qa-panel { display: grid; grid-template-rows: 1fr; }
.qa-panel > div { overflow: hidden; }
.qa-panel p { padding: 0 18px 18px; color: var(--muted); }
.js .qa-panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.22s var(--ease-in), visibility 0s linear 0.22s; }
.js .qa.is-open .qa-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.36s var(--ease-out), visibility 0s; }
.qa.is-open svg { transform: rotate(45deg); transition: transform 0.36s var(--ease-out); }

.cta { display: grid; justify-items: center; gap: 14px; padding: 56px 20px; border-radius: 24px; text-align: center; background: var(--card); border: 1px solid var(--line); }
.cta p { color: var(--muted); }
.cta .stores { margin-top: 8px; }

/* Documents */
.doc { padding-block: 56px 88px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); margin: 8px 0 28px; }
.doc h2 { font-size: 24px; letter-spacing: -0.01em; margin: 36px 0 12px; }
.doc h3 { font-size: 19px; font-weight: 600; color: var(--bone); margin: 26px 0 8px; line-height: 1.35; }
.doc h4 { font-size: 17px; margin: 20px 0 6px; }
.doc p, .doc li { color: #c9c9c4; }
.doc p, .doc ul, .doc ol { margin-bottom: 14px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--bone); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.table { overflow-x: auto; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; }
.table table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #c9c9c4; }
.table th { color: var(--text); font-weight: 600; background: var(--card); }
.table tr:last-child td { border-bottom: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 48px 28px; }
.footer-grid { display: grid; gap: 32px; }
.footer p { color: var(--muted); margin-top: 12px; }
.footer h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: 10px; }
.footer-grid a:not(.brand) { display: block; padding-block: 5px; color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease-out); }
.footer-grid a:not(.brand):hover { color: var(--text); }
.footer-legal { margin-top: 32px; color: var(--muted); font-size: 14px; }

/* Scroll reveal: only with JavaScript, so nothing stays hidden without it */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { grid-template-columns: 1fr; row-gap: 12px; align-content: start; }
  .steps li::before { grid-row: auto; }
  .screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; }
  .paths { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .paths .char:last-child { grid-column: auto; max-width: none; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 940px) {
  .nav-links { display: flex; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding-top: 88px; }
}
@media (max-width: 480px) {
  .hero-cards { gap: 6px; }
  .hero-cards .char { padding: 5px; border-radius: 12px; }
  .hero-cards .char-art { border-radius: 8px; }
  .hero-cards figcaption { padding: 6px 2px 2px; gap: 4px; }
  .hero-cards figcaption img { width: 20px; height: 20px; }
  .hero-cards figcaption b { font-size: 12px; }
  .hero-cards figcaption small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
