/* FlouLabs - Solutions page (/solutions/ and /es/soluciones/). Loaded after main.css and relies on its tokens
   (--cream, --sand, --paper, --charcoal, --line, --orange, --orange-text, --max-width, --gutter). No inline <style>. */

/* ---- hero ---- */
.hero {
  width: min(100%, var(--max-width));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 138px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 108px);
}
.eyebrow {
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 42px; height: 8px; background: var(--orange); border: 1px solid var(--line); }
h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}
.hero-copy { max-width: min(720px, 70ch); margin-bottom: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.42; letter-spacing: -0.025em; }
.hero-visual { min-height: 480px; border: 1px solid var(--line); background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; }
.visual-label, .visual-footer { padding: 13px 15px; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.visual-label { border-bottom: 1px solid var(--line); }
.visual-footer { border-top: 1px solid var(--line); background: var(--orange); }
.hero-diagram { width: 100%; min-height: 380px; padding: 20px; }

/* ---- diagrams (inline SVG) ---- */
.diagram { color: var(--charcoal); }
.diagram * { vector-effect: non-scaling-stroke; }
.diagram .ink { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; }
.diagram .accent { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }
.diagram .accent-fill { fill: var(--orange); stroke: var(--charcoal); stroke-width: 1.4; }
.diagram .paper-fill { fill: var(--paper); stroke: var(--charcoal); stroke-width: 1.4; }
.diagram text { fill: var(--charcoal); font-family: "Space Grotesk", Arial, Helvetica, sans-serif; font-weight: 700; }

/* ---- sections ---- */
.section-inner { width: min(100%, var(--max-width)); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter) clamp(80px, 10vw, 140px); }
.section-heading {
  margin-bottom: clamp(42px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(30px, 8vw, 110px);
  align-items: start;
}
.section-number { margin-bottom: 18px; display: block; color: var(--orange-text); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
h2 { margin-bottom: 0; font-size: 38px; font-weight: 600; line-height: 0.98; letter-spacing: -0.055em; }
.section-intro { max-width: 70ch; margin: 31px 0 2px; font-size: 18px; line-height: 1.4; letter-spacing: -0.02em; }

.paths-section { border-top: 1px solid var(--line); background: var(--sand); }
.details-section { border-top: 1px solid var(--line); background: var(--paper); }
.details-section--alt { background: var(--cream); }
.flow-section { border-top: 1px solid var(--line); background: var(--sand); }
.flows-section { border-top: 1px solid var(--line); background: var(--paper); }
.coverage-section { border-top: 1px solid var(--line); background: var(--cream); }

/* ---- 01 the two paths ---- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.path-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 22px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.path-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.path-card--build { background: var(--cream); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.card-topline::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.path-card .diagram { width: 100%; max-height: 170px; align-self: center; }
.path-body { display: flex; flex-direction: column; }
.path-body h3 { margin-bottom: 10px; font-size: clamp(25px, 2.8vw, 36px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.path-lead { margin: 0 0 18px; font-size: 16px; line-height: 1.4; }
@media (min-width: 981px) { .path-lead { min-height: 2.8em; } }
.tick-list { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.tick-list li { padding: 11px 0 11px 22px; position: relative; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.3; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; background: var(--orange); border: 1px solid var(--line); }
.path-body .button { width: 100%; margin-top: auto; }

/* ---- 02 / 03 path details ---- */
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper); }
.detail-cell { padding: clamp(22px, 3vw, 34px); border-right: 1px solid var(--line); display: grid; align-content: start; gap: 14px; }
.detail-cell:last-child { border-right: 0; }
.detail-cell span { color: var(--orange-text); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.detail-cell h3 { margin: 0; font-size: 22px; line-height: 1.08; letter-spacing: -0.04em; }
.detail-cell p { margin: 0; font-size: 16px; line-height: 1.55; }

/* ---- 04 six steps ---- */
.flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--paper); counter-reset: step; }
.flow li { position: relative; padding: 22px 18px 24px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 10px; }
.flow li:last-child { border-right: 0; }
.flow li:nth-child(even) { background: var(--cream); }
.step-no { color: var(--orange-text); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.flow .diagram { width: 44px; height: 44px; }
.flow h3 { margin: 0; font-size: 22px; line-height: 1; letter-spacing: -0.04em; }
.flow p { margin: 0; font-size: 14px; line-height: 1.4; }
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -9px;
  width: 17px;
  height: 17px;
  margin-top: -9px;
  border: 1px solid var(--line);
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Cpath d='M5 3.5L10.5 8.5L5 13.5' fill='none' stroke='%231A1A1A' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---- 05 four flows as chains of steps ---- */
.flows { display: grid; grid-template-columns: 1fr; gap: 14px; }
.flow-card { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); background: var(--cream); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr); align-items: center; gap: 20px clamp(24px, 3vw, 44px); }
.flow-card:nth-child(even) { background: var(--sand); }
.flow-text { display: grid; gap: 12px; }
.flow-card h3 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.05; letter-spacing: -0.04em; }
.flow-card p { margin: 0; font-size: 15px; line-height: 1.45; }
.chain { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.chain li { position: relative; padding: 8px 10px; border: 1px solid var(--line); background: var(--paper); font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; display: inline-flex; align-items: center; }
.chain li.is-accent { background: var(--orange); }

/* ---- 06 coverage band ---- */
.coverage { border: 1px solid var(--line); background: var(--paper); display: grid; grid-template-columns: minmax(250px, 0.8fr) 90px minmax(0, 2fr); align-items: stretch; }
.coverage-origin { padding: clamp(20px, 3vw, 30px); background: var(--orange); border-right: 1px solid var(--line); display: grid; align-content: center; gap: 8px; }
.coverage-origin span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.coverage-origin strong { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.1; letter-spacing: -0.03em; hyphens: none; }
.coverage-line { width: 100%; height: 100%; min-height: 60px; color: var(--charcoal); border-right: 1px solid var(--line); background: var(--cream); }
.markets { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.markets li { padding: clamp(16px, 2.4vw, 24px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; }
.markets li:nth-child(3n) { border-right: 0; }
.markets li:nth-last-child(-n + 3) { border-bottom: 0; }
.coverage-facts { margin: clamp(28px, 4vw, 44px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); background: var(--sand); display: grid; align-content: start; gap: 12px; }
.fact span { color: var(--orange-text); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.fact ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.fact li { padding: 6px 10px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 700; }
.fact p { margin: 0; font-size: 16px; line-height: 1.5; }
.disclaimer { margin: 22px 0 0; max-width: 780px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.disclaimer--legal { max-width: 70ch; margin-top: 14px; font-weight: 400; }

/* ---- Stablecoin Global Solution / FlouCard (copy of the SGS page, laid out with the site components) ---- */
.hero--solo { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero--solo h1 { max-width: 900px; }
.hero-copy--second { margin-top: 18px; }
.path-card--plain { grid-template-rows: auto auto 1fr; }
.path-tag { margin: 0 0 12px; color: var(--orange-text); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.path-card--plain .tick-list { margin-bottom: 0; }
.plate { margin: 0 0 clamp(36px, 5vw, 56px); padding-bottom: 20px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 24px; }
.plate-name { max-width: 100%; overflow-wrap: break-word; }
.plate-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 10px; border: 1px solid var(--line); background: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tag--ghost { background: transparent; }
.head-title { margin: 0; font-size: clamp(26px, 3vw, 32px); font-weight: 600; line-height: 1.04; letter-spacing: -0.04em; }
.head-lead { display: grid; gap: 14px; }
.head-lead p { margin: 0; font-size: 16px; line-height: 1.5; }
.head-lead .lead { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.board { border: 1px solid var(--line); background: var(--cream); }
.board ul { margin: 0; padding: 0; list-style: none; }
.board-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.node { padding: clamp(18px, 3vw, 28px); border-right: 1px solid var(--line); background: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.node:last-child { border-right: 0; }
.node--hub { background: var(--orange); }
.board-caps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.board-caps li { padding: 16px; border-right: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.board-caps li:last-child { border-right: 0; }
.closing { margin: 22px 0 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.caps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper); }
.cap-item { padding: clamp(18px, 2.6vw, 26px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; align-content: start; gap: 6px; }
.cap-item:nth-child(3n) { border-right: 0; }
.cap-item:nth-last-child(-n + 3) { border-bottom: 0; }
.cap-tile { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.cap-note { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.coverage-stats { margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); background: var(--orange); display: grid; gap: 6px; }
.stat strong { font-size: clamp(40px, 6vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.055em; }
.stat span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.coverage-facts--one { margin: 0 0 clamp(28px, 4vw, 44px); grid-template-columns: minmax(0, 1fr); }
/* ES Solutions (guide of 8 October 2026): three capability groups, the hero actions, the buttons under a section and the legal text under the contact block */
.coverage-facts--three { margin: 0 0 clamp(28px, 4vw, 44px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero--solo .hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.section-action { margin: 28px 0 0; }
/* FlouCard program information: same text style as the secondary paragraphs (.head-lead p); only the measure is set */
.program-info { max-width: 70ch; }
/* sand background for the treasury section so it does not sit on the cream FlouCard section (the sand capabilities section between them was removed) */
.treasury-section { background: var(--sand); }
/* ES hero supporting text: same style as the secondary paragraphs of the page (.head-lead p: 16 px, line height 1.5, no tracking); only used by es/soluciones */
.hero-support { font-size: 16px; line-height: 1.5; letter-spacing: normal; }
.cta-text { max-width: 60ch; margin: 20px 0 0; font-size: 18px; line-height: 1.4; letter-spacing: -0.02em; }
.cta .section-inner.cta-legal { display: block; padding-top: 0; padding-bottom: clamp(40px, 6vw, 72px); }
.cta-legal .disclaimer { margin: 0; padding-top: 24px; border-top: 1px solid var(--paper); }
.market-groups { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.market-group { padding: clamp(18px, 2.6vw, 26px); border: 1px solid var(--line); background: var(--paper); display: grid; gap: 14px; }
.market-group h3 { margin: 0; color: var(--orange-text); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.market-group .markets, .market-group .markets li, .market-group .markets li:nth-child(n), .market-group .markets li:nth-last-child(n) { border: 0; padding: 0; }
.market-group .markets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.market-group .markets li, .market-group .markets li:nth-child(n), .market-group .markets li:nth-last-child(n) { padding: 8px 0 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (max-width: 980px) {
  .board-row, .board-caps, .caps { grid-template-columns: 1fr; }
  .node, .board-caps li, .cap-item, .cap-item:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .node:last-child, .board-caps li:last-child, .cap-item:last-child { border-bottom: 0; }
  .cap-item:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .cap-item:last-child { border-bottom: 0; }
  .market-groups { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .coverage-stats { grid-template-columns: 1fr; }
  .market-group .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- closing block ---- */
.cta { border-top: 1px solid var(--line); background: var(--charcoal); color: var(--paper); }
.cta a:focus-visible, .cta .button:focus-visible { outline-color: var(--paper); }
.cta .section-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: start; }
.cta h2 { max-width: 760px; }
.cta .button:hover { background: var(--paper); color: var(--charcoal); }

@media (max-width: 1099px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow li { border-bottom: 1px solid var(--line); }
  .flow li:nth-child(3n) { border-right: 0; }
  .flow li:nth-last-child(-n + 3) { border-bottom: 0; }
  .flow li:nth-child(even) { background: var(--paper); }
  .flow li:nth-child(odd) { background: var(--cream); }
  .flow li::after { display: none; }
  .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .markets li:nth-child(3n) { border-right: 1px solid var(--line); }
  .markets li:nth-child(2n) { border-right: 0; }
  .markets li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .markets li:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 980px) {
  .hero, .section-heading, .cta .section-inner { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .section-intro { margin-top: 0; }
  .paths, .coverage-facts, .flow-card { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-cell:last-child { border-bottom: 0; }
  .coverage { grid-template-columns: 1fr; }
  .coverage-origin { border-right: 0; border-bottom: 1px solid var(--line); }
  .coverage-line { display: none; }
}
@media (max-width: 680px) {
  .hero--solo .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 56px; }
  h1 { font-size: 40px; }
  h2 { font-size: 38px; }
  .hero-visual { min-height: 390px; }
  .hero-diagram { min-height: 300px; padding: 10px; }
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li:nth-child(3n), .flow li:nth-last-child(-n + 3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow li:last-child { border-bottom: 0; }
  .flow li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; }
  .flow li .diagram { grid-row: 1 / span 3; }
  .flow li:not(:last-child)::after {
    display: block;
    top: auto;
    bottom: -9px;
    right: auto;
    left: 31px;
    margin-top: 0;
    transform: rotate(90deg);
  }
  .markets { grid-template-columns: 1fr; }
  .markets li, .markets li:nth-child(3n), .markets li:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .markets li:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .path-card { transition: none; }
  .path-card:hover { transform: none; }
}

/* ---- Home (EN / ES): solutions teaser, secondary button and anchors into this page ---- */
.home-solutions { background: var(--cream); }
.home-solutions .path-card { grid-template-rows: auto 1fr; }
.home-solutions .path-card--build { background: var(--sand); }
.home-solutions .path-card .diagram { max-height: 130px; }
.home-solutions .path-lead { min-height: 0; margin-bottom: 22px; font-size: 17px; line-height: 1.45; }
/* 44 px touch target with the same look: the extra height goes below the text, is cancelled by the negative margin, and the underline is drawn where the border was. */
.path-link { position: relative; margin: auto 0 -19px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 2px 0 22px; font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.path-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 19px; height: 1px; background: var(--line); }
.path-link span { display: inline-block; transition: transform 160ms ease; }
.path-link:hover::after { background: var(--orange); }
.path-link:hover span, .path-link:focus-visible span { transform: translateX(3px); }
.button-secondary { background: transparent; }
.button-secondary:hover { background: var(--charcoal); color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .path-link span { transition: none; } .path-link:hover span, .path-link:focus-visible span { transform: none; } }
