/* ============================================================
   Cuedar — "The Briefing"
   Editorial intelligence-document aesthetic: warm paper ground,
   ink typography, hairline rules, mono metadata, one signal red.
   Type: Newsreader (display serif) · Archivo (text) · IBM Plex Mono (data)
   ============================================================ */

:root {
  --paper: #f5f2ea;
  --paper-deep: #ece7db;
  --sheet: #fcfaf5;
  --ink: #1c1712;
  --ink-soft: #443c33;
  --muted: #6f665a;
  --rule: #d9d1c0;
  --rule-soft: #e5dfd2;
  --signal: #b23a1c;
  --signal-deep: #8d2c13;
  --signal-wash: #f6e8e2;
  --opportunity: #34613c;
  --opportunity-wash: #e7eee5;
  --risk: #9a3226;
  --risk-wash: #f4e6e2;
  --decision: #2c4a72;
  --decision-wash: #e5eaf1;
  --worth: #7a6021;
  --worth-wash: #f0ead8;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --measure: 62ch;
  --frame: 1200px;
  --gutter: 28px;
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Paper grain — barely-there tooth so flat fields don't feel digital. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.24 0 0 0 0 0.20 0 0 0 0 0.15 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
  text-wrap: balance;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.28rem;
  line-height: 1.25;
}

.lead {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---- Accessibility ------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  left: 1rem;
}

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

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

/* ---- Masthead ------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 242, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 3px 0 -2px var(--ink);
}

.topline {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 7px var(--gutter) 6px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.topline .issue::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--signal);
  vertical-align: 6%;
}

.topline time {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.nav {
  max-width: var(--frame);
  margin: 0 auto;
  min-height: 62px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
}

.brand-wordmark {
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.nav-links a {
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--signal);
}

.nav-form,
.language-form {
  margin: 0;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
}

.language-form {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ink);
}

.language-form::after {
  content: "";
  position: absolute;
  right: 0.68rem;
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-15%) rotate(45deg);
  pointer-events: none;
  opacity: 0.72;
}

.language-icon {
  position: absolute;
  left: 0.68rem;
  width: 15px;
  height: 15px;
  color: var(--signal-deep);
  pointer-events: none;
}

.language-icon circle,
.language-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-form select {
  min-height: 36px;
  width: 148px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: rgba(252, 250, 245, 0.88);
  color: var(--ink);
  appearance: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 1.8rem 0 1.95rem;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.language-form select:hover {
  border-color: var(--ink-soft);
  background: var(--sheet);
}

.language-form select:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-color: var(--ink);
}

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

.button,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.35rem;
  border-radius: 2px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.button.primary,
.nav-cta {
  background: var(--ink);
  color: var(--paper);
}

.button.primary:hover,
.nav-cta:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--signal);
  color: var(--signal-deep);
}

.button.compact {
  min-height: 34px;
  padding: 0.42rem 0.72rem;
  font-size: 0.68rem;
}

.nav-cta {
  min-height: 38px;
  padding: 0.45rem 1.05rem;
  font-size: 0.75rem;
}

/* ---- Frame + sections ---------------------------------------------- */

.hero,
.page-hero,
.section,
.pricing-grid,
.sample-digest,
.legal-page {
  max-width: var(--frame);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section,
.page-hero,
.pricing-grid,
.sample-digest,
.legal-page {
  padding-top: 84px;
  padding-bottom: 84px;
}

body {
  counter-reset: brief-section;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--signal-deep);
}

.section .section-heading .eyebrow {
  counter-increment: brief-section;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section .section-heading .eyebrow::before {
  content: "0" counter(brief-section);
  color: var(--ink);
}

.section .section-heading .eyebrow::after {
  content: "";
  flex: 0 0 44px;
  height: 1px;
  background: var(--ink);
}

.section-heading {
  max-width: 720px;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
}

.page-hero {
  padding-top: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}

.page-hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--signal);
  margin-right: 10px;
  vertical-align: 30%;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: 84px;
  padding-bottom: 96px;
}

.hero-copy > * {
  animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > *:nth-child(2) { animation-delay: 70ms; }
.hero-copy > *:nth-child(3) { animation-delay: 140ms; }
.hero-copy > *:nth-child(4) { animation-delay: 210ms; }
.hero-copy > *:nth-child(5) { animation-delay: 280ms; }
.hero-copy > *:nth-child(6) { animation-delay: 350ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy .lead {
  margin: 1.4rem 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.launch-note {
  margin: 20px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.launch-note:first-of-type {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

/* The hero image IS the product: a briefing excerpt, set like a document. */

.hero-scene {
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms both;
}

.scene-board {
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--paper-deep), 6px 6px 0 1px var(--rule);
  padding: 0;
}

.scene-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.scene-header span:last-child {
  color: var(--signal-deep);
}

.scene-grid {
  display: grid;
}

.scene-signal {
  padding: 16px 18px 18px;
  border-bottom: 1px solid var(--rule);
}

.scene-signal:last-child {
  border-bottom: 0;
}

.scene-signal.wide {
  border-left: 3px solid var(--signal);
}

.scene-signal strong {
  display: block;
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.28;
}

.scene-signal p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ---- Tags (stamped) -------------------------------------------------- */

.tag,
.scene-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--opportunity);
  border-radius: 2px;
  background: var(--opportunity-wash);
  color: var(--opportunity);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tag {
  margin-bottom: 0.8rem;
}

.tag.risk,
.scene-tag.risk-tone {
  border-color: var(--risk);
  background: var(--risk-wash);
  color: var(--risk);
}

.tag.opportunity {
  border-color: var(--opportunity);
  background: var(--opportunity-wash);
  color: var(--opportunity);
}

.tag.decision {
  border-color: var(--decision);
  background: var(--decision-wash);
  color: var(--decision);
}

.tag.worth-knowing {
  border-color: var(--worth);
  background: var(--worth-wash);
  color: var(--worth);
}

.tag.neutral,
.scene-tag.neutral {
  border-color: var(--muted);
  background: transparent;
  color: var(--muted);
}

/* ---- Editorial card grids ------------------------------------------- */

.card-grid,
.feature-list,
.faq-list,
.timeline,
.coverage-grid,
.preview-detail-grid,
	.anatomy-list,
	.login-grid,
	.dashboard-grid {
	  display: grid;
	  gap: 0 36px;
	  margin-top: 40px;
	}

.card-grid.three,
	.preview-detail-grid,
	.pricing-grid-three,
	.dashboard-grid {
	  grid-template-columns: repeat(3, minmax(0, 1fr));
	}

.feature-list,
.coverage-grid,
.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid article,
.feature-list article,
.faq-list article,
.coverage-grid article,
	.preview-detail-grid article,
	.anatomy-list article,
	.dashboard-grid article {
	  border-top: 2px solid var(--ink);
	  padding: 20px 0 30px;
	  transition: border-color 140ms ease;
	}

.card-grid article:hover,
.feature-list article:hover,
	.coverage-grid article:hover,
	.preview-detail-grid article:hover,
	.dashboard-grid article:hover {
	  border-top-color: var(--signal);
	}

.card-grid p,
.feature-list p,
.faq-list p,
.coverage-grid p,
	.preview-detail-grid p,
	.anatomy-list p,
	.dashboard-grid p,
	.timeline p {
	  margin: 0;
	  color: var(--muted);
	  font-size: 0.95rem;
	}

.entity-list {
  display: grid;
  gap: 12px;
}

.entity-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.entity-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.entity-row strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.25;
}

.entity-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.inline-actions form {
  margin: 0;
}

.empty-state {
  max-width: 680px;
  padding: 26px 0;
  border-top: 2px solid var(--ink);
}

.empty-state p {
  color: var(--muted);
}

/* ---- Timeline / steps ------------------------------------------------ */

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article {
  border-top: 1px solid var(--rule);
  padding: 18px 0 26px;
  position: relative;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--signal);
}

.timeline span,
.steps span {
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 36px;
  margin-top: 40px;
}

.steps article {
  border-top: 1px solid var(--rule);
  position: relative;
  padding: 18px 0 26px;
}

.steps article::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--signal);
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Bands ------------------------------------------------------------ */

.muted-band {
  max-width: none;
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.muted-band > * {
  max-width: var(--frame);
  margin-left: auto;
  margin-right: auto;
}

.source-coverage,
.profile-preview {
  border-top: 1px solid var(--rule);
}

.profile-preview {
  border-bottom: 1px solid var(--rule);
}

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band,
.notice {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

/* ---- Digest anatomy (home) -------------------------------------------- */

.anatomy-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  margin-top: 40px;
  align-items: start;
}

.digest-card-preview {
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--paper-deep), 6px 6px 0 1px var(--rule);
  padding: 22px 24px 26px;
}

.digest-card-preview h3 {
  font-size: 1.3rem;
  margin: 0.35rem 0 0.4rem;
}

.digest-meta {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--signal-deep);
}

dl {
  margin: 0;
}

dt {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

dd {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---- Pricing ------------------------------------------------------------ */

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

.pricing-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 56px;
  padding-bottom: 28px;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--sheet);
  border: 1px solid var(--ink);
  padding: 26px 26px 30px;
  position: relative;
}

.price-card .eyebrow {
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.price-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.price {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.price-card ul {
  margin: 0.8rem 0 1.4rem;
  padding: 0;
  list-style: none;
  width: 100%;
}

.price-card li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.price-card .button {
  margin-top: auto;
}

.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--paper-deep), 6px 6px 0 1px var(--rule);
}

.price-card.featured .eyebrow,
.price-card.featured li {
  color: #c9c1b2;
}

.price-card.featured li {
  border-top-color: #47403a;
}

.price-card.featured .tag {
  position: absolute;
  top: -11px;
  left: 24px;
  margin: 0;
  border-color: var(--signal);
  background: var(--signal);
  color: var(--paper);
}

.price-card.featured .button.primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.price-card.featured .button.primary:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--paper);
}

.pricing-note {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.price-option {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--rule);
  background: var(--sheet);
}

.price-option.featured {
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--paper-deep);
}

.price-option .button {
  margin-top: auto;
}

/* ---- Sample digest / digest detail (the document) ---------------------- */

.sample-digest {
  max-width: 880px;
  width: calc(100% - 2 * var(--gutter));
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--paper-deep), 8px 8px 0 1px var(--rule);
  padding: 0;
  margin-bottom: 84px;
}

section.sample-digest {
  padding: 30px 34px 38px;
  margin-top: 56px;
}

.sample-digest > header {
  padding: 26px 34px 22px;
  border-bottom: 1px solid var(--ink);
  position: relative;
}

.sample-digest > header::after {
  content: "Sample";
  position: absolute;
  top: 24px;
  right: 30px;
  transform: rotate(-4deg);
  padding: 0.2rem 0.55rem;
  border: 1.5px solid var(--signal);
  border-radius: 2px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.sample-digest > header h2,
.sample-digest section h2 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.sample-digest > header p:not(.digest-meta) {
  margin: 0;
  color: var(--ink-soft);
}

.sample-digest section {
  padding: 24px 34px 28px;
  border-bottom: 1px solid var(--rule);
}

.sample-digest section:last-child {
  border-bottom: 0;
}

.signal {
  padding: 18px 0 22px;
  border-top: 1px solid var(--rule);
}

.signal:first-of-type {
  border-top: 0;
}

.signal h3 {
  margin: 0 0 0.6rem;
}

.signal p {
  margin: 0.4rem 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.signal p strong {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: inline-block;
  min-width: 132px;
}

.signal ul,
.sample-digest section ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.signal li,
.digest-columns li {
  padding: 0.4rem 0;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.signal a,
.digest-columns a {
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

.signal a:hover,
.digest-columns a:hover {
  text-decoration-color: var(--signal);
}

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

.digest-columns p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.sample-digest ol {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
}

.sample-digest ol li {
  margin: 0.5rem 0;
  color: var(--ink-soft);
}

/* ---- Archive -------------------------------------------------------------- */

.archive-list {
  margin-top: 8px;
}

.archive-list article {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}

.archive-list article:first-child {
  border-top: 2px solid var(--ink);
}

.archive-list h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.archive-list h2 a {
  text-decoration: none;
  transition: color 120ms ease;
}

.archive-list h2 a:hover {
  color: var(--signal-deep);
}

.archive-list article > p:not(.digest-meta) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: var(--measure);
}

/* ---- Preview / profile pages ----------------------------------------------- */

.preview-confidence {
  display: inline-flex;
  margin: 16px 0 0;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.preview-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px var(--gutter) 8px;
}

.preview-section + .preview-section {
  padding-top: 24px;
}

.preview-section-header {
  max-width: var(--measure);
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.preview-section-header h2 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.preview-section-header > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.preview-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px var(--gutter) 84px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.preview-section > .preview-grid {
  max-width: none;
  margin: 0;
  padding: 28px 0 36px;
}

.preview-grid article {
  border-top: 2px solid var(--ink);
  padding: 18px 0 28px;
}

.preview-grid .preview-card-wide {
  grid-column: 1 / -1;
}

.preview-grid .preview-card-emphasis {
  margin-bottom: 12px;
  padding: 24px;
  border: 1px solid var(--ink);
  border-top-width: 3px;
  background: var(--sheet);
  box-shadow: 6px 6px 0 var(--paper-deep);
}

.preview-grid article p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.preview-grid .preview-card-subheading {
  margin: 1rem 0 0.25rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-grid .tag {
  margin-bottom: 0.6rem;
  border-color: var(--muted);
  background: transparent;
  color: var(--muted);
}

.preview-grid .preview-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.preview-grid ul {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.preview-grid li {
  padding: 0.42rem 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---- Guided strategy workspace -------------------------------------------- */

.strategy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: end;
  padding-top: 54px;
  padding-bottom: 38px;
}

.strategy-hero-copy .lead {
  margin: 1rem 0 0;
}

.strategy-hero-status {
  padding: 4px 0 4px 24px;
  border-left: 1px solid var(--rule);
}

.strategy-state {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.strategy-state > span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--signal);
}

.strategy-state-ready > span,
.strategy-state-active > span {
  background: var(--opportunity);
}

.strategy-state-provisional > span {
  background: var(--muted);
}

.strategy-readiness-reason {
  max-width: var(--measure);
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.strategy-hero > .notice {
  grid-column: 1 / -1;
  margin: 0;
}

.strategy-workspace {
  width: min(1120px, calc(100% - (2 * var(--gutter))));
  margin: 0 auto;
  padding: 52px 0 72px;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.38fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.strategy-agent-panel {
  position: sticky;
  top: 108px;
  min-width: 0;
}

.strategy-panel-header,
.strategy-preview-header {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.strategy-panel-header h2,
.strategy-preview-header h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.strategy-panel-intro {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.strategy-input-card {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
  background: var(--sheet);
}

.strategy-input-card .tag {
  margin-bottom: 0.8rem;
}

.strategy-input-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.strategy-input-card > p,
.strategy-refinement-form .help {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.strategy-refinement-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.strategy-refinement-form label {
  font-size: 0.86rem;
  font-weight: 700;
}

.strategy-refinement-form textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.strategy-shortcuts-label {
  margin: 3px 0 -2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-prompt-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.strategy-prompt-shortcuts button,
.strategy-history-item-header button {
  min-height: 40px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.25;
  padding: 0.48rem 0.7rem;
  text-align: left;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.strategy-prompt-shortcuts button:hover,
.strategy-prompt-shortcuts button:focus-visible,
.strategy-history-item-header button:hover,
.strategy-history-item-header button:focus-visible {
  border-color: var(--signal);
  background: var(--signal-wash);
  color: var(--signal-deep);
  outline: none;
}

.strategy-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.strategy-form-actions .button {
  flex: 1 1 145px;
}

.strategy-refinement-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.strategy-working-status {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
  color: var(--signal-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
}

.strategy-version-safety {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.strategy-history {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}

.strategy-history > summary {
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}

.strategy-history > summary::-webkit-details-marker {
  display: none;
}

.strategy-history > summary h3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.strategy-history > summary h3::after {
  content: "+";
  width: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.1rem;
  line-height: 1;
  text-align: center;
}

.strategy-history[open] > summary h3::after {
  content: "−";
}

.strategy-history-heading,
.strategy-history-heading .eyebrow,
.strategy-history-title {
  display: block;
}

.strategy-history-title {
  margin: 0.25rem 0 0;
  font-size: 1rem;
}

.strategy-history-count {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.strategy-history-body {
  padding: 0 0 4px;
}

.strategy-history-intro {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.strategy-history-body > ol {
  display: grid;
  gap: 10px;
  max-height: 540px;
  margin: 14px 0 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  list-style: none;
}

.strategy-history-body > ol > li {
  padding: 14px;
  border: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--sheet) 68%, transparent);
}

.strategy-history p,
.strategy-history ul {
  margin: 0.35rem 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.strategy-history .strategy-history-question {
  margin-top: 0.7rem;
  color: var(--ink);
  font-weight: 700;
}

.strategy-history .strategy-history-answer {
  white-space: pre-wrap;
}

.strategy-history-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.strategy-history-item-header > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-history-item-header button {
  min-height: 40px;
  padding: 0.38rem 0.62rem;
}

.strategy-live-preview {
  min-width: 0;
}

.strategy-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.strategy-version {
  flex: 0 0 auto;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.strategy-change-summary,
.strategy-assumptions {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--opportunity);
  background: var(--opportunity-wash);
}

.strategy-assumptions {
  border-left-color: var(--signal);
  background: var(--signal-wash);
}

.strategy-change-summary h3,
.strategy-assumptions h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.strategy-change-summary ul,
.strategy-assumptions ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.strategy-primary-card {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--opportunity);
  background: var(--sheet);
}

.strategy-primary-card h3 {
  margin: 0.75rem 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.strategy-primary-card p {
  color: var(--ink-soft);
}

.strategy-primary-card h4,
.strategy-preview-grid h4 {
  margin: 1.2rem 0 0.35rem;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.strategy-primary-card ul,
.strategy-preview-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.strategy-primary-card li,
.strategy-preview-grid li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.strategy-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.strategy-preview-grid > article {
  padding: 18px;
  border: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--sheet) 70%, transparent);
}

.strategy-preview-grid h3 {
  margin: 0.7rem 0 0.55rem;
  font-size: 1.15rem;
}

.strategy-facts-section {
  max-width: 1120px;
  padding-top: 0;
  padding-bottom: 26px;
}

.strategy-source-facts {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.strategy-source-facts > summary {
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}

.strategy-source-facts > summary::-webkit-details-marker {
  display: none;
}

.strategy-source-facts > summary:hover .strategy-details-action,
.strategy-source-facts > summary:focus-visible .strategy-details-action {
  border-color: var(--signal);
  color: var(--signal-deep);
}

.strategy-source-facts[open] > summary {
  border-bottom: 1px solid var(--rule);
}

.strategy-source-facts > summary > h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}

.strategy-source-facts .preview-section-header {
  display: block;
  max-width: var(--measure);
  border-top: 0;
  padding-top: 0;
}

.strategy-source-facts .eyebrow,
.strategy-source-facts-title,
.strategy-source-facts-description {
  display: block;
}

.strategy-source-facts-title {
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
}

.strategy-source-facts-description {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

.strategy-details-action {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.58rem 0.78rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 140ms ease, color 140ms ease;
}

.strategy-source-facts > .preview-grid {
  padding: 24px 0 16px;
}

/* ---- Forms ------------------------------------------------------------------ */

.form-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px var(--gutter) 96px;
}

.profile-form,
.compact-form {
  display: grid;
  gap: 20px;
}

/* ---- Settings --------------------------------------------------------------- */

.settings-hero {
  padding-bottom: 42px;
}

.settings-shell {
  width: min(var(--frame), calc(100% - (2 * var(--gutter))));
  margin: 0 auto;
  padding: 0 0 96px;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.settings-nav {
  display: grid;
  gap: 3px;
  position: sticky;
  top: 132px;
}

.settings-nav-label {
  margin: 22px 0 6px;
  padding: 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.settings-nav-label:first-child {
  margin-top: 0;
}

.settings-nav a {
  border-left: 2px solid transparent;
  padding: 9px 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-decoration: none;
}

.settings-nav a:hover {
  border-left-color: var(--rule);
  color: var(--ink);
  background: var(--paper-deep);
}

.settings-nav a[aria-current="page"] {
  border-left-color: var(--signal);
  color: var(--ink);
  background: var(--signal-wash);
  font-weight: 600;
}

.settings-panel {
  min-width: 0;
  border-top: 3px solid var(--ink);
  padding-top: 26px;
}

.settings-panel-header {
  max-width: 700px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.settings-panel-header h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.settings-panel-header p:last-child,
.settings-section-heading p,
.settings-muted {
  color: var(--muted);
}

.settings-form {
  display: grid;
  gap: 24px;
  max-width: 700px;
  padding-top: 30px;
}

.field-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.field-help ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.settings-readonly {
  margin: 0;
  border: 1px solid var(--rule-soft);
  border-bottom-color: var(--rule);
  border-radius: 2px;
  padding: 0.75rem 0.8rem;
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.settings-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  border: 1px solid var(--rule);
  padding: 18px;
  background: var(--sheet);
}

.settings-toggle input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--signal-deep);
}

.settings-toggle label {
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.settings-toggle label span {
  color: var(--muted);
  font-size: 0.86rem;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.settings-note,
.billing-history {
  max-width: 700px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

.settings-note h3,
.settings-section-heading h3,
.settings-empty h3 {
  margin: 0 0 7px;
  font-size: 1.25rem;
}

.settings-note p {
  color: var(--muted);
}

.membership-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 700px;
  margin: 30px 0 22px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.membership-summary > div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
}

.membership-summary span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.settings-empty {
  max-width: 700px;
  margin: 30px 0 22px;
}

.settings-section-heading {
  margin-bottom: 18px;
}

.settings-section-heading p {
  margin: 0;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.payment-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.payment-table th,
.payment-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}

.payment-table th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payment-table code {
  overflow-wrap: anywhere;
  font-size: 0.76rem;
}

/* ---- Data requests --------------------------------------------------------- */

.data-request-shell {
  width: min(940px, calc(100% - (2 * var(--gutter))));
  margin: 0 auto;
  padding: 56px 0 104px;
}

.data-request-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  background: var(--sheet);
  box-shadow: 8px 8px 0 var(--paper-deep), 8px 8px 0 1px var(--rule);
}

.data-request-choice-group {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: clamp(24px, 4vw, 38px);
}

.data-request-choice-group legend {
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.data-request-options {
  display: grid;
  gap: 10px;
}

.data-request-option {
  position: relative;
  cursor: pointer;
}

.data-request-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.data-request-option-content {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border: 1px solid var(--rule);
  border-left: 3px solid transparent;
  padding: 13px 15px 13px 13px;
  background: var(--paper);
  color: var(--ink-soft);
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.data-request-option:hover .data-request-option-content {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.data-request-option input:checked + .data-request-option-content {
  border-color: var(--signal);
  border-left-color: var(--signal);
  background: var(--signal-wash);
  color: var(--ink);
}

.data-request-option input:focus-visible + .data-request-option-content {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.data-request-option-icon,
.data-request-success-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--sheet);
  color: var(--signal-deep);
}

.data-request-option-icon svg,
.data-request-success-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.data-request-option strong {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
}

.data-request-contact {
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
  border-left: 1px solid var(--rule);
  padding: clamp(24px, 4vw, 38px);
}

.data-request-submit {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 4px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 22px;
}

.data-request-submit p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.data-request-submit .button {
  flex: 0 0 auto;
}

.data-request-success {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--opportunity);
  padding: clamp(30px, 6vw, 58px);
  background: var(--sheet);
  box-shadow: 8px 8px 0 var(--paper-deep), 8px 8px 0 1px var(--rule);
  text-align: center;
}

.data-request-success-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-color: var(--opportunity);
  background: var(--opportunity-wash);
  color: var(--opportunity);
}

.data-request-success-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 2;
}

.data-request-success .eyebrow {
  margin-bottom: 10px;
}

.data-request-success h2 {
  max-width: 25ch;
  margin: 0 auto 28px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.data-request-success .actions {
  justify-content: center;
}

.compact-form {
  gap: 12px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 7px;
  position: relative;
  min-width: 0;
}

.field label,
.compact-form label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-badge {
  flex: 0 0 auto;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.16rem 0.48rem;
  font-size: 0.62rem;
  letter-spacing: 0;
}

.field-badge.required {
  border-color: var(--signal);
  color: var(--signal-deep);
  background: var(--signal-wash);
}

.field-badge.optional {
  color: var(--muted);
  background: var(--paper-deep);
}

.field input,
.field select,
.field textarea,
.compact-form input {
  width: 100%;
  border: 1px solid var(--rule);
  border-bottom-color: var(--ink);
  border-radius: 2px;
  padding: 0.75rem 0.8rem;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  transition: border-color 120ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.compact-form input:focus {
  outline: none;
  border-color: var(--ink);
  border-bottom-color: var(--signal);
  box-shadow: 0 1px 0 var(--signal);
}

.field select.profile-language-select {
  min-height: 48px;
  appearance: none;
  cursor: pointer;
  border-color: var(--rule);
  border-bottom-color: var(--ink);
  background-color: var(--sheet);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(237, 231, 217, 0.72));
  background-position:
    calc(100% - 1.28rem) calc(50% - 3px),
    calc(100% - 0.92rem) calc(50% - 3px),
    100% 0;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  padding-right: 3rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
}

.field select.profile-language-select:hover {
  border-color: var(--ink);
  background-color: var(--sheet);
}

.field select.profile-language-select:focus {
  border-color: var(--ink);
  border-bottom-color: var(--signal);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--signal-deep) 50%),
    linear-gradient(135deg, var(--signal-deep) 50%, transparent 50%),
    linear-gradient(180deg, var(--sheet), var(--signal-wash));
}

.field select.profile-language-select.custom-select-native {
  display: none;
}

.autocomplete-shell,
.custom-select-shell {
  position: relative;
  min-width: 0;
}

.autocomplete-shell.is-multiple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--rule);
  border-bottom-color: var(--ink);
  border-radius: 2px;
  background: var(--sheet);
  padding: 0.42rem 0.48rem;
  transition: border-color 120ms ease;
}

.autocomplete-shell.is-multiple:focus-within {
  border-color: var(--ink);
  border-bottom-color: var(--signal);
  box-shadow: 0 1px 0 var(--signal);
}

.field .autocomplete-shell.is-multiple .autocomplete-search-input {
  flex: 1 1 160px;
  min-width: 120px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.34rem 0.22rem;
}

.field .autocomplete-shell.is-multiple .autocomplete-search-input:focus {
  border: 0;
  box-shadow: none;
}

.custom-select-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--rule);
  border-bottom-color: var(--ink);
  border-radius: 2px;
  background: var(--sheet);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0.75rem 3rem 0.75rem 0.8rem;
  text-align: left;
  transition: border-color 120ms ease;
}

.custom-select-button::before,
.custom-select-button::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  pointer-events: none;
}

.custom-select-button::before {
  right: 1.28rem;
  background: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%);
}

.custom-select-button::after {
  right: 0.92rem;
  background: linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
}

.custom-select-button:hover,
.custom-select-button:focus {
  outline: none;
  border-color: var(--ink);
  border-bottom-color: var(--signal);
  box-shadow: 0 1px 0 var(--signal);
}

.autocomplete-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-width: 100%;
  max-height: min(260px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  background: var(--sheet);
  box-shadow: 0 18px 36px rgba(34, 31, 26, 0.16);
  padding: 4px;
}

.custom-select-menu {
  max-height: min(300px, 42vh);
}

.autocomplete-menu[hidden] {
  display: none;
}

.autocomplete-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0.62rem 0.68rem;
  text-align: left;
}

.autocomplete-option:hover,
.autocomplete-option:focus,
.autocomplete-option.is-active {
  outline: none;
  background: var(--signal-wash);
}

.autocomplete-label {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.autocomplete-meta {
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.12rem 0.34rem;
}

.selected-autocomplete-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.autocomplete-shell.is-multiple .selected-autocomplete-values {
  flex: 0 1 auto;
}

.selected-autocomplete-values[hidden] {
  display: none;
}

.selected-autocomplete-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  padding: 0.3rem 0.38rem 0.3rem 0.58rem;
  font-size: 0.82rem;
}

.selected-autocomplete-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.selected-autocomplete-chip button {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 1.18rem;
  height: 1.18rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--sheet);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0;
  padding: 0;
  text-transform: uppercase;
}

.selected-autocomplete-remove {
  font-weight: 600;
}

.selected-autocomplete-chip button:hover,
.selected-autocomplete-chip button:focus {
  border-color: var(--ink);
  color: var(--ink);
  outline: none;
}

.help,
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.field-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.suggestion-empty {
  color: var(--muted);
  font-size: 0.8rem;
}

.suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--sheet);
  padding: 0.36rem 0.42rem 0.36rem 0.62rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.suggestion-chip span {
  overflow-wrap: anywhere;
}

.suggestion-chip button {
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.24rem 0.42rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
}

.error,
.form-error {
  margin: 0;
  color: var(--signal-deep);
  font-size: 0.88rem;
}

.form-error {
  font-weight: 600;
}

.cf-turnstile {
  min-height: 65px;
}

/* ---- Login ------------------------------------------------------------------- */

.login-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: 44px;
}

.login-card {
  background: var(--sheet);
  border: 1px solid var(--ink);
  padding: 26px 28px 30px;
}

.login-card.featured {
  box-shadow: 6px 6px 0 var(--paper-deep), 6px 6px 0 1px var(--rule);
}

.login-card p {
  color: var(--ink-soft);
}

/* ---- Lists / legal -------------------------------------------------------------- */

.check-list,
.legal-page ul {
  padding-left: 1.2rem;
}

.check-list li,
.legal-page li {
  margin: 0.45rem 0;
}

.legal-page {
  max-width: 800px;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

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

.site-footer {
  margin-top: 48px;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: #b7ae9e;
  border-top: 3px solid var(--signal);
}

.site-footer > div,
.site-footer > nav,
.site-footer > p {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-footer > div,
.site-footer > nav {
  display: flex;
  gap: 14px 22px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer > div {
  padding-top: 36px;
  padding-bottom: 8px;
  align-items: center;
}

.site-footer > nav {
  padding-top: 10px;
  padding-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-copyright {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #8f8676;
}

.site-footer strong {
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer .brand-mark {
  width: 1.55rem;
  height: 1.55rem;
}

.site-footer .footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.45;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.site-footer a:hover {
  color: var(--paper);
  border-bottom-color: var(--signal);
}

.site-footer .footer-contact {
  text-transform: none;
  letter-spacing: 0.04em;
}

/* ---- Print ------------------------------------------------------------------------- */

@media print {
  body {
    background: #ffffff;
  }

  body::before,
  .site-header,
  .site-footer,
  .skip-link,
  .actions,
  .nav-cta,
  .inline-cta {
    display: none !important;
  }

  .strategy-agent-panel {
    display: none !important;
  }

  .strategy-workspace {
    display: block;
  }

  .sample-digest,
  .scene-board,
  .digest-card-preview {
    box-shadow: none;
    border-color: #000000;
  }

  .sample-digest > header::after {
    transform: none;
  }
}

/* ---- Motion preferences ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy > *,
  .hero-scene {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* ---- Responsive --------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .hero-scene {
    max-width: 560px;
  }

  .strategy-workspace {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - (2 * var(--gutter))));
    gap: 52px;
  }

  .strategy-agent-panel {
    position: static;
  }

  .card-grid.three,
  .preview-detail-grid,
  .pricing-grid-three,
  .dashboard-grid,
  .timeline,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .nav {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 14px;
    gap: 12px 16px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
  }

  .nav-controls {
    margin-left: auto;
  }

  .language-form select {
    width: 132px;
  }

  .topline {
    display: none;
  }

  .settings-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .strategy-workspace {
    grid-template-columns: 1fr;
    width: min(100% - (2 * var(--gutter)), 640px);
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .strategy-agent-panel {
    position: static;
  }

  .strategy-preview-grid {
    grid-template-columns: 1fr;
  }

  .strategy-history-body > ol {
    max-height: none;
  }

  .strategy-preview-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .strategy-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .strategy-hero-status {
    padding: 20px 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .strategy-source-facts > summary > h2 {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .settings-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .settings-nav-label {
    grid-column: 1 / -1;
    margin-top: 14px;
  }

  .settings-nav a {
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .settings-nav a:hover,
  .settings-nav a[aria-current="page"] {
    border-left-color: transparent;
  }

  .settings-nav a[aria-current="page"] {
    border-bottom-color: var(--signal);
  }

  .data-request-card {
    grid-template-columns: 1fr;
  }

  .data-request-contact {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .data-request-submit {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid.three,
  .feature-list,
  .coverage-grid,
  .dashboard-grid,
  .faq-list,
  .login-grid,
  .pricing-grid,
  .pricing-grid-three,
  .preview-detail-grid,
  .anatomy-grid,
  .digest-columns,
  .timeline,
  .steps,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .cta-band,
  .notice {
    flex-direction: column;
    align-items: flex-start;
  }

  .section,
  .page-hero,
  .pricing-grid,
  .legal-page {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .sample-digest > header,
  .sample-digest section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer {
    margin-top: 40px;
    padding-bottom: calc(38px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer > div {
    display: block;
    padding-top: 30px;
    padding-bottom: 14px;
  }

  .site-footer .footer-tagline {
    display: block;
    margin-top: 7px;
  }

  .site-footer > nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
    gap: 8px 28px;
    padding-top: 4px;
    padding-bottom: 16px;
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .site-footer .footer-contact {
    grid-column: 1 / -1;
  }

  .signal p strong {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
  }

  .entity-row,
  .inline-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .entity-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }

  .nav-cta {
    width: 100%;
  }

  .nav-controls.has-auth-action {
    order: 2;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .nav-controls .nav-cta {
    width: auto;
  }

  .sample-digest > header::after {
    display: none;
  }

  .membership-summary {
    grid-template-columns: 1fr;
  }
}
