:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #0f172a;
  --text-muted: #475569;
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-soft: #eef2ff;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(79, 70, 229, 0.15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

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

/* Nav */
.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark { display: inline-flex; }
.nav__links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav__links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); }
.lang__active { color: var(--text); font-weight: 600; }
.lang__sep { color: var(--border); }
.lang a { color: var(--text-muted); }
.lang a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(79, 70, 229, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(14, 165, 233, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
h1 {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
}
.lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 32px;
}
.cta { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s ease;
}
.btn--primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn--primary:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--text-muted); text-decoration: none; }

/* Store badges */
.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #0f172a;
  color: white;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
}
.store-badge:hover { text-decoration: none; background: #1e293b; }
.store-badge--soon { opacity: 0.9; cursor: default; }
.store-badge svg { width: 22px; height: 24px; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; }
.store-badge small { font-size: 10px; font-weight: 400; opacity: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }

/* Trust badge */
.hero__trust { margin-top: 8px; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}
.trust-badge svg { color: var(--brand); }
.stripe-wordmark {
  color: #635bff;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 15px;
}

/* Hero visual — phone stack (iPhone-style frames) */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
  position: relative;
}
.phone-stack {
  position: relative;
  width: 240px;
  height: 500px;
}
.phone {
  position: absolute;
  width: 220px;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 8px #0f172a,
    0 0 0 9px rgba(255,255,255,0.06),
    0 30px 60px rgba(15, 23, 42, 0.28);
  transition: transform 0.3s ease;
}
.phone__frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #000;
}
.phone__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone__frame::before {
  /* Dynamic Island pill — overlays screenshot's status bar area subtly */
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
  opacity: 0.92;
}
.phone--front {
  top: 15px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 3;
  box-shadow:
    0 0 0 8px #0f172a,
    0 0 0 9px rgba(255,255,255,0.08),
    0 40px 80px rgba(79, 70, 229, 0.30);
}
.phone--back-left {
  top: 35px;
  left: -62px;
  transform: rotate(-11deg) scale(0.82);
  z-index: 1;
  opacity: 0.9;
}
.phone--back-right {
  top: 35px;
  right: -62px;
  transform: rotate(9deg) scale(0.82);
  z-index: 2;
  opacity: 0.9;
}
.phone-stack:hover .phone--front { transform: translateX(-50%) rotate(-2deg) translateY(-6px); }
.phone-stack:hover .phone--back-left { transform: rotate(-13deg) scale(0.82) translateX(-8px); }
.phone-stack:hover .phone--back-right { transform: rotate(11deg) scale(0.82) translateX(8px); }

/* Sections */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 40px;
  max-width: 640px;
}
h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-lg);
  position: relative;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.step p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* Grid */
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.section--alt .card { background: var(--bg); }
.card p { color: var(--text-muted); margin: 0; font-size: 15px; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }

.card--price .price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}

/* Categories */
.cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat {
  padding: 10px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s ease;
}
.cat:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-soft);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
  max-width: 720px;
}
.checklist li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
  font-size: 16px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
}

/* FAQ */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px;
  color: var(--brand);
  font-weight: 400;
  transition: transform 0.2s;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact */
.contact-list {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px 32px;
  margin: 32px 0 0;
  max-width: 760px;
}
.contact-list dt {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-list dd { margin: 0; font-size: 16px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: start;
}
.footer__legal { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer__nav a { color: var(--text-muted); font-size: 14px; }
.footer__nav a:hover { color: var(--text); }
.footer__stripe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer__copy {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 13px;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal h1 { font-size: 40px; margin-bottom: 8px; }
.legal .muted { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--text); font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 20px; }

/* Mobile */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; min-height: 460px; }
  .phone-stack { transform: scale(0.8); }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .phone-stack { transform: scale(0.68); }
  .hero__visual { min-height: 400px; }
}
@media (max-width: 768px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; gap: 4px 0; }
  .contact-list dt { margin-top: 12px; }
  .nav__links { display: none; }
  .nav__inner { gap: 12px; }
  .store-badge { padding: 6px 12px; font-size: 13px; }
}
