/* The Review Engine — BLACKFRAME
   Extracted from the Claude Design source (The Review Engine.dc.html) */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { display: block; }

/* ---------- Type primitives ---------- */

.display,
h1, h2, h3,
.num,
.btn,
.wordmark {
  font-family: 'Archivo Black', sans-serif;
}

h1 {
  font-size: clamp(38px, 7.6vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  max-width: 16ch;
}

h1.ghost { margin: 0.14em 0 0; opacity: 0.42; }

h2 {
  font-size: clamp(32px, 6.2vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: clamp(22px, 3vw, 40px) 0 0;
  max-width: 18ch;
}

h3 {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 18px 0 14px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.5;
}

.label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}

.lede {
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
  margin: 0;
  max-width: 54ch;
}

.body { font-size: 15px; line-height: 1.6; margin: 0; opacity: 0.72; }

.dim { opacity: 0.62; }

/* ---------- Layout ---------- */

section { padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 64px); }

.wrap { max-width: 1180px; margin: 0 auto; width: 100%; }

.dark { background: #000; color: #fff; }
.light { background: #fff; color: #000; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

/* Hairline grids: 1px gap over a contrasting background */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
}
.grid.on-dark { background: rgba(255, 255, 255, 0.22); }
.grid.on-light { background: #000; border: 1px solid #000; }

.grid.on-dark > * { background: #000; }
.grid.on-light > * { background: #fff; }

/* Fixed 3-up grid (Benefits) — stays 3 across so 6 cells fill two clean rows
   instead of auto-fitting to 4 and leaving empty cells. Stacks on mobile. */
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .grid.cols-3 { grid-template-columns: 1fr; }
}

/* ---------- Header ---------- */

header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px) clamp(20px, 5vw, 64px);
  color: #fff;
}

.brand { display: flex; align-items: center; gap: 14px; }

.wordmark {
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.rule { display: block; width: 1px; height: 20px; background: rgba(255, 255, 255, 0.35); }

.brand-sub {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-note {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.45;
  white-space: nowrap;
}

/* The note is secondary — drop it before it can push the header wider than
   the viewport on small screens. */
@media (max-width: 640px) {
  .header-note { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 0 32px;
  background: #fff;
  color: #000;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:hover { background: #000; color: #fff; box-shadow: inset 0 0 0 1px #fff; }

.btn.lg { min-height: 74px; padding: 0 clamp(28px, 4vw, 56px); font-size: clamp(14px, 1.7vw, 20px); letter-spacing: 0.05em; }
.btn.block { width: 100%; }

/* On white sections the button inverts the other way */
.btn.invert { background: #000; color: #fff; }
.btn.invert:hover { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #000; }

.btn-note { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(110px, 14vw, 180px) clamp(20px, 5vw, 64px) clamp(36px, 5vw, 56px);
}

.hero .eyebrow { opacity: 0.55; margin-bottom: clamp(28px, 5vw, 54px); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-top: clamp(32px, 5vw, 64px);
}

.hero-grid .lede { opacity: 0.78; max-width: 46ch; }

.hero-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin-top: clamp(44px, 7vw, 90px);
}

.stat { background: #000; padding: 22px 4px 4px; text-align: center; }
.stat .n { font-family: 'Archivo Black', sans-serif; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; }
.stat .n.stars { font-size: clamp(24px, 3vw, 36px); }
.stat .k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.5; margin-top: 10px; }

/* ---------- Rank tables ---------- */

.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.rank-row.faded { opacity: 0.6; transition: opacity 0.15s; }
.rank-row.faded:hover { opacity: 1; }
.rank-row .r { font-family: 'Archivo Black', sans-serif; font-size: 13px; width: 26px; }
.rank-row .nm { font-size: 14px; flex: 1; }
.rank-row .ct { font-size: 12px; opacity: 0.6; }

/* ---------- Bar chart ---------- */

.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 34px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 3px; }
.bar-fill { background: #000; }
.bar-line { box-shadow: inset 0 0 0 1px #000; }

.legend { display: flex; gap: 20px; margin-top: 14px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; display: block; }
.swatch.solid { background: #000; }
.swatch.hollow { box-shadow: inset 0 0 0 1px #000; }

/* ---------- Review cards ---------- */

.review-list { display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }
.review { border: 1px solid #000; padding: 18px 20px; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-who { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #000; color: #fff;
  font-family: 'Archivo Black', sans-serif; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.review-name { font-weight: 600; font-size: 14px; }
.review-when { font-size: 11px; opacity: 0.5; letter-spacing: 0.08em; text-transform: uppercase; }
.review-stars { font-size: 14px; letter-spacing: 0.16em; margin: 12px 0 8px; }
.review p { font-size: 14px; line-height: 1.55; margin: 0; opacity: 0.78; }

/* ---------- Solution / benefit cells ---------- */

.cell { padding: clamp(28px, 3.2vw, 44px) clamp(24px, 2.6vw, 40px); }
.cell .num { font-size: clamp(40px, 5vw, 64px); line-height: 1; opacity: 0.28; }
.cell h3 { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.1; margin: 20px 0 12px; }
.cell p { font-size: 15px; line-height: 1.6; margin: 0; opacity: 0.68; }

.benefit { padding: clamp(26px, 3vw, 42px); transition: background 0.15s, color 0.15s; }
.benefit .num { font-size: 12px; letter-spacing: 0.14em; opacity: 0.4; }
.benefit h3 { font-size: clamp(18px, 2vw, 24px); line-height: 1.1; margin: 16px 0 12px; }
.benefit:hover { background: #000; color: #fff; }

/* ---------- Steps ---------- */

.steps { border-top: 1px solid rgba(255, 255, 255, 0.22); }
.step {
  display: flex;
  gap: clamp(18px, 3vw, 48px);
  align-items: baseline;
  flex-wrap: wrap;
  padding: clamp(24px, 3vw, 38px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.15s;
}
.step:hover { background: rgba(255, 255, 255, 0.04); }
.step .num { font-size: clamp(28px, 3.4vw, 44px); line-height: 1; min-width: 72px; opacity: 0.34; }
.step h3 { font-size: clamp(20px, 2.6vw, 34px); line-height: 1.05; margin: 0; flex: 1; min-width: 220px; }
.step p { font-size: 15px; line-height: 1.6; margin: 0; opacity: 0.62; flex: 1; min-width: 240px; max-width: 44ch; }

/* ---------- Timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: #000;
  margin-top: clamp(36px, 5vw, 64px);
  border: 1px solid #000;
}
.timeline > div { background: #fff; padding: clamp(24px, 3vw, 38px); }
.timeline > div:first-child { background: #000; color: #fff; }
.timeline .w { font-family: 'Archivo Black', sans-serif; font-size: clamp(30px, 4vw, 52px); line-height: 1; }
.timeline .d { font-size: 13px; opacity: 0.6; margin-top: 10px; }

/* ---------- Accordion ---------- */

.faq { border-top: 1px solid #000; }
.faq-item { border-bottom: 1px solid #000; }
.faq-q {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px) 0;
  cursor: pointer;
  width: 100%;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  transition: opacity 0.15s;
}
.faq-q:hover { opacity: 0.6; }
.faq-q .n { font-family: 'Archivo Black', sans-serif; font-size: 13px; opacity: 0.4; min-width: 32px; }
.faq-q h3 { font-size: clamp(19px, 2.6vw, 34px); line-height: 1.05; margin: 0; flex: 1; }
.faq-q .sign { font-family: 'Archivo Black', sans-serif; font-size: clamp(20px, 2.4vw, 28px); line-height: 1; }
.faq-a {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.6;
  margin: 0;
  padding: 0 0 clamp(26px, 3vw, 38px) clamp(48px, 6vw, 72px);
  max-width: 62ch;
  opacity: 0.75;
}
.faq-a[hidden] { display: none; }

/* ---------- Footer ---------- */

footer {
  background: #000;
  color: #fff;
  padding: clamp(40px, 6vw, 70px) clamp(20px, 5vw, 64px) clamp(110px, 14vw, 140px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
footer .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
footer .tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.45; margin-top: 14px; }
footer p { font-size: 14px; line-height: 1.6; margin: 0; opacity: 0.5; max-width: 44ch; }
footer p a { text-decoration: underline; opacity: 0.85; }

/* ---------- Sticky CTA ---------- */

.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px clamp(14px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.sticky.show { transform: translateY(0); }
.sticky .t {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticky .btn { min-height: 52px; padding: 0 24px; font-size: 12px; white-space: nowrap; }

/* ---------- Contact page ---------- */

.contact-hero {
  padding-top: clamp(130px, 16vw, 210px);
  padding-bottom: clamp(70px, 10vw, 130px);
}

.contact-hero h1 { font-size: clamp(36px, 6.4vw, 88px); }

.promise { border: 1px solid rgba(255, 255, 255, 0.25); padding: clamp(26px, 3.4vw, 44px); }
.promise ul { list-style: none; margin: 0; padding: 0; }
.promise li {
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  opacity: 0.82;
}
.promise li:last-child { border-bottom: 0; }
.promise li::before {
  content: '';
  position: absolute;
  left: 0; top: 19px;
  width: 10px; height: 2px;
  background: #fff;
}
.promise .not li { opacity: 0.5; }
.promise .not li::before { background: rgba(255, 255, 255, 0.4); }

/* Form */

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.req { font-weight: 400; letter-spacing: 0.14em; opacity: 0.4; margin-left: 8px; }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: #000;
  background: #fff;
  border: 0;
  box-shadow: inset 0 0 0 1px #000;
  border-radius: 0;
  padding: 18px 18px;
  width: 100%;
  transition: box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 22px) 24px, calc(100% - 16px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.field textarea { resize: vertical; line-height: 1.5; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 3px #000;
}

.field input::placeholder,
.field textarea::placeholder { color: #000; opacity: 0.35; }

.field.invalid input,
.field.invalid select { box-shadow: inset 0 0 0 3px #000; background: #f2f2f2; }

.err { font-size: 12px; letter-spacing: 0.06em; min-height: 0; }
.field.invalid .err { min-height: 1em; }
.err::before { content: ''; }

/* Radio chips */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  box-shadow: inset 0 0 0 1px #000;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chip span:hover { background: #f0f0f0; }
.chip input:checked + span { background: #000; color: #fff; }
.chip input:focus-visible + span { box-shadow: inset 0 0 0 3px #000; }

/* SMS consent checkbox */

.consent { margin-top: 4px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.check .box {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  box-shadow: inset 0 0 0 1px #000;
  margin-top: 1px;
  position: relative;
  transition: background 0.15s;
}
.check input:checked + .box { background: #000; }
.check input:checked + .box::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check input:focus-visible + .box { box-shadow: inset 0 0 0 3px #000; }

.consent-text {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.7;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 52px);
}

.form-status {
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 20px 0 0;
  min-height: 1.2em;
}

.confirm { border: 1px solid #000; padding: clamp(30px, 5vw, 72px); }
.confirm h2 { margin-top: clamp(18px, 2.4vw, 30px); }
.confirm[hidden] { display: none; }

/* Direct contact cells */

.direct {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.2;
  margin-top: 16px;
  word-break: break-word;
}
a.direct { transition: opacity 0.15s; }
a.direct:hover { opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
