:root {
  color-scheme: light;
  --bg: #e9e6f2;
  --surface: #fcfbfe;
  --text: #181922;
  --muted: #626675;
  --border: #c9c4d3;
  --accent: #6d52e5;
  --accent-hover: #5b3fd4;
  --accent-soft: #f0ecff;
  --ok: #0f766e;
  --shadow: 0 16px 40px rgb(30 34 50 / 10%);
  --radius: 18px;
  --max: 1080px;
  --header-h: 64px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ddd6fe 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #c7d2fe 0%, transparent 45%),
    var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
strong { font-weight: 700; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgb(252 251 254 / 88%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 750;
  letter-spacing: 0.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
/* Desktop section links live inside .nav-links; parent .nav gap does not space them. */
.nav-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav a:hover, .nav a:focus-visible { color: var(--accent); }
/* Header CTAs: beat generic `.nav a` color so purple primary stays white text */
.nav a.btn {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.nav a.btn-primary,
.nav a.btn-primary:hover,
.nav a.btn-primary:focus-visible {
  color: #fff;
  background: var(--accent);
}
.nav a.btn-primary:hover,
.nav a.btn-primary:focus-visible {
  background: var(--accent-hover);
  color: #fff;
}
.nav a.btn-ghost,
.nav a.btn-ghost:hover,
.nav a.btn-ghost:focus-visible {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}
.nav a.btn-ghost:hover,
.nav a.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
}
.btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, white);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
  color: #fff;
}
a.btn-primary,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active,
a.btn-primary:focus-visible {
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

main { display: block; }
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.section {
  padding: 56px 0;
}
.section-alt {
  background: rgb(252 251 254 / 70%);
  border-top: 1px solid rgb(201 196 211 / 55%);
  border-bottom: 1px solid rgb(201 196 211 / 55%);
}
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}
.section .lede {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 62ch;
}

.hero {
  padding: 36px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero .subhead {
  margin: 0 0 22px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 48ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.meta-row {
  color: var(--muted);
  font-size: 0.92rem;
}
.phone-frame {
  margin: 0 auto;
  width: min(320px, 100%);
  border-radius: 28px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone-frame img { width: 100%; height: auto; }

.glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.glance li {
  list-style: none;
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgb(30 34 50 / 5%);
}
.glance ul { margin: 0; padding: 0; display: contents; }
.glance strong { display: block; margin-bottom: 4px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li + li { margin-top: 0.45rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.step .body { padding: 16px 18px 20px; }
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.mid-cta {
  text-align: center;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #6d52e5, #4f46e5 55%, #4338ca);
  color: #fff;
  box-shadow: var(--shadow);
}
.mid-cta h2 { color: #fff; margin-bottom: 8px; }
.mid-cta p { margin: 0 0 16px; color: rgb(255 255 255 / 90%); }
.mid-cta .btn-primary {
  background: #fff;
  color: #4338ca;
}
.mid-cta .btn-primary:hover { background: #f8fafc; color: #312e81; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.92rem;
}
caption {
  text-align: left;
  padding: 14px 16px 8px;
  font-weight: 700;
}
th, td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
th { background: #f5f3ff; font-size: 0.85rem; }
tbody tr:nth-child(even) { background: #faf9fc; }
.note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.audience .card h3 { font-size: 1.02rem; }
.not-for {
  border-color: #f0c36d;
  background: #fff9e8;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}
.price-card .plan { font-weight: 800; font-size: 1.05rem; }
.price-card .amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-card .period { color: var(--muted); font-size: 0.92rem; }
.price-card ul { margin: 8px 0 0; padding-left: 1.1rem; color: var(--muted); }
.badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.fact .n {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.fact .l { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--accent);
  font-weight: 800;
}
.faq details[open] summary::before { content: "–"; }
.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.final-cta {
  text-align: center;
  padding: 40px 20px;
}
.final-cta h2 { margin-bottom: 8px; }

.yt-facade {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  box-shadow: var(--shadow);
}
.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-facade__button {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  background: #111;
  position: relative;
}
.yt-facade__button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, white);
  outline-offset: 3px;
}
.yt-facade__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-facade__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 0.15s ease;
}
.yt-facade__button:hover .yt-facade__play,
.yt-facade__button:focus-visible .yt-facade__play {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .yt-facade__play { transition: none; }
  .yt-facade__button:hover .yt-facade__play,
  .yt-facade__button:focus-visible .yt-facade__play { transform: none; }
}

.founder {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
}
.founder img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.founder h3 { margin: 0 0 8px; font-size: 1.2rem; }
.founder p { margin: 0 0 10px; }
.founder-links a { font-weight: 700; }
@media (max-width: 600px) {
  .founder { grid-template-columns: 1fr; }
  .founder img { width: 140px; height: 175px; }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #f4f2f8;
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.site-footer h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { text-decoration: none; color: var(--muted); font-weight: 600; }
.site-footer a:hover { color: var(--accent); }

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgb(252 251 254 / 94%);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.mobile-cta .btn { width: 100%; }

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .steps,
  .features,
  .audience,
  .pricing,
  .facts,
  .footer-grid,
  .glance {
    grid-template-columns: 1fr;
  }
  .nav .nav-links { display: none; }
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
  .section { padding: 40px 0; }
}

@media (min-width: 901px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .glance { grid-template-columns: repeat(3, 1fr); }
}
