/* ============================================================
   CLEARED — landing page
   Concept: a review-verdict / clearance report.
   Paper white, black ink, hairline rules, mono fragments.
   ONE green, used once: the cleared stamp in the hero.
   ============================================================ */

:root {
  --paper: #FAF9F6;
  --paper-raised: #FFFFFF;
  --ink: #131313;
  --ink-soft: #54524D;
  --ink-faint: #8A877F;
  --hairline: rgba(19, 19, 19, 0.16);
  --hairline-soft: rgba(19, 19, 19, 0.09);
  --green: oklch(0.58 0.15 152);
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --measure: 62ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- header ---------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand svg { display: block; }

.brand-name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.head-spacer { flex: 1; }

.head-price {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 600;
  border: 1px solid var(--ink);
  white-space: nowrap;
}

.btn:hover { background: #000; }

.btn-small {
  font-size: 12.5px;
  padding: 9px 16px;
}

.btn-big {
  font-size: 15px;
  padding: 17px 28px;
  letter-spacing: 0.02em;
}

.btn .arrow { font-family: var(--mono); }

/* ---------------- mono fragments ---------------- */

.k {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------------- hero ---------------- */

.hero { padding: 72px 0 96px; }

.hero-logo {
  display: block;
  width: 104px;
  height: 104px;
  margin-bottom: 36px;
}

.hero-logo svg { display: block; width: 100%; height: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}

.hero .k { display: block; margin-bottom: 28px; }

h1 {
  font-family: var(--sans);
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(44px, 6.2vw, 80px);
  line-height: 0.99;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
  text-wrap: pretty;
  margin-bottom: 40px;
}

.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.cta-note {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* the finding — hero hook */

.finding {
  position: relative;
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  box-shadow: 5px 5px 0 rgba(19, 19, 19, 0.08);
  margin-top: 10px;
}

.finding-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.finding-body { padding: 20px 18px; }

.finding-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0;
  margin-bottom: 4px;
}

.finding .x { font-weight: 600; }

.finding-kv {
  display: grid;
  grid-template-columns: 16ch 1fr;
  gap: 8px;
  padding-left: 26px;
  color: var(--ink-soft);
}

.finding-kv dt { color: var(--ink-faint); }
.finding-kv dd { color: var(--ink); }
.finding-kv dd.missing { font-weight: 600; }

.finding-quote {
  margin: 16px 0 0;
  padding: 12px 18px 0 26px;
  border-top: 1px dashed var(--hairline);
  color: var(--ink-faint);
  font-size: 12.5px;
}

.finding-resolve {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1.5px solid var(--ink);
  font-size: 12.5px;
}

.finding-resolve .fix { color: var(--ink-soft); }

/* THE one green moment */
.stamp {
  display: inline-block;
  transform: rotate(-7deg);
  color: var(--green);
  border: 2.5px solid var(--green);
  border-radius: 3px;
  padding: 5px 12px 4px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1.5px var(--paper-raised), inset 0 0 0 2.5px var(--green);
  -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMjAnIGhlaWdodD0nNDAnPjxmaWx0ZXIgaWQ9J24nPjxmZVR1cmJ1bGVuY2UgdHlwZT0nZnJhY3RhbE5vaXNlJyBiYXNlRnJlcXVlbmN5PScwLjU1JyBudW1PY3RhdmVzPScyJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwLjU1IDAuNScvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMjAnIGhlaWdodD0nNDAnIGZpbGw9J3doaXRlJy8+PHJlY3Qgd2lkdGg9JzEyMCcgaGVpZ2h0PSc0MCcgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjQ1Jy8+PC9zdmc+");
  -webkit-mask-size: 120px 40px;
  mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMjAnIGhlaWdodD0nNDAnPjxmaWx0ZXIgaWQ9J24nPjxmZVR1cmJ1bGVuY2UgdHlwZT0nZnJhY3RhbE5vaXNlJyBiYXNlRnJlcXVlbmN5PScwLjU1JyBudW1PY3RhdmVzPScyJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwLjU1IDAuNScvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMjAnIGhlaWdodD0nNDAnIGZpbGw9J3doaXRlJy8+PHJlY3Qgd2lkdGg9JzEyMCcgaGVpZ2h0PSc0MCcgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjQ1Jy8+PC9zdmc+");
  mask-size: 120px 40px;
}

/* ---------------- sections as report rows ---------------- */

.row {
  border-top: 1px solid var(--hairline);
  padding: 76px 0 88px;
}

.row-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.row-label { position: sticky; top: 90px; }

.row-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 10px;
}

.row-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.8;
}

h2 {
  font-stretch: 115%;
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 22px;
  max-width: 24ch;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: var(--measure);
  text-wrap: pretty;
}

.lede strong { color: var(--ink); font-weight: 600; }

/* trust ledger */

.ledger {
  list-style: none;
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
  max-width: 760px;
}

.ledger li {
  display: grid;
  grid-template-columns: 34px minmax(0, 30ch) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.ledger .tick { font-family: var(--mono); font-weight: 600; }

.ledger .what {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
}

.ledger .how {
  font-size: 15.5px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* engine — four checks, spec-sheet style */

.checks { margin-top: 44px; border-top: 1.5px solid var(--ink); }

.check {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 38%);
  gap: 32px;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--hairline);
}

.check-letter {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.check h3 {
  font-stretch: 112%;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.check p {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 48ch;
  text-wrap: pretty;
}

.check-scope {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-soft);
  align-self: center;
}

.check-scope span { display: block; }
.check-scope span::before { content: "· "; color: var(--ink-faint); }

.check .moat-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 2px 8px;
  margin-left: 10px;
  vertical-align: 3px;
}

/* moat — before/after */

.confront {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--ink);
  background: var(--paper-raised);
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.confront-col { padding: 24px 26px 28px; }
.confront-col + .confront-col { border-left: 1px solid var(--hairline); }

.confront-col h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.confront-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  margin-bottom: 6px;
}

.confront-line .dim { color: var(--ink-soft); }
.confront-line .hard { font-weight: 600; }

.confront-verdict {
  grid-column: 1 / -1;
  border-top: 1.5px solid var(--ink);
  padding: 16px 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.confront-verdict .left { color: var(--ink-soft); }
.confront-verdict .right { font-weight: 600; }

.exhibit { margin-top: 56px; max-width: 560px; }

.exhibit img {
  width: 100%;
  height: auto;
  display: block;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(19, 19, 19, 0.08);
}

.exhibit figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 12px;
  line-height: 1.7;
}

/* AI section */

.ai-paths {
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
  max-width: 760px;
}

.ai-path {
  display: grid;
  grid-template-columns: minmax(0, 24ch) 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline-soft);
  align-items: baseline;
}

.ai-path .name { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.ai-path .desc { font-size: 15.5px; color: var(--ink-soft); text-wrap: pretty; }

.ai-guarantee {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

/* backstory aside */

.aside-row { padding: 64px 0; }

.aside-quote {
  font-stretch: 110%;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 36ch;
  text-wrap: balance;
}

.aside-attr {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* pricing — rate card */

.rates { margin-top: 44px; border-top: 1.5px solid var(--ink); max-width: 820px; }

.rate {
  display: grid;
  grid-template-columns: minmax(0, 16ch) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}

.rate-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rate-desc { font-size: 15.5px; color: var(--ink-soft); }

.rate-price {
  font-stretch: 115%;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.rate-price small {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-left: 8px;
}

.rates-note {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  padding-top: 18px;
}

/* download */

.dl-box { margin-top: 44px; display: flex; flex-direction: column; gap: 28px; max-width: 760px; }

.dl-primary { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.codeblock {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 16px 20px;
  overflow-x: auto;
  white-space: nowrap;
}

.codeblock .dollar { color: var(--ink-faint); user-select: none; }

.dl-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* faq */

.faq { margin-top: 40px; border-top: 1px solid var(--hairline); max-width: 760px; }

.faq details { border-bottom: 1px solid var(--hairline-soft); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  font-stretch: 110%;
  font-weight: 600;
  font-size: 17px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 17px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.faq details[open] summary::after { content: "−"; }

.faq .a {
  padding: 0 0 22px;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

.faq .a code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(19, 19, 19, 0.06);
  padding: 1px 5px;
}

/* ---------------- download page ---------------- */

.dl-hero { padding: 76px 0 70px; text-align: center; }

.dl-hero .hero-logo { margin-bottom: 32px; margin-left: auto; margin-right: auto; }

.dl-hero .hero-sub { margin-left: auto; margin-right: auto; }

.dl-hero .hero-cta { justify-content: center; }

.dl-hero h1 { margin-bottom: 18px; }

.dl-steps {
  list-style: none;
  counter-reset: step;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.dl-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.dl-steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--ink-faint);
}

.dl-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 34px 0 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.dl-or::before, .dl-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--hairline);
}

/* license purchase rows */

.buy { margin-top: 44px; border-top: 1.5px solid var(--ink); max-width: 820px; }

.buy-row {
  display: grid;
  grid-template-columns: minmax(0, 14ch) minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}

.buy-row .rate-desc { align-self: center; }

.btn-buy { font-size: 13px; padding: 13px 22px; }

.buy-note {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  padding-top: 18px;
}

@media (max-width: 760px) {
  .buy-row { grid-template-columns: 1fr auto; }
  .buy-row .rate-desc { grid-column: 1 / -1; order: 3; }
  .buy-row .rate-price { justify-self: end; }
}

/* footer */

.site-foot { border-top: 1.5px solid var(--ink); padding: 30px 0 44px; }

.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .row-grid { grid-template-columns: 1fr; gap: 28px; }
  .row-label { position: static; display: flex; gap: 14px; align-items: baseline; }
  .row-num { margin-bottom: 0; }
  .check { grid-template-columns: 44px 1fr; }
  .check-scope { grid-column: 2; align-self: start; margin-top: 6px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 64px; }
  .row { padding: 56px 0 64px; }
  .head-price { display: none; }
  .confront { grid-template-columns: 1fr; }
  .confront-col + .confront-col { border-left: none; border-top: 1px solid var(--hairline); }
  .rate { grid-template-columns: 1fr auto; }
  .rate-desc { grid-column: 1 / -1; order: 3; }
  .finding-kv { grid-template-columns: 1fr; gap: 0; }
}

/* ---------------- legal pages (terms / privacy) ---------------- */

.legal { max-width: 720px; margin: 0 auto; padding: 60px 0 84px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.025em; line-height: 1.02; margin-bottom: 10px; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--hairline); }
.legal h2 { font-size: 19px; letter-spacing: -0.01em; margin: 38px 0 12px; }
.legal p { color: var(--ink-soft); line-height: 1.72; margin-bottom: 14px; max-width: 64ch; }
.legal ul { list-style: none; margin: 0 0 18px; padding: 0; }
.legal li { color: var(--ink-soft); line-height: 1.72; padding-left: 22px; position: relative; margin-bottom: 9px; max-width: 64ch; }
.legal li::before { content: "—"; position: absolute; left: 0; color: var(--ink-faint); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal em { color: var(--ink-soft); }
.legal code { font-family: var(--mono); font-size: 0.86em; background: color-mix(in srgb, var(--ink) 6%, transparent); padding: 1px 5px; border-radius: 3px; color: var(--ink); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal .back { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); display: inline-block; margin-top: 44px; text-decoration: none; }
.legal .back:hover { color: var(--ink); }

.foot-links a + a { margin-left: 0; }

/* ---------------- language toggle ---------------- */
.lang { display: flex; gap: 1px; font-family: var(--mono); font-size: 11px; margin-right: 4px; }
.lang button { background: none; border: none; cursor: pointer; color: var(--ink-faint);
               padding: 4px 6px; letter-spacing: 0.06em; transition: color .15s; }
.lang button:hover { color: var(--ink); }
.lang button.on { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
