:root {
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-tint: #f0fdfa;
  --ink: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --purple: #a78bfa;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-dark); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; transition: height 0.22s ease; }
/* Compact state (added by header.js once scrolled) */
.site-header.scrolled { box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08); }
.site-header.scrolled .wrap { height: 50px; }
.site-header .brand svg { transition: width 0.22s ease, height 0.22s ease; }
.site-header.scrolled .brand svg { width: 27px; height: 27px; }
.site-header .brand b { transition: font-size 0.22s ease; }
.site-header.scrolled .brand b { font-size: 15px; }
.site-header.scrolled .brand span { display: none; }
.site-header .nav-cta { transition: padding 0.22s ease; }
.site-header.scrolled .nav-cta { padding: 5px 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; display: block; }
.brand b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand span { font-size: 11px; font-weight: 600; color: var(--teal-dark); display: block; margin-top: -2px; }
.nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--teal-dark); }

/* Hero */
.hero { text-align: center; padding: 64px 0 40px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.02em; }
.hero .tag { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.cta {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none;
  font-weight: 600; padding: 12px 22px; border-radius: 10px;
}
.cta:hover { background: var(--teal-dark); }
.cta-sub { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.nav-cta {
  background: var(--teal); color: #fff !important; padding: 7px 14px; border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--teal-dark); }

/* Wide container (header + landing hero) */
.wrap-wide { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Landing hero (two-column with product mock) */
.lhero {
  background:
    radial-gradient(820px 460px at 12% -5%, #e7fbf3 0%, rgba(231,251,243,0) 62%),
    linear-gradient(120deg, #f0fdfa 0%, #ffffff 58%);
  border-bottom: 1px solid var(--border);
}
.lhero-grid {
  display: grid; grid-template-columns: 1.04fr 1fr; gap: 48px; align-items: center;
  padding: 56px 24px 66px;
}
.lhero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.lhero-brand svg { width: 46px; height: 46px; display: block; }
.lhero-brand b { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; display: block; line-height: 1.05; }
.lhero-brand span { font-size: 12px; font-weight: 600; color: var(--teal-dark); display: block; }
.lhero-copy h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; }
.lhero-copy h1 .accent { color: var(--teal-dark); }
.lhero-sub { font-size: 18px; color: var(--muted); margin: 0 0 26px; max-width: 470px; }
.lhero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tpill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 15px; font-size: 13px; font-weight: 600; color: var(--ink);
  box-shadow: 0 1px 3px rgba(31,41,55,0.05);
}
.lhero-actions .cta { font-size: 16px; padding: 13px 24px; }
.lhero-actions .cta-sub { margin-top: 14px; }

/* Product mock (right column) */
.lhero-demo { display: flex; justify-content: center; }
.pm {
  width: 100%; max-width: 400px; background: #fff; border-radius: 18px;
  box-shadow: 0 26px 64px rgba(15,23,42,0.16); border: 1px solid #eef1f4;
  padding: 16px; font-size: 13px; color: var(--ink); line-height: 1.5;
}
.pm-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.pm-brand { display: flex; align-items: center; gap: 8px; }
.pm-brand svg { width: 26px; height: 26px; display: block; }
.pm-brand b { font-size: 13px; font-weight: 700; display: block; line-height: 1.1; }
.pm-brand span { font-size: 10px; color: var(--teal-dark); font-weight: 600; display: block; }
.pm-menu { color: var(--muted); font-size: 15px; }
.pm-score { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 13px 0 9px; }
.pm-scoreleft { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pm-pill { background: #ccfbf1; color: #0d9488; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.pm-msg { font-size: 12px; font-weight: 600; color: var(--teal-dark); }
.pm-credits { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pm-summary { margin: 0 0 12px; font-size: 12.5px; color: #374151; }
.pm-sec { border: 1px solid var(--border); border-radius: 10px; }
.pm-sec-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 700; font-size: 13px; }
.pm-chev { color: var(--muted); font-size: 11px; }
.pm-sec-label { flex: 1; }
.pm-count { background: #ccfbf1; color: #0d9488; font-weight: 700; font-size: 11px; padding: 1px 8px; border-radius: 999px; }
.pm-find { border-left: 3px solid var(--muted); margin: 0 8px 8px; border: 1px solid var(--border); border-left-width: 3px; border-radius: 6px; padding: 8px 10px; }
.pm-find.pm-warn { border-left-color: #d97706; }
.pm-find.pm-sugg { border-left-color: #a78bfa; }
.pm-tag { font-size: 9px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.pm-find p { margin: 4px 0 8px; font-size: 12.5px; }
.pm-fix { position: relative; background: #f5f3ff; border: 1px solid #ede9fe; border-radius: 8px; padding: 7px 26px 7px 9px; font-size: 12px; color: #4c1d95; }
.pm-copy { position: absolute; right: 7px; top: 7px; color: var(--muted); font-size: 12px; }
.pm mark { background: #fef08a; color: #713f12; border-radius: 3px; padding: 0 3px; font-weight: 700; box-shadow: inset 0 -2px 0 #eab308; }
.pm-rw-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.pm-blanks { color: #d97706; font-weight: 700; }
.pm-icons { letter-spacing: 3px; font-size: 13px; opacity: 0.75; }
.pm-rw { border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-size: 12.5px; line-height: 1.6; }
.pm-foot { margin: 12px 0 2px; font-size: 10.5px; color: var(--muted); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 24px 0 8px; }
.feature {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fcfdfd;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(31,41,55,0.08); border-color: #ccfbf1; }
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.note {
  background: linear-gradient(135deg, var(--teal-tint), #f5f3ff);
  border: 1px solid #ccfbf1; border-radius: 12px; padding: 14px 16px; color: #0f766e;
  font-size: 14px; margin: 28px 0;
}

/* Doc pages */
.doc { padding: 44px 0 24px; }
.doc h1 { font-size: 32px; margin: 0 0 4px; letter-spacing: -0.02em; }
.doc .eff { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.doc h2 {
  font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.01em;
  padding-bottom: 6px; border-bottom: 2px solid var(--teal-tint);
}
.doc h3 { font-size: 16px; margin: 22px 0 6px; }
.doc p, .doc li { color: #374151; }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--ink); }

/* How-it-works: numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 16px 0; }
.steps li {
  position: relative; padding: 4px 0 14px 44px; color: #374151;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.steps li b { color: var(--ink); }

/* Cards shared: hover lift + "featured" badge (text via data-badge) */
.plan, .pricecard {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.plan:hover, .pricecard:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(31,41,55,0.09); }
.plan.featured, .pricecard.featured {
  border-color: var(--teal); box-shadow: 0 6px 22px rgba(20,184,166,0.16);
}
.featured[data-badge]::before {
  content: attr(data-badge);
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(20,184,166,0.3);
}

/* Plan comparison cards */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 20px 0; }
.plan { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: #fcfdfd; }
.plan h3 { margin: 0 0 2px; font-size: 17px; }
.plan .who { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.plan ul { padding-left: 0; margin: 0; list-style: none; }
.plan li { color: #374151; font-size: 14px; margin: 8px 0; padding-left: 24px; position: relative; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal-dark); font-weight: 800;
}

/* Pricing */
.pricecards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 22px 0; }
.pricecard { border: 1px solid var(--border); border-radius: 16px; padding: 26px 20px; text-align: center; background: #fff; }
.pricecard .price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.pricecard .price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pricecard .plan-name {
  font-weight: 700; margin: 0 0 8px; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--teal-dark);
}
.pricecard .sub { color: var(--muted); font-size: 13px; margin: 10px 0 0; line-height: 1.5; }
.pricetable {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: 14px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.pricetable th, .pricetable td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.pricetable th { background: var(--teal-tint); color: #0f766e; font-weight: 700; }
.pricetable tbody tr:last-child td { border-bottom: 0; }
.pricetable tbody tr:nth-child(even) td { background: #fafbfc; }
.pricetable tbody tr:hover td { background: var(--teal-tint); }
.pricetable td:last-child { font-weight: 700; color: var(--ink); }

/* Promo banner */
.promo {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--teal-tint), #f5f3ff);
  border: 1px solid #ccfbf1; border-radius: 16px; padding: 22px 24px; margin: 24px 0;
}
.promo .promo-text { flex: 1; min-width: 220px; }
.promo .promo-text b { font-size: 17px; }
.promo .promo-text p { margin: 6px 0 0; color: #475569; font-size: 13px; }
.promo-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 800;
  letter-spacing: 0.1em; color: #0f766e;
  background: #fff; border: 2px dashed var(--teal); border-radius: 12px; padding: 12px 20px;
  box-shadow: 0 3px 10px rgba(20,184,166,0.12);
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 24px 0; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer a { margin-left: 16px; color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal-dark); }

@media (max-width: 900px) {
  .lhero-grid { grid-template-columns: 1fr; gap: 36px; padding: 40px 24px 48px; }
  .lhero-copy h1 { font-size: 38px; }
  .lhero-sub { max-width: none; }
  .lhero-demo { order: 2; }
  .pm { max-width: 380px; }
}

@media (max-width: 560px) {
  .features, .plans, .pricecards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .lhero-copy h1 { font-size: 31px; }
  .lhero-sub { font-size: 16px; }
  .nav a:not(.nav-cta) { display: none; }
}
