/* DealLift — universal app. One cohesive design system, extended from the
   chapbook splash: Fraunces (display/serif) + Inter (functional), sky-blue
   paper, deep-blue accent, hairline rules, editor's-mark redlines.

   Signature idea: the Fiduciary speaks in serif (a letter from a trusted
   advisor); you type in sans. Changes read like marks on a printed page. */

:root {
  --paper: #eef4f9;        /* light sky-blue ground */
  --panel: #f6fafd;        /* faintly lifted surface */
  --ink: #1c1d22;
  --ink-mid: #585b63;
  --ink-soft: #8a8d95;
  --rule: rgba(28, 29, 34, 0.14);
  --rule-soft: rgba(28, 29, 34, 0.08);
  --accent: #1f4677;       /* deep blue */
  --accent-wash: rgba(31, 70, 119, 0.07);
  --add: #2b7a5e;          /* redline insertion (matches docx) */
  --add-wash: rgba(43, 122, 94, 0.10);
  --del: #cf5466;          /* redline deletion (matches docx) */
  --del-wash: rgba(207, 84, 102, 0.09);
  --maxw: 1040px;
}

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

body {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 13;
  background: var(--paper);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------------------------------------------------------------- header */
.nav {
  padding: 28px 56px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: none;
}
.nav-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.nav-divider { width: 1px; height: 31px; background: var(--rule); margin: 0 20px; }
.nav-logo { height: 28px; width: auto; display: block; }
.wordmark {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 72;
  font-weight: 500;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.affil-name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------------------------------------------------------------- shell */
.shell {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 24px 56px 72px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.shell.is-centered { justify-content: center; }

/* Interview lock: pin the app to the viewport so the page itself never grows
   as the conversation lengthens — only the message thread scrolls, with the
   composer fixed at the bottom. Applied to <body> only on the interview step. */
body.locked { height: 100vh; overflow: hidden; }
body.locked .shell { min-height: 0; }
body.locked .screen.is-active { min-height: 0; }

.screen { display: none; animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.screen.is-active { display: flex; flex-direction: column; flex: 1; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* eyebrow — the quiet structural label that names the real step */
.eyebrow {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-variation-settings: "opsz" 24;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  transform: translateY(-5px);
}

/* ---------------------------------------------------------------- type */
h1 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 72;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 20ch;
}
h1 em { font-style: italic; font-variation-settings: "opsz" 72; font-weight: 300; color: var(--accent); }

h2 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 48;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
h2 em { font-style: italic; font-weight: 300; color: var(--accent); }

.standfirst {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-mid);
  /* Fill the centered column so the copy reads balanced, not left-pooled. */
  max-width: none;
  margin: 0 0 40px;
}

/* ---------------------------------------------------------------- splash */
.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.extras { margin-top: 20px; }

.zone {
  background: transparent;
  border: 0.5px solid var(--rule);
  border-radius: 2px;
  padding: 22px 22px 20px;
  min-height: 210px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.zone:hover, .zone.is-over { border-color: var(--ink); }
.zone.is-over { background: var(--accent-wash); }
.extras .zone { min-height: 100px; padding: 18px 22px 16px; cursor: text; }

.zone-label {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.zone-primary {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink-mid);
  margin-top: auto;
}
.zone-primary.has-file { color: var(--ink); }

.paste, .extras textarea {
  display: block;
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
  outline: none;
  resize: none;
  overflow-y: auto;
  height: 1.35em;
  max-height: 6em;
  transition: opacity 0.3s ease;
}
.paste { margin: auto 0 0; }
.paste::placeholder, .extras textarea::placeholder { color: var(--ink-mid); opacity: 1; }
.extras textarea.is-cycling { opacity: 0.3; }

/* ---------------------------------------------------------------- CTA / buttons */
.cta-row { margin-top: 32px; display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
/* On the briefing screen, sit "let's talk" up close to the copy above it. */
#screen-briefing .cta-row { margin-top: 6px; }
.cta {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-variation-settings: "opsz" 72;
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: color 0.18s ease, opacity 0.18s ease;
}
.cta:hover { color: var(--ink); }
.cta:disabled { color: var(--ink-soft); cursor: default; text-decoration-color: var(--rule); opacity: 0.7; }
/* On every screen after the splash, the arrow CTAs match the h2 display size
   (e.g. "let's talk →" sits at the same scale as the "Fiduciary" headline). */
.screen:not(#screen-splash) .cta {
  font-size: clamp(26px, 3.4vw, 38px);
  text-underline-offset: 6px;
}

/* link-style back / secondary action */
.linklike {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mid);
  text-decoration: none;
  cursor: pointer;
}
.linklike:hover { color: var(--ink); }

/* solid button (downloads, primary confirm) */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--paper);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 14px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: #173a64; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  color: var(--accent);
  background: transparent;
}
.btn-ghost:hover { background: var(--accent-wash); }
.btn .meta { color: rgba(238, 244, 249, 0.7); font-weight: 400; }
.btn-ghost .meta { color: var(--ink-soft); }

/* ---------------------------------------------------------------- interview */
.io {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.progress-rail {
  height: 1px;
  background: var(--rule-soft);
  position: relative;
  margin: 0 0 6px;
}
.progress-rail > span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.progress-caption {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 8px;
  /* The thread scrolls internally; keep the scrollbar hidden for a clean read. */
  scrollbar-width: none;
}
.thread::-webkit-scrollbar { display: none; }
.turn { max-width: 62ch; }
.turn .who {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.turn.fiduciary .body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--panel);
  border: 0.5px solid var(--rule-soft);
  border-radius: 2px;
  padding: 12px 16px;
  display: inline-block;
}
.turn.fiduciary .body em { font-style: italic; color: var(--accent); }
.turn.you {
  align-self: flex-end;
  text-align: right;
}
.turn.you .body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-mid);
  background: var(--panel);
  border: 0.5px solid var(--rule-soft);
  border-radius: 2px;
  padding: 12px 16px;
  display: inline-block;
  text-align: left;
}

/* typing indicator */
.dots { display: inline-flex; gap: 5px; align-items: center; height: 1.42em; }
.dots i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  opacity: 0.4; animation: blink 1.3s infinite ease-in-out;
}
.dots i:nth-child(2) { animation-delay: 0.18s; }
.dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 0.9; } }

/* composer */
.composer {
  margin-top: 26px;
  border-top: 0.5px solid var(--rule);
  padding-top: 18px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.composer textarea {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 6px 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
  outline: none;
  resize: none;
  height: 2.6em;
  max-height: 9em;
}
.composer textarea::placeholder { color: var(--ink-soft); }
.send {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0 0 6px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, opacity 0.18s ease;
}
.send:hover { color: var(--ink); }
.send:disabled { color: var(--ink-soft); opacity: 0.5; cursor: default; }

/* ---------------------------------------------------------------- summary review */
.summary-list { list-style: none; margin: 0 0 8px; padding: 0; }
.summary-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--rule-soft);
}
.summary-list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
}
.summary-list .text {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
  outline: none;
}
.summary-list .text:focus { color: var(--ink); }
.summary-list .text[contenteditable="true"]:hover { background: var(--accent-wash); }

/* ---------------------------------------------------------------- proceed options */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 0; }
.options.options-3 { grid-template-columns: repeat(3, 1fr); }
/* Single, leading "ask the other side" action. */
.options.options-lead { grid-template-columns: 1fr; gap: 0; }
.option.option-primary {
  border: 0.5px solid var(--accent);
  border-left: 2px solid var(--accent);
  background: var(--accent-wash);
}
.option.option-primary:hover { border-color: var(--accent); background: var(--accent-wash); filter: brightness(0.99); }

/* Demoted "just use my information" skip. */
.skip-row { margin: 22px 0 0; }
.skip-link.skip-link { font-family: "Inter", system-ui, sans-serif; font-size: 14px; }

/* invite-the-other-side panel */
.invite-panel {
  margin-top: 28px;
  border: 0.5px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 0 2px 2px 0;
  background: var(--accent-wash);
  padding: 24px 26px 22px;
}
.invite-title {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 28;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
}
.invite-email {
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 0.5px solid var(--rule);
  border-radius: 2px;
  padding: 12px 14px;
  outline: none;
  margin: 0 0 12px;
}
.invite-email:focus { border-color: var(--accent); }
.invite-link-row { display: flex; gap: 12px; align-items: stretch; margin-top: 4px; }
.invite-link {
  flex: 1;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 0.5px solid var(--rule);
  border-radius: 2px;
  padding: 11px 14px;
  outline: none;
}
.invite-link:focus { border-color: var(--accent); }
.invite-note {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 14px 0 0;
  max-width: none;
}
.option {
  text-align: left;
  border: 0.5px solid var(--rule);
  border-radius: 2px;
  padding: 24px 24px 22px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease, background 0.18s ease;
  font: inherit;
  color: inherit;
}
.option:hover { border-color: var(--ink); background: var(--panel); }
.option .otitle {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 28;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.option .odesc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-mid);
}
.option .ogo {
  margin-top: auto;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
}
.demo-tag, .live-tag {
  align-self: flex-start;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 3px 7px;
}
.demo-tag {
  color: var(--del);
  border: 1px solid var(--del-wash);
  background: var(--del-wash);
}
.live-tag {
  color: var(--add);
  border: 1px solid var(--add-wash);
  background: var(--add-wash);
}

/* ---------------------------------------------------------------- generating */
.loading { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 22px; padding-bottom: 16vh; }
.orbit { position: relative; width: 38px; height: 38px; }
.orbit span {
  position: absolute; inset: 0;
  border: 1px solid var(--rule);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 28;
  font-size: 22px;
  color: var(--ink);
  min-height: 1.4em;
  transition: opacity 0.4s ease;
}
.loading-sub {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* ---------------------------------------------------------------- proposal */
.lede {
  /* Match the splash standfirst exactly. */
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: none;
  margin: 0 0 28px;
}
.callout {
  /* Same treatment as the NEW PROVISION box (filled, fully rounded, no left
     stripe) — but tinted blue instead of green. */
  background: var(--accent-wash);
  border-radius: 2px;
  padding: 12px 16px;
  margin: 0 0 36px;
}
.callout .clabel {
  /* Exactly the NEW PROVISION tag, but blue. */
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 5px;
}
.callout .ctext {
  /* Exactly the NEW PROVISION body, unbolded. margin:0 so the <p> doesn't add
     the default paragraph spacing the <span>-based provision box never has. */
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  max-width: none;
}

.section-head {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--rule);
}

.change { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 0.5px solid var(--rule-soft); }
.change:last-of-type { border-bottom: 0; }
.change .ctitle {
  /* Same font + size as the lede ("This package converts a bare intent…"). */
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 18px;
}
.change .csection {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.diff { margin: 0 0 16px; display: grid; gap: 10px; }
.diff .row {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 2px;
}
.diff .from { background: var(--del-wash); color: var(--ink); }
.diff .from .tag, .diff .to .tag {
  display: block;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 5px;
}
.diff .from .tag { color: var(--del); }
.diff .from .val { text-decoration: line-through; text-decoration-color: var(--del); }
.diff .to { background: var(--add-wash); color: var(--ink); }
.diff .to .tag { color: var(--add); }
.change .why {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mid);
}
/* align-items:stretch so the two benefit boxes are always the same height. */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; align-items: stretch; }
.benefit {
  border: 0.5px solid var(--rule-soft);
  border-radius: 2px;
  padding: 12px 16px;   /* match the NEW PROVISION (.diff .row) box spacing */
}
.benefit .blabel {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 5px;
}
.benefit .btext {
  /* Match the NEW PROVISION body text size, but not bolded. */
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14.5px; line-height: 1.5; color: var(--ink);
}

/* full redline document render */
.redline-doc {
  border: 0.5px solid var(--rule);
  border-radius: 2px;
  background: var(--panel);
  padding: 30px 34px;
  max-height: 460px;
  overflow-y: auto;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
}
.redline-doc .ins { color: var(--add); font-weight: 600; }
.redline-doc .del { color: var(--del); text-decoration: line-through; }
/* An edit the user can hover for its rationale (paired del+ins share one id). */
.redline-doc .edit { cursor: help; border-radius: 2px; transition: background 0.15s ease; }
.redline-doc .edit:hover { background: var(--accent-wash); box-shadow: 0 0 0 3px var(--accent-wash); }

/* one-line hint under the section head */
.redline-hint {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: -8px 0 16px;
}

/* floating rationale tooltip (positioned via JS) */
.redline-tip {
  position: fixed;
  z-index: 50;
  width: 300px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 8px 28px rgba(15, 30, 50, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.redline-tip.is-visible { opacity: 1; }
.redline-tip .tip-label {
  display: block;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 10px 0 3px;
}
.redline-tip .tip-label:first-child { margin-top: 0; }

/* decision row */
.decide {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 28px;
}
.decide .ask {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-variation-settings: "opsz" 24;
  font-size: 19px;
  color: var(--ink);
  margin-right: auto;
}

/* ---------------------------------------------------------------- final */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 6px 0 36px; }
.downloads.downloads-single { grid-template-columns: 1fr; max-width: 460px; }
.dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 0.5px solid var(--rule);
  border-radius: 2px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.dl:hover { border-color: var(--ink); background: var(--panel); }
.dl .dlname {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 28;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.dl .dlmeta {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13.5px;
  color: var(--ink-mid);
}
.dl .dlgo {
  margin-top: 8px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
}

.included { list-style: none; margin: 0; padding: 0; }
.included li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--rule-soft);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink);
}
.included li .mark { color: var(--add); font-weight: 600; flex: none; }
.included li.out .mark { color: var(--ink-soft); }
.included li.out { color: var(--ink-soft); }

/* ---------------------------------------------------------------- misc */
.footnote {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 40px;
  max-width: 64ch;
}
.error-banner {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14.5px;
  color: var(--del);
  background: var(--del-wash);
  border: 1px solid var(--del-wash);
  border-radius: 2px;
  padding: 12px 16px;
  margin: 18px 0 0;
}
.site-foot {
  padding: 10px 56px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: none;
}
.site-foot .fk {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.site-foot .flogo { height: 20px; opacity: 0.8; }
.is-hidden { display: none !important; }

/* Conflict end-state action (replaces the composer when the chat is halted). */
.conflict-actions { display: flex; justify-content: flex-start; padding: 20px 0 6px; }

/* Counterparty's optional "email me a link to return" field on the briefing. */
.partner-email { margin: 4px 0 26px; max-width: 520px; }
.partner-email .zone-label { display: block; margin-bottom: 8px; }

/* ---------------------------------------------------------------- skip-warning modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 30, 50, 0.34);
}
.modal {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border: 0.5px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 18px 56px rgba(15, 30, 50, 0.3);
  padding: 30px 32px 26px;
}
.modal-title {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 32;
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.modal-body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0 0 24px;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

/* ---------------------------------------------------------------- focus / motion / responsive */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .screen { animation: none; }
}
/* three-up options drop to a single stacked column on tablets/phones */
@media (max-width: 900px) {
  .options.options-3 { grid-template-columns: 1fr; }
  .invite-link-row { flex-direction: column; }
}
@media (max-width: 760px) {
  .nav { padding: 22px 24px; }
  .shell { padding: 18px 24px 52px; }
  .entry, .options, .options.options-3, .benefits, .downloads { grid-template-columns: 1fr; }
  .wordmark { font-size: 32px; }
  .nav-divider { margin: 0 14px; }
  .decide { flex-wrap: wrap; gap: 16px; }
  .decide .ask { margin-right: 0; flex-basis: 100%; }
}
