
:root {
  --bg: #061016;
  --bg-2: #0a1821;
  --panel: #102331;
  --panel-2: #0c1b25;
  --line: rgba(167, 224, 216, 0.2);
  --text: #eef8f5;
  --muted: #a9bbb8;
  --green: #56e0b1;
  --green-2: #20b486;
  --cyan: #7ad7ff;
  --amber: #f2b85b;
  --red: #ff756d;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(86, 224, 177, 0.12), transparent 32rem),
    linear-gradient(180deg, #061016 0%, #09202b 50%, #081318 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 22, 0.88);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--white); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(86, 224, 177, 0.48);
  border-radius: 8px;
  background: linear-gradient(135deg, #0e4e53, #1bc58f);
  color: #04100d;
  font-weight: 900;
}
nav { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--white); }
.header-cta, .primary-action, .secondary-action, .plan-button, .link-action, .inline-cta button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 800;
  min-height: 44px;
}
.header-cta, .primary-action, .plan-button, .link-action, .inline-cta button {
  background: linear-gradient(135deg, var(--green), #8fffe0);
  color: #03110e;
  box-shadow: 0 10px 30px rgba(86, 224, 177, 0.18);
}
.secondary-action, .secondary-link {
  border: 1px solid rgba(122, 215, 255, 0.36);
  background: rgba(122, 215, 255, 0.08);
  color: var(--text);
}
.secondary-link { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 12px 16px; font-weight: 800; min-height: 44px; }
.hero-tool {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 62px);
  padding: clamp(36px, 5vw, 72px) clamp(18px, 5vw, 72px) 34px;
}
.hero-copy h1, .page-hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}
.hero-lede, .page-hero p { max-width: 760px; color: #c9dbd7; font-size: 19px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.signal-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #cde5df;
  font-size: 13px;
}
.review-shell {
  border: 1px solid rgba(86, 224, 177, 0.28);
  border-radius: 8px;
  background: rgba(12, 30, 40, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.review-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #0a1821;
  color: var(--muted);
}
.review-toolbar strong { color: var(--text); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(86, 224, 177, 0.12); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
}
label { display: grid; gap: 7px; color: #bcd0cb; font-size: 13px; font-weight: 700; }
.wide { grid-column: 1 / -1; }
select, textarea {
  width: 100%;
  border: 1px solid rgba(167, 224, 216, 0.22);
  border-radius: 8px;
  background: rgba(3, 12, 17, 0.72);
  color: var(--text);
  padding: 11px 12px;
  outline: 0;
}
textarea { min-height: 170px; resize: vertical; }
select:focus, textarea:focus { border-color: rgba(86, 224, 177, 0.76); box-shadow: 0 0 0 3px rgba(86, 224, 177, 0.12); }
.result-console {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  padding: 0 16px 16px;
}
.score-meter {
  border: 1px solid rgba(86, 224, 177, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(4, 16, 21, 0.8);
}
.score-meter span, .rewrite-box span { color: var(--muted); font-size: 13px; }
.score-meter strong { display: block; color: var(--green); font-size: 46px; line-height: 1; margin: 8px 0; }
.score-meter small { color: var(--amber); font-weight: 900; }
.finding-list { display: grid; gap: 8px; }
.finding-list article, .rewrite-box, .rule-row, .archive-row {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(167, 224, 216, 0.18);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.045);
}
.finding-list b { color: var(--amber); }
.finding-list span, .rewrite-box p { color: #d9ebe7; margin: 0; }
.rewrite-box { grid-column: 1 / -1; }
.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px) 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
.trust-band div { padding: 18px; background: rgba(8, 24, 32, 0.92); }
.trust-band strong { display: block; color: var(--white); }
.trust-band span { color: var(--muted); font-size: 14px; }
.section { padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px); }
.section-heading { max-width: 820px; margin-bottom: 26px; }
.section-heading h2, .two-col h2, .article-main h2, .legal h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: 0;
}
.section-heading p, .two-col p, .legal p, .article-main p { color: var(--muted); }
.product-capture { padding-top: 24px; padding-bottom: 24px; }
.product-capture img {
  width: min(1120px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(86, 224, 177, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 36px;
  align-items: center;
}
.clean-list, .article-list { padding-left: 20px; color: #d5e7e3; }
.clean-list li, .article-list li { margin: 10px 0; }
.rule-panel, .archive-preview, .code-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(12, 30, 40, 0.72);
}
.panel-title { color: var(--green); font-weight: 900; margin-bottom: 12px; }
.rule-row, .archive-row { grid-template-columns: 74px 1fr; align-items: start; margin-bottom: 10px; }
.rule-row span, .archive-row span { color: var(--cyan); font-weight: 900; }
.rule-row strong, .archive-row strong { color: var(--white); }
.rule-row em, .archive-row em { grid-column: 2; color: var(--muted); font-style: normal; }
.rule-row.high span { color: var(--red); }
.rule-row.med span { color: var(--amber); }
.rule-row.ok span { color: var(--green); }
.feature-grid, .pricing-grid, .resource-grid, .reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card, .pricing-card, .resource-grid a, .reference-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 30, 40, 0.72);
  padding: 20px;
}
.feature-card h3, .pricing-card h3 { margin: 8px 0; font-size: 22px; }
.feature-card p, .pricing-card p, .pricing-card li, .resource-grid a { color: var(--muted); }
.feature-icon {
  display: block;
  width: 34px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--amber));
}
.billing-row {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 15, 20, 0.78);
  margin: 0 0 18px;
}
.billing-row button {
  border: 0;
  border-radius: 6px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}
.billing-row button.is-active { background: var(--green); color: #03110e; }
.pricing-card { position: relative; display: grid; gap: 12px; align-content: start; }
.pricing-card.featured { border-color: rgba(86, 224, 177, 0.58); background: rgba(13, 43, 39, 0.92); }
.pricing-card.is-selected { box-shadow: 0 0 0 2px rgba(86, 224, 177, 0.3); }
.badge {
  position: absolute;
  right: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(86, 224, 177, 0.15);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}
.plan-price strong { font-size: 44px; color: var(--white); }
.plan-price span { color: var(--muted); margin-left: 4px; }
.pricing-card small { color: var(--green); }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: #dcebe7;
  font-size: 13px;
}
.pricing-card ul { margin: 0; padding-left: 20px; }
.page-hero {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 72px) 44px;
  background: linear-gradient(180deg, rgba(86, 224, 177, 0.08), transparent);
}
.page-hero.compact h1 { font-size: clamp(42px, 6vw, 68px); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.article-main, .article-aside, .legal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 30, 40, 0.7);
  padding: clamp(20px, 4vw, 34px);
}
.article-main h2 { font-size: 30px; margin-top: 28px; }
.article-aside { position: sticky; top: 86px; }
.article-aside h2 { margin-top: 0; }
.article-aside ol { padding-left: 20px; color: #d8e7e4; }
.article-aside li { margin: 10px 0; }
.aside-link { color: var(--green); font-weight: 900; }
.inline-cta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  border: 1px solid rgba(86, 224, 177, 0.28);
  border-radius: 8px;
  padding: 16px;
  background: rgba(86, 224, 177, 0.08);
}
.resource-grid a { display: grid; gap: 8px; min-height: 150px; }
.resource-grid span { color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.resource-grid strong { color: var(--white); font-size: 20px; }
.resource-grid em { color: var(--cyan); font-style: normal; margin-top: auto; }
.reference-grid a { color: var(--cyan); font-weight: 900; }
.code-panel pre {
  overflow: auto;
  color: #dff9ef;
  background: #031017;
  border-radius: 8px;
  padding: 14px;
}
.legal { max-width: 980px; margin: 0 auto; }
.legal h2 { font-size: 28px; margin-top: 28px; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px clamp(18px, 5vw, 72px);
  background: #061016;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 1.15fr 0.7fr;
  gap: 26px;
}
.footer-grid h2 { font-size: 15px; margin: 0 0 10px; }
.footer-grid a { display: block; color: var(--muted); margin: 7px 0; }
.footer-grid a:hover { color: var(--green); }
.footer-brand { margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 18px;
  font-size: 13px;
}
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 8, 12, 0.58);
}
.checkout-overlay[hidden] { display: none; }
body.checkout-open > :not(.checkout-overlay) { filter: blur(4px); }
.checkout-dialog {
  width: min(640px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid rgba(86, 224, 177, 0.34);
  border-radius: 8px;
  background: #0b1b25;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  padding: 24px;
  position: relative;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.mini-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.mini-plans button {
  display: grid;
  gap: 6px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px;
}
.mini-plans button.is-selected { border-color: var(--green); box-shadow: 0 0 0 2px rgba(86, 224, 177, 0.16); }
.mini-plans span { color: var(--muted); font-size: 13px; }
.checkout-summary {
  border: 1px solid rgba(86, 224, 177, 0.26);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  display: grid;
  gap: 4px;
  background: rgba(86, 224, 177, 0.08);
}
.checkout-summary strong { font-size: 30px; color: var(--green); }
.checkout-summary small { color: var(--muted); }
.full { width: 100%; }
@media (max-width: 980px) {
  .site-header { align-items: flex-start; }
  nav { display: none; }
  .hero-tool, .two-col, .article-layout { grid-template-columns: 1fr; }
  .hero-tool { min-height: auto; }
  .review-shell { min-width: 0; }
  .trust-band, .feature-grid, .pricing-grid, .resource-grid, .reference-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-aside { position: static; }
}
@media (max-width: 640px) {
  .site-header { padding: 12px 14px; }
  .brand span:last-child { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-cta { padding: 10px 12px; }
  .hero-tool, .section, .page-hero { padding-left: 14px; padding-right: 14px; }
  .hero-copy h1, .page-hero h1 { font-size: 42px; line-height: 1; }
  .hero-lede, .page-hero p { font-size: 16px; }
  .review-grid, .result-console, .trust-band, .feature-grid, .pricing-grid, .resource-grid, .reference-grid, .footer-grid, .mini-plans { grid-template-columns: 1fr; }
  .result-console { padding: 0 12px 12px; }
  .review-grid { padding: 12px; }
  .rule-row, .archive-row { grid-template-columns: 1fr; }
  .rule-row em, .archive-row em { grid-column: auto; }
  .inline-cta { display: grid; }
  .footer-bottom { display: grid; }
}
