/* =========================================================================
   PlanAssist Miljøvurdering — Component Library
   Depends on: colors_and_type.css (must be imported first)
   ========================================================================= */

/* ---- Layout primitives ---- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  padding: 0 var(--margin-page);
  margin: 0 auto;
}

.container-wide {
  width: 100%;
  padding: 0 var(--margin-page);
}

@media (max-width: 768px) {
  .container, .container-wide {
    padding: 0 var(--margin-page-mobile);
  }
}

/* ---- Topbar (cross-PlanAssist pattern) ---- */
.topbar {
  background: var(--paper);
  border-bottom: var(--rule-thin);
  padding: 18px var(--margin-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background-color: rgba(250, 250, 247, 0.92);
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.brand-lockup .brand-mark {
  font-family: var(--font-display);
  font-weight: var(--w-regular);
  font-size: 20px;
  letter-spacing: var(--ls-tight);
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
  position: relative;
}

.brand-lockup .brand-mark::after {
  content: '';
  position: absolute;
  left: 0; right: -2px;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-medium) var(--ease-out);
}

.brand-lockup:hover .brand-mark::after { transform: scaleX(1); }

.brand-lockup .brand-divider {
  display: inline-block;
  width: 1px; height: 16px;
  background: var(--rule-strong);
  margin: 0 4px;
  transform: translateY(2px);
}

.brand-lockup .brand-module {
  font-family: var(--font-sans);
  font-weight: var(--w-medium);
  font-size: 13px;
  letter-spacing: var(--ls-track);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.topbar-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--t-small);
  font-weight: var(--w-medium);
  position: relative;
  padding: 8px 0;
  transition: color var(--dur-fast) var(--ease-out);
}

.topbar-nav a:hover { color: var(--ink); }
.topbar-nav a.active { color: var(--ink); }
.topbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-mos);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: var(--rule-normal);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.user-chip:hover { border-color: var(--ink); }

.user-chip .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-mos);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--w-medium);
}

.user-chip .user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-chip .user-name {
  font-size: 12px;
  font-weight: var(--w-medium);
  color: var(--ink);
}

.user-chip .user-tenant {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-weight: var(--w-medium);
  font-size: var(--t-small);
  letter-spacing: var(--ls-wide);
  border-radius: var(--r-tiny);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-medium) var(--ease-out),
              color var(--dur-medium) var(--ease-out),
              border-color var(--dur-medium) var(--ease-out);
}

.btn:active { transform: scale(0.985); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-mos); }

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--ink); background: var(--surface); }

.btn-large {
  padding: 16px 32px;
  font-size: var(--t-body);
}

/* Arrow icon helper */
.arrow-r::after {
  content: '→';
  font-family: var(--font-mono);
  display: inline-block;
  transition: transform var(--dur-medium) var(--ease-out);
}
.btn:hover .arrow-r::after,
a:hover .arrow-r::after { transform: translateX(3px); }

/* ---- Cards ---- */
.card {
  background: var(--paper);
  border: var(--rule-thin);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--dur-medium) var(--ease-out),
              box-shadow var(--dur-medium) var(--ease-out);
}

.card:hover {
  border-color: var(--rule-strong);
}

.card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-link:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-paper);
}

/* ---- Status pills ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}

.pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill-draft { color: var(--ink-mute); border-color: var(--rule-strong); }
.pill-review { color: var(--signal-blaa); border-color: rgba(58, 85, 112, 0.4); }
.pill-decided { color: var(--signal-gron); border-color: rgba(74, 107, 92, 0.4); }
.pill-required { color: var(--signal-rod); border-color: rgba(160, 64, 48, 0.4); }
.pill-none { color: var(--ink-soft); border-color: var(--rule-strong); }

/* ---- Bilag tag (mono) ---- */
.bilag-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--surface);
  border: var(--rule-thin);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--ink-soft);
  letter-spacing: 0;
}

.bilag-tag.bilag-tag-strong {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---- Form fields (underline pattern, not box) ---- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--font-sans);
  font-weight: var(--w-medium);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-track);
  color: var(--ink-mute);
}

.field-input,
.field-textarea {
  background: transparent;
  border: none;
  border-bottom: var(--rule-strong-line);
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  color: var(--ink);
  width: 100%;
  transition: border-color var(--dur-medium) var(--ease-out);
}

.field-textarea {
  resize: vertical;
  min-height: 100px;
  border: 1px solid var(--rule);
  padding: 12px 14px;
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: var(--lh-relaxed);
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--ink);
  border-bottom-width: 2px;
  margin-bottom: -1px;
}

.field-textarea:focus {
  border-color: var(--accent-mos);
  border-width: 1.5px;
  box-shadow: var(--shadow-focus);
}

.field-hint {
  font-size: var(--t-caption);
  color: var(--ink-mute);
}

/* ---- Radio / choice ---- */
.choice-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}

.choice-option {
  padding: 16px 20px;
  text-align: center;
  background: var(--paper);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: var(--w-medium);
  font-size: var(--t-small);
  letter-spacing: var(--ls-wide);
  color: var(--ink-soft);
  text-transform: uppercase;
  border-right: 1px solid var(--ink);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.choice-option:last-child { border-right: none; }

.choice-option input { display: none; }

.choice-option:hover { background: var(--surface); color: var(--ink); }

.choice-option.checked {
  background: var(--ink);
  color: var(--paper);
}

.choice-option .glyph {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.7;
}

/* ---- Wizard split layout ---- */
.wizard-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1px minmax(0, 1fr);
  min-height: calc(100vh - 200px);
  gap: 0;
}

.wizard-divider {
  background: var(--rule);
  width: 1px;
}

.wizard-left {
  padding: var(--space-7) var(--space-7) var(--space-9) var(--space-9);
  background: var(--paper);
}

.wizard-right {
  padding: var(--space-7) var(--space-9) var(--space-9) var(--space-7);
  background: var(--surface);
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

@media (max-width: 1024px) {
  .wizard-split {
    grid-template-columns: 1fr;
  }
  .wizard-divider { display: none; }
  .wizard-right { position: static; height: auto; }
  .wizard-left, .wizard-right { padding: var(--space-6) var(--margin-page-mobile); }
}

/* ---- Wizard step header ---- */
.wizard-stepbar {
  background: var(--ink);
  color: var(--paper);
  padding: 12px var(--margin-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.wizard-stepbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.wizard-project-ref {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  color: rgba(250, 250, 247, 0.6);
}

.wizard-project-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-light);
  font-size: 18px;
  font-variation-settings: 'opsz' 36, 'SOFT' 70;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  color: rgba(250, 250, 247, 0.8);
}

.wizard-progress-bar {
  width: 200px;
  height: 2px;
  background: rgba(250, 250, 247, 0.2);
  position: relative;
  overflow: hidden;
}

.wizard-progress-bar-fill {
  position: absolute;
  inset: 0;
  background: var(--accent-mos);
  width: 35%;
  transition: width var(--dur-slow) var(--ease-out);
}

/* ---- Criterion (wizard step content) ---- */
.criterion-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
  border-bottom: var(--rule-thin);
  margin-bottom: var(--space-6);
}

.criterion-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.criterion-number {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-light);
  font-size: 64px;
  line-height: 1;
  color: var(--accent-jord);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.criterion-title {
  font-family: var(--font-display);
  font-weight: var(--w-regular);
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  font-variation-settings: 'opsz' 72, 'SOFT' 40;
  max-width: 600px;
}

.criterion-context {
  background: var(--surface);
  border-left: 3px solid var(--accent-mos);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink-soft);
}

.criterion-context strong { color: var(--ink); font-weight: var(--w-medium); }

.criterion-help {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-light);
  font-size: 18px;
  line-height: var(--lh-relaxed);
  color: var(--ink-mute);
  padding: var(--space-4) 0 var(--space-6);
  max-width: 560px;
}

/* ---- AI feedback bubble (right panel) ---- */
.ai-block {
  background: var(--paper);
  border: var(--rule-thin);
  border-left: 3px solid var(--accent-mos);
  padding: var(--space-5);
  position: relative;
  margin-bottom: var(--space-5);
}

.ai-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: var(--rule-thin);
}

.ai-block-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kompas-rose {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ai-block-title {
  font-family: var(--font-sans);
  font-weight: var(--w-medium);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-track);
  color: var(--ink-soft);
}

.ai-block-status {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-block-status::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-mos);
  border-radius: 50%;
  animation: pulse 1.6s var(--ease-in-out) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

.ai-block-body {
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink);
}

.ai-block-body p + p { margin-top: var(--space-3); }

/* Renderet markdown fra den faglige assistent (QA-fix F-006) */
.ai-block-body h4 {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: var(--w-bold);
  color: var(--ink);
  margin: 14px 0 5px;
  letter-spacing: 0;
}
.ai-block-body h4:first-child { margin-top: 0; }
.ai-block-body strong { font-weight: var(--w-bold); color: var(--ink); }
.ai-block-body em { font-style: italic; }
.ai-block-body ul { margin: 6px 0 6px 2px; padding: 0; list-style: none; }
.ai-block-body li { position: relative; padding-left: 16px; margin: 3px 0; }
.ai-block-body li::before {
  content: "–"; position: absolute; left: 0; color: var(--ink-mute);
}
.ai-block-body blockquote {
  background: var(--surface-deep);
  padding: 10px 13px;
  margin: 8px 0;
  font-style: italic;
  font-size: 13px;
  line-height: var(--lh-relaxed);
  border-left: 2px solid var(--accent-jord);
}

/* "Forslag — kræver fagligt review"-mærkning (spec-krav, QA-fix F-007) */
.ai-review-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--w-bold);
  letter-spacing: .01em;
  color: #8a6d1f;
  background: rgba(229, 180, 90, 0.16);
  border: 1px solid rgba(229, 180, 90, 0.34);
  border-radius: 5px;
  padding: 5px 10px;
  margin-bottom: 12px;
}
.ai-review-label::before { content: "⚑"; font-size: 11px; }

.ai-suggestion {
  background: var(--surface-deep);
  padding: 12px 14px;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-light);
  font-size: 15px;
  line-height: var(--lh-relaxed);
  border-left: 2px solid var(--accent-jord);
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}
.typing-dots span {
  width: 5px; height: 5px;
  background: var(--ink-mute);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ---- Geo data strip ---- */
.geo-strip {
  background: var(--paper);
  border: var(--rule-thin);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}

.geo-strip-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.geo-strip-title .t-label { color: var(--ink-soft); }

.geo-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
}

.geo-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 6px;
  border-bottom: var(--rule-thin);
}

.geo-fact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.geo-fact-value {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  font-weight: var(--w-medium);
}

.geo-fact-value.alert { color: var(--signal-rod); }
.geo-fact-value.note { color: var(--signal-amber); }

/* ---- Tips card (right panel) ---- */
.tips-card {
  padding: var(--space-4) 0;
  border-top: var(--rule-thin);
}

.tips-card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-light);
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

.tips-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tips-card li {
  font-size: var(--t-small);
  color: var(--ink-soft);
  line-height: var(--lh-relaxed);
  padding-left: 16px;
  position: relative;
}

.tips-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-mos);
}

/* ---- Wizard footer ---- */
.wizard-footer {
  border-top: var(--rule-thin);
  background: var(--paper);
  padding: var(--space-4) var(--margin-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background-color: rgba(250, 250, 247, 0.92);
}

.autosave-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--ink-mute);
}

.autosave-indicator::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-mos);
  flex-shrink: 0;
}

/* ---- Dashboard project list ---- */
.project-table {
  width: 100%;
  border-collapse: collapse;
}

.project-table thead th {
  text-align: left;
  font-family: var(--font-sans);
  font-weight: var(--w-medium);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-track);
  color: var(--ink-mute);
  padding: 14px 16px;
  border-bottom: var(--rule-normal);
  background: var(--paper);
}

.project-table tbody td {
  padding: 22px 16px;
  border-bottom: var(--rule-thin);
  vertical-align: top;
  background: var(--paper);
  transition: background var(--dur-fast) var(--ease-out);
}

.project-table tbody tr:hover td {
  background: var(--surface);
}

.project-table tbody tr {
  cursor: pointer;
}

.project-title {
  font-family: var(--font-display);
  font-weight: var(--w-regular);
  font-size: 18px;
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
  display: block;
  margin-bottom: 4px;
}

.project-subtitle {
  font-size: 13px;
  color: var(--ink-mute);
}

.project-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

/* ---- Marginalia (editorial sidenote) ---- */
.marginalia {
  position: absolute;
  right: 0;
  width: 220px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-light);
  font-size: 14px;
  line-height: var(--lh-relaxed);
  color: var(--ink-mute);
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent-jord);
}

/* ---- Number-led section marker (atlas-style) ---- */
.section-marker {
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
  padding-top: var(--space-7);
  border-top: 1px solid var(--ink);
}

.section-marker-number {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-light);
  font-size: 96px;
  line-height: 0.9;
  color: var(--accent-jord);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  flex-shrink: 0;
}

.section-marker-title {
  font-family: var(--font-display);
  font-weight: var(--w-regular);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: var(--ls-tight);
  max-width: 600px;
  font-variation-settings: 'opsz' 72, 'SOFT' 40;
}

/* ---- Contour line decorative pattern ---- */
.contour-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 800 600' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23B8B5AA' stroke-width='0.5'%3E%3Cpath d='M 0 100 Q 200 80 400 110 T 800 100' /%3E%3Cpath d='M 0 180 Q 200 150 400 170 T 800 175' /%3E%3Cpath d='M 0 260 Q 200 220 400 240 T 800 245' /%3E%3Cpath d='M 0 340 Q 200 290 400 310 T 800 320' /%3E%3Cpath d='M 0 420 Q 200 380 400 395 T 800 405' /%3E%3Cpath d='M 0 500 Q 200 470 400 480 T 800 490' /%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

/* ---- Hero region (landing) ---- */
.hero {
  position: relative;
  padding: var(--space-10) 0 var(--space-9);
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  color: var(--ink-mute);
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--ink-mute);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: var(--w-light);
  font-size: var(--t-titanic);
  line-height: 0.95;
  letter-spacing: var(--ls-tighter);
  color: var(--ink);
  max-width: 16ch;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

.hero-title em {
  font-style: italic;
  font-weight: var(--w-light);
  color: var(--accent-jord);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-light);
  font-size: 24px;
  line-height: var(--lh-relaxed);
  color: var(--ink-soft);
  max-width: 50ch;
  margin-top: var(--space-5);
  font-variation-settings: 'opsz' 100, 'SOFT' 100;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.hero-meta {
  position: absolute;
  top: var(--space-9);
  right: var(--margin-page);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--ink-mute);
  text-align: right;
  line-height: 1.7;
}

.hero-meta div + div { border-top: 1px solid var(--rule); padding-top: 4px; margin-top: 4px; }

@media (max-width: 768px) {
  .hero-meta { display: none; }
}

/* ---- Three-up steps section ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step-cell {
  padding: var(--space-7) var(--space-5);
  border-right: var(--rule-thin);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.step-cell:last-child { border-right: none; }

.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-mos);
  letter-spacing: var(--ls-track);
  text-transform: uppercase;
}

.step-title {
  font-family: var(--font-display);
  font-weight: var(--w-regular);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: var(--ls-tight);
  font-variation-settings: 'opsz' 36, 'SOFT' 40;
}

.step-body {
  font-size: 14px;
  line-height: var(--lh-relaxed);
  color: var(--ink-soft);
}

/* ---- Value block ---- */
.value-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-7);
  padding: var(--space-7) 0;
  border-bottom: var(--rule-thin);
}

@media (max-width: 768px) {
  .value-block { grid-template-columns: 1fr; gap: var(--space-3); }
}

.value-block-label {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: var(--ls-track);
  padding-top: 8px;
}

.value-block-content h3 {
  font-family: var(--font-display);
  font-weight: var(--w-regular);
  font-size: 28px;
  letter-spacing: var(--ls-tight);
  line-height: 1.2;
  margin-bottom: var(--space-3);
  font-variation-settings: 'opsz' 72, 'SOFT' 40;
}

.value-block-content p {
  font-size: var(--t-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-8) var(--margin-page) var(--space-6);
  margin-top: var(--space-9);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(250, 250, 247, 0.15);
}

@media (max-width: 768px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-light);
  font-size: 32px;
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
  margin-bottom: var(--space-3);
  font-variation-settings: 'opsz' 72, 'SOFT' 80;
}

.footer-tag {
  font-size: 14px;
  color: rgba(250, 250, 247, 0.6);
  max-width: 36ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-track);
  color: rgba(250, 250, 247, 0.5);
  margin-bottom: var(--space-3);
  font-weight: var(--w-medium);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(250, 250, 247, 0.85);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover { color: var(--paper); }

.footer-legal {
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(250, 250, 247, 0.4);
}

/* ---- Page-load animation ---- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.rise { animation: rise var(--dur-slow) var(--ease-out) both; }
.rise-1 { animation: rise var(--dur-slow) var(--ease-out) 60ms both; }
.rise-2 { animation: rise var(--dur-slow) var(--ease-out) 140ms both; }
.rise-3 { animation: rise var(--dur-slow) var(--ease-out) 220ms both; }
.rise-4 { animation: rise var(--dur-slow) var(--ease-out) 300ms both; }
.rise-5 { animation: rise var(--dur-slow) var(--ease-out) 380ms both; }

/* ---- Utility ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
