/* Rowproof — shared styles for both pages
   Tokens: white ground, deep green accent, one sans family (Bricolage Grotesque). */

:root {
  --white: #ffffff;
  --ink: #0f1f18;
  --ink-soft: #4a5a52;
  --line: #dfe5e0;
  --stage: #f1f4f0;
  --green: #0b5a3a;
  --green-deep: #073d28;
  --green-tint: #e4f0e9;
  --flag: #b23a22;
  --flag-tint: #fbe9e4;
  --navy: #0d1a33;
  --navy-line: #263657;
  --navy-soft: #a9b6d1;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num { font-variant-numeric: tabular-nums lining-nums; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type scale ---------- */

.display {
  font-size: clamp(2.6rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-weight: 600;
  font-stretch: 96%;
  text-wrap: balance;
}

.title {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  font-stretch: 94%;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34em;
}

.h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.body-soft { color: var(--ink-soft); max-width: 36em; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--green-deep); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn--light { background: var(--white); color: var(--green-deep); }
.btn--light:hover { background: var(--green-tint); }

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

.site-header { padding-block: 22px; }
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3125rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.wordmark svg { width: 26px; height: 26px; }
.wordmark__sub { font-weight: 500; color: var(--ink-soft); }
.site-header__nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.site-header__link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-header__link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

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

.hero { padding-top: clamp(40px, 7vw, 96px); }
.hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.hero__head .display { max-width: 15ch; }
.hero__sub {
  display: grid;
  gap: 28px;
  justify-items: start;
}
@media (min-width: 960px) {
  .hero__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
  }
  .hero__sub { padding-bottom: 10px; }
}

.stage {
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--stage);
  border-radius: var(--radius-l);
  padding: clamp(18px, 4vw, 56px);
}

/* Converter mockup: statement PDF -> spreadsheet */
.convert {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
@media (min-width: 900px) {
  .convert { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.5fr); }
}

.pdf {
  position: relative;
  min-width: 0;
  width: 100%;
  background: var(--white);
  border-radius: 6px;
  padding: 22px 22px 26px;
  box-shadow: 0 1px 0 #cfd6d1, 0 18px 40px -22px rgba(15, 31, 24, 0.45);
  font-size: 0.75rem;
  line-height: 1.4;
  color: #36453d;
  transform: rotate(-1.4deg);
  max-width: 420px;
}
.pdf__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.pdf__bank { font-weight: 700; font-size: 0.875rem; color: var(--ink); letter-spacing: -0.01em; }
.pdf__lock {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  background: var(--ink); color: var(--white);
  border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600;
  white-space: nowrap;
}
.pdf__lock svg { width: 11px; height: 11px; }
.pdf__rows { display: grid; gap: 7px; }
.pdf__row {
  display: grid;
  white-space: nowrap;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
}
.pdf__row span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf__row .num { text-align: right; color: var(--ink); }
.pdf__note {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--flag);
  font-weight: 500;
}
.pdf__fold {
  position: absolute; right: 0; top: 0;
  width: 26px; height: 26px;
  background: linear-gradient(225deg, var(--stage) 50%, #dfe5e0 50%);
  border-bottom-left-radius: 6px;
}

.sheet {
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: 0 1px 0 #cfd6d1, 0 30px 60px -34px rgba(15, 31, 24, 0.5);
  overflow: hidden;
}
.sheet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
}
.sheet__file { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sheet__file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--green); flex: none; }
.sheet__format { color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.sheet__scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sheet table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.sheet th, .sheet td {
  padding: 9px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sheet th {
  font-weight: 600;
  color: var(--ink-soft);
  background: #f8faf8;
  font-size: 0.75rem;
}
.sheet th:nth-child(-n + 2), .sheet td:nth-child(-n + 2) { text-align: left; }
.sheet td:nth-child(2) { max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.sheet td.is-split { background: var(--green-tint); color: var(--green-deep); font-weight: 600; }
.sheet td.tick, .sheet th.tick { width: 34px; padding-inline: 8px 12px; text-align: center; }
.tickmark {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}
.tickmark svg { width: 10px; height: 10px; }

.sheet__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 16px;
  background: #f8faf8;
  font-size: 0.8125rem;
}
.sheet__sum { color: var(--ink-soft); }
.sheet__sum b { color: var(--ink); font-weight: 600; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}
.badge svg { width: 16px; height: 16px; }

/* The one orchestrated moment: rows are proven one by one, then the badge lands. */
@media (prefers-reduced-motion: no-preference) {
  .js .prove .tickmark { opacity: 0; transform: scale(0.4); animation: tick 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4) forwards; }
  .js .prove tr:nth-child(1) .tickmark { animation-delay: 0.7s; }
  .js .prove tr:nth-child(2) .tickmark { animation-delay: 0.95s; }
  .js .prove tr:nth-child(3) .tickmark { animation-delay: 1.2s; }
  .js .prove tr:nth-child(4) .tickmark { animation-delay: 1.45s; }
  .js .prove tr:nth-child(5) .tickmark { animation-delay: 1.7s; }
  .js .prove tr:nth-child(6) .tickmark { animation-delay: 1.95s; }
  .js .prove-badge { opacity: 0; transform: translateY(6px) scale(0.96); animation: land 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) 2.4s forwards; }
  .js .prove-list li .tickmark { opacity: 0; transform: scale(0.4); animation: tick 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4) forwards; }
  .js .prove-list li:nth-child(1) .tickmark { animation-delay: 0.7s; }
  .js .prove-list li:nth-child(2) .tickmark { animation-delay: 1s; }
  .js .prove-list li:nth-child(3) .tickmark { animation-delay: 1.3s; }
  .js .prove-list li:nth-child(4) .tickmark { animation-delay: 1.6s; }
  .js .prove-badge--verify { animation-delay: 2.05s; }
}
@keyframes tick { to { opacity: 1; transform: scale(1); } }
@keyframes land { to { opacity: 1; transform: none; } }

/* Benefits row under the stage */
.benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(28px, 4vw, 48px);
}
.benefits li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-weight: 500;
  line-height: 1.4;
}
.benefits svg { width: 20px; height: 20px; color: var(--green); margin-top: 2px; }
@media (min-width: 640px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1000px) {
  .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefits li { padding-block: 22px 0; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section) 0; }
.section__head { max-width: 22ch; }
.section__head--wide { max-width: 26ch; }

/* Pains: each has a small specimen of the actual failure */
.pains {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 56px) clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pain { display: grid; gap: 14px; align-content: start; }
.pain .h3 { margin-top: 10px; }
.pain p { color: var(--ink-soft); }

.specimen {
  min-height: 196px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fbfcfb;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums lining-nums;
}
.specimen__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.specimen__line span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.specimen__line.is-missing {
  border-style: dashed;
  border-color: var(--flag);
  background: var(--flag-tint);
  color: var(--flag);
  font-weight: 600;
}
.specimen__flag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--flag);
  font-weight: 600;
  font-size: 0.8125rem;
}
.specimen__flag::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--flag);
  flex: none;
}
.flagged {
  background: var(--flag-tint);
  color: var(--flag);
  font-weight: 600;
  border-radius: 3px;
  padding: 1px 4px;
  margin: -1px -4px;
}
.specimen__cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--white);
}
.specimen__cells > div { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.specimen__cells > div:nth-child(odd) { border-right: 1px solid var(--line); }
.specimen__cells > div:nth-last-child(-n + 2) { border-bottom: 0; }
.specimen__cells .head { background: #f3f6f3; font-weight: 600; color: var(--ink-soft); font-size: 0.75rem; }
.specimen__cells .as-text { text-align: left; position: relative; }
.specimen__cells .as-text::after {
  content: "";
  position: absolute; left: 0; top: 0;
  border: 4px solid transparent;
  border-left-color: var(--flag); border-top-color: var(--flag);
}
.specimen__checks { display: grid; gap: 8px; }
.specimen__checks li { display: flex; align-items: center; gap: 10px; }
.specimen__checks li::before {
  content: "";
  width: 16px; height: 16px; flex: none;
  border: 1.5px solid #9aa8a0;
  border-radius: 4px;
  background: var(--white);
}
.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 34%; background: var(--ink-soft); border-radius: inherit; }

/* The belief to take apart */
.belief {
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
@media (min-width: 900px) {
  .belief { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
}
.belief__quote {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #86948c;
  text-decoration: line-through;
  text-decoration-color: var(--flag);
  text-decoration-thickness: 0.07em;
  text-wrap: balance;
}
.belief__answer { font-size: 1.1875rem; line-height: 1.5; max-width: 32em; }
.belief__answer strong { font-weight: 600; }

/* Outcomes */
.outcomes { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink); }
.outcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 40px;
  padding-block: clamp(24px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .outcome { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
}
.outcome__name {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.outcome__body { display: grid; gap: 18px; }
.outcome__body p { color: var(--ink-soft); font-size: 1.125rem; max-width: 34em; }

.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  font-variant-numeric: tabular-nums lining-nums;
}
.equation > span {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fbfcfb;
  font-weight: 600;
  font-size: 1rem;
}
.equation small { font-weight: 500; font-size: 0.75rem; color: var(--ink-soft); }
.equation > i { align-self: center; font-style: normal; color: var(--ink-soft); font-weight: 600; }
.equation > .is-result { background: var(--green); border-color: var(--green); color: var(--white); }
.equation > .is-result small { color: #cfe5d8; }

/* The new paradigm: the one loud band on the page */
.paradigm {
  margin-top: var(--section);
  background: var(--green);
  color: var(--white);
  padding-block: clamp(72px, 11vw, 160px);
}
.paradigm p {
  font-size: clamp(2.5rem, 8.4vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-stretch: 90%;
  max-width: 13ch;
}
.paradigm p span { display: block; }
.paradigm p span:first-child { color: #8fc3a8; }
.paradigm--navy { background: var(--navy); }
.paradigm--navy p span:first-child { color: #7d8fb5; }

/* How it works: a real sequence, so numbered */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step {
  counter-increment: step;
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line);
}
.step::before {
  content: "";
  position: absolute; top: -2px; left: 0;
  width: 56px; height: 2px;
  background: var(--green);
}
.step__n {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.step__n::before { content: "Step " counter(step); }
.step .h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* Founder letter */
.letter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 40px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--stage);
  border-radius: var(--radius-l);
}
@media (min-width: 900px) {
  .letter { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); }
}
.letter__from { font-weight: 600; }
.letter__from small { display: block; font-weight: 500; font-size: 0.9375rem; color: var(--ink-soft); }
.letter blockquote p {
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 30em;
}
.letter__sign {
  margin-top: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green);
}

/* Final call */
.final { padding-block: var(--section); }
.final__row { display: grid; gap: 32px; justify-items: start; }
.final .display { max-width: 14ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 40px; }
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.site-footer .wordmark { font-size: 1.125rem; color: var(--ink); }
.site-footer .wordmark svg { width: 22px; height: 22px; }

/* ---------- Lenders: dashboard mockup + navy product section ---------- */

.verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (min-width: 900px) {
  .verify { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
}
.panel {
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: 0 1px 0 #cfd6d1, 0 30px 60px -34px rgba(15, 31, 24, 0.5);
  padding: clamp(18px, 2.4vw, 28px);
}
.panel__label { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.panel__file {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.8125rem; color: var(--ink-soft);
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.panel__file b { color: var(--ink); font-weight: 600; }
.badge--verify { font-size: 0.9375rem; padding: 9px 16px 9px 11px; white-space: normal; }
.checks { display: grid; gap: 12px; margin-top: 20px; font-size: 0.9375rem; }
.checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.checks .tickmark { margin-top: 3px; }
.panel--checks { display: flex; flex-direction: column; align-items: flex-start; }
.panel--checks .panel__file { width: 100%; }
.panel__foot { margin-top: auto; padding-top: 24px; font-size: 0.8125rem; color: var(--ink-soft); }

.figures { display: grid; margin-top: 14px; font-variant-numeric: tabular-nums lining-nums; }
.figures li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.figures li span:last-child { font-weight: 600; font-size: 1.125rem; white-space: nowrap; }
.figures li.is-total { border-bottom: 0; }
.figures li.is-total span:last-child { font-size: 1.5rem; letter-spacing: -0.02em; }
.result {
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-s);
  background: var(--green-tint);
  color: var(--green-deep);
}
.result b { display: block; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; }
.result span { font-size: 0.875rem; }

.product-navy {
  margin-top: var(--section);
  background: var(--navy);
  color: var(--white);
  padding-block: var(--section);
}
.product-navy .step { border-top-color: var(--navy-line); }
.product-navy .step::before { background: #6fd3a1; }
.product-navy .step__n { color: #6fd3a1; }
.product-navy .step p { color: var(--navy-soft); }
.product-navy .lede { color: var(--navy-soft); }
.product-navy__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 48px;
}
@media (min-width: 900px) {
  .product-navy__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; }
}
.response {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 48px;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--navy-line);
}
@media (min-width: 900px) {
  .response { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
}
.response p { color: var(--navy-soft); max-width: 28em; margin-top: 10px; }
.code {
  margin: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-m);
  background: #091327;
  color: #d6def0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
  tab-size: 2;
}
.code .k { color: #9fb3dc; }
.code .s { color: #6fd3a1; }
.code .n { color: #f1d38a; }
.code__bar {
  display: flex; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--navy-line);
  color: var(--navy-soft);
}
.code__ok { color: #6fd3a1; }

/* ---------- Modal ---------- */

.modal {
  width: min(480px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(7, 30, 20, 0.6);
}
.modal::backdrop { background: rgba(9, 26, 18, 0.55); backdrop-filter: blur(3px); }
.modal__inner { display: grid; gap: 14px; padding: clamp(28px, 5vw, 40px); justify-items: start; }
.modal__title {
  font-size: 1.875rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  padding-right: 36px;
}
.modal__text { color: var(--ink-soft); }
.modal .btn { margin-top: 10px; min-width: 140px; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.modal__close:hover { background: var(--stage); }
.modal__close svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in 0.22s ease-out; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* ---------- Small screens ---------- */

@media (max-width: 520px) {
  .site-header__link { display: none; }
  .pdf { transform: rotate(-0.8deg); }
  .equation > span { padding: 8px 10px; font-size: 0.9375rem; }
}

@media (max-width: 640px) {
  .pdf__top { flex-wrap: wrap; }
  .sheet table { min-width: 0; font-size: 0.6875rem; }
  .sheet th, .sheet td { padding: 8px 4px; }
  .sheet th { font-size: 0.625rem; }
  .sheet th:first-child, .sheet td:first-child { padding-left: 10px; }
  .sheet th:nth-child(2), .sheet td:nth-child(2) { display: none; }
  .sheet td.tick, .sheet th.tick { width: 26px; padding-inline: 2px 8px; }
  .tickmark { width: 14px; height: 14px; }
  .tickmark svg { width: 8px; height: 8px; }
}
