/* Flexmap — flexmap.app
   Direction A "Night Poster": the app's own near-black ground, the cards are the only color. */

:root {
  --ground: #0B0B0F;
  --surface: #17171D;
  --surface-2: #1F1F27;
  --line: rgba(255, 255, 255, 0.10);
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.50);
  --cta: #EDF0F6;
  --cta-ink: #0B0B0F;
  --glow: rgba(255, 138, 0, 0.22);
  --display: "Saira Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-card: 22px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text-2); }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.005em; text-wrap: balance; }
h2 { font-size: clamp(40px, 5.2vw, 64px); }
h3 { font-size: clamp(26px, 2.4vw, 30px); font-weight: 700; line-height: 1; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--cta); color: var(--cta-ink); padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: var(--radius-pill); font-weight: 700; font-size: 17px; white-space: nowrap; }
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: #FFFFFF; color: var(--cta-ink); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.18); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--text); }
.btn-small { height: 42px; padding: 0 18px; font-size: 15px; }
.btn svg { flex-shrink: 0; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links .link { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 0; }
.hero-glow { position: absolute; left: 50%; top: 10%; width: min(900px, 120vw); aspect-ratio: 1; transform: translateX(-30%); border-radius: 50%; background: radial-gradient(closest-side, var(--glow), rgba(255, 138, 0, 0) 70%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 620px; }
.hero h1 { font-size: clamp(56px, 8.4vw, 118px); }
.hero .lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero .note { font-size: 14px; color: var(--text-3); }

.fan { position: relative; height: clamp(440px, 52vw, 720px); }
.fan > * { position: absolute; top: 50%; left: 50%; border-radius: var(--radius-card); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.fan .back-left { width: 42%; transform: translate(-108%, -46%) rotate(-9deg); }
.fan .back-right { width: 42%; transform: translate(8%, -46%) rotate(9deg); }
.fan .front { width: 50%; transform: translate(-50%, -50%); overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 90px var(--glow); background: #101418; }
.fan .front video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.video-toggle { position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(11, 11, 15, 0.72); color: var(--text); font: 600 12px/1 var(--body); cursor: pointer; }
.video-toggle:hover { background: rgba(11, 11, 15, 0.9); }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .fan { height: clamp(380px, 96vw, 560px); margin-top: 8px; }
  .fan .back-left { width: 40%; transform: translate(-118%, -44%) rotate(-9deg); }
  .fan .back-right { width: 40%; transform: translate(18%, -44%) rotate(9deg); }
  .fan .front { width: 48%; }
}

/* Proof strip */
.strip { padding: clamp(48px, 7vw, 96px) 0 0; }
.strip-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; }
.strip-row::-webkit-scrollbar { display: none; }
.strip-row img { flex: 0 0 auto; width: clamp(150px, 15vw, 190px); border-radius: 16px; scroll-snap-align: start; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); }
.strip p { color: var(--text-3); font-size: 15px; }

/* Features */
.features { padding: clamp(48px, 7vw, 96px) 0 0; display: flex; flex-direction: column; gap: clamp(56px, 8vw, 128px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.feature-copy p { color: var(--text-2); font-size: clamp(16px, 1.2vw, 18px); }
.feature-copy .sub { color: var(--text); font-weight: 600; }
.feature-media { display: flex; gap: 20px; align-items: flex-end; justify-content: center; }
.feature-media img { border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.feature-media .card { width: min(46%, 240px); }
.feature-media .card.lift { margin-bottom: 44px; }
.feature-media .screen { width: min(58%, 300px); border-radius: 28px; }
.feature-media .square { width: min(60%, 320px); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .feature-copy { max-width: none; }
}

/* How it works */
.how { padding: clamp(64px, 9vw, 128px) 0 0; }
.how h2 { margin-bottom: 12px; }
.how .kicker { color: var(--text-2); font-size: 18px; margin-bottom: clamp(28px, 4vw, 48px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--surface); border-radius: 20px; padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--text-3); }
.steps h3 { text-transform: none; font-family: var(--body); font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.steps p { color: var(--text-2); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.madefor { padding: clamp(48px, 6vw, 80px) 0 0; }
.madefor p { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; max-width: 34ch; font-weight: 600; }
.madefor p span { color: var(--text-2); font-weight: 500; }

/* Pricing */
.pricing { padding: clamp(64px, 9vw, 128px) 0 0; }
.pricing h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { border-radius: 24px; padding: 32px 30px 34px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); }
.plan.pro { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.plan h3 { font-size: 40px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 14px; height: 8px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg); }
.plan .fine { color: var(--text-3); font-size: 14px; }
.plan .price { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding: clamp(64px, 9vw, 128px) 0 0; }
.faq h2 { margin-bottom: clamp(20px, 3vw, 32px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform 0.2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { color: var(--text-2); padding: 0 0 22px; max-width: 72ch; }
.faq details p + p { margin-top: -10px; }

/* Final CTA */
.final { padding: clamp(80px, 11vw, 160px) 0 clamp(64px, 8vw, 112px); text-align: center; position: relative; overflow: hidden; }
.final .container { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.final h2 { font-size: clamp(44px, 7vw, 96px); max-width: 14ch; }
.final .note { color: var(--text-3); font-size: 14px; }
.final-glow { position: absolute; left: 50%; bottom: -30%; width: min(900px, 120vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, var(--glow), rgba(255, 138, 0, 0) 70%); pointer-events: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--text-3); font-size: 14px; }
.footer .container { display: flex; flex-direction: column; gap: 14px; }
.footer .links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-2); font-weight: 600; }
.footer p { max-width: 80ch; }

/* Legal / support pages */
.page { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 24px; }
.page h2 { font-size: clamp(28px, 3vw, 36px); margin: 44px 0 14px; }
.page h3 { margin: 28px 0 10px; font-family: var(--body); text-transform: none; font-size: 20px; letter-spacing: 0; }
.page p, .page li { color: var(--text-2); }
.page p { margin: 0 0 14px; }
.page ul, .page ol { margin: 0 0 16px; padding-left: 22px; }
.page li { margin-bottom: 6px; }
.page a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.page a:hover { color: var(--text-2); }
.page strong { color: var(--text); }
.page table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.page th { color: var(--text); font-weight: 700; }
.page .draft { background: var(--surface); border-radius: 14px; padding: 14px 18px; color: var(--text-2); font-size: 15px; margin-bottom: 28px; }
.page code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; color: var(--text); }
