/* Timbre — see .factory/DESIGN.md.
 *
 * Editorial, not SaaS. The variants are the hero of every screen and should read like a page from
 * a book; everything else recedes. Deliberately absent: gradient hero, floating mockups, sparkle
 * icons. The whole category looks like that, and looking like the category is the one thing a
 * product selling "you will not sound like everyone else" cannot afford.
 */

:root {
  --ink: #16161a;
  --ink-soft: #5b5b66;
  --ink-faint: #8a8a95;
  --line: #e4e4e8;
  /* Warm, not pure white — #fff reads clinical under a serif. */
  --paper: #fbfbfa;
  --card: #ffffff;
  --accent: #2f5d50;
  --accent-soft: #eef3f1;

  --measure: 34rem; /* ~65 characters at the body size, which is where prose wants to sit. */
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ── shell ──────────────────────────────────────────────────────────────── */

.shell {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}

@media (max-width: 40rem) {
  .shell { padding: 2.5rem 1.25rem 4rem; }
}

/* 120ms, and nothing else moves. A funnel that animates is a funnel that feels slow by round four. */
.screen { animation: rise .12s ease-out; }
@keyframes rise {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
}

/* ── type ───────────────────────────────────────────────────────────────── */

h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .75rem;
}

h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 .5rem;
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

/* Interface text never competes with a variant on the same screen. */
.sub, .note, .label { font-size: .8125rem; color: var(--ink-soft); }
.note { color: var(--ink-faint); }
.sub { margin: 0 0 1.75rem; }

.eyebrow {
  font-family: var(--serif);
  font-size: .875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2rem;
}

/* ── the variant, which is the whole screen ─────────────────────────────── */

.variants { display: flex; flex-direction: column; gap: .875rem; }

.variant {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.375rem 1.5rem;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}

.variant:hover { border-color: #cfcfd6; }

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

/* A pick is confirmed by the paragraph itself changing — a rule appearing down its edge — not by a
   checkbox or a button. Clicking IS the interaction; anything else adds a second step to a screen
   whose entire point is that choosing is effortless. */
.variant.chosen {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Waiting happens on the previous round, dimmed, rather than on an empty page with a spinner.
   A blank screen between rounds is where people leave. */
.variants.waiting .variant {
  opacity: .3;
  pointer-events: none;
  transition: opacity .12s;
}

.axis-hint {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--ink-faint);
  margin: 1rem .125rem 0;
}

/* ── progress ───────────────────────────────────────────────────────────── */

.progress {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.progress-dots { display: flex; gap: .3125rem; }

.dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--line);
}
.dot.done { background: var(--accent); }
.dot.now  { background: var(--ink-soft); }

/* ── controls ───────────────────────────────────────────────────────────── */

.btn {
  font-family: var(--sans);
  font-size: .9375rem;
  padding: .8125rem 1.5rem;
  border-radius: 3px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: opacity .12s;
}
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .4; cursor: default; }

.btn-quiet {
  background: none;
  border-color: transparent;
  color: var(--ink-soft);
  padding-left: 0;
}
.btn-quiet:hover { color: var(--ink); opacity: 1; }

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-size: .8125rem;
  color: var(--ink-soft);
  margin-bottom: .375rem;
}

input[type=text], input[type=email], textarea {
  width: 100%;
  font-family: var(--sans);
  /* 16px floor: below it iOS zooms the page on focus and never zooms back. */
  font-size: 1rem;
  padding: .75rem .875rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { min-height: 5rem; resize: vertical; line-height: 1.55; }

/* ── choice cards (illustration style, density) ─────────────────────────── */

.cards { display: grid; gap: .875rem; grid-template-columns: repeat(3, 1fr); }

@media (max-width: 40rem) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  transition: border-color .12s, box-shadow .12s;
}
.card:hover { border-color: #cfcfd6; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card.chosen { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.card-title { font-size: .9375rem; font-weight: 600; margin-bottom: .1875rem; }
.card-hint { font-size: .75rem; color: var(--ink-faint); line-height: 1.4; }

/* The density choice is shown, not described — three miniature pages where the picture blocks get
   denser. A word like "balanced" means nothing until you can see it. */
.mock { height: 4.5rem; margin-bottom: .75rem; display: flex; flex-direction: column; gap: 3px; }
.mock i { display: block; height: 3px; background: var(--line); border-radius: 1px; }
.mock i.img { background: var(--accent-soft); height: 14px; }

/* Illustration style samples: drawn in CSS rather than shipped as images, so the MVP has no asset
   pipeline and nothing to load. They only have to be distinguishable from one another. */
.swatch { height: 5.5rem; border-radius: 2px; margin-bottom: .75rem; }
.swatch-line  { background: repeating-linear-gradient(45deg, #fff, #fff 6px, var(--line) 6px, var(--line) 7px); border: 1px solid var(--line); }
.swatch-flat  { background: linear-gradient(135deg, var(--accent-soft) 50%, #e8e4dc 50%); }
.swatch-photo { background: linear-gradient(160deg, #4a5a63, #97a3a8 60%, #cfd6d5); }
.swatch-ink   { background: radial-gradient(circle at 30% 35%, var(--ink) 0 12%, transparent 12.5%), radial-gradient(circle at 65% 60%, var(--ink-soft) 0 18%, transparent 18.5%), #fff; border: 1px solid var(--line); }

/* ── the profile summary ────────────────────────────────────────────────── */

.profile {
  border-left: 2px solid var(--accent);
  padding: .25rem 0 .25rem 1.125rem;
  margin: 1.5rem 0 2rem;
}

.profile li {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  list-style: none;
}

.profile ul { margin: 0; padding: 0; }

.banner {
  background: var(--accent-soft);
  border-radius: 3px;
  padding: .75rem .875rem;
  font-size: .8125rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.error {
  color: #a3312a;
  font-size: .8125rem;
  margin-top: .5rem;
}
