/* ==========================================================================
   FinCore by Gradien — public landing page (public/fincore/).
   Loaded on top of /styles/design-system.css tokens/components only (no
   Core marketing stylesheets, no Gradien company-page stylesheet) — this
   page has its own header, footer, and section system, following the same
   "bespoke one-pager" pattern as public/index.html (see gradien-home.css).
   See docs/fincore-site-implementation.md.
   ========================================================================== */

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

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

body { background: var(--white); overflow-x: clip; }

/* Anchor targets sit under the fixed header. */
#top, #product, #cockpit, #dealflow, #portfolio, #control, #adaptation, #demo {
  scroll-margin-top: 88px;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.fincore-header {
  position: sticky;
  top: 0;
  inset-inline: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--white) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
/* Nearly-transparent over the hero until scrolled; a quiet near-solid
   surface after (no backdrop-filter/glassmorphism, and no fixed-position
   containing-block side effect for the mobile panel below). */
.fincore-header:not(.is-scrolled) {
  background: color-mix(in srgb, var(--white) 35%, transparent);
  border-bottom-color: transparent;
}
.fincore-header.is-scrolled {
  background: color-mix(in srgb, var(--white) 97%, transparent);
  border-bottom-color: var(--border-subtle);
}
.fincore-header__bar { height: 68px; }
.fincore-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--space-3); }

.fincore-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.fincore-header__brand img { display: block; }
.fincore-header__brand-text { display: inline-flex; align-items: baseline; gap: 6px; }
.fincore-header__brand-name { font-size: var(--text-ui); font-weight: var(--weight-medium); letter-spacing: -0.01em; color: var(--ink); }
.fincore-header__brand-by { font-size: var(--text-xs); color: var(--text-tertiary); }

.fincore-header__nav { display: none; align-items: center; gap: var(--space-4); }
.fincore-header__link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: 6px 0;
  transition: color var(--duration-fast) var(--ease-out);
}
.fincore-header__link:hover { color: var(--ink); }
.fincore-header__link.is-active { color: var(--ink); }
.fincore-header__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--signal-blue);
}

.fincore-header__actions { display: none; align-items: center; gap: var(--space-3); }
.fincore-header__signin {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
}
.fincore-header__signin:hover { color: var(--ink); }

.fincore-header__toggle {
  appearance: none; background: none; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap-min); height: var(--tap-min);
  color: var(--ink); cursor: pointer;
}
.fincore-icon-close { display: none; }
.fincore-header.is-menu-open .fincore-icon-menu { display: none; }
.fincore-header.is-menu-open .fincore-icon-close { display: block; }

.fincore-header__mobile {
  position: fixed;
  inset: 0;
  top: 68px;
  z-index: 79;
  background: var(--white);
  padding: var(--space-4) var(--gutter) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.fincore-header__mobile[hidden] { display: none; }
.fincore-header__mobile-nav { display: flex; flex-direction: column; }
.fincore-header__mobile-nav a {
  display: flex; align-items: center;
  min-height: var(--tap-min);
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
}
.fincore-header__mobile-nav a.is-active { color: var(--signal-blue-ink); }
.fincore-header__mobile-actions { display: flex; flex-direction: column; gap: var(--space-2); }
.fincore-header__mobile-signin {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--tap-min);
  font-size: var(--text-ui); font-weight: var(--weight-medium);
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
}

html.fincore-menu-open, html.fincore-menu-open body { overflow: hidden; }

@media (min-width: 900px) {
  .fincore-header__nav { display: flex; }
  .fincore-header__actions { display: flex; }
  .fincore-header__toggle { display: none; }
  .fincore-header__mobile { display: none !important; }
}

/* ==========================================================================
   Shared section scaffolding
   ========================================================================== */
.fincore-section-inner { display: flex; flex-direction: column; gap: var(--space-6); }
.fincore-eyebrow-row { display: flex; align-items: center; gap: 10px; }

/* ==========================================================================
   Scene / step choreography — always-visible step text (rule_scenes-safe,
   no essential information lives only in motion). JS cycles a decorative
   ".is-current" highlight between steps, playing once and settling on
   the final step. Reduced motion (or no JS) simply leaves every step
   statically visible with no cycling at all.
   ========================================================================== */
.fincore-scene { display: flex; flex-direction: column; gap: var(--space-3); }
.fincore-scene__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* Compact two-column layout for longer step lists (the hero's 8-step
   sequence) so the list doesn't dominate the column's height. */
@media (min-width: 640px) {
  .fincore-scene__steps--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
}
.fincore-scene__step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);
}
.fincore-scene__steps--grid .fincore-scene__step { padding: 10px 12px; }
.fincore-scene__step-num {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.fincore-scene__step-text { font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-body); margin: 0; padding-top: 3px; }
.fincore-scene__steps--grid .fincore-scene__step-text { font-size: var(--text-xs); }
html.js .fincore-scene__step.is-current { border-color: var(--signal-blue); background: color-mix(in srgb, var(--signal-blue) 6%, white); }
html.js .fincore-scene__step.is-current .fincore-scene__step-num { background: var(--signal-blue); color: var(--white); }
/* Every step's text stays visible at all times here (see comment above) —
   counteract the sitewide [data-scene] [data-step-in] hide/reveal default
   in design-system.css, which is built for a different, progressive-reveal
   scene pattern. Matches on specificity (0,3,1) and wins on source order
   since this file loads after design-system.css. */
html.js .fincore-scene .fincore-scene__step { opacity: 1; transform: none; }

/* ==========================================================================
   Product screenshot frame (authentic FinCore UI captures)
   ========================================================================== */
.fincore-shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.fincore-shot img { display: block; width: 100%; height: auto; }
.fincore-shot__caption {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}
.fincore-shot__caption svg { flex: none; color: var(--signal-blue-ink); }
.fincore-shot--sm { max-width: 560px; }

/* ==========================================================================
   Hero (#top)
   ========================================================================== */
.fincore-hero { position: relative; padding-top: clamp(108px, 14vw, 168px); padding-bottom: var(--section-y-tight); background: linear-gradient(180deg, var(--surface-soft) 0%, var(--white) 62%); }
/* Both columns start at the same baseline — centering the short text
   column against the much taller visual column (screenshot + inputs +
   scene) pushed the headline and CTAs down far enough to fall below the
   fold on ordinary laptop-height viewports. */
.fincore-hero__grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.fincore-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.fincore-hero__title {
  /* Smaller than the token's full display scale on purpose: at 6rem this
     five-word headline wrapped to 5-6 lines and pushed the lead copy and
     CTAs below the fold on ordinary laptop-height viewports. */
  font-size: clamp(2.25rem, 3.6vw, 3.75rem);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  max-width: 17ch;
  margin: 0;
}
.fincore-hero__lead { font-size: var(--text-lead); line-height: var(--leading-snug); color: var(--text-muted); max-width: 46ch; margin: var(--space-1) 0 0; }
.fincore-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.fincore-hero__qualifier { font-size: var(--text-sm); color: var(--text-tertiary); margin: var(--space-1) 0 0; }

.fincore-hero__visual { position: relative; }
.fincore-hero__inputs { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fincore-hero__input {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs);
  color: var(--ink-body);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 6px 12px;
  box-shadow: var(--shadow-sm);
}
.fincore-hero__input svg { color: var(--signal-blue-ink); flex: none; }
html.js .fincore-hero__input {
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js .fincore-hero__inputs.is-in .fincore-hero__input { opacity: 1; transform: none; }
.fincore-hero__proposal {
  margin-top: var(--space-3);
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.fincore-hero__proposal svg { flex: none; color: #3B6B14; }
.fincore-hero__proposal p { margin: 0; font-size: var(--text-sm); color: var(--ink-body); }
.fincore-hero__proposal strong { font-weight: var(--weight-medium); }

@media (max-width: 1000px) {
  .fincore-hero__grid { grid-template-columns: 1fr; }
  .fincore-hero__visual { order: 2; }
  .fincore-hero__title { max-width: none; }
}
@media (max-width: 640px) {
  .fincore-hero { padding-top: clamp(96px, 22vw, 130px); }
  .fincore-hero__title { font-size: clamp(2.25rem, 9vw, 3rem); }
  /* Mobile hero: no more than three incoming-input chips, and a
     purpose-built crop of the Action Inbox screenshot (zoomed into the
     proposal cards) instead of the full 16:9 frame shrunk illegibly small. */
  .fincore-hero__input:nth-child(n+4) { display: none; }
  .fincore-hero__visual .fincore-shot { aspect-ratio: 4 / 3.6; }
  .fincore-hero__visual .fincore-shot img { height: 100%; object-fit: cover; object-position: 32% 22%; }
}

/* ==========================================================================
   How FinCore works (#product) — Capture -> Structure -> Prepare -> Review -> Update
   ========================================================================== */
.fincore-loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); counter-reset: fincore-step; margin-top: var(--space-6); }
.fincore-loop__step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: var(--space-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.fincore-loop__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-card); color: var(--ink); flex: none; }
.fincore-loop__title { font-size: var(--text-title); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight); color: var(--text-primary); margin: 0; }
.fincore-loop__body { font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-muted); margin: 0; }
.fincore-loop__arrow { display: none; }
@media (min-width: 861px) {
  /* Line passes through the icon circle's vertical center (padding-top
     24px + half the 40px icon = 44px) and spans exactly the grid gap
     between adjacent cards, edge to edge. */
  .fincore-loop__step:not(:last-child)::after {
    content: ''; position: absolute; top: 44px; right: calc(-1 * var(--space-2));
    width: var(--space-2); height: 1px; background: var(--border-strong);
  }
}
@media (max-width: 860px) {
  .fincore-loop { grid-template-columns: 1fr; }
}

.fincore-objectflow { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.fincore-objectflow__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fincore-objectflow__chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-family: var(--font-mono);
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 6px 12px;
  color: var(--ink-body);
}
.fincore-objectflow__chip--proposed { border-style: dashed; color: var(--text-secondary); }
.fincore-objectflow__chip--approved { background: color-mix(in srgb, var(--signal-green) 22%, white); border-color: transparent; color: #3B6B14; }
.fincore-objectflow__sep { color: var(--text-soft); flex: none; }

/* ==========================================================================
   Daily operating cockpit (#cockpit) — coded Home Dashboard composition,
   built from the real FinCore chrome (sidebar nav + topbar) rather than a
   generic card. [data-cockpit-item] / [data-cockpit-counter] progressively
   reveal once via IntersectionObserver in fincore-sections.js: the HTML
   ships with the final state (every item visible, counters at their
   settled values, the top item already flagged) so no-JS and
   prefers-reduced-motion visitors see the correct end state immediately.
   ========================================================================== */
.fincore-cockpit__frame {
  display: grid; grid-template-columns: 208px 1fr;
  border: 1px solid var(--line); border-radius: var(--radius-2xl); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--white);
}
.fincore-cockpit__sidebar {
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-3) var(--space-2); background: var(--surface-soft);
  border-right: 1px solid var(--line);
}
.fincore-cockpit__brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: var(--weight-medium); font-size: var(--text-sm); color: var(--ink);
  padding: 4px 10px var(--space-2);
}
.fincore-cockpit__nav { display: flex; flex-direction: column; gap: 2px; }
.fincore-cockpit__nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: var(--text-sm); color: var(--text-muted);
  padding: 7px 10px; border-radius: var(--radius-sm);
}
.fincore-cockpit__nav-item.is-active { background: var(--surface-hover); color: var(--ink); font-weight: var(--weight-medium); }
.fincore-cockpit__nav-item.is-disabled { color: var(--text-soft); }
.fincore-cockpit__nav-badge {
  font-family: var(--font-mono); font-size: 10px; line-height: 1; color: var(--white);
  background: var(--signal-blue); border-radius: var(--radius-pill); padding: 3px 6px;
  font-variant-numeric: tabular-nums;
}
.fincore-cockpit__nav-later-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-soft); margin: var(--space-2) 0 2px; padding: 0 10px;
}
.fincore-cockpit__user {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding: var(--space-2) 10px 4px; border-top: 1px solid var(--line);
}
.fincore-cockpit__user-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--ink); color: var(--white); font-size: 11px; font-weight: var(--weight-medium);
}
.fincore-cockpit__user-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fincore-cockpit__user-info strong { font-size: 12px; font-weight: var(--weight-medium); color: var(--ink); }
.fincore-cockpit__user-info small { font-size: 11px; color: var(--text-tertiary); }

.fincore-cockpit__main { display: flex; flex-direction: column; min-width: 0; }
.fincore-cockpit__topbar {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.fincore-cockpit__fund { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--ink); white-space: nowrap; flex: none; }
.fincore-cockpit__search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 7px 12px; color: var(--text-soft); font-size: var(--text-sm);
}
.fincore-cockpit__search svg { flex: none; }
.fincore-cockpit__search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fincore-cockpit__kbd {
  display: flex; align-items: center; gap: 4px; flex: none;
  font-size: var(--text-xs); color: var(--text-tertiary); white-space: nowrap;
}
.fincore-cockpit__kbd kbd {
  font-family: var(--font-mono); font-size: 10px; border: 1px solid var(--line);
  border-radius: var(--radius-xs); padding: 2px 6px; background: var(--surface-soft);
}
.fincore-cockpit__icon-btn { display: inline-flex; color: var(--text-soft); flex: none; }
.fincore-cockpit__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.fincore-cockpit__command {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px 14px; background: var(--surface-soft);
}
.fincore-cockpit__command svg { flex: none; color: var(--text-soft); }
.fincore-cockpit__command span { font-size: var(--text-sm); color: var(--ink-body); }
.fincore-cockpit__answer {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 14px 16px; background: var(--white);
}
.fincore-cockpit__answer-label {
  font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-tertiary); margin: 0 0 8px;
}
.fincore-cockpit__answer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.fincore-cockpit__answer li {
  font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--ink-body);
  border-left: 3px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 2px 0 2px 8px; margin-left: -8px;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out),
              border-color .35s var(--ease-out), background-color .35s var(--ease-out);
}
.fincore-cockpit__answer li:first-child {
  border-left-color: var(--signal-blue);
  background: color-mix(in srgb, var(--signal-blue) 6%, white);
}
html.js .fincore-cockpit__answer li { opacity: 0; transform: translateY(6px); }
html.js .fincore-cockpit__answer li.is-in { opacity: 1; transform: none; }
html.js .fincore-cockpit__answer li:first-child:not(.is-emphasized) {
  border-left-color: transparent; background: transparent;
}
.fincore-cockpit__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.fincore-cockpit__card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column; gap: 6px; background: var(--white); }
.fincore-cockpit__card-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.fincore-cockpit__card-value { font-size: var(--text-h3); font-weight: var(--weight-medium); color: var(--text-primary); letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
.fincore-cockpit__card-sub { font-size: var(--text-sm); color: var(--text-muted); }

@media (max-width: 760px) {
  .fincore-cockpit__frame { grid-template-columns: 1fr; }
  .fincore-cockpit__sidebar { display: none; }
  .fincore-cockpit__kbd { display: none; }
}
@media (max-width: 500px) {
  .fincore-cockpit__grid { grid-template-columns: 1fr; }
  .fincore-cockpit__fund { display: none; }
}

/* ==========================================================================
   Journey / stage list — shared by Dealflow (#dealflow) and Portfolio
   (#portfolio): one continuous workflow, not disconnected feature cards.
   Two-column layout: the section intro stays sticky in the left column
   while the stage-by-stage visual runs down the right column, the same
   sticks-then-releases pattern as .fincore-demo__intro.
   ========================================================================== */
.fincore-journey-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); align-items: start; }
.fincore-journey-intro { position: sticky; top: 96px; }
.fincore-journey-panel { min-width: 0; }
@media (max-width: 900px) {
  .fincore-journey-layout { grid-template-columns: 1fr; gap: var(--space-5); }
  .fincore-journey-intro { position: static; }
}

.fincore-journey { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-6); position: relative; }
.fincore-journey::before {
  content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px; background: var(--border-subtle);
}
.fincore-journey__stage { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); }
.fincore-journey__marker {
  position: relative; z-index: 1; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-secondary);
}
.fincore-journey__content { display: flex; flex-direction: column; gap: var(--space-2); }
.fincore-journey__title { font-size: var(--text-h3); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight); color: var(--text-primary); margin: 0; }
.fincore-journey__body { font-size: var(--text-body); line-height: var(--leading-snug); color: var(--text-muted); margin: 0; max-width: 62ch; }
.fincore-journey__visual { margin-top: var(--space-2); max-width: 640px; }
.fincore-journey__list { margin: 4px 0 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 4px; }
.fincore-journey__list li { font-size: var(--text-sm); color: var(--text-body); }

/* Compact coded cards used within journey stages that have no authentic screenshot */
.fincore-card { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--white); padding: var(--space-3); box-shadow: var(--shadow-sm); }
.fincore-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: 10px; }
.fincore-card__badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--text-xs); background: var(--ink); color: var(--white); border-radius: var(--radius-pill); padding: 4px 10px; }
.fincore-card__conf { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-tertiary); }
.fincore-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding: 6px 0; border-top: 1px solid var(--line); }
.fincore-card__row:first-of-type { border-top: none; }
.fincore-card__row dt { font-size: var(--text-sm); color: var(--text-tertiary); }
.fincore-card__row dd { font-size: var(--text-sm); color: var(--ink-body); font-weight: var(--weight-medium); margin: 0; text-align: right; }
.fincore-card__flag { font-size: var(--text-xs); color: var(--text-soft); font-weight: var(--weight-regular); }
.fincore-card__note { margin: 10px 0 0; font-size: var(--text-sm); color: var(--text-muted); border-top: 1px solid var(--line); padding-top: 10px; }
.fincore-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (max-width: 640px) {
  .fincore-journey__marker { width: 32px; height: 32px; font-size: var(--text-xs); }
  .fincore-journey__stage { grid-template-columns: 32px minmax(0, 1fr); }
  .fincore-journey::before { left: 15px; }
}

/* ==========================================================================
   Action Inbox and Control (#control)
   ========================================================================== */
.fincore-control__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; margin-top: var(--space-6); }
.fincore-control__proposal { max-width: 420px; }
.fincore-trustpoints { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.fincore-trustpoint { display: flex; flex-direction: column; gap: 8px; padding: var(--space-3); background: var(--surface-card); border-radius: var(--radius-xl); }
.fincore-trustpoint__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--ink); }
.fincore-trustpoint h3 { font-size: var(--text-body-lg); font-weight: var(--weight-medium); margin: 0; color: var(--text-primary); }
.fincore-trustpoint p { margin: 0; font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-snug); }

/* Compact audit-log excerpt, standing in for a full audit-trail screenshot */
.fincore-auditlog { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--white); padding: var(--space-3) var(--space-4); margin-top: var(--space-5); max-width: 720px; }
.fincore-auditlog__label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin: 0 0 var(--space-2); }
.fincore-auditlog__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fincore-auditlog__entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-2); padding: 10px 0; border-top: 1px solid var(--line); }
.fincore-auditlog__entry:first-child { border-top: none; }
.fincore-auditlog__detail { font-size: var(--text-sm); color: var(--ink-body); }
.fincore-auditlog__detail strong { font-weight: var(--weight-medium); color: var(--text-primary); }
.fincore-auditlog__time { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-soft); white-space: nowrap; }

@media (max-width: 900px) {
  .fincore-control__grid { grid-template-columns: 1fr; }
  .fincore-trustpoints { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Adaptation to the fund (#adaptation)
   ========================================================================== */
.fincore-config { border: 1px solid var(--line); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--white); margin-top: var(--space-6); }
.fincore-config__chrome { display: flex; align-items: center; gap: var(--space-2); padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-soft); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.fincore-config__body { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); padding: var(--space-4); }
.fincore-config__panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3); display: flex; flex-direction: column; gap: 8px; }
.fincore-config__panel h3 { font-size: var(--text-sm); font-weight: var(--weight-medium); margin: 0; color: var(--text-primary); }
.fincore-config__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fincore-config__list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--text-sm); color: var(--ink-body); padding: 7px 10px; background: var(--surface-soft); border-radius: var(--radius-sm); }
.fincore-config__list li.is-changed { background: color-mix(in srgb, var(--signal-blue) 8%, white); border: 1px solid color-mix(in srgb, var(--signal-blue) 30%, transparent); }
.fincore-config__tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-soft); }
@media (max-width: 760px) {
  .fincore-config__body { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Demo section (#demo)
   ========================================================================== */
.fincore-demo__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); align-items: start; }
.fincore-demo__intro { position: sticky; top: 96px; }
.fincore-demo__panel { min-width: 0; }
.fincore-demo__form { display: flex; flex-direction: column; gap: var(--space-3); background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); padding: var(--space-5); }
.fincore-demo__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.fincore-demo__row > .gr-field { min-width: 0; }
.fincore-demo__optional { font-weight: var(--weight-regular); color: var(--text-tertiary); font-size: var(--text-xs); }
.fincore-demo__status { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; }
.fincore-demo-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-fincore-conditional][hidden] { display: none; }
.fincore-demo__confirmation, .fincore-demo__failure {
  margin-top: var(--space-4);
  background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl);
  padding: var(--space-5);
}
.fincore-demo__confirmation h3 { font-size: var(--text-h3); margin: var(--space-1) 0; }
.fincore-demo__confirmation p { color: var(--text-secondary); }
.fincore-demo__failure { color: var(--text-secondary); }
.fincore-demo__scheduling { margin-top: var(--space-3); }

@media (max-width: 900px) {
  .fincore-demo__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .fincore-demo__intro { position: static; }
}
@media (max-width: 640px) {
  .fincore-demo__row { grid-template-columns: 1fr; }
  .fincore-demo__form { padding: var(--space-4); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.fincore-footer { border-top: 1px solid var(--border-subtle); background: var(--surface-soft); padding-block: var(--space-6); }
.fincore-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); align-items: flex-start; }
.fincore-footer__brand { display: flex; flex-direction: column; gap: var(--space-2); max-width: 320px; }
.fincore-footer__logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: var(--weight-medium); }
.fincore-footer__statement { color: var(--text-secondary); font-size: var(--text-sm); margin: 0; }
.fincore-footer__cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.fincore-footer__col-title { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 var(--space-2); }
.fincore-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fincore-footer__list a { font-size: var(--text-sm); color: var(--text-secondary); text-decoration: none; }
.fincore-footer__list a:hover { color: var(--ink); }
.fincore-footer__legal { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.fincore-footer__copyright { font-size: var(--text-xs); color: var(--text-tertiary); }
.fincore-footer__legal-links { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.fincore-footer__legal-links a { font-size: var(--text-xs); color: var(--text-tertiary); text-decoration: none; }
.fincore-footer__legal-links a:hover { color: var(--ink); }

@media (max-width: 700px) {
  .fincore-footer__inner { flex-direction: column; }
}

/* ==========================================================================
   Legal pages (/fincore/privacy/, /fincore/terms/) and 404
   ========================================================================== */
.fincore-legal-hero { padding-top: clamp(120px, 12vw, 160px); padding-bottom: var(--space-5); }
.fincore-legal-hero h1 { font-size: var(--text-h1); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight); margin: var(--space-2) 0 var(--space-2); }
.fincore-legal-updated { font-size: var(--text-sm); color: var(--text-tertiary); margin: 0 0 var(--space-3); }
.fincore-legal-notice { font-size: var(--text-body); color: var(--text-muted); max-width: var(--measure); margin: 0; }
.fincore-legal-body { display: flex; flex-direction: column; gap: var(--space-5); padding-bottom: var(--section-y-tight); }
.fincore-legal-section h2 { font-size: var(--text-h3); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight); margin: 0 0 var(--space-2); }
.fincore-legal-section p, .fincore-legal-section li { font-size: var(--text-body); line-height: var(--leading-body); color: var(--ink-body); max-width: var(--measure); }
.fincore-legal-section ul { padding-left: 1.2em; }
.fincore-legal-flag { color: var(--text-soft); font-size: var(--text-sm); font-style: italic; }

.fincore-error { padding-top: clamp(120px, 14vw, 180px); padding-bottom: var(--section-y); text-align: center; }
.fincore-error__visual { margin: 0 auto var(--space-4); width: 96px; height: 96px; position: relative; }
.fincore-error__visual svg { width: 100%; height: 100%; }
.fincore-error h1 { font-size: var(--text-h1); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight); margin: 0 0 var(--space-2); }
.fincore-error p { font-size: var(--text-body); color: var(--text-muted); max-width: 46ch; margin: 0 auto var(--space-4); }
.fincore-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* ==========================================================================
   Reduced motion: all product-loop / hero-input / config staggered
   entrances resolve to their final state immediately.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.js .fincore-hero__input,
  html.js .fincore-scene__step,
  html.js .fincore-cockpit__answer li { opacity: 1 !important; transform: none !important; }
}
