/* ── Comms Flow — journey.css ─────────────────────────────────────────────
   Public journey only: the homepage hero ("jr-") and the Quick try page ("qt-").
   Loaded after site.css by /index.html and /try.html. Uses the site.css
   --pub-* tokens and adds no dependencies. site.css itself is unchanged. */

/* ── Shared focus language (amber, as site.css) ─────────────────────────── */
.jr-hero a:focus-visible,
.jr-hero button:focus-visible,
.qt-page a:focus-visible,
.qt-page button:focus-visible,
.qt-page textarea:focus-visible {
  outline: 2px solid var(--pub-amber);
  outline-offset: 2px;
}

/* ══ Homepage hero ════════════════════════════════════════════════════════ */
.jr-hero { padding: 88px 24px 84px; }
.jr-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.jr-headline { margin: 0 0 22px; font-size: clamp(40px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.8px; }
.jr-lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--pub-text-mute);
}
.jr-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 18px; }
.jr-cta-row .pub-cta-primary,
.jr-cta-row .pub-cta-secondary {
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--pub-radius-primary);
}
.jr-cta-row .pub-cta-secondary { color: var(--pub-text); border-color: var(--pub-text-mute); }
.jr-cta-try::after { content: " \2192"; }
.jr-cta-note {
  max-width: 560px;
  margin: 0 auto 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--pub-text-mute);
}
.jr-link-btn {
  font: inherit;
  color: var(--pub-text);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.jr-link-btn:hover { color: var(--pub-amber-text); }

/* How it works: the step cards reuse the site.css .pub-steps rules. */
.jr-steps { margin-top: 28px; }
.jr-aside {
  margin: 28px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--pub-amber);
  background: var(--pub-bg);
  font-size: 14px;
  line-height: 1.6;
  color: var(--pub-text-mute);
}
.jr-aside strong { color: var(--pub-text); font-weight: 600; }

@media (max-width: 720px) {
  .jr-hero { padding: 48px 20px 52px; }
  .jr-headline { font-size: 34px; }
  .jr-lead { font-size: 16px; }
  .jr-cta-row .pub-cta-primary,
  .jr-cta-row .pub-cta-secondary { flex: 1 1 100%; text-align: center; }
}

/* ══ Quick try page ═══════════════════════════════════════════════════════ */
.qt-page { padding: 56px 24px 80px; }
.qt-shell { max-width: 760px; margin: 0 auto; }

.qt-intro { margin: 0 0 28px; }
.qt-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pub-amber-text);
}
.qt-title {
  font-family: var(--pub-serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
  color: var(--pub-text);
}
.qt-lead { margin: 0 0 8px; font-size: 17px; line-height: 1.6; color: var(--pub-text-mute); max-width: 620px; }
.qt-preset-note { margin: 0; font-size: 14px; color: var(--pub-text); font-weight: 500; }

.qt-card {
  background: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px -20px rgba(28,28,26,0.16);
  padding: 28px;
}
.qt-field { margin: 0 0 26px; }
.qt-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qt-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pub-text);
  margin: 0 0 10px;
}
.qt-step {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pub-text);
  color: var(--pub-bg);
  font-size: 12px;
  font-weight: 600;
}
.qt-count { font-size: 12px; color: var(--pub-text-mute); font-variant-numeric: tabular-nums; }
.qt-idea {
  display: block;
  width: 100%;
  min-height: 116px;
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  padding: 14px 16px;
  border: 1px solid var(--pub-border);
  border-radius: 10px;
  background: var(--pub-bg);
  color: var(--pub-text);
  resize: vertical;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.qt-idea:hover { border-color: var(--pub-text-mute); }
.qt-idea:focus { background: var(--pub-surface); border-color: var(--pub-amber); box-shadow: 0 0 0 3px rgba(186,117,23,0.15); outline: none; }
.qt-idea:focus-visible { outline: none; }
.qt-help { margin: 8px 0 0; font-size: 13px; color: var(--pub-text-mute); line-height: 1.5; }

.qt-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qt-style {
  font: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid var(--pub-border);
  border-radius: 10px;
  background: var(--pub-bg);
  color: var(--pub-text);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.qt-style:hover { border-color: var(--pub-text-mute); background: var(--pub-surface); }
.qt-style[aria-pressed="true"] {
  border-color: var(--pub-text);
  background: var(--pub-surface);
  box-shadow: inset 0 0 0 1px var(--pub-text);
}
.qt-style-name { font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 6px; }
.qt-style[aria-pressed="true"] .qt-style-name::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pub-amber);
  align-self: center;
}
.qt-style-desc { font-size: 13px; line-height: 1.45; color: var(--pub-text-mute); }
.qt-tried { font-size: 12px; font-weight: 500; color: var(--pub-text-mute); }
.qt-tried[hidden] { display: none; }
.qt-style-hint { margin: 10px 0 0; font-size: 13px; color: var(--pub-text-mute); min-height: 1.5em; }

/* Preset tone radar: drawn by js/tone-radar.js from preset-profiles.js scores */
.qt-tone {
  margin-top: 14px;
  padding: 12px 12px 4px;
  border: 1px solid var(--pub-border);
  border-radius: 12px;
  background: var(--pub-surface);
}
.qt-tone-cap { margin: 0; font-size: 13px; color: var(--pub-text-mute); line-height: 1.5; }
.qt-radar .radar-wrap { display: flex; justify-content: center; margin: 0; }
.qt-radar .radar-svg { width: 100%; max-width: 440px; height: auto; display: block; }
.qt-scores {
  list-style: none;
  margin: 4px 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 2px 18px;
  font-size: 13px;
  color: var(--pub-text-mute);
}
.qt-scores li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--pub-border); padding: 3px 0; }
.qt-score-val { color: var(--pub-text); font-weight: 600; font-variant-numeric: tabular-nums; }

.qt-actions {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--pub-border);
}
.qt-submit {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  min-width: 190px;
  border: 1px solid var(--pub-text);
  border-radius: var(--pub-radius-primary);
  background: var(--pub-text);
  color: var(--pub-bg);
  cursor: pointer;
  transition: opacity 120ms ease;
}
.qt-submit:hover:not(:disabled) { opacity: 0.88; }
.qt-submit:disabled { opacity: 0.4; cursor: not-allowed; }
/* Space is reserved for Turnstile's full 300 x 65 widget, so a challenge that
   appears (for example after the token is reset on submit) does not move the
   form. The widget itself is never hidden. */
.qt-ts-slot { flex: 1 1 300px; min-width: 0; }
.qt-ts { min-height: 65px; }
.qt-ts-note { margin: 2px 0 8px; font-size: 12px; line-height: 1.45; color: var(--pub-text-mute); max-width: 42ch; }

.qt-message {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: var(--pub-radius-primary);
  background: #fbf1e3;
  border: 1px solid #edd5b0;
  color: var(--pub-text);
  font-size: 14px;
  line-height: 1.5;
}
.qt-message[hidden], .qt-result[hidden], .qt-invite[hidden] { display: none; }

.qt-result {
  margin-top: 28px;
  background: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: 14px;
  padding: 24px 28px 28px;
}
.qt-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.qt-result-title { font-family: var(--pub-serif); font-weight: 500; font-size: 24px; margin: 0; color: var(--pub-text); }
.qt-copy {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid var(--pub-text);
  border-radius: var(--pub-radius-primary);
  background: var(--pub-surface);
  color: var(--pub-text);
  cursor: pointer;
  white-space: nowrap;
}
.qt-copy:hover { background: var(--pub-elev); }
.qt-result-meta { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--pub-text-mute); }
.qt-draft {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.65;
  color: var(--pub-text);
  max-width: 66ch;
}

.qt-invite {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
  padding: 22px 28px;
  border-radius: 14px;
  background: var(--pub-elev);
}
.qt-invite-copy { flex: 1 1 360px; }
.qt-invite h2 { font-family: var(--pub-serif); font-weight: 500; font-size: 21px; margin: 0 0 6px; color: var(--pub-text); }
.qt-invite p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--pub-text-mute); }
.qt-invite-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--pub-radius-primary);
  background: var(--pub-text);
  color: var(--pub-bg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.qt-invite-btn:hover { opacity: 0.88; color: var(--pub-bg); }

.qt-notes { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--pub-border); }
.qt-notes-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--pub-text); }
.qt-small { font-size: 13px; line-height: 1.65; color: var(--pub-text-mute); margin: 0 0 10px; max-width: 68ch; }
.qt-small a { color: var(--pub-text); }

@media (max-width: 720px) {
  .qt-page { padding: 32px 16px 56px; }
  .qt-title { font-size: 31px; }
  .qt-lead { font-size: 16px; }
  .qt-card { padding: 20px 16px; border-radius: 12px; }
  .qt-styles { grid-template-columns: 1fr; gap: 8px; }
  .qt-style { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; padding: 12px 14px; }
  .qt-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .qt-submit { width: 100%; }
  .qt-ts-slot { flex: 0 0 auto; }
  .qt-result { padding: 20px 16px 22px; border-radius: 12px; }
  .qt-invite { padding: 20px 16px; border-radius: 12px; }
  .qt-invite-btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .qt-idea, .qt-style, .qt-submit { transition: none; }
}
