/* Design system */
:root {
  --bg: #0b0b10;
  --bg-elev: #12121a;
  --text: #e5e7eb;
  --muted: #a1a1aa;
  --accent: #8b5cf6; /* punchy purple */
  --accent-strong: #7c3aed;
  --success: #22c55e;
  --danger: #ef4444;
  --card: #0f0f16;
  --border: #1f1f2a;
  --phone: #0a0a0f;
  --phone-bezel: #1b1b25;
  --shadow: 0 8px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height: 1.55;
  scroll-behavior: smooth;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(11,11,16,.85), rgba(11,11,16,.5) 60%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 18px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: grid; place-items: center;
  color: #0b0b10; font-weight: 900;
  box-shadow: 0 6px 20px rgba(139,92,246,.45);
}
.nav-links {
  display: none;
  gap: 18px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b0b10;
  box-shadow: 0 10px 25px rgba(139,92,246,.45);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(139,92,246,.5); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 16px; border-radius: 14px; }

/* Hero */
.hero {
  padding: 48px 0 24px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-weight: 600; letter-spacing: .3px;
  font-size: 12px; text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 6px 10px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(28px, 5.8vw, 56px);
  line-height: 1.05;
  margin: 16px 0 12px;
  letter-spacing: -0.5px;
}
.hero p.lede {
  color: var(--muted);
  font-size: clamp(15px, 1.9vw, 18px);
  max-width: 760px;
  margin: 0 0 20px 0;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}
.hero-note {
  margin-top: 10px; color: var(--muted); font-size: 13px;
}

/* Badges row */
.badges {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin: 24px 0 8px;
}
.badge {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600; color: var(--text);
  font-size: 13px;
}

/* How it works */
.section {
  padding: 32px 0;
}
.section h2 {
  font-size: clamp(22px, 3.6vw, 34px);
  letter-spacing: -.3px;
  margin: 0 0 14px 0;
}
.grid-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.step {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}
.step-num {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b0b10; font-weight: 900;
  box-shadow: 0 4px 14px rgba(139,92,246,.4);
}
.step h3 { margin: 0; font-size: 16px; }
.step p { margin: 4px 0 0 0; color: var(--muted); font-size: 14px; }

/* Samples gallery (phone frames, 9:16) */
.samples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.phone {
  background: var(--phone-bezel);
  border: 1px solid #2a2a3a;
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.phone-notch {
  width: 40%;
  height: 16px;
  border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
  background: #0d0d14;
  margin: 0 auto 8px;
}
.phone-screen {
  position: relative;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}
.phone iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.caption {
  font-size: 13px; color: var(--muted);
  margin-top: 8px; text-align: center;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.plan {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(139,92,246,.12), rgba(139,92,246,0) 40%), var(--card);
  border-radius: 16px;
  padding: 16px;
}
.plan--featured {
  border-color: rgba(139,92,246,.45);
  box-shadow: 0 12px 40px rgba(139,92,246,.18);
}
.plan h3 { margin: 0 0 6px 0; font-size: 18px; }
.price {
  font-size: 28px; font-weight: 900; letter-spacing: -.3px; margin: 8px 0;
}
.price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.features { list-style: none; padding: 0; margin: 10px 0 14px 0; }
.features li { padding: 6px 0; display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.features .tick {
  width: 18px; height: 18px; border-radius: 6px; background: #0e0e15; border: 1px solid var(--border);
  color: var(--success); display: grid; place-items: center; font-size: 12px; font-weight: 900;
}

/* FAQ */
.faq {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item { border-top: 1px solid var(--border); }
.faq-item:first-child { border-top: 0; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; cursor: pointer;
  background: transparent; border: 0; color: var(--text); width: 100%; text-align: left;
  font-weight: 700; letter-spacing: .2px;
}
.faq-a {
  padding: 0 16px 14px 16px; color: var(--muted); display: none; font-size: 15px;
}
.faq-item[aria-expanded=\"true\"] .faq-a { display: block; }
.faq-item[aria-expanded=\"true\"] .faq-q .chev { transform: rotate(180deg); }
.chev { transition: transform .2s ease; }

/* Footer */
footer {
  margin-top: 24px; padding: 24px 0 80px; color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.address { font-size: 12px; }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  background: rgba(11,11,16,.6);
  padding: 10px; border-radius: 14px; border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.mobile-cta .btn { padding: 12px; }

/* Utilities */
.muted { color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 12px;
}
.divider { height: 1px; background: var(--border); margin: 10px 0; }
.center { text-align: center; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Larger screens */
@media (min-width: 700px) {
  .nav-links { display: inline-flex; }
  .hero { padding: 72px 0 24px; }
  .badges { grid-template-columns: repeat(4,1fr); }
  .grid-steps { grid-template-columns: repeat(2,1fr); }
  .samples { grid-template-columns: repeat(2,1fr); }
  .pricing { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1100px) {
  .samples { grid-template-columns: repeat(3,1fr); }
}

/* Show sticky CTA only on mobile */
@media (min-width: 768px) {
  .mobile-cta { display: none; }
}

/* Thumbnail play overlay for samples */
.phone-screen.is-thumb {
  display: block;
  border: 0;
  background: #000;
  padding: 0;
  width: 100%;
  height: auto;
  cursor: pointer;
}
.phone-screen.is-thumb img.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.phone-screen.is-thumb .play-btn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 999px;
  background: rgba(11,11,16,.72);
  border: 2px solid rgba(255,255,255,.5);
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.open-loom {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

