/* PrompTele — the app's own palette, so the site and the product look like
   the same thing. Values lifted from Palette / GlowColorOption in the app. */
:root {
  --deep-space: #040613;
  --midnight:   #0b1028;
  --nebula:     #342d7a;
  --accent:     #3389ff;
  --accent-soft: #6f8cff;
  --text:       #ffffff;
  --text-dim:   rgba(255, 255, 255, 0.66);
  --text-faint: rgba(255, 255, 255, 0.4);
  --hairline:   rgba(255, 255, 255, 0.1);
  --card:       rgba(255, 255, 255, 0.05);
  --radius:     22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--deep-space);
  color: var(--text);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The sky sits behind everything, exactly as it does in the app. */
#sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 40rem at 18% 12%, rgba(52, 45, 122, 0.35), transparent 70%),
    radial-gradient(55rem 40rem at 88% 78%, rgba(28, 79, 140, 0.28), transparent 70%),
    linear-gradient(180deg, var(--deep-space), var(--midnight) 45%, var(--deep-space));
}
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------- nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  background: rgba(4, 6, 19, 0.6);
  border-bottom: 1px solid var(--hairline);
}
nav { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
nav img { width: 34px; height: 34px; border-radius: 9px; }
nav .name { font-weight: 700; letter-spacing: -0.01em; }
nav .spacer { flex: 1; }
nav a { color: var(--text-dim); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 86px 0 64px; text-align: center; }
.hero img.mark {
  width: 116px; height: 116px; border-radius: 26px;
  box-shadow: 0 18px 60px rgba(51, 137, 255, 0.4);
}
h1 {
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 26px 0 16px;
  font-weight: 700;
}
.hero p.lede {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-dim);
  max-width: 34ch;
  margin: 0 auto 30px;
}
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-soft); }
.btn.ghost { border-color: var(--hairline); color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.note { color: var(--text-faint); font-size: 14px; margin-top: 18px; }

/* ---------- features ---------- */
section { padding: 72px 0; }
h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--hairline);
}
.feature:nth-child(even) .copy { order: 2; }
.feature p { color: var(--text-dim); margin: 0 0 12px; }
.feature img {
  width: 100%;
  border-radius: 34px;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ---------- prose pages ---------- */
.prose { max-width: 70ch; padding: 56px 0 96px; }
.prose h1 { font-size: clamp(30px, 5vw, 44px); text-align: left; margin-bottom: 8px; }
.prose .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 36px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--text-dim); }
.prose a { color: var(--accent-soft); }
.prose strong { color: var(--text); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 56px;
  color: var(--text-faint);
  font-size: 14px;
}
footer a { color: var(--text-dim); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .copy { order: 0; }
  .feature img { max-width: 300px; margin: 0 auto; display: block; }
}

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

/* ============================================================
   Upgrade: device mockups, rocket motion, richer hero
   ============================================================ */

/* ---------- App Store badge ---------- */
.appstore { display: inline-block; line-height: 0; transition: transform .18s ease; }
.appstore:hover { transform: translateY(-2px); }
.appstore img { height: 56px; width: auto; }

/* ---------- glow orbs behind content ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}
.orb.a { width: 520px; height: 520px; background: rgba(51,137,255,.28); top: -120px; left: -140px; }
.orb.b { width: 460px; height: 460px; background: rgba(120,80,255,.22); top: 240px; right: -160px; }

/* ---------- hero ---------- */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  padding: 96px 0 72px;
}
.hero-grid .copy { text-align: left; }
.hero-grid h1 { text-align: left; }
.hero-grid .lede { margin: 0 0 32px; max-width: 30ch; }
.hero-grid .badges { justify-content: flex-start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; margin-bottom: 22px;
  border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 13px; color: var(--text-dim);
  background: rgba(255,255,255,.04);
}
.eyebrow b { color: var(--accent-soft); font-weight: 600; }

/* ---------- 3D device ---------- */
.stage { perspective: 1600px; display: flex; justify-content: center; }
.device {
  /* Corner radii are derived, not eyeballed.
     A real iPhone screen corner is ~55pt on a 440pt-wide screen = 12.5% of the
     width. The inner screen here is 300 - 22 = 278px, so 278 x 0.125 = 35px,
     and the outer frame is that plus the bezel: 35 + 11 = 46px. Rounder than
     this and the frame visibly clips the screenshot's corners. */
  position: relative;
  width: 300px;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(150deg, #6d7480, #23262e 28%, #14161b 55%, #3a3f49);
  box-shadow:
    0 60px 120px rgba(0,0,0,.72),
    0 0 0 1px rgba(255,255,255,.07),
    0 0 90px rgba(51,137,255,.22);
  transform: rotateY(-15deg) rotateX(5deg) rotateZ(1deg);
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.device:hover { transform: rotateY(-6deg) rotateX(2deg); }
.device.flip { transform: rotateY(15deg) rotateX(5deg) rotateZ(-1deg); }
.device.flip:hover { transform: rotateY(6deg) rotateX(2deg); }
.device.flat { transform: rotateY(0) rotateX(0); }
.device img,
.device video { display: block; width: 100%; border-radius: 35px; background: #000; }
.device::after {
  content: "";
  position: absolute; inset: 11px;
  border-radius: 35px;
  background: linear-gradient(118deg, rgba(255,255,255,.16), rgba(255,255,255,0) 38%);
  pointer-events: none;
}
.device .side {
  position: absolute; left: -2px; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, #5a616d, #2a2e36);
}
.device .side.s1 { top: 112px; height: 30px; }
.device .side.s2 { top: 158px; height: 54px; }
.device .side.s3 { top: 226px; height: 54px; }
.device .side.pwr { left: auto; right: -2px; top: 176px; height: 84px; }

/* ---------- rocket ---------- */
.rocket-track {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none; z-index: -1;
}
.rocket-fly {
  position: absolute;
  width: 132px; height: 132px;
  left: 0; top: 0;
  opacity: 0;
  animation: fly 13s cubic-bezier(.45,.05,.55,.95) infinite;
  filter: drop-shadow(0 0 26px rgba(51,137,255,.75));
}
.rocket-fly::before {
  content: "";
  position: absolute;
  right: 72%; bottom: 26%;
  width: 240px; height: 10px;
  transform: rotate(45deg);
  transform-origin: right center;
  border-radius: 999px;
  background: linear-gradient(270deg, rgba(120,170,255,.55), rgba(120,170,255,0));
  filter: blur(7px);
}
@keyframes fly {
  0%   { transform: translate(-22vw, 78vh) scale(.72); opacity: 0; }
  8%   { opacity: 1; }
  78%  { opacity: 1; }
  100% { transform: translate(112vw, -34vh) scale(1.08); opacity: 0; }
}

.rocket-float {
  width: 132px; height: 132px;
  animation: bob 5.2s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(51,137,255,.45));
}
@keyframes bob {
  0%, 100% { transform: translateY(-9px) rotate(-3deg); }
  50%      { transform: translateY(9px)  rotate(3deg); }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
}
.step .n {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(51,137,255,.18);
  color: var(--accent-soft);
  font-weight: 700; font-size: 15px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ---------- closing band ---------- */
.closer {
  position: relative;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: 34px;
  padding: 64px 32px;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(51,137,255,.18), transparent 70%),
    rgba(255,255,255,.03);
  overflow: hidden;
}
.closer h2 { margin-bottom: 10px; }
.closer p { color: var(--text-dim); margin: 0 auto 26px; max-width: 46ch; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 64px; }
  .hero-grid .copy, .hero-grid h1 { text-align: center; }
  .hero-grid .lede { margin-inline: auto; }
  .hero-grid .badges { justify-content: center; }
  /* Same derivation at the narrower size: (260 - 22) x 0.125 = 30px inner,
     30 + 11 = 41px outer. */
  .device { width: 260px; border-radius: 41px; }
  .device img, .device video, .device::after { border-radius: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .rocket-fly, .rocket-float { animation: none; }
  .rocket-fly { opacity: .9; transform: translate(60vw, 20vh); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .device { transition: none; }
}

/* ---------- length chips (mirrors the app's LengthPicker) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 4px; }
.chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.05);
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chip.on {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(51,137,255,.38);
}
.chips + .chip-note { color: var(--text-faint); font-size: 14px; margin-top: 12px; }


/* Nav tagline — the App Store subtitle, so the site and the listing agree. */
nav .tagline {
  color: var(--text-faint);
  font-size: 14px;
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--hairline);
}
@media (max-width: 720px) { nav .tagline { display: none; } }

/* ---------- pricing (mirrors the app's plan tiles) ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 620px; margin: 0 auto; }
.plan {
  position: relative;
  text-align: center;
  padding: 34px 22px 30px;
  border-radius: 26px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.04);
}
.plan.best {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 22px 60px rgba(51,137,255,.38);
}
.plan .num { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .unit { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.plan.best .unit { color: rgba(255,255,255,.8); }
.plan .price { margin-top: 16px; font-size: 20px; font-weight: 600; }
.plan .per { display: block; margin-top: 4px; font-size: 13px; color: var(--text-faint); }
.plan.best .per { color: rgba(255,255,255,.75); }
.plan .save {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: #2fd27a; color: #04140c;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.pricing-note { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 18px; }
.pricing-note a { color: var(--text-dim); }

@media (max-width: 560px) {
  .pricing { grid-template-columns: 1fr; }
}

/* ---------- mobile nav ---------- */
nav a { white-space: nowrap; }

@media (max-width: 760px) {
  /* "How it works", Privacy and Terms all live in the footer too, so they
     stand down rather than wrapping the header onto three lines. */
  nav a[data-secondary] { display: none; }
  nav { gap: 12px; }
  nav a { font-size: 14px; }
  nav .name { font-size: 16px; }
  nav img { width: 30px; height: 30px; }
}

/* The rocket crosses the headline on a narrow screen. Smaller, fainter, and
   flying lower so it reads as background rather than obstruction. */
@media (max-width: 760px) {
  .rocket-fly { width: 84px; height: 84px; opacity: .85; }
  .rocket-fly::before { width: 150px; }
  @keyframes fly {
    0%   { transform: translate(-26vw, 96vh) scale(.7); opacity: 0; }
    8%   { opacity: .8; }
    78%  { opacity: .8; }
    100% { transform: translate(116vw, 6vh) scale(1); opacity: 0; }
  }
}
