/* Design system for pages on the new design (body.site-page), ported from the approved mockup.
   The tokens live in chrome.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background: var(--frog-black);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
/* Short pages stretch main so the footer meets the bottom of the screen. */
body > main { flex: 1 0 auto; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol { margin: 0; }
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(230, 237, 243, 0.4);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px 26px;
  border: 0; border-radius: 6px;
  font: 700 1.125rem/1.2 var(--font-text);
  text-align: center; text-wrap: balance;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.button--primary { background: var(--yellow); color: var(--frog-black); }
.button--primary:hover { background: var(--yellow-hover); color: var(--frog-black); transform: translateY(-1px); }
.text-link { font-weight: 600; }

.section { padding-block: clamp(80px, 9vw, 136px); }
.section-title {
  font-size: clamp(1.75rem, 3.75vw, 3.375rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
}
.prose > * + * { margin-top: 20px; }
.prose p { max-width: 60ch; }

/* ---------- report ---------- */
.report { background: var(--dark-slate); }
.report-copy { grid-column: 1 / span 5; }
.report-lead { margin-top: 24px; max-width: 40ch; }
.report-steps { margin-top: 32px; padding-left: 1.4em; display: grid; gap: 14px; }
/* Step 1 is the free one, so only its number is yellow. */
.report-steps li::marker { color: var(--ink-muted); font-weight: 700; }
.report-steps li:first-child::marker { color: var(--yellow); }
.report-steps strong { font-weight: 700; }
.report-contact { margin-top: 40px; font-size: 1rem; line-height: 1.5; }
.founder { display: flex; align-items: center; gap: 20px; margin-top: 40px; }
.founder img { width: 144px; height: 144px; border-radius: 6px; object-fit: cover; }
.founder p { font-size: 1rem; line-height: 1.5; }
.founder strong { font-weight: 700; }
.report-form { grid-column: 7 / span 6; align-self: start; display: grid; gap: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 1rem; font-weight: 600; }
.field label span { color: var(--ink-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--frog-black); color: var(--ink);
  border: 1px solid #6E7681; border-radius: 6px;
  font: 400 1.125rem/1.4 var(--font-text);
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.report-form .button { justify-self: start; }
.form-note { font-size: 0.875rem; color: var(--ink-muted); }
.form-status { font-size: 1rem; font-weight: 600; color: var(--yellow); }
.form-status:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

@media (max-width: 1100px) {
  .report-copy, .report-form { grid-column: 1 / -1; }
  .report-form { margin-top: 48px; max-width: 640px; }
}

@media (max-width: 760px) {
  /* Every grid child spans all 12 columns here, and 11 gaps of 32px would be wider than a small phone. */
  .grid { column-gap: 0; }
  .report-form .button { width: 100%; }
}

/* Below 360px the 144px photo leaves too little room for the email address. */
@media (max-width: 359px) {
  .founder img { width: 112px; height: 112px; }
}

/* ---------- interior pages ---------- */
.page-head { padding-block: clamp(56px, 7vw, 112px) clamp(40px, 5vw, 72px); }
.page-title {
  max-width: 20ch;
  font-size: clamp(2rem, 1.5rem + 3.6vw, 4.25rem);
  font-weight: 800; line-height: 0.98; letter-spacing: -0.04em;
  text-wrap: balance;
}
.page-lead { max-width: 46ch; margin-top: 24px; font-size: 1.25rem; line-height: 1.5; text-wrap: pretty; }
.page-actions { margin-top: 36px; }

/* ---------- legal pages (privacy, terms, ai-company-terms) ---------- */
.legal-page-wrapper {
  width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto;
  padding-block: clamp(56px, 7vw, 112px) clamp(80px, 9vw, 136px);
}
.legal-page-header { margin-bottom: clamp(48px, 6vw, 80px); }
.legal-page-title {
  max-width: 24ch;
  font-size: clamp(1.75rem, 1.4rem + 2.4vw, 3.375rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance;
}
.legal-page-meta { margin-top: 16px; font-size: 0.875rem; color: var(--ink-muted); }
.legal-page-layout {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px; align-items: start;
}
.legal-toc { grid-column: 1 / span 3; position: sticky; top: 32px; }
.legal-toc-heading { margin-bottom: 12px; font-size: 1rem; font-weight: 600; }
.legal-toc-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.legal-toc-list a {
  display: block; padding: 6px 12px;
  border-left: 2px solid var(--spot-gray);
  color: var(--ink-muted); font-size: 1rem; line-height: 1.4; text-decoration: none;
}
.legal-toc-list a:hover, .legal-toc-list a.toc-active { color: var(--ink); border-left-color: var(--ink); }
.legal-content { grid-column: 4 / span 9; min-width: 0; max-width: 660px; }
.legal-section { scroll-margin-top: 24px; }
.legal-section + .legal-section { margin-top: 64px; }
.legal-content h2 { margin: 56px 0 20px; font-size: 1.5rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.legal-content h3 { margin: 28px 0 12px; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.legal-content p, .legal-content ul, .legal-content ol { margin: 0 0 16px; }
.legal-content ul, .legal-content ol { display: grid; gap: 8px; padding-left: 1.25em; }
.legal-content li::marker { color: var(--ink-muted); }
.legal-content strong { font-weight: 700; }
.legal-content > :first-child, .legal-section > :first-child { margin-top: 0; }
.legal-highlight, .legal-contact-block {
  margin: 20px 0; padding: 20px 24px;
  background: var(--dark-slate); border-radius: 8px;
}
.legal-highlight > :last-child, .legal-contact-block > :last-child { margin-bottom: 0; }
.legal-highlight strong { display: block; margin-bottom: 8px; }
.legal-contact-block h3 { margin-top: 0; }
.legal-table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 1rem; }
.legal-table th {
  padding: 12px 16px; background: var(--dark-slate);
  border-bottom: 1px solid var(--border-light); font-weight: 700; text-align: left;
}
.legal-table td { padding: 12px 16px; border-bottom: 1px solid var(--spot-gray); line-height: 1.5; vertical-align: top; }
.legal-table td:first-child { font-weight: 600; }

@media (max-width: 1100px) {
  .legal-toc, .legal-content { grid-column: 1 / -1; }
  .legal-toc {
    position: static; margin-bottom: 40px; padding: 20px 24px;
    background: var(--dark-slate); border-radius: 8px;
  }
  .legal-toc-list { display: block; columns: 2 16rem; column-gap: 32px; }
  .legal-toc-list li { break-inside: avoid; margin-bottom: 2px; }
  .legal-toc-list a { padding-block: 11px; }
}

@media (max-width: 760px) {
  .legal-page-layout { column-gap: 0; }
  .legal-table { display: block; overflow-x: auto; }
  /* Three-column tables stack into one labelled block per row. */
  .legal-table--stack { overflow-x: visible; }
  .legal-table--stack thead { display: none; }
  .legal-table--stack tbody, .legal-table--stack tr, .legal-table--stack td { display: block; }
  .legal-table--stack tr { padding: 16px 0; border-bottom: 1px solid var(--spot-gray); }
  .legal-table--stack td { padding: 0; border: 0; }
  .legal-table--stack td + td { margin-top: 10px; }
  .legal-table--stack td[data-label]::before {
    content: attr(data-label); display: block;
    font-size: 0.875rem; font-weight: 600; color: var(--ink-muted);
  }
  .legal-content h2 { font-size: 1.375rem; }
}

/* ---------- interior page body ---------- */
.page-body { padding-bottom: clamp(80px, 9vw, 136px); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin-top: 56px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.025em;
}
.prose h3 { margin-top: 32px; font-size: 1.375rem; font-weight: 700; line-height: 1.3; }
.prose > h2 + *, .prose > h3 + * { margin-top: 12px; }
.prose ul, .prose ol { display: grid; gap: 8px; max-width: 60ch; margin-bottom: 0; padding-left: 1.25em; }
.prose li::marker { color: var(--ink-muted); }
.page-body .report-form { max-width: 640px; margin-top: 40px; }
.prose code { font-family: var(--font-code); font-size: 0.9em; font-weight: 500; }
.prose pre {
  max-width: 72ch; padding: 20px 24px;
  background: var(--dark-slate); border-radius: 8px;
  font: 500 0.875rem/1.75 var(--font-code);
  white-space: pre-wrap; overflow-wrap: break-word;
}
.prose pre code { font: inherit; }
.prose pre .nowrap { white-space: nowrap; }
@media (max-width: 760px) {
  .prose pre { padding-inline: 16px; }
}

/* About: the frog loop under "The name". */
.frog-figure { position: relative; max-width: 720px; margin-top: 32px; border-radius: 6px; overflow: hidden; }
.frog-figure__video { display: block; width: 100%; height: auto; }
.frog-figure__toggle {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid currentColor; border-radius: 50%;
  background: var(--frog-black); color: var(--ink-muted); cursor: pointer;
}
.frog-figure__toggle:hover { color: var(--ink); }
.frog-figure__toggle[hidden] { display: none; }
.frog-figure__toggle svg { width: 14px; height: 14px; fill: currentColor; }
.frog-figure__toggle .icon-play, .frog-figure__toggle.is-paused .icon-pause { display: none; }
.frog-figure__toggle.is-paused .icon-play { display: block; }
