/* AfterLanding — public marketing landing page.
   High-conversion direct-to-consumer rebuild (Oct 2026): short copy, real
   product screenshots doing the selling, open layouts instead of stacked
   card grids. Separate from the app's own style.css — same tokens, same
   self-hosted fonts, its own lean layout. No framework; small vanilla JS
   only for the sticky-nav background and lazy below-fold media. */

:root {
  --bg: #08080c;
  --bg-elevated: #111116;
  --bg-secondary: #17171f;

  --text: #f7f7f8;
  --muted: #a4a4af;
  --muted-2: #7c7c86;

  --purple: #7c3aed;
  --purple-bright: #9d6cff;

  --border: rgba(255, 255, 255, 0.08);

  --font-display: "Familjen Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  --container: 1200px;
  --pad: 18px;

  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@media (min-width: 768px) { :root { --pad: 24px; } }
@media (min-width: 1024px) { :root { --pad: 32px; } }

@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk-variable.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font-body);
  -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
svg { flex: 0 0 auto; }

.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-bright); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; white-space: nowrap; transition: background 140ms ease; }
.btn-primary { background: var(--purple); color: #fff; border-radius: 12px; height: 56px; padding: 0 24px; font-size: 16.5px; }
.btn-primary:hover { background: var(--purple-bright); }
.btn-compact { background: var(--purple); color: #fff; border-radius: 10px; height: 40px; padding: 0 16px; font-size: 14px; }
.btn-compact:hover { background: var(--purple-bright); }
.tlink { font-size: 14.5px; font-weight: 600; color: var(--text); opacity: 0.82; }
.tlink:hover { opacity: 1; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: 58px; display: flex; align-items: center; background: transparent; transition: background 200ms ease, border-color 200ms ease; border-bottom: 1px solid transparent; }
@media (min-width: 1024px) { .nav { height: 64px; } }
.nav.is-scrolled { background: rgba(8, 8, 12, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.brand img { width: 22px; height: 22px; }
@media (min-width: 480px) { .brand { font-size: 16px; } .brand img { width: 24px; height: 24px; } }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-links-desktop { display: none; align-items: center; gap: 22px; }
@media (min-width: 900px) { .nav-links-desktop { display: flex; } }

/* ======================================================================
   1 — HERO
   ====================================================================== */
.hero { padding: 28px 0 var(--s-10); }
@media (min-width: 1024px) { .hero { padding: 40px 0 48px; display: block; } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-8); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-10); align-items: center; } }

.hero h1 { margin-top: var(--s-3); font-size: 32px; line-height: 1.08; letter-spacing: -0.015em; max-width: 480px; }
@media (min-width: 400px) { .hero h1 { font-size: 36px; } }
@media (min-width: 560px) { .hero h1 { font-size: 42px; max-width: 560px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 48px; max-width: 520px; } }

.hero-body { margin-top: var(--s-4); font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 460px; }
@media (min-width: 1024px) { .hero-body { font-size: 17px; } }

.hero-ctas { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); }
.hero-note { margin-top: 11px; font-size: 13.5px; color: var(--muted-2); font-weight: 600; }

.hero-visual { position: relative; height: 360px; }
@media (min-width: 1024px) { .hero-visual { height: 560px; margin-top: 0; } }

.hero-demo-secondary { position: absolute; left: 0; bottom: 0; width: 44%; max-width: 230px; height: 46%; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-secondary); box-shadow: 0 16px 36px rgba(0,0,0,0.35); z-index: 1; }
.hero-demo-secondary img,
.hero-demo-tertiary img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-demo-tertiary { position: absolute; right: 0; bottom: 0; width: 44%; max-width: 230px; height: 46%; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-secondary); box-shadow: 0 16px 36px rgba(0,0,0,0.35); z-index: 1; }

.hero-demo-frame { position: absolute; right: 0; top: 0; width: 88%; max-width: 560px; aspect-ratio: 8 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-secondary); box-shadow: var(--shadow); z-index: 2; }
.hero-demo-poster,
.hero-demo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-demo-video { display: none; }
.hero-demo-frame.is-playing .hero-demo-poster,
.hero-demo-frame.is-playing .hero-demo-play { display: none; }
.hero-demo-frame.is-playing .hero-demo-video { display: block; }

.hero-demo-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: var(--purple); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.hero-demo-play svg { margin-left: 3px; }
.hero-demo-play:hover { background: var(--purple-bright); }
@media (min-width: 1024px) {
  .hero-demo-secondary,
  .hero-demo-tertiary { width: 38%; max-width: 260px; height: 48%; }
  .hero-demo-frame { width: 86%; max-width: 620px; }
  .hero-demo-play { width: 72px; height: 72px; }
}

/* ======================================================================
   2 — QUICK VALUE (open image + caption, not boxed cards)
   ====================================================================== */
.sect { padding: var(--s-16) 0; }
@media (min-width: 1024px) { .sect { padding: var(--s-20) 0; } }
.sect-head h2 { font-size: 26px; line-height: 1.16; max-width: 640px; }
@media (min-width: 768px) { .sect-head h2 { font-size: 32px; } }
@media (min-width: 1024px) { .sect-head h2 { font-size: 40px; } }

.value-grid { margin-top: var(--s-8); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-item-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.value-item-img img { width: 100%; height: 100%; object-fit: cover; }
.value-item h4 { margin-top: var(--s-3); font-size: 16px; }
.value-item p { margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ======================================================================
   3 — PRODUCT PROOF (huge screenshot)
   ====================================================================== */
.proof-sect { text-align: center; }
.proof-sect h2 { font-size: 26px; line-height: 1.14; max-width: 600px; margin: 0 auto; }
@media (min-width: 768px) { .proof-sect h2 { font-size: 34px; } }
@media (min-width: 1024px) { .proof-sect h2 { font-size: 42px; } }
.proof-shot { margin: var(--s-8) auto 0; max-width: 440px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (min-width: 1024px) { .proof-shot { max-width: 1040px; } }
.proof-shot img { width: 100%; height: auto; display: block; }
.callout-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-8); margin-top: var(--s-6); }
.callout { font-size: 13.5px; font-weight: 650; color: var(--purple-bright); display: flex; align-items: center; gap: 7px; }
.callout::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--purple-bright); }

/* ======================================================================
   4 — CATEGORY MOSAIC
   ====================================================================== */
.mosaic-grid { margin-top: var(--s-8); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (min-width: 860px) {
  .mosaic-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 140px; gap: var(--s-4); }
  .mo-groceries { grid-column: 1 / 7; grid-row: 1 / 3; }
  .mo-phone { grid-column: 7 / 10; grid-row: 1 / 2; }
  .mo-furniture { grid-column: 10 / 13; grid-row: 1 / 2; }
  .mo-power { grid-column: 7 / 9; grid-row: 2 / 3; }
  .mo-banking { grid-column: 9 / 11; grid-row: 2 / 3; }
  .mo-gyms { grid-column: 11 / 13; grid-row: 2 / 3; }
}
.mo-tile { position: relative; border-radius: 14px; overflow: hidden; min-height: 150px; background: var(--bg-secondary); }
.mo-groceries { min-height: 260px; grid-column: 1 / 3; }
@media (min-width: 480px) { .mo-groceries { min-height: 300px; } }
@media (min-width: 860px) {
  /* Same specificity (one class) as the grid-column/grid-row rules above,
     so normal source-order cascade applies and the desktop placement wins —
     a combined .mo-groceries.mo-tile selector here previously out-specified
     those rules and silently collapsed every tile to the default 1-column
     auto-placement regardless of screen width. */
  .mo-tile { min-height: 0; }
  .mo-groceries { min-height: 0; grid-column: 1 / 7; }
}
.mo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mo-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 55%); }
.mo-text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.mo-text h4 { font-size: 15px; color: #fff; }
.mo-text p { margin-top: 2px; font-size: 12px; color: rgba(255,255,255,0.82); }
@media (min-width: 1024px) {
  .mo-text { left: 20px; bottom: 16px; }
  .mo-groceries .mo-text h4 { font-size: 20px; }
  .mo-groceries .mo-text p { font-size: 14px; }
}

.mosaic-links { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.mosaic-links a { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.mosaic-links a:hover { color: var(--text); border-color: var(--muted); }

.sect-cta { margin-top: var(--s-10); text-align: center; }

/* ======================================================================
   5 — OUTCOME (plain text, no cards)
   ====================================================================== */
.outcome-sect h2 { font-size: 26px; line-height: 1.16; max-width: 620px; }
@media (min-width: 768px) { .outcome-sect h2 { font-size: 34px; } }
@media (min-width: 1024px) { .outcome-sect h2 { font-size: 42px; } }
.outcome-sect p { margin-top: var(--s-4); font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
@media (min-width: 1024px) { .outcome-sect p { font-size: 17px; } }
.outcome-list { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
@media (min-width: 640px) { .outcome-list { flex-direction: row; gap: var(--s-8); } }
.outcome-list li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; }
.outcome-list svg { color: var(--purple-bright); flex: 0 0 auto; }

/* ======================================================================
   6 — GALLERY
   ====================================================================== */
.gallery-rail { margin-top: var(--s-8); display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: none; padding-left: var(--pad); padding-right: var(--pad); margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.gallery-rail::-webkit-scrollbar { display: none; }
.gallery-card { flex: 0 0 auto; width: 88vw; scroll-snap-align: start; }
@media (min-width: 640px) { .gallery-card { width: 440px; } }
@media (min-width: 1024px) { .gallery-card { width: 600px; } }
.gallery-img { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.gallery-img img { width: 100%; height: auto; display: block; }
.gallery-label { margin-top: var(--s-2); font-size: 13.5px; font-weight: 650; color: var(--muted); }

/* ======================================================================
   7 — PRICE
   ====================================================================== */
.price-sect { text-align: center; }
.price-amount { font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 0.95; letter-spacing: -0.02em; margin-top: 10px; }
@media (min-width: 768px) { .price-amount { font-size: 92px; } }
.price-under { margin-top: var(--s-3); font-size: 17px; color: var(--muted); }
.price-list { margin: var(--s-7, 28px) auto 0; max-width: 420px; display: flex; flex-direction: column; gap: 11px; text-align: left; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text); }
.price-list svg { color: var(--purple-bright); margin-top: 3px; }
.price-sect .btn-primary { margin-top: var(--s-8); }
.price-trust { margin-top: 14px; font-size: 13.5px; color: var(--muted-2); }
.price-signin { margin-top: var(--s-4); }

/* ======================================================================
   8 — FAQ (plain, no accordion needed for 5 short items)
   ====================================================================== */
.faq-list { max-width: 680px; margin-top: var(--s-7, 28px); border-top: 1px solid var(--border); }
.faq-item { padding: var(--s-5) 0; border-bottom: 1px solid var(--border); }
.faq-item h4 { font-size: 16px; font-weight: 650; }
.faq-item p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.5; max-width: 60ch; }

/* ======================================================================
   9 — FINAL CTA
   ====================================================================== */
.final-sect { position: relative; overflow: hidden; text-align: center; padding: var(--s-16) 0; }
@media (min-width: 1024px) { .final-sect { padding: var(--s-20) 0; } }
.final-bg { position: absolute; inset: 0; z-index: 0; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.16; }
.final-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(8,8,12,0.75) 60%, rgba(8,8,12,0.75) 100%); }
.final-sect .wrap { position: relative; z-index: 1; }
.final-sect h2 { font-size: 28px; line-height: 1.14; max-width: 620px; margin: 0 auto; }
@media (min-width: 768px) { .final-sect h2 { font-size: 38px; } }
.final-sect p { margin-top: var(--s-4); font-size: 16px; color: var(--muted); max-width: 52ch; margin-left: auto; margin-right: auto; }
.final-sect .btn-primary { margin-top: var(--s-7, 28px); }

/* ======================================================================
   Footer
   ====================================================================== */
.land-footer { border-top: 1px solid var(--border); padding: var(--s-8) 0 var(--s-6); }
.footer-top { display: flex; flex-direction: column; gap: var(--s-5); }
@media (min-width: 768px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; }
.footer-brand img { width: 19px; height: 19px; opacity: 0.85; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer-links a { font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-2); }
