/* Home page. Palette follows the app's dark theme and the App Store screenshots. */
:root {
  --bg:        #0c0d0a;
  --bg-raised: #14160f;
  --surface:   #1b1d16;
  --accent:    #e4ff5c;
  --accent-ink:#0f100d;
  --green:     #4ade80;
  --amber:     #facc15;
  --red:       #f87171;
  --text:      #ffffff;
  --text-2:    rgba(255,255,255,0.68);
  --text-3:    rgba(255,255,255,0.45);
  --hairline:  rgba(255,255,255,0.10);
  --radius:    20px;
  --gutter:    24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, .badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

em { font-style: normal; color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 3px 9px; border-radius: 100px;
  margin-bottom: 18px;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.05; }

.section-title { font-size: clamp(30px, 4.4vw, 46px); max-width: 720px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12,13,10,0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 650; font-size: 16px; letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.topnav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.topnav a { color: var(--text-2); text-decoration: none; }
.topnav a:hover { color: var(--text); }
.btn-small {
  background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 650; text-decoration: none;
  padding: 7px 14px; border-radius: 100px;
}
.btn-small:hover { filter: brightness(1.06); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 70% at 70% 20%, #1d2113 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--hairline);
}
.contours {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--accent); opacity: 0.07; pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1120px; margin: 0 auto; padding: 88px var(--gutter) 0;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.hero-copy { padding-bottom: 88px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--hairline); background: rgba(255,255,255,0.04);
  padding: 6px 12px; border-radius: 100px; margin-bottom: 24px;
}
.chip-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px rgba(74,222,128,0.7);
}
.hero h1 { font-size: clamp(44px, 6.6vw, 76px); font-weight: 750; }
.lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 520px; }
.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.badge img { width: 180px; height: auto; }
.cta-note { color: var(--text-3); font-size: 14px; }

.hero-phones { position: relative; height: 600px; align-self: end; }
.hero-phones .phone { position: absolute; width: 280px; }
.phone-front { left: 50%; bottom: -70px; transform: translateX(-30%); z-index: 2; }
.phone-back  { left: 50%; bottom: -10px; transform: translateX(-100%) rotate(-6deg); opacity: 0.85; }

/* Phone frame */
.phone {
  background: #000;
  border-radius: 46px;
  padding: 9px;
  box-shadow:
    0 0 0 1.5px #2b2e24,
    0 40px 80px rgba(0,0,0,0.55),
    0 0 120px rgba(228,255,92,0.06);
}
.phone img { border-radius: 38px; width: 100%; }

/* How it works */
.how { padding: 112px 0 40px; }
.steps {
  list-style: none; margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg-raised); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-weight: 700; font-size: 15px; color: var(--accent-ink);
  margin-bottom: 18px;
}
.step:nth-child(1) .step-num { background: var(--green); }
.step:nth-child(2) .step-num { background: var(--amber); }
.step:nth-child(3) .step-num { background: var(--red); }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 16px; }

/* Feature rows */
.feature { padding: 72px 0; }
.feature-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.feature-flip .feature-copy { order: 2; }
.feature h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 720; }
.feature-copy > p:not(.eyebrow) { margin-top: 18px; color: var(--text-2); font-size: 18px; max-width: 500px; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: 300px; }

.ticks { list-style: none; margin-top: 24px; display: grid; gap: 12px; max-width: 500px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f100d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Cards */
.cards { padding: 72px 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--bg-raised); border: 1px solid var(--hairline); border-radius: 24px;
  padding: 28px 28px 0; overflow: hidden;
}
.card .eyebrow { align-self: flex-start; }
.card h3 { font-size: 26px; font-weight: 720; }
.card > p:not(.eyebrow) { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.card-shot {
  margin: 28px auto 0; width: 82%; max-width: 280px;
  height: 340px; overflow: hidden;
  border-radius: 34px 34px 0 0;
  background: #000; padding: 8px 8px 0;
  box-shadow: 0 0 0 1.5px #2b2e24;
}
.card-shot img { border-radius: 28px 28px 0 0; }

/* Extras */
.extras { padding: 72px 0 112px; }
.extra-grid {
  list-style: none; margin-top: 44px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden;
}
.extra { background: var(--bg); padding: 28px; }
.extra svg {
  width: 28px; height: 28px; margin-bottom: 16px;
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.extra h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 6px; }
.extra p { color: var(--text-2); font-size: 15px; }

/* Final CTA */
.final {
  position: relative; overflow: hidden;
  padding: 112px 0;
  border-top: 1px solid var(--hairline);
  background: radial-gradient(60% 80% at 50% 100%, #1d2113 0%, var(--bg) 70%);
}
.final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); margin-bottom: 32px; }
.final h2 { font-size: clamp(32px, 4.8vw, 54px); font-weight: 740; }
.final p { margin: 16px 0 28px; color: var(--text-2); font-size: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0 40px; }
.footer-inner { display: flex; align-items: center; gap: 24px 32px; flex-wrap: wrap; }
.footer-inner .brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-inner .brand span { font-size: 15px; }
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-inner nav a { color: var(--text-2); text-decoration: none; }
.footer-inner nav a:hover { color: var(--text); }
.copyright { margin-left: auto; color: var(--text-3); font-size: 14px; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; gap: 0; text-align: center; }
  .hero-copy { padding-bottom: 48px; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 230px; }
  .phone-front { bottom: -120px; }
  .phone-back { bottom: -60px; }

  .feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-flip .feature-copy { order: 0; }
  .feature-media .phone { width: 260px; }

  .card-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .extra-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .topnav { display: none; }
  .btn-small { margin-left: auto; }
  .hero-inner { padding-top: 48px; }
  .hero-phones { height: 380px; }
  .hero-phones .phone { width: 200px; border-radius: 36px; padding: 7px; }
  .hero-phones .phone img { border-radius: 30px; }
  .how { padding-top: 80px; }
  .feature { padding: 56px 0; }
  .extra-grid { grid-template-columns: 1fr; }
  .final { padding: 88px 0; }
  .copyright { margin-left: 0; width: 100%; }
}
