/* SessionCover — Phase 00 study site
   Left-aligned, editorial, rule-divided; reads like a small research
   practice's questionnaire, not a SaaS landing page. Palette from UK
   consulting-room walls: sage-grey ground, slate ink, deep spruce.

   Composition notes (July design pass):
   – one spacing scale (--sp-*), used everywhere;
   – hero sets text on the page axis with the photograph hung into the
     right margin as a captioned plate (multiply-blended into the paper);
   – question numbers hang in the left margin, options are hairline rows;
   – small-caps letterspaced labels mark the parts; serif italic kicker. */

@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-italic-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F2F3EF;
  --card: #FBFBF8;
  --ink: #26333A;
  --soft: #5D6C6F;
  --line: #D8DCD3;
  --rule: #C4CBC0;
  --accent: #33544B;
  --accent-hover: #27423A;
  --accent-tint: #E7EDE8;
  --serious: #8F5029;
  --focus: #2B6CB0;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1.25rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;

  --measure: 36rem;   /* prose measure inside the column */
  --gutter: 2.25rem;  /* hanging-number gutter */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 45rem;
  margin: 0 auto;
  padding: 0 1.4rem;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Small-caps label voice (parts, stats) ---------- */

.part-label,
.stat-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Header / wordmark ---------- */

.site-head {
  max-width: 45rem;
  margin: 0 auto;
  padding: 1.6rem 1.4rem 0;
}
.site-head::after {
  content: '';
  display: block;
  border-bottom: 1px solid var(--rule);
  margin-top: 1.1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.wordmark svg { transform: translateY(1px); width: 17px; height: 17px; }

/* ---------- Hero ---------- */

.hero { padding: var(--sp-5) 0 var(--sp-5); }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--soft);
  margin-bottom: var(--sp-2);
  max-width: var(--measure);
}

.hero h1 {
  font-weight: 600;
  font-size: clamp(2.15rem, 1.2rem + 3.2vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
  max-width: 15ch;
}

.hero .lede {
  max-width: var(--measure);
  margin-bottom: var(--sp-3);
}

.hero-meta {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--soft);
  margin-top: var(--sp-4);
}

/* The photograph: a captioned plate, blended into the paper. */

.hero-visual {
  margin: var(--sp-4) 0;
}
.chair-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 58%;
  mix-blend-mode: multiply;
}

.ring-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--soft);
  border-top: 1px solid var(--rule);
  padding: 0.6rem 0 0;
  margin-top: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.ring-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex: none;
}
.ring-chip.is-ringing .ring-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: ring-pulse 1.4s ease-out infinite;
}
.ring-chip.is-missed .ring-dot { background: var(--serious); }
@keyframes ring-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ring-chip.is-ringing .ring-dot::after { animation: none; display: none; }
}

/* ---------- Sections ---------- */

.part { padding: var(--sp-5) 0 3.5rem; border-top: 1px solid var(--rule); }

.part-label {
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: var(--sp-2);
}
.section-note {
  color: var(--soft);
  margin-bottom: var(--sp-4);
  max-width: var(--measure);
}

/* ---------- Questions ---------- */

.q-list { display: flex; flex-direction: column; gap: var(--sp-5); }

fieldset.question { border: 0; min-width: 0; }

.question legend, .question .q-text {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.45;
  margin-bottom: var(--sp-2);
  display: block;
  max-width: var(--measure);
}
.question .q-num {
  color: var(--soft);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-right: 0.5rem;
}

/* Desktop: numbers hang in the left margin; text and options share one axis. */
@media (min-width: 940px) {
  fieldset.question { position: relative; }
  .question .q-num {
    position: absolute;
    left: calc(-1 * var(--gutter));
    top: 0.3em;
    margin-right: 0;
  }
}

/* Options: quiet hairline rows, not cards. */

.options {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  max-width: var(--measure);
}

.opt { display: block; cursor: pointer; }
.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt .opt-body {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.62rem 0.6rem 0.62rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 120ms ease;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.opt:hover .opt-body { background: var(--card); }
.opt .dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: #fff;
  flex: none;
  align-self: flex-start;
  margin-top: 0.22rem;
}
.opt input:checked + .opt-body {
  background: var(--accent-tint);
  box-shadow: inset 2px 0 0 var(--accent);
}
.opt input:checked + .opt-body .dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}
.opt.is-multi .dot { border-radius: 3px; }
.opt.is-multi input:checked + .opt-body .dot {
  box-shadow: inset 0 0 0 2.5px #fff;
}
.opt input:focus-visible + .opt-body {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

/* ---------- Contact fields ---------- */

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
  font-family: var(--sans);
  max-width: var(--measure);
  margin-bottom: var(--sp-4);
}
@media (max-width: 540px) { .fields { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.field .hint {
  font-weight: 400;
  color: var(--soft);
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
}
.field input:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}

/* ---------- Consent ---------- */

.consent {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-family: var(--sans);
  margin-bottom: var(--sp-4);
}
.tick {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: var(--measure);
}
.tick input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: none;
  cursor: pointer;
}
.tick .tick-note { color: var(--soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 4px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms ease;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: default; }

.submit-note {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--soft);
  max-width: var(--measure);
  margin-top: var(--sp-2);
}
.btn + .submit-note { margin-top: var(--sp-3); }

/* ---------- Result page ---------- */

.result-hero { padding: var(--sp-5) 0 0; }
.result-hero h1 {
  font-weight: 600;
  font-size: clamp(1.9rem, 1.1rem + 2.8vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: var(--sp-3);
  max-width: 20ch;
}
.result-hero h1.is-serious { color: var(--serious); }
.result-hero .standfirst {
  max-width: var(--measure);
  margin-bottom: var(--sp-4);
}
.result-hero .btn { margin: var(--sp-1) 0 var(--sp-5); }

.stat {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--sp-4) 0;
}
.stat .stat-label {
  color: var(--soft);
  margin-bottom: var(--sp-1);
}
.stat .stat-value {
  font-weight: 600;
  font-size: clamp(3rem, 1.8rem + 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.assumptions { max-width: 30rem; margin-top: var(--sp-3); }
.assumptions dt {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--sp-1);
}
.assumptions dd { margin: 0; }
.assumptions ul { list-style: none; }
.assumptions li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.assumptions li:last-child { border-bottom: 0; }
.assumptions li span { color: var(--soft); }
.assumptions li strong { white-space: nowrap; font-weight: 600; }

/* Desktop: figure on the left, workings on the right, between the rules. */
@media (min-width: 880px) {
  .stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
    column-gap: var(--sp-5);
    align-items: start;
  }
  .stat .assumptions { margin-top: 0.3rem; }
}

/* The section rule that follows the stat already closes it. */
.result-hero + .part { border-top: 0; padding-top: var(--sp-4); }

/* ---------- WTP + pilot ---------- */

.wtp-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--sp-3) 0 0;
}
.wtp-btn {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.wtp-btn:hover { border-color: var(--accent); }
.wtp-btn.is-picked {
  border-color: var(--accent);
  background: var(--accent-tint);
  font-weight: 600;
}
.wtp-thanks {
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--accent);
  margin-top: var(--sp-3);
}

.pilot p { max-width: var(--measure); }

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: var(--sp-6);
  padding: var(--sp-4) 0 var(--sp-5);
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--soft);
}
.site-foot .wrap { max-width: 45rem; }
.site-foot p { max-width: var(--measure); margin-bottom: 0.35rem; }
.site-foot p:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  margin-bottom: var(--sp-1);
}
.site-foot p:last-child { margin: var(--sp-3) 0 0; }
.site-foot a { color: var(--soft); }
.site-foot a:hover { color: var(--accent); }
.site-foot .heart { color: #A65D57; }

/* ---------- Prose (privacy) ---------- */

.prose { padding: var(--sp-5) 0 var(--sp-4); }
.prose h1 {
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: var(--sp-3);
}
.prose h2 {
  font-weight: 600;
  font-size: 1.3rem;
  margin: var(--sp-4) 0 var(--sp-1);
}
.prose p, .prose li { font-size: 1.0625rem; max-width: 65ch; }
.prose p { margin-bottom: var(--sp-2); }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--sp-2); }

.spacer-lg { height: var(--sp-4); }

noscript p {
  font-family: var(--sans);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-top: var(--sp-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
