/*
 * swapvideo.app: the app's look ("Mono + lime, Elevated", apps/mobile/theme/tokens.ts): charcoal ground, lime accent,
 * Outfit, no borders (depth from surface tones and shadows), bold upper-case headlines as on the store artwork.
 */
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Outfit_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("/assets/fonts/Outfit_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Outfit_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Outfit_700Bold.ttf") format("truetype"); }

:root {
  --ground: #10130F;
  --surface: #202614;
  --surface-raised: #2E3620;
  --surface-inset: #0B0D0A;
  --sheet: #171B12;
  --separator: #2A3120;
  --text: #F5F5EF;
  --text-body: rgba(245, 245, 239, 0.72);
  --text-secondary: #A9ADA5;
  --text-tertiary: rgba(245, 245, 239, 0.5);
  --accent: #CBF542;
  --on-accent: #10130F;
  --glow: rgba(203, 245, 66, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-small: 16px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }
.lime { color: var(--accent); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; font-weight: 600; z-index: 20; }
.skip:focus { left: 12px; }

/* ---- Top bar ---- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(16, 19, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 40px; object-fit: contain; }
.top-nav { display: none; gap: 28px; margin-left: auto; }
.top-nav a { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 16px; }
.top-nav a:hover { color: var(--text); }
.top .btn { margin-left: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 28px rgba(203, 245, 66, 0.22); }
.btn-accent:hover { transform: translateY(-1px); background: #D6FA5E; }
.btn-accent:active { transform: translateY(0); }
.btn-quiet { background: var(--surface); color: var(--text); }
.btn-quiet:hover { background: var(--surface-raised); }
.btn-soon { background: var(--surface-inset); color: var(--text-tertiary); cursor: default; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn-block { display: flex; width: 100%; }

/* ---- Type ---- */
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
h1, h2 { font-weight: 700; text-transform: uppercase; letter-spacing: -0.015em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(40px, 9.5vw, 76px); }
h2 { font-size: clamp(30px, 6.4vw, 52px); }
h3 { font-weight: 600; font-size: 22px; line-height: 1.2; }
.lead { color: var(--text-body); font-size: clamp(18px, 2.2vw, 21px); max-width: 34em; margin-top: 22px; }
.section-lead { color: var(--text-body); font-size: 19px; margin-top: 14px; max-width: 36em; }

/* ---- Hero ---- */
.hero { position: relative; padding: 36px 0 12px; }
.hero::before {
  content: ""; position: absolute; inset: -68px 0 auto 0; height: 560px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, var(--glow), rgba(203, 245, 66, 0) 70%);
}
.hero-grid { position: relative; display: grid; gap: 12px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 34px; max-width: 460px; }
.facts li { background: var(--surface); border-radius: var(--radius-small); padding: 12px 14px; box-shadow: var(--shadow); }
.facts strong { display: block; font-weight: 700; font-size: clamp(18px, 5.2vw, 22px); color: var(--accent); line-height: 1.15; }
.facts span { display: block; color: var(--text-secondary); font-size: 13px; line-height: 1.3; margin-top: 2px; }
.hero-art { position: relative; margin: 8px calc(var(--gutter) * -1) 0; }
.hero-art img {
  width: 100%; max-width: 620px; margin: 0 auto;
  /* The artwork melts into the ground on every side (no hard picture edge at any width). */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

/* ---- Sections ---- */
.section { padding: 72px 0 0; scroll-margin-top: 60px; }

/* ---- Variants ---- */
.variants { display: grid; gap: 16px; margin-top: 34px; }
.variant { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.variant-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; min-height: 52px; }
.chip { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-raised); color: var(--accent); }
.tag { background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.variant p { color: var(--text-body); margin: 8px 0 22px; flex: 1; }

/* ---- Modes ---- */
.modes { display: grid; gap: 16px; margin-top: 34px; }
.mode { background: var(--surface); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.mode-no { display: block; color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; margin-bottom: 14px; }
.mode p { color: var(--text-body); margin-top: 10px; }
.needs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.needs span { background: var(--surface-inset); color: var(--text-secondary); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }

/* ---- Gallery ---- */
.gallery {
  display: flex; gap: 16px; margin-top: 40px; padding: 4px var(--gutter) 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 auto; width: min(68vw, 290px); border-radius: var(--radius); scroll-snap-align: start; box-shadow: var(--shadow); background: var(--surface-inset); }

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; gap: 16px; margin-top: 34px; }
.steps li { counter-increment: step; position: relative; background: var(--sheet); border-radius: var(--radius); padding: 24px 24px 24px 84px; }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 22px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 20px;
}
.steps p { color: var(--text-body); margin-top: 6px; }

.credits { margin-top: 16px; background: var(--surface); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: grid; gap: 22px; }
.credits p { color: var(--text-body); margin-top: 10px; max-width: 40em; }
.credits ul { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.credits li { background: var(--surface-raised); color: var(--text); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.credits li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }

/* ---- Questions ---- */
details { background: var(--surface); border-radius: var(--radius-small); margin-top: 12px; box-shadow: var(--shadow); }
details:first-of-type { margin-top: 30px; }
summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 19px; position: relative; border-radius: var(--radius-small); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 28px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-body); padding: 0 22px 22px; }

/* ---- Closing and footer ---- */
.closing { position: relative; text-align: center; padding: 96px 0 88px; margin-top: 72px; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 420px; pointer-events: none;
  background: radial-gradient(55% 100% at 50% 100%, var(--glow), rgba(203, 245, 66, 0) 70%);
}
.closing .wrap { position: relative; display: grid; justify-items: center; gap: 26px; }
.closing img { width: 72px; height: 84px; object-fit: contain; }

.foot { background: var(--surface-inset); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); color: var(--text-tertiary); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--text-secondary); text-decoration: none; }
.langs a[aria-current="page"] { color: var(--text); font-weight: 600; }
.foot a:hover { color: var(--text); }

/* ---- Wider screens ---- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .variants { grid-template-columns: repeat(2, 1fr); }
  .gallery img { width: 300px; }
}
/* Very wide screens: the page keeps its column, the type stops growing. */
@media (min-width: 1500px) {
  .wrap { max-width: 1240px; }
}
@media (min-width: 900px) {
  .top-nav { display: flex; }
  .top .btn { margin-left: 0; }
  .hero { padding: 56px 0 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 24px; }
  .hero-art { margin: 0 -40px 0 0; }
  .section { padding-top: 104px; }
  .variants { grid-template-columns: repeat(4, 1fr); }
  .modes, .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 84px 24px 26px; }
  .credits { grid-template-columns: 1.5fr 1fr; align-items: center; padding: 34px; }
  .gallery { justify-content: center; }
  .gallery img { width: min(19vw, 216px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
