/* The six chrome routes: contacts, download, privacy, NDA, not-found and the
 * sitemap. The chrome around them (header, menu, footer, pill, plate, kicker,
 * placeholder) comes from the site's own sheets; this file adds only the frame
 * a page without a hero stands in and the blocks those six pages carry.
 *
 * Ported from mocks/pages/ef/pages-ef.css, narrowed to the versions he picked
 * on 2026-09-03: contacts v1, download v2, privacy v2, nda v2, notfound v2,
 * sitemap v2. Every colour and length resolves through design/ or
 * site/chrome.tokens.css — no literal colour lives here. */

/* --- the frame ------------------------------------------------------------ */
/* .stage-flat, the shell every route without a hero photograph stands in, is
   site/sheet.css's: it is a variant of .sheet and five other port lanes each
   needed their own copy of it. What is left here is the page's own head. */
.page-head { display: grid; gap: 10px; max-width: 64ch; }
.page-title {
  font-size: var(--resurs-size-page-title);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.022em;
}
.page-lead {
  font-size: var(--resurs-size-meta);
  line-height: 1.5;
  color: var(--resurs-ink-muted);
  text-wrap: balance;
}
.block { margin-top: var(--resurs-gap-cards); }

/* --- contacts ------------------------------------------------------------- */
/* The four labelled placeholders stand beside the form, not under it: he has
   no phone, address, email or handle on record, and the form is the only way
   in until he does. */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 32px;
  align-items: start;
}
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 16px 14px;
  border-radius: var(--resurs-radius-card);
  background: var(--resurs-surface);
}
.contact-card .plate { width: 48px; height: 48px; }
.contact-card-body { display: grid; gap: 6px; }
.contact-card-label { font-size: var(--resurs-size-small); color: var(--resurs-ink-muted); }
.contacts-channels { margin-top: 28px; display: grid; gap: 12px; }
.contacts-channels h2 {
  font-size: var(--resurs-size-small);
  font-weight: 500;
  color: var(--resurs-ink-muted);
}
.contacts-channels .channels { display: flex; gap: 8px 22px; flex-wrap: wrap; }

/* --- the lead form -------------------------------------------------------- */
.lead-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--resurs-radius-panel);
  background: var(--resurs-tint);
}
.lead-form-title {
  font-size: var(--resurs-size-title);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead-form-note { font-size: var(--resurs-size-small); color: var(--resurs-ink-muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-size: var(--resurs-size-small); color: var(--resurs-ink-muted); }
.field-label small { margin-left: 6px; color: var(--resurs-placeholder-ink); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--resurs-field-edge);
  border-radius: var(--resurs-radius-tile);
  background: var(--resurs-field-ground);
  color: var(--resurs-ink);
  font: inherit;
  font-size: var(--resurs-size-small);
  transition: border-color var(--resurs-quick) var(--resurs-ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--resurs-field-edge-hover); }
.field[data-invalid='true'] input,
.field[data-invalid='true'] textarea,
.field[data-invalid='true'] select { border-color: var(--resurs-invalid); }
/* Reserved whether or not it says anything: a message must not move the field
   below it when it appears. */
.field-error { min-height: 1.2em; font-size: 12px; color: var(--resurs-invalid); }
.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--resurs-size-small); }
.field-check input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--resurs-accent); }
.field-check a { color: var(--resurs-accent); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-foot .pill-accent { border: 0; font: inherit; cursor: pointer; }
.form-foot .pill-accent[disabled] { opacity: 0.6; cursor: default; }
.form-status { font-size: var(--resurs-size-small); }
.lead-form[data-state='invalid'] .form-status { color: var(--resurs-invalid); }
.lead-form[data-state='error'] .form-status {
  padding: 10px 14px;
  border-radius: var(--resurs-radius-tile);
  background: var(--resurs-invalid-soft);
  color: var(--resurs-invalid);
}
.lead-form[data-state='saved'] .form-status {
  padding: 10px 14px;
  border-radius: var(--resurs-radius-tile);
  background: var(--resurs-saved-soft);
  color: var(--resurs-saved);
}
.lead-form[data-state='submitting'] .form-status::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid var(--resurs-hairline);
  border-top-color: var(--resurs-accent);
  border-radius: 50%;
  animation: turn 0.8s linear infinite;
  vertical-align: -1px;
}
@keyframes turn { to { transform: rotate(360deg); } }
.form-again { border: 0; background: none; font: inherit; color: var(--resurs-accent); cursor: pointer; }
.lead-form:not([data-state='saved']) .form-again { display: none; }

/* --- download ------------------------------------------------------------- */
/* One band: the code slot beside the two store rows. Nothing is published in
   either store, so the slot and both buttons are labelled placeholders and the
   buttons are inert — a generated code pointing at nothing is a defect. */
.download-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  border-radius: var(--resurs-radius-panel);
  background: var(--resurs-tint);
}
.qr-slot {
  display: grid;
  place-items: center;
  gap: 12px;
  width: 200px;
  aspect-ratio: 1;
  padding: 20px;
  border: 1px dashed var(--resurs-placeholder-edge);
  border-radius: var(--resurs-radius-card);
  background: var(--resurs-slot-ground);
  color: var(--resurs-placeholder-ink);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.qr-slot .icon { color: var(--resurs-placeholder-edge); }
.store-rows { display: grid; gap: 10px; }
.store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: var(--resurs-radius-tile);
  background: var(--resurs-ground);
}
.store-row-name { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.store-row .plate { width: 40px; height: 40px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--resurs-radius-tile);
  background: var(--resurs-ink);
  color: var(--resurs-ground);
  font-size: var(--resurs-size-small);
  opacity: 0.55;
  cursor: default;
}
.store-note { font-size: 12px; color: var(--resurs-placeholder-ink); }
.inside { margin-top: var(--resurs-gap-cards); display: grid; gap: 12px; }
.inside h2 { font-size: var(--resurs-size-small); font-weight: 500; color: var(--resurs-ink-muted); }
.inside ul { display: flex; gap: 8px; flex-wrap: wrap; }
.inside li {
  padding: 8px 14px;
  border-radius: var(--resurs-radius-pill);
  background: var(--resurs-surface);
  font-size: var(--resurs-size-small);
}

/* --- the document skeletons ---------------------------------------------- */
.doc-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: var(--resurs-size-small); color: var(--resurs-ink-muted); }
.doc-folds { margin: 0; padding: 0; list-style: none; display: grid; }
.doc-fold { border-top: 1px solid var(--resurs-hairline); }
.doc-folds li:last-child .doc-fold { border-bottom: 1px solid var(--resurs-hairline); }
.doc-fold-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  font-size: var(--resurs-size-nav);
  font-weight: 500;
}
.doc-fold-head::-webkit-details-marker { display: none; }
.doc-fold-head .icon-chevron { color: var(--resurs-ink-muted); transition: transform var(--resurs-quick) var(--resurs-ease); }
.doc-fold[open] .doc-fold-head .icon-chevron { transform: rotate(180deg); }
.doc-fold-head:hover { color: var(--resurs-accent); }
/* Dashed, so an empty slot is never read as the text of a document. */
.doc-slot {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px dashed var(--resurs-placeholder-edge);
  border-radius: var(--resurs-radius-tile);
  background: var(--resurs-slot-ground);
  color: var(--resurs-placeholder-ink);
  font-size: var(--resurs-size-small);
}

/* --- not found ------------------------------------------------------------ */
.lost-band {
  display: grid;
  gap: 14px;
  padding: 32px;
  border-radius: var(--resurs-radius-panel);
  background: var(--resurs-surface);
  max-width: 640px;
}
.lost-code {
  font-size: var(--resurs-size-title);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.lost-links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.lost-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--resurs-accent); }

/* --- the sitemap ---------------------------------------------------------- */
.sm-list { display: grid; }
.sm-group {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--resurs-hairline);
}
.sm-group:last-child { border-bottom: 1px solid var(--resurs-hairline); }
.sm-group-title { font-size: var(--resurs-size-body); font-weight: 500; }
.sm-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.sm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 5px 0; font-size: var(--resurs-size-small); }
.sm-link:hover { color: var(--resurs-accent); }
/* Dashed, like every other slot that is not yet content. */
.sm-tag {
  padding: 2px 8px;
  border-radius: var(--resurs-radius-pill);
  border: 1px dashed var(--resurs-placeholder-edge);
  font-size: 11px;
  color: var(--resurs-placeholder-ink);
}

/* --- reduced motion: every transition instant, every reveal complete ------ */
@media (prefers-reduced-motion: reduce) {
  .doc-fold-head .icon-chevron,
  .field input, .field textarea, .field select { transition: none; }
  .lead-form[data-state='submitting'] .form-status::before { animation: none; }
}

/* --- widths --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .sm-group { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .lead-form { padding: 20px; }
  .download-band { grid-template-columns: 1fr; padding: 20px; }
  .qr-slot { width: 100%; max-width: 200px; font-size: 14px; }
  .sm-group ul { grid-template-columns: 1fr; }
  /* The link itself grows to the tap floor - min-height alone, since it
     already sits inline in .sm-row with no box of its own to pad. */
  .sm-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .lost-links a { min-height: 44px; }
  .store-note { font-size: 14px; }
  .sm-tag { font-size: 14px; }
  /* A nested <small> shrinks again on top of the field label's own already-
     small size - the two compound below 12px regardless of the label's own
     token value, so the floor is a literal size, not a relative one. */
  .field-label small { font-size: 14px; }
}
