/* yeh.ai sale page. Tokens from DESIGN.md. */
@font-face { font-family: "Gloock"; src: url(/fonts/gloock-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk-var.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0B0B0A; --ink-2: #171716; --ink-3: #0F0F0E; --line: #2A2A28;
  --paper: #F4F3EF; --paper-press: #DAD8D1; --quiet: #A3A29C; --signal: #FF5B3A; --mint: #3EE6A8;
  --serif: "Gloock", "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line) var(--ink); }
p { text-wrap: pretty; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--paper); color: var(--ink); padding: var(--s3) var(--s4); z-index: 10; }
.skip:focus { top: var(--s4); }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding-block: var(--s5); }
.wordmark { font: 400 1.5rem/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; }
.status { margin: 0; display: inline-flex; align-items: center; gap: var(--s2); font-size: 0.9375rem; color: var(--paper); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }

/* Hero (KOMETA base: measure row over an edge-to-edge specimen) */
.hero { padding-top: clamp(var(--s6), 6vh, var(--s8)); }
.measures { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin: 0; font-size: 0.8125rem; color: var(--quiet); }
.measures div { display: flex; gap: var(--s2); }
.measures div:nth-child(2) { justify-content: center; }
.measures div:nth-child(3) { justify-content: center; }
.measures div:nth-child(4) { justify-content: flex-end; }
.measures dt, .measures dd { margin: 0; }
.measures dd { color: var(--paper); }
h1 { margin: 0; font-weight: 400; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.specimen {
  display: block; margin-block: 0; font-family: var(--serif); font-size: clamp(6.5rem, 33vw, 34rem); line-height: 0.86;
  letter-spacing: -0.03em; text-align: center; white-space: nowrap; padding-block: var(--s6) 0.24em;
  margin-inline: auto; max-width: 100vw; overflow: clip;
}
.statement { display: block; font: 500 clamp(1.75rem, 3.4vw, 3rem)/1.1 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: end; padding-top: var(--s5); padding-bottom: var(--s8); }
.hero-claim { display: grid; gap: var(--s4); }
.lede { margin: 0; max-width: 40ch; color: var(--quiet); font-size: 1.0625rem; }
.hero-action { display: grid; gap: var(--s3); justify-items: start; }
.note { margin: 0; font-size: 0.9375rem; color: var(--quiet); max-width: 44ch; }

/* Button: the one primary action */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--s6);
  background: var(--paper); color: var(--ink); border: 0; border-radius: 2px; font: 600 1.0625rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: background-color 160ms ease-out;
}
.btn:hover { background: var(--paper-press); text-decoration: none; }
.btn:disabled { background: var(--quiet); cursor: progress; }
.btn-block { width: 100%; }
@media (min-width: 1024px) { .btn-lg { min-height: 60px; padding: 0 var(--s7); font-size: 1.1875rem; } }

/* Spec table */
.spec { padding-bottom: var(--s8); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s7); }
h2 { margin: 0 0 var(--s4); font: 500 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--sans); letter-spacing: -0.015em; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; vertical-align: baseline; padding: var(--s4) 0; border-top: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 1px solid var(--line); }
.spec-table th { width: 34%; font-weight: 400; color: var(--quiet); padding-right: var(--s5); }

/* Offer */
.offer { display: grid; align-items: start; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s8); padding-top: var(--s7); padding-bottom: var(--s8); border-top: 1px solid var(--line); scroll-margin-top: var(--s5); }
.offer-copy p { margin: 0 0 var(--s6); max-width: 46ch; color: var(--quiet); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--s5); max-width: 52ch; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; color: var(--quiet); }
.steps li::before { content: counter(step); font-family: var(--mono); font-size: 0.8125rem; color: var(--paper); padding-top: 0.25em; }
.steps p { margin: 0; color: var(--quiet); max-width: none; }
.steps strong { color: var(--paper); font-weight: 500; display: block; }
.card { background: var(--ink-2); border-radius: 6px; padding: clamp(var(--s5), 3vw, var(--s7)); box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.6); transition: opacity 200ms ease-out; }
.offer-form { display: grid; gap: var(--s5); transition: opacity 180ms ease-out; }
.field { display: grid; gap: var(--s2); }
label { font-size: 0.9375rem; }
.req, .opt { color: var(--quiet); font-size: 0.8125rem; margin-left: var(--s1); }
input, textarea {
  width: 100%; font: 400 1.0625rem/1.4 var(--sans); color: var(--paper); background: var(--ink-3);
  border: 1px solid var(--line); border-radius: 2px; padding: var(--s3) var(--s4); min-height: 52px; caret-color: var(--signal);
  transition: border-color 160ms ease-out;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input:hover, textarea:hover { border-color: #3A3A37; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-color: var(--paper); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--signal); }
input[aria-invalid="true"]:focus-visible, textarea[aria-invalid="true"]:focus-visible { outline-color: var(--signal); border-color: var(--signal); }
.field-error { margin: 0; font-size: 0.8125rem; color: var(--signal); }
.field-error:empty, .field-error[hidden] { display: none; }
.money { position: relative; }
.money-sign { position: absolute; left: var(--s4); top: 50%; transform: translateY(-50%); color: var(--quiet); }
.money input { padding-left: 2.25rem; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hint, .fine { margin: 0; font-size: 0.8125rem; color: var(--quiet); }
.form-msg { margin: 0; font-size: 0.9375rem; min-height: 1.5em; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--signal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { width: 100%; min-height: 65px; }
.is-leaving { opacity: 0; }
.receipt { display: grid; gap: var(--s4); outline: none; animation: rise 200ms ease-out; }
.receipt h3 { margin: 0; font: 500 1.5rem/1.2 var(--sans); }
.receipt p { margin: 0; color: var(--quiet); }
.receipt dl { margin: var(--s2) 0 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s5); font-size: 0.8125rem; }
.receipt dt { color: var(--quiet); } .receipt dd { margin: 0; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

/* Footer */
.foot { display: flex; gap: var(--s6); align-items: baseline; padding-block: var(--s6) var(--s7); border-top: 1px solid var(--line); color: var(--quiet); font-size: 0.9375rem; }
.foot .wordmark { color: var(--paper); font-size: 1.25rem; margin-right: auto; }

/* Inner pages (privacy, 404, no-JS result) */
.page { padding-top: var(--s8); padding-bottom: var(--s9); max-width: calc(46rem + 2 * var(--gutter)); margin-inline: 0 auto; margin-left: max(0px, calc((100vw - var(--max)) / 2 - var(--gutter))); }
.page h1 { font: 400 clamp(2.75rem, 6vw, 4.5rem)/1 var(--serif); letter-spacing: -0.02em; margin-bottom: var(--s6); }
.page h2 { margin-top: var(--s7); font-size: 1.5rem; }
.page p { color: var(--quiet); max-width: 65ch; }
.page .btn { margin-top: var(--s6); }

@media (max-width: 860px) {
  .hero-foot, .spec, .offer { grid-template-columns: 1fr; }
  .hero-foot { gap: var(--s5); padding-bottom: var(--s7); align-items: start; }
  .spec { gap: var(--s4); padding-bottom: var(--s7); }
  .offer { gap: var(--s6); padding-top: var(--s6); padding-bottom: var(--s7); }
}
@media (max-width: 560px) {
  .measures { grid-template-columns: repeat(2, 1fr); row-gap: var(--s2); }
  .measures div:nth-child(n) { justify-content: flex-start; }
  .specimen { padding-block: var(--s3) 0.22em; }
  .hero-action { justify-items: stretch; }
  .btn { width: 100%; }
  .spec-table th { width: 40%; }
  .foot { flex-wrap: wrap; gap: var(--s3) var(--s5); }
  .foot .wordmark { flex-basis: 100%; }
  .page { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
