/* ── Moderatech "review desk" tokens (locked, shared with the app) ── */
:root {
  --ink: #1c1a15;
  --muted: #6b6659;
  --faint: #8f8b7e;
  --stone: #e3e1d7;
  --card: #faf8f2;
  --line: #c9c6ba;
  --stamp: #d6492a;
  --stamp-wash: #f4ded6;
  --clear: #3e5c4b;
  --clear-wash: #dde5df;
  --display: "Zilla Slab", ui-serif, Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --radius: 3px;
}

* { box-sizing: border-box; border-color: var(--line); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--card); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* mono metadata label, the section eyebrow */
.meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.redact-bar { display: inline-block; background: var(--ink); border-radius: 1px; }

.wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .redact-bar { width: 0.62em; height: 0.62em; margin: 0 1px; vertical-align: middle; }

/* language switcher */
.langs { display: inline-flex; gap: 10px; align-items: center; }
.langs a { color: var(--faint); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs .on { color: var(--ink); font-weight: 600; }

/* ── buttons ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--card); }
.btn-ink:hover { background: #33302a; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card); }

/* ── nav ── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--stone) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 8px 16px; font-size: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ── hero ── */
.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
.hero h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.08; margin: 18px 0 20px; }
.hero .sub { font-size: 17px; color: var(--muted); max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .fineprint { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* headline redaction: hover/focus wipes the bar to reveal the word */
.redaction { position: relative; display: inline; cursor: text; border-radius: 1px; }
.redaction > span { transition: color 0.18s ease; color: transparent; }
.redaction::after {
  content: "";
  position: absolute; inset: 0.04em -0.06em;
  background: var(--ink); border-radius: 1px;
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.redaction:hover > span, .redaction:focus-visible > span { color: var(--stamp); }
.redaction:hover::after, .redaction:focus-visible::after { transform: scaleX(0); }

/* ── the review matrix card (signature) ── */
.matrix {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(28, 26, 21, 0.06), 0 12px 32px -18px rgba(28, 26, 21, 0.35);
  direction: ltr; /* the product UI is English; the card stays LTR in every locale */
  text-align: left;
}
.matrix-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px;
}
.matrix-head .fname { font-weight: 600; }
.matrix-head .fmeta { color: var(--faint); }
.mrow {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  opacity: 0; animation: row-in 0.4s ease forwards;
}
.mrow:nth-child(2) { animation-delay: 0.15s; }
.mrow:nth-child(3) { animation-delay: 0.35s; }
.mrow:nth-child(4) { animation-delay: 0.55s; }
.mrow:nth-child(5) { animation-delay: 0.75s; }
@keyframes row-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mrow .policy { font-size: 14px; font-weight: 600; font-family: var(--sans); }
.mrow .policy .ver { font-family: var(--mono); font-size: 11px; color: var(--faint); font-weight: 400; margin-left: 6px; }
.mrow .count { font-family: var(--mono); font-size: 11px; color: var(--faint); }

.stamp {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  padding: 3px 9px; border-radius: 2px; border: 1.5px solid;
  transform: rotate(-3deg);
  animation: stamp-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.mrow:nth-child(2) .stamp { animation-delay: 0.35s; }
.mrow:nth-child(3) .stamp { animation-delay: 0.55s; }
.mrow:nth-child(4) .stamp { animation-delay: 0.75s; }
.mrow:nth-child(5) .stamp { animation-delay: 0.95s; }
.stamp.clear { color: var(--clear); border-color: var(--clear); background: var(--clear-wash); }
.stamp.flag { color: var(--stamp); border-color: var(--stamp); background: var(--stamp-wash); }
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.18) rotate(-3deg); }
  60% { opacity: 1; transform: scale(0.97) rotate(-3deg); }
  100% { transform: scale(1) rotate(-3deg); }
}

.findings {
  padding: 12px 18px 16px;
  font-family: var(--mono); font-size: 12px; line-height: 2;
  color: var(--muted);
  opacity: 0; animation: row-in 0.4s ease 1.05s forwards;
}
.findings .tag { color: var(--stamp); font-weight: 600; }
.findings .sev { color: var(--faint); }
.findings .hint { color: var(--faint); font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .mrow, .findings { animation: none; opacity: 1; }
  .stamp { animation: none; }
  .redaction::after, .redaction > span { transition: none; }
  html { scroll-behavior: auto; }
}

/* ── sections ── */
section { padding: 76px 0; border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 14px; max-width: 22em; }
.sec-head .lede { color: var(--muted); margin-top: 12px; max-width: 44em; }

/* problem */
.quote {
  font-family: var(--display); font-size: clamp(20px, 2.6vw, 27px); line-height: 1.35;
  max-width: 30em; margin: 0 0 40px;
}
.quote em { font-style: normal; color: var(--stamp); }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; } }
.cols3 h3 { font-size: 19px; margin-bottom: 8px; }
.cols3 p { color: var(--muted); font-size: 15px; }
.cols3 .cell { border-top: 2px solid var(--ink); padding-top: 16px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .n { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--faint); }
.step h3 { font-size: 19px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

.code {
  background: var(--ink); color: #d8d4c8; border-radius: var(--radius);
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  padding: 20px 22px; overflow-x: auto; white-space: pre;
  direction: ltr; text-align: left;
}
.code .c { color: #8f8b7e; }
.code .g { color: #9fc0ae; }
.code .r { color: #e8927c; }

/* packs */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .packs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .packs { grid-template-columns: 1fr; } }
.pack { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pack .ver { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.pack h3 { font-size: 18px; }
.pack p { color: var(--muted); font-size: 14px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 2px 7px; background: var(--stone); }
.pack.custom { border-style: dashed; background: transparent; }
.pack.custom a { font-weight: 600; }
.packs-note { margin-top: 26px; color: var(--muted); font-size: 15px; max-width: 44em; }

/* pricing */
.pilot-band {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.pilot-band h3 { font-size: 21px; margin-bottom: 4px; }
.pilot-band p { color: var(--muted); font-size: 15px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1040px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; }
.tier.hot { border: 2px solid var(--ink); position: relative; }
.tier.hot .flagline {
  position: absolute; top: -11px; left: 18px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em;
  background: var(--ink); color: var(--card); padding: 3px 9px; border-radius: 2px;
}
.tier h3 { font-size: 18px; }
.tier .price { font-family: var(--display); font-size: 34px; font-weight: 700; margin: 12px 0 2px; }
.tier .price span { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--faint); }
.tier .inc { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.tier ul { margin: 0 0 18px; padding: 0; list-style: none; flex: 1; }
.tier li { font-size: 14px; color: var(--muted); padding: 5px 0 5px 18px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 3px; background: var(--ink); border-radius: 1px; }
.tier .btn { text-align: center; }
.pricing-note { margin-top: 26px; color: var(--muted); font-size: 15px; max-width: 46em; }
.pricing-note strong { color: var(--ink); }

/* faq */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 18px;
  padding: 18px 30px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 3px;
  background: var(--ink); border-radius: 1px; transform: translateY(-50%);
}
.faq summary::before {
  content: ""; position: absolute; right: 8.5px; top: 50%; width: 3px; height: 12px;
  background: var(--ink); border-radius: 1px; transform: translateY(-50%);
  transition: transform 0.2s ease;
}
.faq details[open] summary::before { transform: translateY(-50%) scaleY(0); }
.faq details p { color: var(--muted); font-size: 15px; padding: 0 0 20px; max-width: 42em; }

/* rtl adjustments (html[dir="rtl"] pages) */
[dir="rtl"] .faq summary { padding: 18px 0 18px 30px; }
[dir="rtl"] .faq summary::after { right: auto; left: 4px; }
[dir="rtl"] .faq summary::before { right: auto; left: 8.5px; }
[dir="rtl"] .tier li { padding: 5px 18px 5px 0; }
[dir="rtl"] .tier li::before { left: auto; right: 0; }
[dir="rtl"] .tier.hot .flagline { left: auto; right: 18px; }
[dir="rtl"] .redaction::after { transform-origin: right center; }
[dir="rtl"] .meta { letter-spacing: 0; }

/* final cta */
.cta-band { background: var(--ink); color: var(--card); border-radius: var(--radius); padding: 60px 48px; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band p { color: #b9b5a8; margin: 14px auto 30px; max-width: 36em; }
.cta-band .btn { border-color: var(--card); }
.cta-band .btn-ink { background: var(--card); color: var(--ink); }
.cta-band .btn-ink:hover { background: #eceade; }
.cta-band .btn-ghost { color: var(--card); }
.cta-band .btn-ghost:hover { background: rgba(250, 248, 242, 0.1); }
.cta-band .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer { padding: 40px 0 56px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
