:root {
  --bg: #0b0b0d;
  --bg-elev: #141418;
  --bg-card: #18181d;
  --line: #25252c;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --red: #e10600;
  --red-deep: #b00500;
  --accent: #ff3b3b;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ───── nav ───── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 40px);
  background: rgba(11,11,13,.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 15px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav .nav-cta {
  background: var(--red); color: #fff;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.nav .nav-cta:hover { background: var(--red-deep); color: #fff; }

/* ───── hero ───── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 40px) 40px;
  display: grid; gap: 64px;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
  margin: 0 0 14px; font-size: 13px; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase; font-weight: 600;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px); line-height: 1.04;
  letter-spacing: -.025em; margin: 0 0 22px; font-weight: 700;
}
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); margin: 0 0 32px; max-width: 56ch; }
.cta-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.meta { color: var(--muted); font-size: 14px; }
.appstore { display: inline-block; transition: transform .15s ease; }
.appstore:hover { transform: translateY(-1px); }

.badges {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 28px 0 0; padding: 0; list-style: none;
}
.badges li {
  background: var(--bg-elev); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; color: var(--muted);
}

/* ───── hero phones ───── */
.hero-art {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 560px;
}
.phone {
  position: relative;
  width: 260px; aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 38px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #1d1d22,
    0 30px 80px -20px rgba(225, 6, 0, .35),
    0 20px 60px -10px rgba(0,0,0,.7);
}
.phone-tilt-left  { transform: rotate(-6deg); margin-right: -80px; z-index: 2; }
.phone-tilt-right { transform: rotate(7deg);  margin-left:  -80px; z-index: 1; opacity: .92; }
@media (max-width: 880px) { .phone-tilt-right { display: none; } .phone-tilt-left { transform: none; margin: 0 auto; } }

.phone-screen-img {
  width: 100%; height: 100%;
  border-radius: 28px;
  object-fit: cover;
  display: block;
  background: #000;
}

/* ───── features ───── */
.features {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 40px);
}
.features h2,
.strip h2,
.cta h2 {
  font-size: clamp(28px, 4vw, 44px); letter-spacing: -.02em;
  margin: 0 0 40px; font-weight: 700;
}
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 880px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #3a3a45; transform: translateY(-2px); }
.card-icon { font-size: 28px; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ───── gallery ───── */
.gallery {
  max-width: 100%;
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.gallery h2 {
  font-size: clamp(28px, 4vw, 44px); letter-spacing: -.02em;
  margin: 0 0 40px; font-weight: 700;
  max-width: var(--maxw); padding: 0 clamp(20px, 4vw, 40px); margin-left: auto; margin-right: auto;
}
.gallery-rail {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 12px clamp(20px, 4vw, 40px) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-rail::-webkit-scrollbar { display: none; }
.gallery-rail .phone {
  flex: 0 0 240px;
  scroll-snap-align: center;
  margin: 0;
}
/* Centre the row when it fits, scroll from start when it overflows.
   Auto margins on the outer flex items resolve to 0 when content is
   wider than the container — so overflow scroll behaves correctly. */
.gallery-rail > .phone:first-child { margin-left: auto; }
.gallery-rail > .phone:last-child  { margin-right: auto; }
.gallery-rail figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
}
.phone-still { transform: none; box-shadow:
    0 0 0 2px #1d1d22,
    0 24px 60px -20px rgba(225, 6, 0, .25),
    0 16px 50px -12px rgba(0,0,0,.7); }

/* ───── strip ───── */
.strip {
  background: linear-gradient(180deg, #15050a 0%, #0b0b0d 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 40px);
  text-align: center;
}
.strip h2 { margin: 0 auto 14px; max-width: 18ch; }
.strip p { color: var(--muted); max-width: 56ch; margin: 0 auto; }

/* ───── pricing ───── */
.pricing {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 40px);
  display: grid; gap: 20px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
}
.plan-pro {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(225,6,0,.18), transparent 60%),
    var(--bg-card);
  border-color: rgba(225,6,0,.4);
}
.plan-tag {
  position: absolute; top: 18px; right: 18px;
  background: var(--red); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}
.plan h3 { margin: 0 0 6px; font-size: 20px; }
.price { margin: 6px 0 4px; font-size: 38px; font-weight: 700; letter-spacing: -.02em; }
.price span { font-size: 16px; color: var(--muted); font-weight: 400; }
.trial { margin: 0 0 20px; color: var(--accent); font-size: 14px; font-weight: 600; }
.price-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px;
  margin: 6px 0 8px;
}
.price-option .price { margin: 0; font-size: 28px; }
.price-option .price span { font-size: 14px; }
.price-sub { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.price-divider {
  color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .14em;
}
@media (max-width: 420px) {
  .price-row { grid-template-columns: 1fr; }
  .price-divider { padding: 4px 0; }
}
.plan ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li {
  padding-left: 26px; position: relative; color: var(--muted); font-size: 15px;
}
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 700;
}

/* ───── cta ───── */
.cta {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 40px);
  text-align: center;
}
.cta p { color: var(--muted); margin: 0 0 26px; }

/* ───── legal pages ───── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding-top: clamp(40px, 6vw, 72px);
  padding-right: clamp(24px, 5vw, 48px);
  padding-bottom: clamp(48px, 6vw, 80px);
  padding-left: clamp(24px, 5vw, 48px);
  color: var(--text);
}
.legal h1 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -.025em;
  margin: 6px 0 8px;
  font-weight: 700;
}
.legal h2 {
  font-size: 22px;
  letter-spacing: -.01em;
  margin: 44px 0 12px;
  font-weight: 600;
}
.legal .eyebrow { margin: 0 0 8px; }
.legal .legal-meta {
  color: var(--muted); font-size: 14px;
  margin: 0 0 28px;
}
.legal p, .legal li {
  color: #d4d4dc;
  font-size: 16px;
  line-height: 1.7;
}
.legal ul {
  padding-left: 22px;
  margin: 12px 0 16px;
  display: grid; gap: 10px;
}
.legal a {
  color: var(--text);
  border-bottom: 1px solid rgba(225,6,0,.55);
}
.legal a:hover { border-bottom-color: var(--red); }
.legal strong { color: var(--text); }
.legal-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.legal-back a { color: var(--muted); border-bottom: none; }
.legal-back a:hover { color: var(--text); }

/* ───── footer ───── */
footer {
  border-top: 1px solid var(--line);
  padding: 36px clamp(20px, 4vw, 40px);
  text-align: center;
  background: #08080a;
}
.disclaimer {
  max-width: 70ch; margin: 0 auto 14px;
  color: var(--muted); font-size: 13px; line-height: 1.6;
}
.copy { color: var(--muted); font-size: 13px; margin: 0; }
.copy a { color: var(--muted); border-bottom: 1px dotted var(--muted); }
.copy a:hover { color: var(--text); }
