:root {
  --bg: #0b0e14;
  --bg-glow: #0a84ff22;
  --card: #151a24cc;
  --card-edge: #ffffff14;
  --text: #f2f4f8;
  --text-2: #9aa3b2;
  --text-3: #6b7383;
  --accent: #0a84ff;
  --accent-soft: #0a84ff1f;
  --radius: 20px;
  --max: 760px;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fb;
    --bg-glow: #0a84ff14;
    --card: #ffffffcc;
    --card-edge: #0c10181a;
    --text: #0b1220;
    --text-2: #4a5568;
    --text-3: #8a94a6;
    --accent: #007aff;
    --accent-soft: #007aff14;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 50% -10%, var(--bg-glow), transparent 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--card-edge);
}
.site-header .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 44px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, li { color: var(--text-2); font-size: 16px; }
strong { color: var(--text); }
.lead { font-size: 18px; color: var(--text-2); margin: 0 0 8px; }
.updated { font-size: 14px; color: var(--text-3); margin: 0 0 32px; }

ul { padding-left: 22px; }
li { margin: 4px 0; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 20px 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.callout { border-left: 3px solid var(--accent); }
.callout p { margin: 0; }

.toc { margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { font-size: 15px; break-inside: avoid; }

/* Home */
.hero { text-align: center; padding: 40px 0 24px; }
.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 20px 50px #0047d655;
}
.hero h1 { margin-top: 24px; }
.hero .lead { max-width: 520px; margin: 0 auto; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.links a.card { display: block; color: var(--text); transition: transform .15s ease, border-color .15s ease; }
.links a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.links .icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 20px; margin-bottom: 12px;
}
.links h3 { margin: 0 0 4px; }
.links p { margin: 0; font-size: 14px; }

/* Help center */
.search {
  width: 100%;
  margin: 8px 0 8px;
  padding: 14px 18px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  outline: none;
}
.search:focus { border-color: var(--accent); }
.faq-group h2 { margin-top: 40px; }
details {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 16px;
  margin: 10px 0;
  padding: 0 20px;
}
details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--card-edge)); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 16px; }
details p:first-child { margin-top: 0; }
.no-results { display: none; color: var(--text-3); text-align: center; padding: 24px 0; }

.contact { margin-top: 48px; text-align: center; }
.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-edge);
  padding: 28px 24px 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}
.site-footer nav { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }

@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .brand span { display: none; }
  .links { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  main { padding-top: 36px; }
}

/* ───────────── Landing page ───────────── */
.landing main { max-width: 1120px; padding-top: 0; }

.header-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
}
.header-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* Phone mockup */
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 402 / 874;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #3a404c, #12151c 40%, #2a2f3a);
  box-shadow: 0 40px 80px #00000066, inset 0 0 0 1px #ffffff1f;
  flex-shrink: 0;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 37px;
  display: block;
  background: #0b0e14;
}
.phone.sm { width: 230px; }

/* Hero */
.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0 40px;
}
.lp-hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 16px 0 18px; }
.lp-hero h1 .grad {
  background: linear-gradient(90deg, #4cb0ff, #0a84ff 50%, #7b6cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-hero .lead { font-size: 19px; max-width: 500px; }
.app-chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-2); font-size: 15px; }
.app-chip img { width: 40px; height: 40px; border-radius: 10px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.fine { font-size: 14px; color: var(--text-3); }

.appstore-badge { display: inline-block; line-height: 0; transition: transform .15s ease; }
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge img { height: 54px; width: auto; }

.hero-phones { position: relative; height: 600px; display: flex; justify-content: center; }
.hero-phones .phone { position: absolute; }
.hero-phones .back { transform: translate(-110px, 40px) rotate(-8deg) scale(.88); opacity: .9; }
.hero-phones .front { transform: translate(60px, 0) rotate(3deg); }
.hero-glow {
  position: absolute; inset: 15% 5%;
  background: radial-gradient(closest-side, #0a84ff55, transparent);
  filter: blur(40px);
}

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-edge);
  color: var(--text); font-weight: 600; font-size: 15px;
}
.pill span { font-size: 18px; }

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 88px 0;
  border-top: 1px solid var(--card-edge);
}
.feature.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; gap: 20px; position: relative; }
.feature-media .phone:nth-child(2) { margin-top: 64px; }
.feature h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin: 10px 0 14px; letter-spacing: -0.02em; }
.feature .lead { font-size: 18px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.tag i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; }
.t-blue   { color: #4c9dff; } .t-blue i   { background: #0a84ff26; }
.t-violet { color: #9d8fff; } .t-violet i { background: #7b6cff26; }
.t-green  { color: #34d399; } .t-green i  { background: #34c77b26; }
.t-orange { color: #ff9f43; } .t-orange i { background: #ff9f0a26; }
.t-cyan   { color: #4fd1e8; } .t-cyan i   { background: #32ade626; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--text-2); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

/* Grid of extras */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 8px 0 10px; letter-spacing: -0.02em; }
.extras { padding: 88px 0; border-top: 1px solid var(--card-edge); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid .card h3 { margin: 12px 0 4px; font-size: 17px; }
.grid .card p { margin: 0; font-size: 15px; }
.grid .emoji { font-size: 26px; }

/* Pro */
.pro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 88px 0; border-top: 1px solid var(--card-edge);
}
.compare { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid var(--card-edge); text-align: left; color: var(--text-2); }
.compare th { color: var(--text); font-size: 14px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 90px; }
.compare .yes { color: var(--accent); font-weight: 700; }
.pro-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700;
  color: #fff; background: linear-gradient(90deg, #7b6cff, #0a84ff);
}

/* Final CTA */
.final-cta {
  text-align: center; padding: 72px 32px; margin: 40px 0 88px;
  border-radius: 32px;
  background: radial-gradient(600px 300px at 50% 0%, #0a84ff40, transparent 70%), var(--card);
  border: 1px solid var(--card-edge);
}
.final-cta img.icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 16px 40px #0047d666; }
.final-cta h2 { font-size: clamp(30px, 4vw, 44px); margin: 20px 0 10px; }
.final-cta .lead { max-width: 520px; margin: 0 auto 24px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .lp-hero, .feature, .pro { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero { text-align: center; padding-top: 48px; }
  .lp-hero .lead { margin: 0 auto; }
  .cta-row { justify-content: center; }
  .hero-phones { height: 540px; }
  .feature.flip .feature-media { order: 0; }
  .feature { padding: 64px 0; text-align: center; }
  .checks { display: inline-block; text-align: left; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .phone { width: 230px; }
  .phone.sm { width: 180px; }
  .hero-phones { height: 470px; }
  .hero-phones .back { transform: translate(-70px, 30px) rotate(-8deg) scale(.85); }
  .hero-phones .front { transform: translate(40px, 0) rotate(3deg); }
  .feature-media .phone:nth-child(2) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}

/* App Store badge fallback (shown only if Apple's badge image can't load) */
.badge-fallback { display: none; }
.appstore-badge.fallback img { display: none; }
.appstore-badge.fallback .badge-fallback {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 20px 0 16px;
  border-radius: 12px; background: #000; color: #fff;
  border: 1px solid #a6a6a6; line-height: 1.1;
}
.badge-fallback svg { width: 26px; height: 30px; }
.badge-fallback span { display: flex; flex-direction: column; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; text-align: left; }
.badge-fallback small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
