/* ==========================================================================
   Free check (/free-check/ and /free-check/sent/). Layout and states only; fields,
   choices, checks, FAQ, tags, frames and callouts come from components.css.
   Intake (title column + form sheet), form states (error, preview, sent), the sample
   report on the lightbox (the one dark band) and the next-steps rail.
   ========================================================================== */

/* ---- intake: title column and form sheet ---------------------------------------- */
.fc-intake {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 4.5vw, 80px); align-items: start;
  padding-bottom: var(--sec-y);
}
.fc-head.page-head { padding-bottom: 0; }
.fc-head .page-head__title { font-size: clamp(2.125rem, 1.45rem + 2.1vw, 3.375rem); max-width: 14ch; }
.fc-head .page-head__lead { max-width: 46ch; }
.fc-head__line {
  margin-top: var(--sp-5); max-width: 44ch; padding-left: 14px; box-shadow: inset 2px 0 0 var(--ink);
  font-size: 15px; line-height: 1.5; color: var(--ink);
}
.fc-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--sp-8) 0 0; border-top: 1px solid var(--ink); }
.fc-glance > div { padding: 12px 16px 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fc-glance > div:nth-child(even) { padding-left: 16px; padding-right: 0; box-shadow: inset 1px 0 0 var(--line); }
.fc-glance dt {
  font-family: var(--ff-sans); font-size: var(--fs-label); font-weight: var(--fw-semi);
  letter-spacing: 0; text-transform: none; line-height: 1.3; color: var(--ink-3);
}
.fc-glance dd { margin: 5px 0 0; font-size: 15px; font-weight: var(--fw-semi); line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }

.fc-sheet { padding-top: clamp(18px, 2.2vw, 28px); min-width: 0; }
@media (min-width: 981px) and (min-height: 720px) {
  .fc-head { position: sticky; top: calc(var(--nav-h) + 8px); }
}
@media (max-width: 980px) {
  .fc-intake { grid-template-columns: minmax(0, 1fr); }
  .fc-head .page-head__title { max-width: 18ch; }
  .fc-glance { margin-top: var(--sp-7); }
  .fc-sheet { padding-top: var(--sp-8); }
}

/* ---- the form sheet ----------------------------------------------------------------- */
.fc-card { --cm-o: 8px; --cm-l: 12px; background: var(--sheet); border-radius: var(--r-3); box-shadow: var(--sh-2); }
.fc-card__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 13px clamp(18px, 2.4vw, 28px) 12px; border-bottom: 1px solid var(--line);
  background: var(--paper); border-radius: var(--r-3) var(--r-3) 0 0;
}
.fc-form { padding: clamp(20px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px) clamp(20px, 2.4vw, 26px); }
/* align-content: start keeps two fields in a .form-row level when only one has help text (otherwise the
   shorter field's grid rows stretch and its input grows and drops) */
.fc-form .field { margin-bottom: 22px; align-content: start; }
.fc-form .field__label, .fc-form .field legend { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 2px; }
.fc-form legend { margin-bottom: 7px; }
.fc-form .field__error .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* field numbers: an intake sheet numbers its boxes. Counted in CSS, so the licensed sellers box
   (hidden until "Yes" is chosen) leaves no gap in the numbering. Decorative (aria-hidden). */
.fc-form { counter-reset: fc-n; }
.fc-n::before { counter-increment: fc-n; content: counter(fc-n, decimal-leading-zero); }
.fc-n {
  display: inline-block; min-width: 26px; margin-right: 9px; padding: 2px 0 1px; border-radius: 2px; text-align: center;
  font-family: var(--ff-mono); font-size: 10.5px; font-weight: var(--fw-medium); letter-spacing: .06em; line-height: 1.2;
  color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2);
  transform: translateY(-1px);
}
.field--invalid .fc-n { color: var(--st-rejected-fg); box-shadow: inset 0 0 0 1px var(--st-rejected-dot); }
/* keyboard focus stays visible on a field that shows an error (components.css lets the error style win) */
.fc-form .input[aria-invalid="true"]:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.fc-form .field--invalid .check input:focus-visible { box-shadow: var(--focus-ring); }
.field--invalid > .field__label, .field--invalid > legend { color: var(--st-rejected-fg); }

.fc-platforms { grid-template-columns: repeat(auto-fill, minmax(min(100%, 152px), 1fr)); }
/* the help line takes the cells after "Not sure" (or a row of its own on phones) */
.fc-platforms .field__help { grid-column: span 2; align-self: center; padding: 4px 0 0 4px; }
@media (max-width: 360px) { .fc-platforms .field__help { grid-column: 1 / -1; } }
.fc-licensed textarea.input { min-height: 84px; }
.fc-licenses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .fc-licenses { grid-template-columns: minmax(0, 1fr); } }
.field--invalid .choice span { border-color: var(--st-rejected-dot); }

/* declarations: the required authorization, then the optional, separate newsletter box */
.fc-decl { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px dashed var(--line-2); }
.fc-decl .field { margin: 0; }
.fc-auth .check { font-size: 15px; line-height: 1.5; color: var(--ink); }
.fc-auth .field__error { margin-left: 32px; }
.fc-optin { padding: 12px 14px 14px; border-radius: var(--r-2); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.fc-optin .label { margin-bottom: 8px; }
.fc-optin .check { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* spam trap: kept out of sight and out of the tab order */
.fc-diy { margin-top: var(--sp-6); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.fc-diy a { color: var(--ink); font-weight: var(--fw-semi); text-decoration-color: var(--cobalt-line); text-underline-offset: .2em; }
.fc-diy a:hover { color: var(--cobalt); }
.fc-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* foot: the privacy line sits at the button, the button reads it out (aria-describedby) */
.fc-foot { margin-top: var(--sp-6); align-items: center; }
.fc-privacy { flex: 1 1 240px; max-width: 44ch; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.fc-privacy a { color: var(--ink); font-weight: var(--fw-semi); text-decoration-color: var(--cobalt-line); text-underline-offset: .2em; }
.fc-privacy a:hover { color: var(--cobalt); }
.fc-submit { flex: none; }
.fc-submit[aria-disabled="true"] { opacity: .78; cursor: progress; }
.fc-submit[aria-disabled="true"] .icon--go { animation: fcNudge 1s var(--ease-in-out) infinite; }
@keyframes fcNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (max-width: 600px) { .fc-submit { width: 100%; } }

/* ---- messages: did not go through, preview, sent ------------------------------------ */
.fc-msg {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 12px; align-items: start;
  margin: var(--sp-6) 0 0; padding: 14px 16px; border-radius: var(--r-2);
  font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2);
}
.fc-msg--error { background: var(--st-rejected-bg); box-shadow: inset 0 0 0 1px var(--st-rejected-dot); }
.fc-msg--error > .icon { color: var(--st-rejected-dot); margin-top: 2px; }
.fc-msg__t { font-size: 16px; font-weight: var(--fw-semi); line-height: 1.35; letter-spacing: -.01em; color: var(--st-rejected-fg); }
.fc-msg__t:focus { outline: none; }
.fc-msg__t:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.fc-msg--error p { margin-top: 4px; }
.fc-msg--error a { color: var(--st-rejected-fg); font-weight: var(--fw-semi); text-underline-offset: .2em; }
.fc-msg__note { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .02em; color: var(--ink); }
/* preview hosts (*.pages.dev): striped like every illustrative or simulated thing on this site */
.fc-msg--preview {
  display: block; padding: 12px; text-align: center;
  background: repeating-linear-gradient(-45deg, var(--hatch-b) 0 7px, var(--hatch-a) 7px 14px);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.fc-msg--preview .fc-msg__line { display: inline-block; margin-top: 8px; padding: 6px 10px; border-radius: 2px; background: var(--sheet); color: var(--ink); }
.fc-msg--preview .fc-msg__line a { color: var(--ink); font-weight: var(--fw-semi); text-underline-offset: .2em; }
.fc-platforms-note { margin-top: 8px; font-size: var(--fs-micro); line-height: 1.45; color: var(--ink-2); }
.fc-msg--preview .fc-msg__t {
  display: inline-block; padding: 5px 10px; border-radius: 2px; background: var(--sheet);
  font-family: var(--ff-sans); font-size: 13px; font-weight: var(--fw-semi); letter-spacing: 0; text-transform: none; color: var(--ink);
}

.fc-done { display: grid; justify-items: start; gap: var(--sp-4); padding: clamp(28px, 3.4vw, 44px) clamp(18px, 2.4vw, 28px) clamp(28px, 3vw, 36px); }
.fc-done__stamp {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 8px; border-radius: 2px;
  font-family: var(--ff-mono); font-size: 11.5px; font-weight: var(--fw-medium); letter-spacing: .12em; text-transform: uppercase;
  color: var(--st-verified-fg); background: var(--st-verified-bg); box-shadow: inset 0 0 0 1px var(--cobalt-line);
}
.fc-done__stamp .icon { width: 16px; height: 16px; stroke-width: 2; }
.fc-done__t { max-width: 20ch; }
.fc-done__t:focus { outline: none; }
.fc-done__t:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.fc-done__text { max-width: 52ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.fc-done__text a { color: var(--ink); font-weight: var(--fw-semi); text-decoration-color: var(--cobalt-line); text-underline-offset: .2em; }

/* ---- 02 what you get: the list and an illustrative report on the lightbox ------------ */
.fc-get__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-9) clamp(32px, 4.5vw, 80px); align-items: start;
}
.fc-get__list { border-top: 1px solid var(--line-2); }
.fc-get__list li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 16px 0 17px; border-bottom: 1px solid var(--line);
}
.fc-get__n { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .08em; color: var(--cobalt); }
.fc-get__list p { font-size: 17px; line-height: 1.5; color: var(--ink); }
.fc-get__note { margin-top: var(--sp-6); font-size: 15px; }

.fc-report { margin: 0; min-width: 0; }
/* the report is a printed page lying on the lightbox: the element also carries .theme-light (tokens.css),
   so the paper tokens return inside it */
.fc-report__doc {
  --cm: var(--night-ink-3); --cm-o: 10px; --cm-l: 14px;
  position: relative; background: var(--sheet); border-radius: var(--r-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 34px 64px -34px rgba(0, 0, 0, .95);
}
.fc-report__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); border-radius: var(--r-2) var(--r-2) 0 0;
}
.fc-report__id { font-family: var(--ff-sans); font-size: 13px; font-weight: var(--fw-semi); letter-spacing: 0; text-transform: none; color: var(--ink); }
.fc-report__id span { color: var(--ink-3); }
.fc-report__head .callout--inline { font-size: 10.5px; }
.fc-report__meta { padding: 4px 16px 0; }
.fc-report__meta > div:first-child { border-top: 0; }
.fc-report__meta > div:last-child { border-bottom: 0; }
.fc-find { padding: 14px 16px 6px; border-top: 1px solid var(--line-2); }
.fc-find__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.fc-find__t { font-family: var(--ff-sans); font-size: var(--fs-label); font-weight: var(--fw-semi); letter-spacing: 0; text-transform: none; color: var(--ink); }
.fc-find__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fc-find__pair .exhibit figcaption { font-size: 13px; }
.fc-find__meta { margin-top: 12px; }
.fc-find__meta > div:last-child { border-bottom: 0; }
.fc-find__meta dd { font-size: 13.5px; line-height: 1.45; }
.fc-report__scale {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--paper); border-radius: 0 0 var(--r-2) var(--r-2);
}
.fc-report__scale ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* confidence: three bars and the word, never the bars alone */
.fc-conf {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-sans); font-size: 13px; font-weight: var(--fw-semi); letter-spacing: 0; text-transform: none; color: var(--ink);
}
.fc-conf__bars { display: inline-flex; align-items: flex-end; gap: 2px; }
.fc-conf__bars i { display: block; width: 4px; border-radius: 1px; background: var(--line-2); }
.fc-conf__bars i:nth-child(1) { height: 6px; }
.fc-conf__bars i:nth-child(2) { height: 9px; }
.fc-conf__bars i:nth-child(3) { height: 12px; }
.fc-conf[data-level="1"] .fc-conf__bars i:nth-child(-n + 1),
.fc-conf[data-level="2"] .fc-conf__bars i:nth-child(-n + 2),
.fc-conf[data-level="3"] .fc-conf__bars i { background: var(--cobalt); }
.fc-find__head .fc-conf { padding: 4px 8px; border-radius: 2px; background: var(--cobalt-tint); color: var(--cobalt-3); }

.fc-report__cap { margin-top: var(--sp-5); }
.fc-report__cap .callout--inline { font-size: 10.5px; }

@media (max-width: 980px) {
  .fc-get__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .fc-report__doc { --cm-o: 6px; --cm-l: 10px; }
  .fc-find__pair { gap: 8px; }
  .fc-find__pair .exhibit .label { font-size: 9.5px; }
}

/* ---- next steps: a rail with one node per step (cobalt: Cult Shield, ink: you) -------- */
.fc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.fc-step { position: relative; min-width: 0; padding: 24px 24px 6px 0; }
.fc-step + .fc-step { padding-left: 24px; box-shadow: inset 1px 0 0 var(--line); }
.fc-step::before {
  content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 1px;
  background: var(--ink); box-shadow: 0 0 0 3px var(--paper);
}
.fc-step + .fc-step::before { left: 24px; }
.fc-step[data-lane="cs"]::before { background: var(--cobalt); }
.fc-step__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fc-step__n { font-family: var(--ff-mono); font-size: 12px; font-weight: var(--fw-medium); letter-spacing: .08em; color: var(--ink); }
.fc-step__who { font-family: var(--ff-sans); font-size: var(--fs-label); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.fc-step[data-lane="cs"] .fc-step__who { color: var(--cobalt); }
.fc-step__d { margin-top: 14px; max-width: 30ch; font-size: 17px; line-height: 1.5; color: var(--ink); }
.fc-step__d a { color: var(--ink); text-decoration-color: var(--cobalt-line); text-underline-offset: .2em; }
.fc-step__d a:hover { color: var(--cobalt); }
.sec--sheet .fc-step::before { box-shadow: 0 0 0 3px var(--sheet); }
@media (max-width: 900px) {
  .fc-steps { grid-template-columns: minmax(0, 1fr); border-top: 0; padding-left: 28px; position: relative; }
  .fc-steps::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
  .fc-step, .fc-step + .fc-step { padding: 0 0 26px; box-shadow: none; }
  .fc-step::before, .fc-step + .fc-step::before { left: -28px; top: 4px; }
  .fc-step__d { margin-top: 8px; max-width: 46ch; }
}

/* ---- 04 questions ------------------------------------------------------------------------ */
.fc-faq__note { margin-top: var(--sp-6); }

/* ---- /free-check/sent/ ----------------------------------------------------------------------- */
.fc-sent .page-head__title { max-width: 16ch; }
.fc-sent .page-head__lead a { color: var(--ink); font-weight: var(--fw-semi); text-decoration-color: var(--cobalt-line); text-underline-offset: .2em; }
.fc-sent__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-7); margin-top: var(--sp-7); }
.fc-stamp {
  justify-self: start; display: grid; justify-items: center; gap: 6px;
  padding: 16px 22px 14px; border: 2px solid var(--cobalt); border-radius: 4px; color: var(--cobalt);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--cobalt-line);
  transform: rotate(-4deg);
}
.fc-stamp__k { font-family: var(--ff-mono); font-size: 22px; font-weight: var(--fw-medium); letter-spacing: .24em; line-height: 1; text-transform: uppercase; }
.fc-stamp__s { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 981px) {
  .fc-sent.page-head--split > .page-head__aside { align-self: center; justify-self: center; }
}
.band-dark .fc-step::before { box-shadow: 0 0 0 3px var(--night); }

/* v2 (20.10.2026): the verdict is a word, not a signal meter; numbers are plain figures */
.fc-conf__bars { display: none; }
.fc-report__scale ul { gap: 4px 18px; }
.fc-report__scale .fc-conf + .fc-conf::before { content: none; }
/* the value that applies to this listing: filled, with a tick, so the scale reads as a scale */
.fc-report__scale .fc-conf { padding: 3px 8px; border-radius: 2px; color: var(--ink-3); }
.fc-report__scale .fc-conf[data-selected] { background: var(--ink); color: var(--paper); }
.fc-report__scale .fc-conf .icon { width: 12px; height: 12px; }
.fc-find__pair .exhibit__img .pin { width: 18px; height: 18px; margin: -9px 0 0 -9px; font-size: 10px; }
.exhibit__img--white .pin { mix-blend-mode: normal; }

/* v3: fields are not numbered */
.fc-n { display: none; }
