:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --ink: #14161f;
  --muted: #5b6172;
  --bg: #ffffff;
  --soft: #f6f6fb;
  --line: #e8e8f0;
  --high: #dc2626;
  --med: #d97706;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
section { padding: 72px 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.brand .ai { color: var(--brand); }
.logo {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  background: var(--brand); color: #fff; border-radius: 7px; font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 600;
  padding: 12px 22px; border-radius: 11px; border: none; cursor: pointer;
  font-size: 15px; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--soft); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 24px; background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.nav nav a:not(.btn) { color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { text-align: center; max-width: var(--max); margin: 0 auto; padding-top: 56px; }
.pill {
  display: inline-block; background: #eef0fe; color: var(--brand); font-weight: 600;
  font-size: 13px; padding: 6px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 58px); margin: 0 0 18px; }
.hero h1 em { color: var(--brand); font-style: normal; }
.sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.microcopy { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Product mock */
.mock {
  max-width: 560px; margin: 48px auto 0; text-align: left; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(79,70,229,.4);
}
.mock-head { display: flex; gap: 7px; padding: 13px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.mock-head span { width: 11px; height: 11px; border-radius: 50%; background: #d3d3df; }
.mock-body { padding: 22px 24px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--brand); background: #eef0fe; padding: 3px 10px; border-radius: 20px; }
.mock-tldr { background: var(--soft); border-left: 3px solid var(--brand); padding: 12px 14px; border-radius: 8px; font-weight: 500; margin: 12px 0 18px; }
.mock-body h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 18px 0 8px; }
.mock-body ul { margin: 0; padding-left: 18px; color: var(--ink); }
.mock-body li { margin-bottom: 6px; }
.flag { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.sev { flex: none; font-size: 10px; font-weight: 800; color: #fff; padding: 2px 7px; border-radius: 20px; margin-top: 2px; }
.sev.high { background: var(--high); }
.sev.med { background: var(--med); }
.flag span { font-size: 14px; }

/* Strip */
.strip { background: var(--soft); text-align: center; padding: 28px 24px; }
.strip p { margin: 0; color: var(--muted); max-width: 760px; margin: 0 auto; }
.strip b { color: var(--ink); }

/* How */
.how { max-width: var(--max); margin: 0 auto; text-align: center; }
.how h2, .pricing h2, .install h2, .faq h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 8px; }
.num { width: 40px; height: 40px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 50%; font-weight: 700; }
.step h3 { margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; }

/* Features */
.features { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feat { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.feat h3 { margin: 0 0 8px; font-size: 19px; }
.feat p { color: var(--muted); margin: 0; }

/* Pricing */
.pricing { text-align: center; }
.pricing-sub { color: var(--muted); margin: -28px 0 40px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 24px; justify-content: center; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; text-align: left; position: relative; }
.plan.featured { border-color: var(--brand); box-shadow: 0 20px 50px -28px rgba(79,70,229,.5); }
.ribbon { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.plan h3 { margin: 0 0 4px; }
.price { font-size: 40px; font-weight: 800; margin: 0 0 18px; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--ink); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.cancel-note { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* Install */
.install { text-align: center; background: var(--soft); }
.install p { max-width: 560px; margin: 0 auto 26px; color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 14px; }

/* Footer */
.footer { text-align: center; padding: 48px 24px; border-top: 1px solid var(--line); color: var(--muted); }
.footer .brand { justify-content: center; margin-bottom: 8px; }
.footer .small { font-size: 13px; }

@media (max-width: 720px) {
  .nav nav a:not(.btn) { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: minmax(0, 340px); }
}
