/* Vialume launch site — brand tokens from src/constants/theme.ts.
   Marketing guardrail (plan §2): no glow/light/radiance language or effects. */

:root {
  --indigo: #473ED2;
  --coral: #FFB08A;
  --navy: #1E1A3E;
  --ink: #1a1a1e;
  --ink-2: #5c5f6a;
  --bg: #ffffff;
  --bg-2: #f4f4f7;
  --card: #ffffff;
  --border: #e6e6ee;
  --radius: 16px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f5;
    --ink-2: #b0b4ba;
    --bg: #0e0d14;
    --bg-2: #17161f;
    --card: #1c1b26;
    --border: #2a2936;
  }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-align: center; }
section { padding: clamp(3rem, 8vw, 6rem) 1.25rem; }
.section-lead { text-align: center; color: var(--ink-2); max-width: 42rem; margin: 0.75rem auto 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink); }
.nav-brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 1.25rem; }
.nav nav a { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 600px) {
  .nav { flex-wrap: wrap; row-gap: 0.4rem; }
  .nav nav { gap: 0.9rem; }
  .nav nav a { font-size: 0.9rem; }
}

/* Hero */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--max); margin: 0 auto;
}
.hero-copy { max-width: 34rem; }
.brand-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; margin-bottom: 0.75rem;
}
.brand-chip img { border-radius: 7px; }
.eyebrow {
  color: var(--indigo); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0.5rem 0 1rem; }
.hero h1 em { font-style: normal; color: var(--indigo); }
.lead { color: var(--ink-2); font-size: 1.1rem; }
.cta-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.cta {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 12px;
  font-weight: 600;
}
.cta.soon { background: var(--indigo); color: #fff; cursor: default; }
.cta.ghost { border: 1px solid var(--border); color: var(--ink); }
.cta.ghost:hover { text-decoration: none; border-color: var(--indigo); }
.fineprint { color: var(--ink-2); font-size: 0.85rem; margin-top: 0.9rem; }
.hero-phone img {
  width: min(300px, 70vw);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -24px rgba(30, 26, 62, 0.45);
}

/* Features */
.features .grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: var(--max); margin: 2.5rem auto 0;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.card p { color: var(--ink-2); font-size: 0.95rem; }

/* Privacy */
.privacy { background: var(--navy); color: #f2f2f5; }
.privacy-inner { max-width: 46rem; margin: 0 auto; text-align: center; }
.privacy h2 { color: #fff; }
.privacy p { margin: 1rem auto 0; color: #c9c7de; }
.privacy ul {
  list-style: none; padding: 0; margin: 1.5rem auto 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.privacy li { color: #c9c7de; }
.privacy a { color: var(--coral); }

/* Gallery */
.gallery-section { background: var(--bg-2); }

/* Centred carousel: the focused screen sits forward at full size, its
   neighbours fall back and dim. Snap keeps it landing cleanly. */
.gallery-wrap { position: relative; max-width: var(--max); margin: 0 auto; }
.gallery {
  display: flex; gap: 1.25rem;
  overflow-x: auto;
  /* offsetParent for the slides, so site.js can measure them scroll-independently */
  position: relative;
  /* proximity, not mandatory: with mandatory the snap engine truncates a
     programmatic smooth scroll that spans several slides, so the dots landed
     one short. proximity still snaps a manual swipe cleanly. */
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  /* Side padding equal to half the leftover width so the first and last
     screens can reach the centre like any other. */
  padding: 2.5rem max(1rem, calc(50% - 7.5rem)) 2rem;
  -webkit-overflow-scrolling: touch;
  /* The native bar is heavy on a light page and sat right under the phones.
     Hidden, not disabled — drag, wheel, touch and keyboard all still scroll,
     and the arrows and dots below are the visible affordance. */
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* legacy Edge */
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 2px solid var(--indigo); outline-offset: -4px; border-radius: 12px; }
.gallery img {
  width: 15rem; flex: 0 0 auto;
  border-radius: 22px; border: 1px solid var(--border);
  scroll-snap-align: center;
  transform: scale(0.84);
  opacity: 0.4;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.08);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease,
              box-shadow 0.45s ease;
}
.gallery img.is-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 18px 44px rgb(30 26 62 / 0.26);
}

/* Arrows — hidden from assistive tech; the dots below are the labelled control. */
.gal-arrow {
  position: absolute; top: 46%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--card); color: var(--ink);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.10);
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}
.gal-arrow:hover { transform: translateY(-50%) scale(1.08); }
.gal-arrow[disabled] { opacity: 0.3; cursor: default; }
.gal-arrow.prev { left: 0.5rem; }
.gal-arrow.next { right: 0.5rem; }
@media (max-width: 640px) { .gal-arrow { display: none; } }

.gallery-dots {
  display: flex; justify-content: center; gap: 0.45rem;
  margin-top: 0.25rem;
}
.gallery-dots button {
  width: 0.5rem; height: 0.5rem; padding: 0;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--ink-2); opacity: 0.35;
  transition: width 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.gallery-dots button[aria-current='true'] {
  width: 1.4rem; opacity: 1; background: var(--indigo);
}
/* Sample-data disclosure — screenshots must never read as a real result. */
.gallery-note {
  max-width: 46rem; margin: 1rem auto 0; padding: 0 1rem;
  text-align: center; font-size: 0.85rem; line-height: 1.6;
  color: var(--ink-2);
}

/* Pricing */
.tiers {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  max-width: 800px; margin: 2.5rem auto 0;
  align-items: start;
}
.tier {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.tier.plus { border: 2px solid var(--indigo); position: relative; }
/* Mirrors the in-app PLUS badge (paywall-sheet.tsx): pale indigo tint pill,
   indigo border + text, uppercase — the same mark users see on gated
   features inside the app, so web and app promise the same thing. */
.plus-tag {
  background: rgba(71, 62, 210, 0.10);
  border: 1px solid rgba(71, 62, 210, 0.30);
  color: var(--indigo);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem; border-radius: 0.45rem;
  vertical-align: 0.15em; white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  .plus-tag {
    background: rgba(122, 113, 235, 0.18);
    border-color: rgba(150, 143, 240, 0.45);
    color: #b7b1f2;
  }
}
/* Same shape as .plus-tag, coral so "still being tested" reads differently
   from "paid". */
.beta-tag {
  background: rgba(255, 176, 138, 0.18);
  border: 1px solid rgba(255, 176, 138, 0.55);
  color: #a4552b;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem; border-radius: 0.45rem;
  vertical-align: 0.15em; white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  .beta-tag {
    background: rgba(255, 176, 138, 0.15);
    border-color: rgba(255, 176, 138, 0.4);
    color: var(--coral);
  }
}
/* The pill alone is easy to skim past — the testing status gets its own
   call-out box inside the card so it can't be missed. */
p.beta-note {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 176, 138, 0.14);
  border-left: 3px solid var(--coral);
  border-radius: 0 0.45rem 0.45rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8a4a26;
}
@media (prefers-color-scheme: dark) {
  p.beta-note {
    background: rgba(255, 176, 138, 0.12);
    color: var(--coral);
  }
}
.tier .badge {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.8rem; border-radius: 999px; white-space: nowrap;
}
.tier h3 { font-size: 1.2rem; }
.price { font-size: 2rem; font-weight: 800; margin: 0.5rem 0 0; }
.price span { font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.price-alt { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 0.5rem; }
.tier ul { padding-left: 1.2rem; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.tier li { color: var(--ink-2); font-size: 0.95rem; }
.tier li strong { color: var(--ink); }
.tier-note { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-2); }
.save {
  background: var(--coral); color: var(--navy);
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
  padding: 0.15rem 0.6rem; border-radius: 999px; vertical-align: middle;
}
.pricing-line {
  text-align: center; font-weight: 600; color: var(--ink-2);
  max-width: 40rem; margin: 1.75rem auto 0;
}
/* Substantiation for the "cheapest" claim sits with the claim — ACCC
   comparative-advertising practice, and it dates the check. */
.pricing-fineprint {
  text-align: center; font-size: 0.8rem; color: var(--ink-2); opacity: 0.85;
  max-width: 40rem; margin: 0.6rem auto 0;
}

/* Story */
.story { background: var(--bg-2); }
.story-inner { max-width: 42rem; margin: 0 auto; }
.story h2 { text-align: left; }
.story p { margin-top: 1rem; color: var(--ink-2); font-size: 1.05rem; }
.sig { font-weight: 600; color: var(--ink); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 2.5rem 1.25rem; }
.foot-grid {
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: var(--max); margin: 0 auto;
}
.foot-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.foot-brand img { border-radius: 6px; }
footer p { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.5rem; }
.foot-legal p { font-size: 0.8rem; }

/* Scroll reveal — JS adds .in; motion off for reduced-motion users */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
