:root {
  --bg: #f4f0eb;
  --surface: #faf7f2;
  --muted: #e7ecef;
  --text: #14202b;
  --soft: #3a4047;
  --border: rgba(20, 32, 43, 0.12);
  --border-strong: rgba(20, 32, 43, 0.22);
  --primary: #245a63;
  --primary-hover: #1e4d55;
  --accent: #b86a3e;
  --accent-text: #9a5530;
  --error: #9b3a2a;
  --shadow: 0 10px 26px rgba(20, 32, 43, 0.035);
  --radius: 12px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 78% 0%, rgba(36,90,99,.09) 0%, transparent 48%),
    radial-gradient(ellipse at 18% 100%, rgba(184,106,62,.06) 0%, transparent 42%),
    linear-gradient(160deg, #f7f4ef 0%, var(--bg) 55%, #eae6df 100%);
  color: var(--text);
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

button, input, select, textarea { font: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar, .brand, nav, .actions, .between, .samplebar {
  display: flex;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 12px;
  border-bottom: 1px solid rgba(20, 32, 43, 0.08);
  background: rgba(244, 240, 235, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  align-items: center;
  gap: 16px;
}

.mark {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 11px;
}

.hero-wordmark {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(4.5rem, 11vw, 11rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--text);
  margin: 0 0 .18em;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.03em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: .95;
  max-width: 12ch;
}

nav { gap: 18px; flex-wrap: wrap; }
nav a,
nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}
nav a:hover,
nav button:hover {
  color: var(--text);
}

.eyebrow, .pill, .progress div span {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.accent { color: var(--accent-text); }
.subtle, p, li { color: var(--soft); line-height: 1.7; }
.strong { color: var(--text); font-weight: 600; }

.panel {
  background: rgba(255,251,245,.84);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.side {
  background: rgba(237,231,220,.46);
  box-shadow: none;
}
.highlight {
  background: linear-gradient(180deg, rgba(184,106,62,.08), rgba(255,251,245,.74));
  border-color: rgba(184,106,62,.2);
}

.progress {
  display: none;
  grid-template-columns: repeat(8, minmax(0,1fr));
  gap: 12px;
  margin: 8px 0 32px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(231,236,239,.34);
}
.progress.live { display: grid; }
.progress div {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--soft);
}
.progress .current {
  background: rgba(255,251,245,.9);
  border: 1px solid var(--border);
  color: var(--text);
}
.progress .done { color: var(--primary); }

.screen {
  display: none;
  gap: 32px;
  align-content: start;
  padding-top: 28px;
}
.screen.active { display: grid; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
}
.heading p {
  max-width: 62ch;
}

.compact-heading {
  max-width: 860px;
}

.case-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  padding: 18px 20px;
  background: rgba(231,236,239,.32);
  box-shadow: none;
}

.case-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.1rem;
}

.hero, .layout, .two, .evidence, .section-grid, .trust-strip, .proof-grid, .footer-row, .metric-strip, .note-row {
  display: grid;
  gap: 24px;
}
.hero { grid-template-columns: minmax(0, 1.7fr) minmax(260px, .75fr); }
.page-hero { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr); align-items: start; }
.layout { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .8fr); }
.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.evidence { grid-template-columns: repeat(4, minmax(0,1fr)); }
.section-grid, .proof-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.trust-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
.metric-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
.note-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
.footer-row { grid-template-columns: minmax(0, 1.2fr) auto; align-items: start; }

.main, .side, .form, .diagnosis, .doc, .samplebar { padding: 28px; }
.hero .main {
  padding: 52px 52px 48px;
  background: linear-gradient(145deg, rgba(255,255,255,.98) 0%, rgba(250,247,242,.95) 100%);
  border-color: rgba(20,32,43,.06);
  box-shadow: 0 24px 64px rgba(20,32,43,.09), 0 2px 12px rgba(20,32,43,.04), inset 0 1px 0 rgba(255,255,255,.8);
}
.form {
  display: grid;
  gap: 20px;
}
.hero .side {
  padding: 8px 0 0 28px;
  border: 0;
  border-left: 2px solid rgba(20, 32, 43, 0.1);
  border-radius: 0;
  background: transparent;
  align-self: center;
}

/* Numbered stack items in hero aside */
.hero .side .stack {
  counter-reset: hero-items;
}
.hero .side .stack > div {
  counter-increment: hero-items;
  position: relative;
  padding-left: 36px;
}
.hero .side .stack > div::before {
  content: "0" counter(hero-items);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--primary);
  opacity: .7;
}
.layout > .side {
  background: rgba(237,231,220,.28);
}
.note-panel {
  align-self: start;
  background: rgba(237,231,220,.18);
  box-shadow: none;
}
.page-intro { padding: 32px; }
.samplebar {
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  background: rgba(231,236,239,.32);
  box-shadow: none;
}

.stack > div + div, .block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.form-section {
  display: grid;
  gap: 8px;
}

.form-section.compact {
  gap: 4px;
}

.section-note {
  margin: 0;
  max-width: 58ch;
}

.hero .side .stack > div + div {
  border-top-color: rgba(20, 32, 43, 0.08);
}

.actions {
  gap: 12px;
  flex-wrap: wrap;
}
.actions.small { gap: 8px; }

button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}
button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}
button:not(.primary):not(:disabled):hover {
  background: rgba(255, 251, 245, 0.72);
}
button.primary {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(36,90,99,.28), 0 1px 3px rgba(36,90,99,.18);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
button.primary:not(:disabled):hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(36,90,99,.32), 0 2px 6px rgba(36,90,99,.2);
}
button.primary:active { transform: translateY(0); }
.chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,251,245,.62);
  font-weight: 500;
}
.buttonlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
}
.buttonlink:hover { background: rgba(255, 251, 245, 0.78); }
.primarylink {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(36,90,99,.28), 0 1px 3px rgba(36,90,99,.18);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.primarylink:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(36,90,99,.32), 0 2px 6px rgba(36,90,99,.2);
}
.primarylink:active { transform: translateY(0); }

label { display: grid; gap: 8px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255,251,245,.96);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 90, 99, 0.1);
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.consent-line input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.consent-line span {
  line-height: 1.5;
}

.drop {
  position: relative;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: rgba(237,231,220,.42);
}

.drop::after {
  content: "Choose file";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,251,245,.72);
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
}

.drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

ul, ol { margin: 12px 0 0; padding-left: 20px; }

.bar {
  height: 12px;
  margin: 16px 0;
  border-radius: 999px;
  background: rgba(20,32,43,.08);
  overflow: hidden;
}
.bar span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(36,90,99,.35));
  transition: width .26s ease;
}

.evidence > div, .info > div, .diagnosis-brief > div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(237,231,220,.22);
}
.evidence span, .info span, .diagnosis-brief span { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.evidence strong { display: block; margin: 8px 0 12px; color: var(--text); }

.diagnosis-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-brief {
  display: grid;
  gap: 24px;
}

.review-status {
  display: grid;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.review-meter {
  display: grid;
  gap: 8px;
  max-width: 540px;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.brief-section {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(20, 32, 43, 0.08);
}

.brief-section h4 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.diagnosis {
  border-color: rgba(184,106,62,.24);
  background: linear-gradient(180deg, rgba(184,106,62,.06), rgba(255,251,245,.96));
}

.preview {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(184,106,62,.24);
  border-radius: 12px;
  background: rgba(255,251,245,.95);
  overflow: hidden;
}
.line {
  height: 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(20,32,43,.12);
  filter: blur(4px);
}
.w70 { width: 70%; } .w78 { width: 78%; } .w85 { width: 85%; } .w92 { width: 92%; } .w100 { width: 100%; }
.blur {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(245,241,232,.92);
}

.price {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(237,231,220,.28);
}
.price strong { font-size: 2.4rem; color: var(--text); }

.workstreams { display: grid; gap: 12px; }
.work {
  text-align: left;
  border-radius: 12px;
  background: rgba(255,251,245,.6);
}
.work.active {
  border-color: rgba(36,90,99,.26);
  background: rgba(231,236,239,.65);
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.template-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 292px;
  padding: 18px;
  text-align: left;
  border-radius: 14px;
  background: rgba(255,251,245,.88);
}
.template-card.active {
  border-color: rgba(36,90,99,.26);
  background: rgba(231,236,239,.52);
}
.template-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(36,90,99,.18);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255,251,245,.82);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.template-preview {
  position: relative;
  min-height: 140px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(245,241,232,.9);
  overflow: hidden;
}
.template-line,
.template-block,
.template-col,
.template-panel,
.template-accent {
  background: rgba(20,32,43,.12);
  border-radius: 8px;
}
.template-line {
  height: 10px;
  margin-bottom: 10px;
}
.template-block {
  height: 48px;
  margin-top: 10px;
}
.template-block.short {
  height: 32px;
}
.two-column,
.creative-frame {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 10px;
}
.template-col {
  min-height: 112px;
}
.classic-stack .template-line:last-child {
  margin-bottom: 0;
}
.modern-frame .template-panel {
  height: 62px;
  margin: 12px 0;
}
.creative-frame .template-accent {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 112px;
  background: rgba(184,106,62,.24);
}
.doc { display: none; }
.doc.active { display: block; }
.service-summary,
.dossier-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  padding: 20px 22px;
  background: rgba(231,236,239,.28);
  box-shadow: none;
}

.service-summary strong,
.dossier-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.08rem;
}

.service-summary p,
.dossier-summary p {
  margin: 8px 0 0;
}

.payment-notes {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.questionbox {
  margin: 18px 0;
  padding: 24px 22px;
  border: 1px solid rgba(36,90,99,.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(231,236,239,.34), rgba(255,251,245,.84));
  box-shadow: none;
}

.questionbox h4 {
  font-size: 1.45rem;
  line-height: 1.15;
}

.answer-field textarea {
  min-height: 150px;
}

.conversation-log,
.rewrite-brief {
  display: grid;
  gap: 12px;
}

.conversation-log {
  margin-top: 8px;
}

.conversation-entry {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(237,231,220,.2);
}

.conversation-entry strong {
  color: var(--text);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rewrite-brief {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.rewrite-brief > div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(237,231,220,.22);
}

.rewrite-brief span {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rewrite-brief strong {
  display: block;
  margin: 8px 0 10px;
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,251,245,.72);
}

.truststrip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 2px;
}

.truststrip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(237,231,220,.36);
  color: var(--text);
}

.metric {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(237,231,220,.28);
  box-shadow: none;
}

.metric strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.25rem;
}

.trust-card,
.mini-card,
.faq-card,
.notice,
.site-footer {
  padding: 22px 24px;
}

.trust-card,
.mini-card,
.faq-card {
  background: rgba(255, 251, 245, 0.74);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.notice {
  border: 1px solid rgba(184,106,62,.2);
  border-radius: 12px;
  background: rgba(184,106,62,.08);
}

/* ─── Email sent notice ──────────────────────────────────────────────────── */

.email-sent-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 18px;
  background: rgba(36, 90, 99, 0.07);
  border: 1px solid rgba(36, 90, 99, 0.18);
  border-radius: 8px;
  font-size: 14px;
  color: var(--primary);
}

.email-sent-notice p {
  margin: 0;
}

.email-sent-icon {
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Opt-in block ───────────────────────────────────────────────────────── */

.opt-in-block {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: rgba(237, 231, 220, .36);
  border: 1px solid rgba(20, 32, 43, .1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opt-in-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .87rem;
  line-height: 1.5;
  color: var(--text);
}

.opt-in-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
}

.opt-in-confirmed {
  font-size: .83rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
  padding-left: 25px;
}

/* ─── Heading-level action row ───────────────────────────────────────────── */

.heading-actions {
  margin-top: 4px;
}

.heading-actions button {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.heading-actions button:hover {
  color: var(--text);
}

.site-footer {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--soft);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.support-link {
  display: inline-flex;
  align-items: center;
  color: var(--soft);
  font-weight: 600;
}

.credibility-note {
  max-width: 42rem;
  color: var(--text);
}

.support-link:hover {
  color: var(--text);
}

.hero-support {
  margin-top: 14px;
}

.inline-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-left: 0;
  list-style: none;
}

.inline-list li {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(237,231,220,.36);
}

.faq-card h4,
.trust-card h4,
.mini-card h4 {
  margin-bottom: 8px;
}

.legal-meta {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
}

.faq-list {
  display: grid;
  gap: 2px;
}

.page-intro p,
.page-sidebar p {
  max-width: 60ch;
}

.page-sidebar {
  padding: 28px;
  background: rgba(231,236,239,.42);
}

.kicker-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.kicker-list div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,251,245,.72);
}

.kicker-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.form-error, .beta-code-error {
  display: none;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(155, 58, 42, 0.28);
  border-radius: 10px;
  background: rgba(155, 58, 42, 0.06);
  color: var(--error);
  font-size: .88rem;
  line-height: 1.6;
}

.founder-strip {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  border: 1px solid rgba(20,32,43,.08);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.7) 0%, rgba(250,247,242,.6) 100%);
  box-shadow: 0 4px 20px rgba(20,32,43,.04);
}

.founder-photo-small {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(36,90,99,.12), rgba(36,90,99,.06));
  border: 1px solid rgba(36,90,99,.2);
}

.founder-photo-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--soft);
  letter-spacing: -.02em;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: rgba(231,236,239,.6);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.founder-title {
  margin: 4px 0 16px;
  color: var(--accent);
  font-weight: 600;
}

.delivery-email-block {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.delivery-email-block input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 15px;
  color: var(--text);
}

.delivery-email-block input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36,90,99,.1);
}

.beta-access {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.beta-code-row {
  display: flex;
  gap: 10px;
}

.beta-code-row input {
  flex: 1;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  letter-spacing: .06em;
}


.price .subtle {
  margin: 6px 0 0;
  font-size: .88rem;
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: rgba(245, 241, 232, 0.97);
  border-top: 1px solid rgba(20, 32, 43, 0.22);
  box-shadow: 0 -4px 20px rgba(20, 32, 43, 0.06);
  transition: opacity .3s ease;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

#cookie-banner p {
  margin: 0;
  font-size: .88rem;
  color: #3a4047;
  max-width: 58ch;
  line-height: 1.6;
}

#cookie-banner a {
  color: #245a63;
  font-weight: 600;
  text-decoration: none;
}

#cookie-banner a:hover { text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(20, 32, 43, 0.22);
  background: transparent;
  color: #14202b;
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

.cookie-actions button:first-child {
  border-color: transparent;
  background: #245a63;
  color: #fff;
}

.cookie-actions button:first-child:hover { background: #1e4d55; }

/* ─── Job input toggle ─────────────────────────────────────────────────────── */

.job-input-block {
  display: grid;
  gap: 12px;
}

.job-input-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  align-self: start;
  width: fit-content;
}

.job-tab {
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: var(--soft);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.job-tab.active {
  background: var(--primary);
  color: #fff;
}

.job-tab:not(.active):hover {
  background: var(--muted);
}

/* ─── Job URL status messages ──────────────────────────────────────────────── */

.job-url-label { display: grid; gap: 6px; }
.job-text-label { display: grid; gap: 6px; }
.job-text-label textarea { min-height: 160px; resize: vertical; }

/* ─── Chat interface ───────────────────────────────────────────────────────── */

.chat-layout { align-items: stretch; }

.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-message {
  display: flex;
  max-width: 82%;
}

.chat-message.ai    { align-self: flex-start; }
.chat-message.user  { align-self: flex-end; flex-direction: row-reverse; }

.chat-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  line-height: 1.65;
  font-size: .95rem;
}

.chat-message.ai   .chat-bubble {
  background: var(--muted);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.chat-message.user .chat-bubble {
  background: var(--primary);
  border-bottom-right-radius: 4px;
  color: #fff;
}

.chat-typing {
  display: flex;
  gap: 6px;
  padding: 14px 24px;
  align-items: center;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--soft);
  opacity: .35;
  animation: chat-pulse 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes chat-pulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%       { opacity: .85; transform: scale(1.2); }
}

.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: var(--surface);
}

.chat-input-area textarea {
  flex: 1;
  resize: none;
  overflow-y: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .93rem;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  min-height: 110px;
}

.chat-input-area textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-input-area button {
  flex-shrink: 0;
  align-self: flex-end;
}

.chat-done {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: rgba(36, 90, 99, .05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.chat-done p {
  margin: 0;
  font-size: .95rem;
  color: var(--soft);
}

.chat-progress-wrap {
  margin-top: 12px;
}

/* ─── Pricing breakdown ────────────────────────────────────────────────────── */

.price-breakdown {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .93rem;
}

.price-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-was {
  color: var(--soft);
  font-size: .85rem;
  text-decoration: line-through;
}

.price-line strong {
  font-weight: 700;
  color: var(--text);
}

.price-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.price-total-line strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.price-note {
  margin: 4px 0 0;
  font-size: .83rem;
  color: var(--soft);
}

.cover-letter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.cover-letter-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.cover-letter-toggle em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

/* ─── Delivery list (payment screen) ──────────────────────────────────────── */

.delivery-list {
  display: grid;
  gap: 16px;
}

.delivery-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.delivery-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: .95rem;
}

.delivery-item p {
  margin: 0;
  font-size: .88rem;
  color: var(--soft);
  line-height: 1.6;
}

.delivery-addon {
  opacity: .55;
  cursor: pointer;
  transition: opacity .2s, border-color .2s, background .2s;
}

.delivery-addon:hover {
  opacity: .8;
}

.delivery-addon.active-addon {
  opacity: 1;
  border-color: var(--primary);
  background: rgba(36, 90, 99, 0.04);
}

.addon-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.addon-header input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.addon-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(36, 90, 99, 0.1);
  color: var(--primary);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ─── Two-column template preview ───────────────────────────────────────────── */

.template-preview.two-column {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.template-preview.two-column .template-col {
  min-height: 120px;
  border-radius: 6px;
}

.template-col.narrow { flex: 0 0 34%; }
.template-col.wide   { flex: 1; }

/* ─── Selected template card ────────────────────────────────────────────────── */

.template-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.template-card-selected {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.template-selected-preview {
  flex-shrink: 0;
  width: 120px;
}

.template-selected-preview .template-preview {
  min-height: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.template-selected-body {
  flex: 1;
  min-width: 0;
}

.template-selected-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.badge-recommended {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(36, 90, 99, 0.1);
  border: 1px solid rgba(36, 90, 99, 0.2);
  border-radius: 20px;
  padding: 2px 10px;
}

.template-selected-body strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 4px 0 8px;
}

.template-selected-body p {
  margin: 0;
  font-size: .9rem;
  color: var(--subtle);
  line-height: 1.55;
}

.template-selected-download {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.template-dl-note {
  font-size: .83rem;
  color: var(--subtle);
  margin: 0;
  text-align: right;
  max-width: 180px;
}

/* ─── Template switcher row ─────────────────────────────────────────────────── */

.template-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.switch-label {
  flex-shrink: 0;
  margin: 0;
}

.template-switch-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.template-switch-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--subtle);
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}

.template-switch-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(36, 90, 99, .04);
}

.template-switch-btn.active {
  border-color: var(--primary);
  background: rgba(36, 90, 99, .08);
  color: var(--primary);
  font-weight: 600;
}

/* ─── CV Blurred Preview ────────────────────────────────────────────────────── */

.cv-preview-wrap {
  position: relative;
  max-height: 420px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 4px 32px rgba(20,32,43,0.09);
  margin-bottom: 8px;
}

.cv-preview-doc {
  padding: 44px 52px 60px;
  font-family: "Instrument Sans", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  user-select: none;
}

.cvp-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.cvp-title {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-bottom: 10px;
}

.cvp-contact {
  font-size: 12px;
  color: #888;
  margin-bottom: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
}

.cvp-summary {
  font-size: 13px;
  line-height: 1.65;
  color: #333;
  margin-bottom: 20px;
}

.cvp-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
  margin-top: 4px;
}

.cvp-skills {
  font-size: 12.5px;
  color: #444;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cvp-skill-pill {
  background: #f4f4f4;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 12px;
  color: #555;
}

.cvp-company {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
}

.cvp-role-dates {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
}

.cvp-bullet {
  font-size: 12.5px;
  color: #333;
  padding-left: 14px;
  position: relative;
  margin-bottom: 5px;
}

.cvp-bullet::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #aaa;
}

.cv-preview-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 260px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.5) 25%,
    rgba(255,255,255,0.85) 55%,
    #fff 80%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
}

.cv-preview-lock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(36,90,99,0.07);
  border: 1px solid rgba(36,90,99,0.18);
  border-radius: 24px;
  padding: 8px 18px;
}

@media (max-width: 980px) {
  .cv-preview-doc { padding: 28px 24px 48px; }
}

/* ─── Example case study ─────────────────────────────────────────────────────── */

.example-heading {
  max-width: 680px;
  margin-bottom: 8px;
}

.example-diag-card {
  border-color: rgba(184,106,62,.24);
  background: linear-gradient(180deg, rgba(184,106,62,.06), rgba(255,251,245,.96));
  padding: 28px;
}

.example-diag-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  color: var(--text);
  margin: 6px 0 12px;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.example-diag-body {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(184,106,62,.16);
}

.example-diag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.example-diag-cell {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(237,231,220,.22);
}

.example-diag-cell span {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--soft);
}

.example-diag-cell p {
  margin: 6px 0 0;
  font-size: .88rem;
  line-height: 1.55;
}

.example-diag-fix {
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  background: rgba(36,90,99,.04);
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
  font-size: .9rem;
}

.example-diag-fix strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}

.example-diag-actions {
  display: grid;
  gap: 8px;
}

.example-diag-action {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,251,245,.6);
  font-size: .88rem;
}

.example-diag-action-num {
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  font-size: .82rem;
  margin-top: 2px;
}

.example-doc-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 4px;
}

.doc-thumb {
  display: grid;
  gap: 10px;
  cursor: pointer;
}

.doc-thumb-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-thumb-label span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
}

.doc-thumb-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.doc-thumb-tag.before {
  background: rgba(155,58,42,.1);
  color: var(--error);
}

.doc-thumb-tag.after {
  background: rgba(36,90,99,.1);
  color: var(--primary);
}

.doc-thumb-frame {
  position: relative;
  height: 340px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.doc-thumb:hover .doc-thumb-frame {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(20,32,43,.1);
}

.doc-thumb-doc {
  padding: 28px 32px;
  font-family: "Instrument Sans", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.55;
  font-size: 9px;
  user-select: none;
  pointer-events: none;
}

.doc-thumb-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(transparent, rgba(255,255,255,.98));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}

.doc-thumb-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(36,90,99,.22);
  border-radius: 20px;
  background: rgba(255,251,245,.95);
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .02em;
}

/* Mini CV elements inside thumbnail */
.dtn  { font-size: 13px; font-weight: 700; margin-bottom: 1px; }
.dtt  { font-size: 9px; color: #555; margin-bottom: 3px; }
.dtc  { font-size: 8px; color: #888; margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 6px; }
.dts  { font-size: 7.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #999; margin: 8px 0 3px; }
.dtco { font-weight: 600; font-size: 8.5px; margin-bottom: 1px; }
.dtd  { font-size: 7.5px; color: #777; margin-bottom: 4px; }
.dtb  { font-size: 8px; color: #333; padding-left: 10px; position: relative; margin-bottom: 2px; }
.dtb::before { content: "–"; position: absolute; left: 0; color: #bbb; }
.dtp  { font-size: 7.5px; color: #555; padding: 5px 7px; background: #f5f5f5; border-radius: 4px; margin-bottom: 6px; line-height: 1.4; }
.dtsk { font-size: 7.5px; color: #444; margin-bottom: 8px; }
.dtwr { color: var(--error); }

/* ─── Document zoom modal ─────────────────────────────────────────────────────── */

.doc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,32,43,.72);
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px;
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.doc-modal.open { display: flex; }

.doc-modal-inner {
  position: relative;
  width: min(780px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 48px 56px;
  box-shadow: 0 32px 80px rgba(20,32,43,.22);
  margin: auto;
}

.doc-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  background: rgba(20,32,43,.08);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  line-height: 1;
}

.doc-modal-close:hover { background: rgba(20,32,43,.15); }

.doc-modal-tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.doc-modal-tag.before {
  background: rgba(155,58,42,.1);
  color: var(--error);
}

.doc-modal-tag.after {
  background: rgba(36,90,99,.1);
  color: var(--primary);
}

/* Modal CV typography */
.mcv-name  { font-size: 1.8rem; font-weight: 700; color: #1a1a1a; margin-bottom: 3px; letter-spacing: -.02em; }
.mcv-title { font-size: .95rem; color: #555; margin-bottom: 3px; }
.mcv-cont  { font-size: .82rem; color: #888; padding-bottom: 14px; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.mcv-skills { font-size: .82rem; color: #444; margin-bottom: 20px; line-height: 1.6; }
.mcv-sec   { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #888; margin: 20px 0 8px; }
.mcv-co    { font-weight: 600; font-size: .95rem; color: #1a1a1a; margin-bottom: 2px; }
.mcv-dates { font-size: .82rem; color: #777; margin-bottom: 8px; }
.mcv-ul    { list-style: none; padding: 0; margin: 0 0 16px; }
.mcv-ul li { font-size: .88rem; color: #333; padding-left: 14px; position: relative; margin-bottom: 5px; line-height: 1.55; }
.mcv-ul li::before { content: "–"; position: absolute; left: 0; color: #bbb; }
.mcv-profile { padding: 10px 14px; background: #f8f6f2; border-radius: 8px; font-size: .88rem; color: #555; line-height: 1.6; margin-bottom: 16px; }
.mcv-warn  { color: var(--error); font-style: italic; }

.example-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  min-height: auto;
}

.example-link:hover { color: var(--primary-hover); }

/* ─── Tablet (≤ 980px) ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .cv-preview-doc { padding: 28px 24px 48px; }
  .hero, .layout, .two, .evidence, .progress, .case-summary, .section-grid, .trust-strip, .proof-grid, .footer-row, .metric-strip, .note-row, .brief-grid, .service-summary, .dossier-summary, .payment-notes, .diagnosis-brief, .template-grid, .rewrite-brief, .example-doc-row, .example-diag-grid { grid-template-columns: 1fr; }
  .topbar, .samplebar, .between { flex-direction: column; align-items: stretch; }
  .footer-links { justify-content: flex-start; }
  .hero .side {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(20, 32, 43, 0.1);
  }
  .hero .side .stack > div { padding-left: 36px; }
  .chat-message { max-width: 92%; }
  .chat-done { flex-direction: column; }
  .template-card-selected { flex-direction: column; align-items: stretch; }
  .template-selected-preview { width: 100%; }
  .template-selected-download { align-items: stretch; }
  .template-dl-note { text-align: left; max-width: none; }
  .doc-modal-inner { padding: 32px 24px; }
}

/* ─── Mobile (≤ 640px) ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --max: 100%; }

  .shell {
    width: calc(100% - 24px);
    padding-bottom: 48px;
  }

  /* Topbar — compact on mobile, hide nav */
  .topbar {
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
  }
  nav { display: none; }
  /* Hide the eyebrow tagline in the brand on mobile — logo + name only */
  .brand .eyebrow { display: none; }
  .mark { width: 36px; height: 36px; }
  .brand { gap: 10px; }
  .brand h1 { font-size: 1.1rem; }
  .topbar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(36,90,99,.25);
    flex-shrink: 0;
  }

  /* Hero */
  .hero .main {
    padding: 32px 24px 28px;
  }
  .hero-wordmark {
    font-size: clamp(3.2rem, 14vw, 5rem);
  }
  h2 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    max-width: none;
  }
  h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); }

  /* Section rhythm */
  .screen { gap: 20px; padding-top: 16px; }
  .main, .side, .form, .diagnosis, .doc { padding: 20px; }
  .hero .side { padding: 20px 0 0; }

  /* Founder strip */
  .founder-strip {
    padding: 20px;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  /* Form */
  .actions { flex-direction: column; }
  .actions .buttonlink, .actions button, .actions a { width: 100%; justify-content: center; }

  /* Chat */
  .chat-layout { gap: 16px; }
  .chat-input-area textarea { min-height: 90px; }

  /* Payment */
  .delivery-email-block, .beta-access { padding: 0; }

  /* Footer */
  .site-footer { padding: 24px 0 0; }
  .footer-row { gap: 20px; }
}
