/* Centner feedback kit: tokens and components.
   Light theme only, on Centner brand. No inline styles are needed by pages (the CSP blocks them). */

:root {
  --purple: #664794;
  --purple-deep: #4f3576;
  --purple-wash: #f2eef8;
  --purple-line: #d9cfe9;
  --teal: #33bdb5;
  --teal-ink: #19756f;
  --teal-wash: #e6f6f5;
  --paper: #faf9fc;
  --card: #ffffff;
  --ink: #1c1922;
  --ink-2: #4a4554;
  --ink-3: #6f6979;
  --line: #e7e3ee;
  --line-strong: #d6d0df;
  --warn-ink: #7a4b00;
  --warn-wash: #fdf4e3;
  --warn-line: #f0dcb4;
  --err-ink: #9b2c3e;
  --err-wash: #fbeff1;
  --err-line: #f1cfd5;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 34, 0.04), 0 8px 24px -12px rgba(28, 25, 34, 0.08);
  --focus: 0 0 0 3px rgba(102, 71, 148, 0.28);
  --gutter: 20px;
  --measure: 720px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--purple); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--purple-deep); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.cf-hidden, [hidden] { display: none !important; }
.cf-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cf-wrap { width: 100%; max-width: calc(var(--measure) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.cf-wrap--wide { max-width: calc(1040px + var(--gutter) * 2); }
main { flex: 1 0 auto; }

/* ---------- Header ---------- */
.cf-header { border-bottom: 1px solid var(--line); background: rgba(250, 249, 252, 0.92); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); position: sticky; top: 0; z-index: 20; }
.cf-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.cf-logo { display: inline-flex; align-items: center; min-height: 44px; }
.cf-logo img { height: 28px; width: auto; display: block; }
.cf-header__aside { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); min-width: 0; }
.cf-header__who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26ch; }
.cf-link-btn { display: inline-flex; align-items: center; text-decoration-line: underline; appearance: none; background: none; border: 0; padding: 0 10px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 500; color: var(--purple); cursor: pointer; border-radius: 8px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.cf-link-btn:hover { text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
.cf-hero { padding: 64px 0 36px; }
.cf-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); }
.cf-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }
.cf-display, .cf-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 64px); line-height: 1.02; letter-spacing: -0.015em; margin: 0; color: var(--ink); text-wrap: balance; }
.cf-display em, .cf-hero h1 em, .cf-h2 em, .cf-card h2 em, .cf-formcard h3 em { font-style: italic; color: var(--purple); }
.cf-lede { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.cf-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.cf-meta li { display: inline-flex; align-items: center; gap: 8px; }
.cf-meta li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin-right: 10px; }

.cf-rule { display: flex; align-items: center; gap: 12px; margin: 32px 0 0; }
.cf-rule span { display: block; height: 1px; flex: 0 1 120px; }
.cf-rule .l { background: linear-gradient(90deg, rgba(102, 71, 148, 0), var(--purple)); }
.cf-rule .r { background: linear-gradient(90deg, var(--teal), rgba(51, 189, 181, 0)); }
.cf-rule i { width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid var(--purple); background: var(--teal-wash); flex: none; }
.cf-rule--center { justify-content: center; }

.cf-h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.cf-section-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }

/* ---------- Cards ---------- */
.cf-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.cf-card + .cf-card { margin-top: 16px; }
.cf-card h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.01em; }
.cf-card p { margin: 0; color: var(--ink-2); }
.cf-card p + p { margin-top: 10px; }
.cf-stack > * + * { margin-top: 16px; }

/* ---------- Questions ---------- */
.cf-form { margin: 0 0 48px; }
.cf-form:not(.cf-ready) .fq { display: none; }
.fq { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px 30px; margin: 0 0 16px; box-shadow: var(--shadow); transition: border-color 0.2s ease; scroll-margin-top: 88px; }
.fq.is-missing { border-color: var(--err-ink); box-shadow: 0 0 0 3px var(--err-wash); }
.fq__num { display: block; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1; color: var(--purple); margin: 0 0 12px; }
.fq h2, .fq h3, .fq legend { font-family: var(--sans); font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: -0.005em; margin: 0; color: var(--ink); text-wrap: pretty; }
.fq .hint, .fq p.hint { margin: 6px 0 0; font-size: 15px; color: var(--ink-3); }
.fq__req { display: inline-block; vertical-align: 2px; margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); background: var(--purple-wash); border-radius: 999px; padding: 2px 8px; }
.fq__body { margin-top: 20px; }
.fq__msg { margin: 12px 0 0; font-size: 14px; color: var(--err-ink); }
.fq__state { position: absolute; top: 26px; right: 28px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all 0.2s ease; }
.fq.is-answered .fq__state { border-color: var(--teal); background: var(--teal); }
.fq.is-answered .fq__state::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.fq > h2, .fq > h3 { padding-right: 36px; }

/* choice chips */
.cf-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.cf-chip { position: relative; display: inline-flex; }
.cf-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.cf-chip span { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.3; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; user-select: none; }
.cf-chip span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; transition: all 0.15s ease; }
.cf-chip input[type="checkbox"] + span::before { border-radius: 5px; }
.cf-chip:hover span { border-color: var(--purple-line); background: #fdfcfe; }
.cf-chip input:checked + span { border-color: var(--purple); background: var(--purple-wash); color: var(--purple-deep); }
.cf-chip input:checked + span::before { border-color: var(--purple); background: var(--purple); box-shadow: inset 0 0 0 3px #fff; }
.cf-chip input[type="checkbox"]:checked + span::before { box-shadow: none; background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cf-chip input:focus-visible + span { box-shadow: var(--focus); }

/* scale */
.cf-scale { margin: 0; padding: 0; border: 0; }
.cf-scale__row { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 8px; }
.cf-scale__opt { position: relative; }
.cf-scale__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.cf-scale__opt span { display: grid; place-items: center; height: 52px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-family: var(--serif); font-size: 22px; color: var(--ink-2); cursor: pointer; transition: all 0.15s ease; user-select: none; }
.cf-scale__opt:hover span { border-color: var(--purple-line); color: var(--ink); }
.cf-scale__opt input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; }
.cf-scale__opt input:focus-visible + span { box-shadow: var(--focus); }
.cf-scale__labels { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.cf-scale__labels span:last-child { text-align: right; }
.cf-scale__lnum { display: none; font-weight: 600; color: var(--ink-2); }

/* text inputs */
.cf-field { display: block; }
.cf-field + .cf-field { margin-top: 14px; }
.cf-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.cf-input, .cf-textarea { display: block; width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.cf-textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.cf-input::placeholder, .cf-textarea::placeholder { color: #a39daf; }
.cf-input:hover, .cf-textarea:hover { border-color: #c5bdd2; }
.cf-input:focus, .cf-textarea:focus { outline: none; border-color: var(--purple); box-shadow: var(--focus); }
.cf-count { display: block; text-align: right; font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.cf-note { margin-top: 16px; }
.cf-note__toggle { appearance: none; background: none; border: 0; padding: 0 2px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 500; color: var(--purple); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cf-note__toggle::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--purple-wash); font-size: 15px; line-height: 1; }
.cf-note .cf-textarea { min-height: 88px; }

/* about-you card */
.cf-about { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.cf-about .cf-field + .cf-field { margin-top: 0; }

/* ---------- Actions ---------- */
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.cf-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: var(--radius-sm); border: 1px solid var(--purple); background: var(--purple); color: #fff; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.005em; cursor: pointer; text-decoration: none; transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease; }
.cf-btn:hover { background: var(--purple-deep); border-color: var(--purple-deep); color: #fff; }
.cf-btn:active { transform: translateY(1px); }
.cf-btn[disabled] { opacity: 0.55; cursor: default; }
.cf-btn--ghost { background: #fff; color: var(--purple); border-color: var(--line-strong); }
.cf-btn--ghost:hover { background: var(--purple-wash); color: var(--purple-deep); border-color: var(--purple-line); }
.cf-btn--block { width: 100%; }
.cf-btn .arrow { transition: transform 0.15s ease; }
.cf-btn:hover .arrow { transform: translateX(3px); }

/* ---------- Done panel ---------- */
.cf-done { margin-top: 32px; padding: 32px; border-radius: var(--radius); background: linear-gradient(180deg, #fff 0%, #fdfcfe 100%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cf-done h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 0 0 8px; }
.cf-done h2 em { font-style: italic; color: var(--purple); }
.cf-done p { margin: 0; color: var(--ink-2); }

/* ---------- Sticky progress / save pill ---------- */
.cf-pill { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 18px 10px 14px; border-radius: 999px; background: rgba(28, 25, 34, 0.94); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px -10px rgba(28, 25, 34, 0.45); white-space: nowrap; }
.cf-pill__ring { --p: 0; flex: none; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--p) * 1%), rgba(255, 255, 255, 0.18) 0); display: grid; place-items: center; }
.cf-pill__ring::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #2a2631; }
.cf-pill__sep { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.22); }
.cf-pill__save { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.78); overflow: hidden; text-overflow: ellipsis; }
.cf-pill__save::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }
.cf-pill[data-save="saving"] .cf-pill__save::before { background: #c9b8e6; animation: cf-pulse 1s ease-in-out infinite; }
.cf-pill[data-save="error"] .cf-pill__save { color: #ffd6dc; }
.cf-pill[data-save="error"] .cf-pill__save::before { background: #ff8a9b; }
.cf-pill[data-save="idle"] .cf-pill__save::before { background: rgba(255, 255, 255, 0.35); }
@keyframes cf-pulse { 50% { opacity: 0.35; } }
body.has-pill main { padding-bottom: 72px; }

/* ---------- Sign-in ---------- */
.cf-signin { max-width: 460px; margin: 8px 0 72px; }
.cf-signin h2 { font-size: 30px; }
.cf-signin form { margin-top: 22px; }
.cf-signin .cf-btn { margin-top: 14px; }
.cf-fine { font-size: 13px; color: var(--ink-3); margin-top: 16px !important; }
.cf-sent { display: flex; gap: 14px; align-items: flex-start; }
.cf-sent__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-wash); color: var(--teal-ink); display: grid; place-items: center; }
.cf-sent__icon svg { width: 22px; height: 22px; }
.cf-thanks .cf-sent__icon { margin-bottom: 18px; }
.cf-thanks .cf-actions { margin-top: 24px; }
.cf-strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.cf-sent__again { margin-top: 14px; }

/* ---------- Notices ---------- */
.cf-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--purple-line); background: var(--purple-wash); color: var(--purple-deep); font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.cf-notice::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-top: 8px; }
.cf-notice strong { font-weight: 600; }
.cf-notice--ok { background: var(--teal-wash); border-color: #bfe6e3; color: var(--teal-ink); }
.cf-notice--warn { background: var(--warn-wash); border-color: var(--warn-line); color: var(--warn-ink); }
.cf-notice--error { background: var(--err-wash); border-color: var(--err-line); color: var(--err-ink); }

/* ---------- Landing ---------- */
.cf-forms { display: grid; gap: 14px; margin: 0 0 72px; padding: 0; list-style: none; }
.cf-formcard { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.cf-formcard:hover { border-color: var(--purple-line); transform: translateY(-1px); box-shadow: 0 1px 2px rgba(28, 25, 34, 0.04), 0 14px 30px -16px rgba(102, 71, 148, 0.28); color: inherit; }
.cf-formcard h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
.cf-formcard p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.cf-formcard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cf-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--purple-wash); color: var(--purple); }
.cf-tag--teal { background: var(--teal-wash); color: var(--teal-ink); }
.cf-tag--plain { background: #f4f2f7; color: var(--ink-3); }
.cf-formcard__go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--purple); transition: all 0.15s ease; }
.cf-formcard:hover .cf-formcard__go { background: var(--purple); border-color: var(--purple); color: #fff; }
.cf-formcard__go svg { width: 18px; height: 18px; }
.cf-empty { padding: 32px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- Results ---------- */
.cf-results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.cf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.cf-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.cf-stat__n { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--ink); }
.cf-stat__l { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.cf-stat--purple .cf-stat__n { color: var(--purple); }
.cf-stat--teal .cf-stat__n { color: var(--teal-ink); }
.cf-ritem { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 0 0 14px; }
.cf-ritem h3 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0; }
.cf-ritem__sub { margin: 4px 0 18px; font-size: 13px; color: var(--ink-3); }
.cf-bars { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cf-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: baseline; font-size: 15px; }
.cf-bar__label { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.cf-bar__n { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 14px; }
.cf-bar__track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: #f1eef5; overflow: hidden; }
.cf-bar__fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--purple), #8a6bb8); transition: width 0.5s ease; }
.cf-bar--top .cf-bar__fill { background: linear-gradient(90deg, var(--teal-ink), var(--teal)); }
.cf-avg { display: inline-flex; align-items: baseline; gap: 8px; margin: 0 0 16px; font-size: 14px; color: var(--ink-3); }
.cf-avg strong { font-family: var(--serif); font-weight: 400; font-size: 32px; color: var(--purple); }
.cf-quotes { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cf-quote { padding: 14px 16px; border-radius: var(--radius-sm); background: #fbfafd; border: 1px solid var(--line); }
.cf-quote__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.cf-quote__by { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.cf-quote__by b { color: var(--ink-2); font-weight: 600; }
.cf-notes-label { margin: 22px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.cf-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 0; }
.cf-table__date { display: none; }
.cf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cf-table th, .cf-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cf-table th { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: #fbfafd; }
.cf-table tr:last-child td { border-bottom: 0; }
.cf-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.cf-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.cf-status--done { color: var(--teal-ink); }
.cf-status--done::before { background: var(--teal); }

/* ---------- Loading ---------- */
.cf-loading { display: flex; align-items: center; gap: 12px; padding: 24px 0 72px; color: var(--ink-3); font-size: 15px; }
.cf-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--purple); animation: cf-spin 0.8s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.cf-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 13px; color: var(--ink-3); }
.cf-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.cf-footer a { color: var(--ink-3); display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: -12px 0; }

/* Space between a standalone card or the results and the footer rule. */
.cf-thanks, [data-cf-blocked], [data-cf-results-denied], [data-cf-results] { margin-bottom: 64px; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .cf-header__in { min-height: 58px; }
  .cf-logo img { height: 22px; }
  .cf-header__who { display: none; }
  .cf-hero { padding: 40px 0 26px; }
  .cf-lede { font-size: 17px; }
  .cf-card { padding: 24px 20px; }
  .cf-card h2, .cf-signin h2 { font-size: 28px; }
  .fq { padding: 22px 20px 24px; }
  .fq__state { top: 20px; right: 18px; }
  .fq h2, .fq h3, .fq legend { font-size: 18px; }
  .cf-chips { flex-direction: column; align-items: stretch; }
  .cf-chip span { width: 100%; border-radius: var(--radius-sm); }
  .cf-scale__row { grid-template-columns: repeat(var(--n-sm, var(--n, 5)), minmax(0, 1fr)); }
  .cf-scale--wrap .cf-scale__row { gap: 6px; }
  .cf-scale--wrap .cf-scale__labels { flex-direction: column; gap: 2px; }
  .cf-scale--wrap .cf-scale__labels span:last-child { text-align: left; }
  .cf-scale--wrap .cf-scale__lnum { display: inline; }
  .cf-col-date { display: none; }
  .cf-table__date { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
  .cf-table th, .cf-table td { padding: 12px 12px; }
  .cf-about { grid-template-columns: 1fr; }
  .cf-actions .cf-btn { width: 100%; }
  .cf-done { padding: 24px 20px; }
  .cf-formcard { padding: 22px 20px; grid-template-columns: 1fr; }
  .cf-formcard__go { display: none; }
  .cf-stats { gap: 8px; }
  .cf-stat { padding: 16px 14px; }
  .cf-stat__n { font-size: 34px; }
  .cf-stat__l { font-size: 11px; }
  .cf-ritem { padding: 22px 20px; }
  .cf-results-head .cf-btn { width: 100%; }
  .cf-pill { gap: 10px; padding: 10px 16px 10px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
