/* =====================================================================
   TenderAlert how-it-works page (page-how-it-works.css). Loads after site.css.
   Composition = live (change register 2026-10-20): stacked hero; the three
   steps as a horizontal timeline (numbered navy dots on one line; phone:
   three centred blocks, like live); a line down to the drawn brain-and-
   circuit icon (live icon, redrawn in navy) with the caption on its right; the feature accordion on one white card; three source cards.
   Shared blocks (sub-page hero, showcase, number bar, market figures,
   offer/logos/faq rhythm) live in site.css.
   ===================================================================== */

/* ---------- Hero: stacked like live (h1 on two lines, subtitle below) ---------- */
.page-hero { padding-bottom: 88px; }
.page-hero .h1 .accent { display: block; }

/* ---------- Steps: horizontal timeline ---------- */
.how-steps { padding: 100px 0 0; }
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; max-width: 1040px; margin: 0 auto; }
/* the line runs from the edge of dot 1 to the edge of dot 3, behind the dots */
.steps-grid::before {
  content: ''; position: absolute; top: 25px; height: 2px; background: var(--navy); border-radius: 2px;
  left: calc((100% - 96px) / 6 + 30px); right: calc((100% - 96px) / 6 + 30px);
}
/* main.js fades .step-card in on scroll; the steps sit high on the page, so show them at once */
.step-card { opacity: 1 !important; transform: none !important; transition: none !important; position: relative; text-align: center; }
.step-number {
  position: relative; z-index: 1; width: 52px; height: 52px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--navy); color: #fff; box-shadow: 0 0 0 6px var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums;
}
.step-card h3 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; color: var(--navy); }
.step-card p { margin: 10px auto 0; max-width: 300px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Connector: line down from step 2, the drawn icon (live brain + circuit, navy line art), line on to the accordion ---------- */
.connector-wrapper { display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
.connector-line { width: 2px; height: 72px; background: rgba(15, 42, 74, .22); border-radius: 2px; }
.connector-ai-icon-row { position: relative; display: flex; justify-content: center; }
.connector-ai-icon {
  width: 92px; height: 92px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px var(--line); /* quiet white circle, no drop shadow */
}
.connector-ai-icon svg { width: 60px; height: 60px; overflow: visible; }
.connector-ai-icon .icon-lines { fill: none; stroke: var(--navy); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.connector-ai-icon text { font-family: var(--sans); font-weight: 650; font-size: 72px; letter-spacing: -1px; fill: var(--navy); }
/* caption right of the icon, like live */
.connector-magic-text {
  position: absolute; left: calc(50% + 62px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-size: 16px; font-style: italic; font-weight: 500; color: var(--muted);
}

/* ---------- Feature accordion on one white card (js toggles .open + aria-expanded) ---------- */
.how-features { padding: 20px 0 100px; }
.accordion { max-width: 624px; margin: 0 auto; padding: 0 36px; background: var(--white); border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(15, 42, 74, .04); }
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }
.accordion-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--navy);
}
.accordion-title { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.018em; transition: color .2s; }
.accordion-header:hover .accordion-title { color: var(--accent); }
.accordion-icon { flex-shrink: 0; color: var(--navy); display: flex; }
.accordion-icon svg { width: 22px; height: 22px; }
.accordion-icon-plus { transition: opacity .25s, transform .25s; transform-origin: center; }
.accordion-item.open .accordion-icon-plus { opacity: 0; transform: rotate(90deg); }
.accordion-body { display: none; }
.accordion-item.open .accordion-body { display: block; padding: 0 0 30px; }
.accordion-body > p { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.feature-list { list-style: none; margin: 16px 0 0; padding: 0; }
.feature-list li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.feature-list li + li { margin-top: 8px; }
/* thin navy tick like live (same mark as span.check) */
.feature-list li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 11px; height: 5.5px; border-left: 1.75px solid var(--navy); border-bottom: 1.75px solid var(--navy); transform: rotate(-45deg); }

/* ---------- Sources: three cards like live (section padding = .sec) ---------- */
.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 720px; margin: 0 auto; }
.source { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 20px 30px; }
.source-mark {
  width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 18px;
}
.source-mark-eu svg { width: 32px; height: 32px; fill: var(--spark); }
.source h3 { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -0.012em; color: var(--navy); }
.source p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.source-soon { background: transparent; box-shadow: inset 0 0 0 1.5px transparent; border: 1.5px dashed #d6d0c5; }
.source-soon .source-mark { background: transparent; color: var(--muted); border: 1.5px dashed var(--faint); font-size: 24px; font-weight: 500; }
/* "coming" card one step softer than the two real sources, like live's dimmed card */
.source-soon h3 { color: var(--muted); }
.source-soon p { color: var(--muted); opacity: .85; }
.source-ask { margin-top: 18px; color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(15, 42, 74, .3); border-radius: 999px; }
.source-ask:hover { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }

/* ---------- Market figures (block in site.css; here on the deeper paper band) ---------- */
.market .figures { margin-top: 72px; }

/* ---------- The offer band is #start: keep it clear of the sticky nav ---------- */
.offer-sec { scroll-margin-top: 72px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 920px) {
  .market .figures { margin-top: 48px; }
  .source-grid { grid-template-columns: 1fr; max-width: 480px; }
}
/* phone: like live, three centred blocks stacked (dot, heading, paragraph), no line */
@media (max-width: 767px) {
  .steps-grid { grid-template-columns: 1fr; gap: 44px; max-width: 520px; }
  .steps-grid::before { display: none; }
  .step-number { margin-bottom: 18px; }
  .step-card p { max-width: 34em; }
}
@media (max-width: 640px) {
  .page-hero { padding-bottom: 64px; }
  .how-steps { padding-top: 72px; }
  .step-number { width: 48px; height: 48px; font-size: 19px; }
  .step-card h3 { font-size: 19px; }

  .connector-line { height: 48px; }
  .connector-ai-icon-row { flex-direction: column; align-items: center; gap: 12px; }
  .connector-ai-icon { width: 80px; height: 80px; }
  .connector-ai-icon svg { width: 52px; height: 52px; }
  .connector-magic-text { position: static; transform: none; }

  .how-features { padding: 12px 0 80px; }
  .accordion { padding: 0 20px; border-radius: 14px; }
  .accordion-header { padding: 22px 0; gap: 14px; }
  .accordion-title { font-size: 20px; }
  .accordion-body > p { font-size: 16px; }

}
