/*
 * Chartlumo – investor page (/investoren.html).
 * Requires /css/tokens.css and /css/shell.css. Page-specific classes use the prefix inv-.
 * Breakpoints follow the shell: phone ≤ 700px, diagram/roadmap switch to vertical ≤ 900px.
 */

/* ---------- Shared bits ---------- */
/* One-time reveal: content is visible by default; hidden only with JS + motion on, until in view. */
.inv-reveal { transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
:root.has-js[data-motion="on"] .inv-reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }

/* ---------- Hero ---------- */
.inv-hero { padding-block: clamp(48px, 2rem + 5vw, 112px) var(--section-y); }
.inv-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(40px, 2rem + 4vw, 112px); align-items: end;
}
.inv-hero-copy { --stack: var(--s-6); }
.inv-hero .t-display { font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.75rem); }
.inv-facts { margin: 0; display: grid; }
.inv-facts > div { display: grid; gap: 4px; padding-block: 14px; border-top: 1px solid var(--line); }
.inv-facts > div:last-child { border-bottom: 1px solid var(--line); }
.inv-facts dt {
  font-size: var(--fs-label); line-height: 1.3; font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-2);
}
.inv-facts dd { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--text-1); }
.inv-facts .inv-facts-key {
  font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1.1; color: var(--gold);
}

/* ---------- Problem → approach comparison ---------- */
.inv-compare { display: grid; }
.inv-compare-row {
  display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(16px, 1rem + 2vw, 48px); padding-block: 22px; border-top: 1px solid var(--line);
}
.inv-compare-row:last-child { border-bottom: 1px solid var(--line); }
.inv-compare-head { padding-block: 0 14px; border-top: 0; }
.inv-compare-topic { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 500; color: var(--text-1);
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }   /* long German nouns in the narrow first column */
.inv-compare-before { font-size: var(--fs-body); line-height: 1.6; color: var(--text-2); }
.inv-compare-after { font-size: var(--fs-body); line-height: 1.6; color: var(--text-1); position: relative; }

/* ---------- Audiences ---------- */
.inv-audiences {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 1rem + 3vw, 72px);
}
.inv-audience { display: grid; align-content: start; gap: 10px; padding-top: 24px; border-top: 1px solid var(--gold-line); }
.inv-audience-name {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: var(--fs-serif); line-height: 1.15; letter-spacing: -.015em; color: var(--gold);
}
.inv-audience-need { font-size: var(--fs-body); font-weight: 600; color: var(--text-1); }
.inv-situations { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.inv-situations li {
  position: relative; padding-left: 20px;
  font-size: var(--fs-body); line-height: 1.6; color: var(--text-2);
}
.inv-situations li::before {
  content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1.5px; background: var(--gold);
}

/* ---------- Positioning ---------- */
.inv-position { --stack: var(--s-6); }
.inv-not { display: grid; gap: 14px; padding-top: 8px; }
.inv-not-title { font-size: var(--fs-small); font-weight: 600; color: var(--text-1); }
.inv-not-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.inv-not-list li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start;
  font-size: var(--fs-body); line-height: 1.6; color: var(--text-2);
}
.inv-not-list strong { color: var(--text-1); font-weight: 600; }
.inv-not-list svg {
  width: 22px; height: 22px; margin-top: 2px;
  fill: none; stroke: var(--text-2); stroke-width: 1.7; stroke-linecap: round;
}

/* Lumo conversation detail as a card: rounded surface with a fine edge, no phone frame, no demo bar. */
.inv-card { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.inv-card-frame {
  width: min(400px, 100%); padding: clamp(6px, .4rem + .3vw, 10px); border-radius: var(--r-lg);
  background: var(--surface-1); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
}
.inv-card-frame img { width: 100%; height: auto; border-radius: calc(var(--r-lg) - 7px); }

/* ---------- Learn → analyse → test → ask ---------- */
.inv-flow { --dot: 14px; --gap: clamp(24px, 1rem + 1.6vw, 44px); margin: 0; }
.inv-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto 1fr auto;
  gap: 10px var(--gap);
}
/* Subgrid keeps name, text and link rows aligned across the four steps. */
.inv-step {
  position: relative; min-width: 0;
  display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 10px;
  padding-top: calc(var(--dot) + 24px);
}
.inv-step-dot {
  position: absolute; left: 0; top: 0; width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px var(--bg);
}
/* Dashed connector to the next step: not yet directly linked. */
.inv-step.is-next-unlinked::before {
  content: ""; position: absolute; top: calc(var(--dot) / 2 - 1px);
  left: calc(var(--dot) + 12px); right: calc(12px - var(--gap));
  border-top: 2px dashed var(--line-ui);
}
.inv-step-name {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 500; color: var(--text-1);
}
.inv-step-text { font-size: var(--fs-body); line-height: 1.6; color: var(--text-2); }
.inv-step-link {
  align-self: start;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: var(--fs-small); line-height: 1.5; color: var(--text-2);
}
.inv-step-link svg { width: 28px; height: 8px; overflow: visible; transform: translateY(-2px); }
.inv-step-link strong { color: var(--text-1); font-weight: 600; }
.inv-step-link.is-linked strong { color: var(--gold); }

.inv-flow svg line { fill: none; stroke-linecap: round; }
line.is-linked { stroke: var(--gold); stroke-width: 2; }
line.is-unlinked { stroke: var(--line-ui); stroke-width: 1.6; stroke-dasharray: 6 6; }

/* Return path Lumo → learning journey: the one direct link, drawn solid under the steps. */
.inv-return {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap);
  margin-top: 20px; padding-bottom: 14px;
}
.inv-return-line {
  grid-column: 1 / 4; position: relative; height: 30px;
  margin-left: calc(var(--dot) / 2 - 1px); margin-right: calc(-1 * var(--gap) - var(--dot) / 2 - 1px);
  border: 2px solid var(--gold); border-top: 0; border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.inv-return-line::before {          /* arrowhead pointing up to "Learn" */
  content: ""; position: absolute; left: -6px; top: -2px; width: 8px; height: 8px;
  border-left: 2px solid var(--gold); border-top: 2px solid var(--gold); transform: rotate(45deg);
}
.inv-return-label {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  padding: 0 14px; background: var(--bg); white-space: nowrap;
  font-size: var(--fs-small); font-weight: 600; line-height: 1.4; color: var(--gold);
}
.inv-flow-legend {
  display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 28px;
  font-size: var(--fs-caption); line-height: 1.5; color: var(--text-2);
}
.inv-key { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.inv-key svg { width: 40px; height: 8px; flex: none; overflow: visible; }

/* Landscape chart capture: rounded surface with a fine edge instead of a portrait phone frame. */
.inv-shot { margin: clamp(48px, 2rem + 3vw, 80px) 0 0; display: grid; gap: 14px; }
.inv-shot-frame {
  padding: clamp(6px, .4rem + .4vw, 12px); border-radius: var(--r-lg);
  background: var(--surface-1); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
}
.inv-shot-frame img { width: 100%; height: auto; border-radius: calc(var(--r-lg) - 8px); background: var(--device-bezel); }
.inv-shot-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  font-size: var(--fs-caption); line-height: 1.5; color: var(--text-3);
}
.inv-data-note { color: var(--text-2); }

/* ---------- Business model ---------- */
.inv-model {
  margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
}
.inv-tier {
  display: grid; align-content: center; gap: 10px;
  padding: clamp(24px, 1rem + 2vw, 40px); border-radius: var(--r-lg);
  background: var(--surface-1); border: 1px solid var(--line-strong);
}
.inv-tier--paid { border-color: var(--gold-line); }
.inv-tier-name { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 500; color: var(--text-1); }
.inv-tier--paid .inv-tier-name { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.625rem; color: var(--gold); }
.inv-tier-text { font-size: var(--fs-body); line-height: 1.6; color: var(--text-2); }
.inv-tier-pool {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 16px;
  padding: 28px clamp(20px, 1rem + 1vw, 32px); text-align: center;
}
/* Dashed connectors to both sides: allocation goes either way, not decided. */
.inv-tier-pool::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1.5px dashed var(--line-ui); z-index: 0;
}
.inv-pool-label, .inv-chips { position: relative; z-index: 1; }
.inv-pool-label {
  padding: 3px 12px; border-radius: var(--r-pill); border: 1px dashed var(--line-ui);
  background: var(--bg-alt); font-size: var(--fs-caption); font-weight: 600; color: var(--text-2);
}
.inv-chips {
  list-style: none; margin: 0; padding: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  border-radius: var(--r-md); background: var(--bg-alt);
}
.inv-chips li {
  padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--surface-1); font-size: var(--fs-small); line-height: 1.3; color: var(--text-1); white-space: nowrap;
}


/* ---------- Development status ---------- */
.inv-stages { display: grid; gap: 22px; margin-top: 4px; }
.inv-stage { display: grid; gap: 12px; }
.inv-stage + .inv-stage { padding-top: 22px; border-top: 1px solid var(--line); }
.inv-stage-head { font-size: inherit; line-height: 1; }
.inv-stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inv-stage-list li {
  position: relative; padding-left: 20px;
  font-size: var(--fs-body); line-height: 1.5; color: var(--text-1); font-variant-numeric: tabular-nums lining-nums;
}
.inv-stage-list li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--line-ui);
}
.inv-stage-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.inv-stage-list--cols li { color: var(--text-2); }

/* ---------- Roadmap ---------- */
.inv-road {
  --dot: 14px;
  position: relative; margin: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: clamp(24px, 1rem + 2vw, 48px);
  align-items: start;
}
/* The axis from today to the release: dashed, because the way there is still being built. */
.inv-road::before {
  content: ""; position: absolute; top: calc(var(--dot) / 2 - 1px); left: calc(var(--dot) / 2); right: calc(var(--dot) / 2);
  border-top: 2px dashed var(--gold-line);
}
.inv-road-end { position: relative; display: grid; gap: 6px; min-width: 120px; }
.inv-road-end--release { justify-items: end; text-align: right; }
.inv-road-dot {
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--text-1); box-shadow: 0 0 0 5px var(--bg-alt);
  margin-bottom: 14px;
}
.inv-road-end--release .inv-road-dot { background: var(--bg-alt); border: 2px solid var(--gold); }
.inv-road-when {
  font-size: var(--fs-label); line-height: 1.3; font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-2);
}
.inv-road-what { font-size: var(--fs-h3); line-height: 1.2; color: var(--text-1); }
.inv-road-end--release .inv-road-what {
  font-family: var(--serif); font-style: italic; font-size: var(--fs-serif); line-height: 1.1; color: var(--gold);
}
.inv-road-tracks {
  list-style: none; margin: calc(var(--dot) + 40px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(20px, 1rem + 1.5vw, 40px);
}
.inv-road-tracks li {
  display: grid; align-content: start; gap: 6px;
  padding: 2px 0 0 18px; border-left: 1px dashed var(--line-ui);
}
.inv-track-name { font-size: var(--fs-body); font-weight: 600; line-height: 1.4; color: var(--text-1); }
.inv-track-text { font-size: var(--fs-small); line-height: 1.55; color: var(--text-2); }

/* ---------- Economic drivers ---------- */
.inv-drivers {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 1rem + 4vw, 96px);
}
.inv-driver-group { display: grid; align-content: start; gap: 6px; }
.inv-driver-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--gold-line);
  font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 500; color: var(--text-1);
}
.inv-driver-op {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--gold); font-size: 1.125rem; line-height: 1; font-weight: 500;
}

/* ---------- Founders ---------- */
.inv-team {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 2rem + 4vw, 112px); align-items: center;
}
.inv-roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inv-roles li { display: grid; gap: 8px; padding: 28px 24px 28px 0; border-top: 1px solid var(--gold-line); }
.inv-roles li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.inv-role {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  line-height: 1.1; color: var(--gold); letter-spacing: -.01em;
}
.inv-role-sub { font-size: var(--fs-small); color: var(--text-2); }

/* ---------- Contact ---------- */
.inv-contact { padding-bottom: clamp(56px, 2rem + 3vw, 96px); }   /* compact gap before the footer */
.inv-contact-inner { --stack: var(--s-6); }
.inv-contact-actions { gap: 12px 28px; }

/* ---------- Tablet / narrow: vertical diagram + roadmap ---------- */
@media (max-width: 900px) {
  .inv-steps { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 32px; }
  .inv-step { grid-row: auto; grid-template-rows: none; padding: 0 0 0 36px; }
  .inv-step-dot { top: 7px; }
  .inv-step.is-next-unlinked::before {
    top: calc(7px + var(--dot) + 8px); bottom: -24px; left: calc(var(--dot) / 2 - 1px); right: auto;
    border-top: 0; border-left: 2px dashed var(--line-ui);
  }
  .inv-return { display: none; }

  .inv-road { grid-template-columns: minmax(0, 1fr); padding-left: 34px; row-gap: 0; }
  .inv-road::before {
    top: calc(var(--dot) / 2); bottom: auto; left: calc(var(--dot) / 2 - 1px); right: auto;
    height: calc(100% - var(--dot) * 2.2); border-top: 0; border-left: 2px dashed var(--gold-line);
  }
  .inv-road-end { min-width: 0; }
  .inv-road-end--release { justify-items: start; text-align: left; }
  .inv-road-dot { position: absolute; left: -34px; top: 0; margin: 0; }
  .inv-road-end--release .inv-road-dot { top: 2px; }
  .inv-road-when { padding-top: 0; }
  .inv-road-tracks { margin: 28px 0 32px; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .inv-road-tracks li { border-left: 0; padding-left: 0; }
}

@media (max-width: 1024px) and (min-width: 701px) {
  .inv-status-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
}
@media (max-width: 1024px) {
  .inv-model { grid-template-columns: minmax(0, 1fr); }
  .inv-tier-pool { padding: 24px 0; }
  .inv-tier-pool::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px dashed var(--line-ui); }
}

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  .inv-hero-grid, .inv-team, .inv-drivers { grid-template-columns: minmax(0, 1fr); }
  .inv-hero .btn-row { flex-direction: column; align-items: stretch; }
  .inv-compare-head { display: none; }
  .inv-compare-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 20px; }
  .inv-compare-row:nth-child(2) { border-top: 1px solid var(--line); }
  .inv-compare-before { font-size: var(--fs-small); }
  .inv-compare-after { padding-left: 22px; }
  .inv-compare-after::before {          /* drawn chevron: "becomes" */
    content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px;
    border-top: 1.6px solid var(--gold); border-right: 1.6px solid var(--gold); transform: rotate(45deg);
  }
  .inv-audiences { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .inv-shot-caption { display: grid; }
  /* Phone: show the right half (position, labels, price axis) larger instead of the whole capture tiny. */
  .inv-shot-frame img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 100% 50%; }
  .inv-chips li { white-space: normal; }
  .inv-roles li { padding-right: 12px; }
  .inv-roles li + li { padding-left: 16px; }
  .inv-contact-actions { flex-direction: column; align-items: stretch; }
  .inv-contact-actions .link-arrow { justify-content: center; }
}
