:root {
  --bg: #fafaff;
  --bg-alt: #f2f0ff;
  --ink: #14112b;
  --heading: #14112b;
  --muted: #605c7a;
  --card: #ffffff;
  --line: #e4e0f7;
  --accent: #6c47ff;
  --accent-hover: #5634e6;
  --accent-ink: #ffffff;
  --green: #1f9d6b;
  --shadow: 0 1px 2px rgba(20, 17, 43, .06), 0 8px 24px rgba(20, 17, 43, .06);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d1c;
    --bg-alt: #171428;
    --ink: #ecebf7;
    --heading: #ffffff;
    --muted: #a6a2c2;
    --card: #1a1730;
    --line: #2c2848;
    --accent: #9b84ff;
    --accent-hover: #b3a2ff;
    --accent-ink: #0f0d1c;
    --green: #5fd3a2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
  img.mono { filter: invert(1); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }

/* nav */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--heading); text-decoration: none; }
.brand em { font-style: normal; color: var(--accent); }
.links { display: flex; gap: 24px; }
.links a { color: var(--ink); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--accent); }
@media (max-width: 720px) { .links { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--accent); transition: background .15s; }
.btn:hover { background: var(--accent-hover); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); }
.btn-block { width: 100%; margin: 16px 0 20px; }

/* hero */
.hero { text-align: center; padding-top: 56px; }
.mascot { display: block; margin: 0 auto 12px; }
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 18px; color: var(--heading); }
.hero-sub { margin: 0 0 10px; color: var(--muted); font-size: 18px; }
.chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 720px; }
.chips li { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 11px; font-size: 15px; box-shadow: 0 1px 2px rgba(20, 17, 43, .05); }
.chips img { width: 18px; height: 18px; }
.hero-price { font-size: 19px; color: var(--muted); margin: 18px 0 24px; }
.hero-price strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(20, 17, 43, .25), var(--shadow); background: var(--card); }
.shot img { display: block; width: 100%; height: auto; }
.hero-shot { margin: 44px auto 0; max-width: 1000px; }

/* sections */
.section { padding-top: 96px; }
h2 { text-align: center; font-size: clamp(28px, 4.5vw, 42px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 10px; color: var(--heading); }
.section-sub { text-align: center; color: var(--muted); font-size: 18px; margin: 0 0 40px; }

/* models */
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 12px; }
.model-stack { display: grid; gap: 12px; align-content: start; }
.model-col { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.model-col h3 { margin: 0 0 10px; text-align: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.model-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.model-col li { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 10px; padding: 8px 12px; font-size: 15px; box-shadow: 0 1px 2px rgba(20, 17, 43, .06); }
.model-col img { width: 20px; height: 20px; }
.funnel { display: block; width: min(640px, 100%); height: 70px; margin: 0 auto; color: var(--muted); }
.erizo-box { display: flex; align-items: center; gap: 12px; width: max-content; margin: 4px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; box-shadow: var(--shadow); }
.erizo-box strong { display: block; font-size: 18px; color: var(--heading); }
.erizo-box span { color: var(--green); font-size: 14px; }
.compare { text-align: center; color: var(--muted); margin-top: 28px; }
.compare s { color: var(--muted); }
@media (max-width: 720px) {
  .model-grid { grid-template-columns: 1fr 1fr; }
  .model-stack { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .funnel { display: none; }
}

/* features */
.features { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.feature-list { display: grid; }
.feature-list button { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 4px; cursor: pointer; color: var(--ink); font: inherit; }
.feature-list button span { display: block; font-size: 17px; font-weight: 600; }
.feature-list button small { display: none; color: var(--muted); font-size: 14px; margin-top: 6px; }
.feature-list button[aria-selected="true"] span { color: var(--accent); }
.feature-list button[aria-selected="true"] small { display: block; }
.feature-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pcard { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; }
.picon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--heading); color: var(--bg); display: grid; place-items: center; }
.picon svg { width: 26px; height: 26px; }
.pcard h3 { margin: 0 0 8px; font-size: 17px; }
.pcard p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* pricing */
.billing { display: flex; width: max-content; margin: -16px auto 28px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.billing button { border: 0; background: none; font: inherit; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.billing button.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 17, 43, .12); font-weight: 600; }
.save { color: var(--green); font-size: 13px; font-weight: 600; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--accent); }
.badge-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); margin: 0; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin: 0; font-size: 22px; }
.tagline { margin: 2px 0 14px; color: var(--muted); }
.price { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.billed { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5.1-5.1 1.1 1.1z'/%3E%3C/svg%3E") center / 16px no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* faq */
.faq { max-width: 780px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* final + footer */
.final { text-align: center; padding: 96px 16px 72px; }
.final h2 { margin: 14px auto 24px; max-width: 640px; }
.foot { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 32px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 8px; }
.marks { flex-basis: 100%; font-size: 12.5px; }

/* legal pages */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 48px; }
.legal h1 { font-size: 34px; text-align: left; }

/* feature screenshots: fixed frame so portrait (mobile) shots don't blow up */
.feature-shot { aspect-ratio: 1280 / 800; background: var(--bg-alt); }
.feature-shot picture { display: block; width: 100%; height: 100%; }
.feature-shot img { width: 100%; height: 100%; object-fit: contain; }
