/* ==========================================================================
   SubTap landing — dark "Verto" theme (matches the in-app UI kit tokens)
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --surface: #18181b;
  --surface-2: #212124;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #a1a1aa;
  --faint: #71717a;

  --brand: #cbfb45;
  --brand-2: #f5c842;
  --on-brand: #0a0a0a;
  --brand-gradient: linear-gradient(135deg, var(--brand), var(--brand-2));

  --success: #3dd68c;
  --danger: #ff6369;

  --glow-1: rgba(203, 251, 69, 0.22);
  --glow-2: rgba(251, 124, 58, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

::selection { background: var(--brand); color: var(--on-brand); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal--delay { transition-delay: .08s; }
.reveal--delay-2 { transition-delay: .16s; }
.reveal--delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-md); font-weight: 700; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--primary {
  background: var(--brand-gradient); color: var(--on-brand);
  box-shadow: 0 8px 28px rgba(203, 251, 69, 0.22);
}
.btn--primary:hover { box-shadow: 0 10px 34px rgba(203, 251, 69, 0.32); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03); border-color: var(--border-strong); color: var(--text);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255,255,255,.28); }

.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--on-brand); background: var(--brand-gradient);
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 14px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); transition: border-color .2s ease;
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; }
.nav__links { display: flex; gap: 26px; margin: 0 auto 0 40px; color: var(--muted); font-weight: 600; font-size: .93rem; }
.nav__links a { transition: color .15s ease; position: relative; }
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--brand-gradient);
}
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 36px; height: 36px; background: none; border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer;
}
.nav__toggle span { display: block; width: 16px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 70px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(closest-side, var(--glow-1), transparent 70%) 78% 10% / 60% 60% no-repeat,
    radial-gradient(closest-side, var(--glow-2), transparent 70%) 8% 70% / 55% 55% no-repeat;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--border); padding: 7px 14px 7px 10px; border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 20px; }
.hero p { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; margin: 30px 0 34px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-size: 1.7rem; font-weight: 800; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stats span { color: var(--faint); font-size: .84rem; }

/* phone mock */
.hero__art { position: relative; display: flex; justify-content: center; }
.phone {
  width: 280px; height: 570px; border-radius: 42px; background: linear-gradient(160deg, #1c1c1f, #0d0d0e);
  border: 1px solid var(--border-strong); box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.03);
  padding: 14px; position: relative; transition: transform .3s ease;
}
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #0a0a0a; border-radius: 0 0 14px 14px; z-index: 2; }
.phone__screen {
  height: 100%; border-radius: 30px; background: radial-gradient(circle at 80% 0%, rgba(203,251,69,.10), transparent 55%), var(--bg);
  padding: 30px 16px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.phone__statusbar { display: flex; justify-content: space-between; font-size: .68rem; color: var(--faint); font-weight: 700; padding: 0 4px; }
.phone__greeting { display: flex; flex-direction: column; gap: 2px; padding: 4px 4px 0; }
.phone__hello { font-weight: 800; font-size: 1.05rem; }
.phone__sub { font-size: .72rem; color: var(--faint); }
.phone__summary {
  background: linear-gradient(135deg, rgba(203,251,69,.16), rgba(245,200,66,.08));
  border: 1px solid rgba(203,251,69,.22); border-radius: var(--radius-lg); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.phone__summary-label { font-size: .68rem; color: var(--muted); font-weight: 600; }
.phone__summary-value { font-size: 1.6rem; font-weight: 800; }
.phone__summary-trend { font-size: .68rem; color: var(--success); font-weight: 700; }
.phone__list { display: flex; flex-direction: column; gap: 9px; }
.phone__row {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.035);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 9px 11px;
}
.phone__dot { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.phone__dot--1 { background: linear-gradient(135deg,#e5484d,#ff8a8f); }
.phone__dot--2 { background: linear-gradient(135deg,#1db954,#3dd68c); }
.phone__dot--3 { background: linear-gradient(135deg,#5b6cff,#8a5bff); }
.phone__row-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.phone__row-text strong { font-size: .8rem; }
.phone__row-text small { font-size: .65rem; color: var(--faint); }
.phone__row-price { font-size: .8rem; font-weight: 700; }
.phone__ai {
  margin-top: auto; display: flex; gap: 8px; align-items: flex-start;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 11px 12px;
}
.phone__ai-avatar { font-size: 1rem; }
.phone__ai-text { font-size: .68rem; color: var(--muted); line-height: 1.4; }

.floaty {
  position: absolute; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  padding: 9px 16px; font-size: .78rem; font-weight: 700; box-shadow: 0 16px 40px rgba(0,0,0,.4);
  animation: float 6s ease-in-out infinite;
}
.floaty--1 { top: 8%; left: -6%; animation-delay: .3s; }
.floaty--2 { bottom: 14%; right: -8%; animation-delay: 1.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); }
.strip__inner { display: flex; justify-content: space-around; gap: 24px; padding: 34px 0; flex-wrap: wrap; text-align: center; }
.strip strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand); }
.strip span { color: var(--faint); font-size: .85rem; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.section__lede { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }

/* ---------- features ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.card__icon {
  width: 46px; height: 46px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  background: rgba(203,251,69,.12); color: var(--brand); margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps__item {
  border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 26px 22px;
  background: rgba(255,255,255,.02); position: relative;
}
.steps__num {
  display: inline-block; font-size: .85rem; font-weight: 800; color: var(--on-brand);
  background: var(--brand-gradient); border-radius: var(--radius-pill); padding: 4px 11px; margin-bottom: 16px;
}
.steps__item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.steps__item p { color: var(--muted); font-size: .92rem; }

/* ---------- ai section ---------- */
.ai { background: radial-gradient(circle at 85% 20%, rgba(203,251,69,.08), transparent 45%); }
.ai__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai__copy p { color: var(--muted); font-size: 1.05rem; margin: 16px 0 24px; max-width: 46ch; }
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  position: relative; padding-left: 26px; color: var(--text); font-size: .95rem; font-weight: 500;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; color: var(--on-brand); background: var(--brand-gradient);
  width: 18px; height: 18px; border-radius: 50%; font-size: .68rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.chat {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); padding: 22px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.chat__bubble { max-width: 84%; padding: 12px 15px; border-radius: var(--radius-lg); font-size: .9rem; line-height: 1.45; }
.chat__bubble--user { align-self: flex-end; background: var(--surface-2); border-bottom-right-radius: 4px; }
.chat__bubble--ai {
  align-self: flex-start; background: linear-gradient(135deg, rgba(203,251,69,.16), rgba(245,200,66,.08));
  border: 1px solid rgba(203,251,69,.2); border-bottom-left-radius: 4px;
}
.chat__typing { align-self: flex-start; display: flex; gap: 4px; padding: 6px 4px; }
.chat__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: bounce 1.2s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ---------- plans ---------- */
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 30px 26px;
  text-align: center; background: rgba(255,255,255,.02); display: flex; flex-direction: column;
}
.plan--featured { border-color: rgba(203,251,69,.5); background: linear-gradient(180deg, rgba(203,251,69,.08), rgba(255,255,255,.02)); box-shadow: 0 20px 50px rgba(203,251,69,.1); }
.plan h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.plan__price { font-size: 2.1rem; font-weight: 800; margin: 12px 0 6px; }
.plan__desc { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.plan__features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; text-align: left; }
.plan__features li { font-size: .87rem; color: var(--muted); padding-left: 22px; position: relative; }
.plan__features li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.plan .btn { margin-top: auto; }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--surface-2);
  border: 1px solid var(--border-strong); color: var(--text); font-size: .72rem; font-weight: 700;
  padding: 5px 14px; border-radius: var(--radius-pill); white-space: nowrap;
}
.plan__badge--pop { background: var(--brand-gradient); color: var(--on-brand); border-color: transparent; }
.plans__note { text-align: center; color: var(--faint); margin-top: 32px; font-size: .87rem; max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- faq ---------- */
.faq__inner { max-width: 760px; }
.accordion__item {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.accordion__item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 1rem;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon { color: var(--brand); font-size: 1.2rem; font-weight: 400; transition: transform .2s ease; }
.accordion__item[open] .accordion__icon { transform: rotate(45deg); }
.accordion__body { color: var(--muted); font-size: .93rem; padding-top: 12px; max-width: 62ch; }

/* ---------- cta ---------- */
.cta { text-align: center; }
.cta__inner {
  background: linear-gradient(135deg, rgba(203,251,69,.12), rgba(245,200,66,.06));
  border: 1px solid rgba(203,251,69,.24); border-radius: var(--radius-xl); padding: 64px 32px;
}
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; }
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 11px 20px; font-weight: 700; background: var(--surface); transition: transform .15s ease, border-color .15s ease;
}
.store:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.store small { display: block; font-size: .62rem; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand--footer { font-size: 1rem; }
.footer__links { display: flex; gap: 20px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--faint); font-size: .85rem; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-gradient); color: var(--on-brand); border: none; font-size: 1.1rem; font-weight: 800;
  cursor: pointer; box-shadow: 0 12px 30px rgba(203,251,69,.3); opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; z-index: 40;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- legal pages ---------- */
.legal { padding: 70px 0 90px; max-width: 760px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal > p:first-of-type { color: var(--faint); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { margin-top: 36px; margin-bottom: 10px; font-size: 1.25rem; }
.legal p, .legal li { color: var(--muted); font-size: .97rem; }
.legal li { position: relative; padding-left: 18px; margin-top: 8px; }
.legal li::before { content: "–"; position: absolute; left: 0; color: var(--faint); }
.legal a { color: var(--brand); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__inner, .ai__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; margin-bottom: 12px; }
  .phone { width: 240px; height: 490px; }
  .grid--3, .steps, .plans__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10,10,10,.98); border-bottom: 1px solid var(--border); padding: 8px 24px 18px;
  }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero__stats { gap: 22px; }
  .grid--3, .steps, .plans__grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer__inner { flex-direction: column; text-align: center; }
}
