/* FlouLabs Home (one-pager). Colours, type, buttons and the footer come from main.css; the header from nav.css.
   Few sections, straight corners, one column of reading text, plenty of air; the diagrams are real HTML/CSS text (no images with text).
   Generated markup: tools/build_home.py.
   One vertical scale (--section-y, in main.css) for every section, one width and one gutter (the same as the header and the footer), reading text at 17px / 1.55
   with a measure of about 65 characters. The eyebrow (.kicker), the cards (.card) and the contact section (.cta) are shared components of main.css.
   No lines between sections: the background and the space do the separating. Nothing moves; hover and focus change colour only. */

.kicker__sub { color: var(--orange-text); }
.kicker__sub::before { content: "·" / ""; margin-right: 10px; color: var(--charcoal); }

/* The colour behind the hero: one flat colour, nothing drawn over it. It is the page colour (--page-bg, nav.css): the whole site is white since 11 Nov 2026.
   To give the hero a colour of its own change this ONE line. */
:root { --hero-bg: var(--page-bg); }

/* Hero: ONE centred block, top to bottom: headline in two lines (one per phrase), one line of support, one button, on the flat colour of --hero-bg (charcoal text on white
   is far over 4.5:1; the HomePages test computes it). The block sits a little above the middle (more air below than above). */
.hero { background: var(--hero-bg); }
.hero-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 136px) var(--gutter) clamp(76px, 10.5vw, 156px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* The two lines are «Stablecoin-Native» and «Embedded Banking» (a <br> of the copy). The longer one, «Embedded Banking», is about 8.7em wide («Stablecoin-Native» about 8em), so the size is
   the largest at which it fits its container: 11% of the container's width (the viewport minus the two gutters: 104px at 1024, 39px at 390, 31px at 320), up to 7.8rem (125px, from
   about 1130px of viewport: the line then measures 1082px of the 1136px of the container). Both lines fit at every width, so there is no breakpoint for the size. From 1024px each
   line is ONE line (white-space: nowrap); below 1024px the lines may wrap if they ever do not fit (white-space: normal; the balance comes from nav.css); «Stablecoin-Native» is
   never split at its hyphen (.nw). */
.hero h1 {
  margin: 0 0 clamp(24px, 2.6vw, 36px);
  font-size: min(calc((100vw - 2 * var(--gutter)) * 0.11), 7.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.hero h1 .nw { white-space: nowrap; }
@media (max-width: 1023px) {
  .hero h1 { white-space: normal; }
}
.hero-subhead {
  max-width: 36ch;
  margin: 0 0 clamp(32px, 3.6vw, 48px);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}
/* Bands */
.band { background: var(--page-bg); }
.band-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.section-title {
  max-width: 17em;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}
.section-body { margin: 0 0 clamp(36px, 5vw, 64px); letter-spacing: -0.01em; }          /* size, measure and leading: the shared lede (main.css) */

/* Program ecosystem */
.eco-list {
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.eco-item { padding: clamp(22px, 3vw, 36px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eco-item h3 { margin: 0 0 10px; font-size: clamp(19px, 2vw, 26px); font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; }
.eco-item p { margin: 0; max-width: 30ch; font-size: 1rem; line-height: 1.5; }
.disclosure { max-width: 52em; margin: 0; font-size: 14px; line-height: 1.5; }

/* #how-it-works: the benefits and the architecture are cards (the shared .card of main.css: white, thin border, orange bar on top) */
.benefits { margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--card-gap); }
.benefit h3 { margin: 0 0 14px; }
.benefit p { margin: 0; font-size: var(--card-text); line-height: var(--card-leading); }
@supports (grid-template-rows: subgrid) {
  /* title and text are two rows shared by the cards of a row: the texts line up whatever the length of the titles (and the content sets the height) */
  .benefit { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}

/* The architecture: ONE card. Two sand bands as its header (the brand bar with «One API», then the name of the architecture with a small orange mark),
   then the four rows (label / entity / description) split by thin lines, then the disclosure. No black or orange blocks. */
.arch { margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; }
.arch__entry {
  margin: 0;
  padding: 14px var(--card-pad);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.arch__core { padding: 20px var(--card-pad); background: var(--sand); border-bottom: 1px solid var(--line); }
.arch__core-name { margin: 0 0 6px; display: flex; align-items: center; gap: 12px; font-size: var(--card-title); font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; }
.arch__core-name::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--orange); border: 1px solid var(--line); }
.arch__core-desc { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.arch__rows { margin: 0; padding: 0; list-style: none; }
.arch__note { margin: 0; padding: 18px var(--card-pad); max-width: none; border-top: 1px solid var(--line); font-size: 0.9375rem; }
/* Three columns, the same in every row: label / entity / description */
.arch__row {
  padding: clamp(18px, 1.8vw, 24px) var(--card-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 8px clamp(16px, 2.4vw, 32px);
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.arch__row:last-child { border-bottom: 0; }
.arch__role { font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-text); }
.arch__entity { font-size: 1.125rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; }
.arch__text { font-size: 1rem; line-height: 1.5; }

/* The call-out keeps its orange side bar (it is a statement, not a card) */
.settlement { max-width: 44em; padding: 2px 0 2px clamp(20px, 2.4vw, 32px); border-left: 8px solid var(--orange); }
.settlement h3 { max-width: 26em; margin: 0 0 12px; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.045em; }
.settlement p { max-width: 36em; margin: 0; font-size: 1.0625rem; line-height: 1.55; }          /* not a lede: its title (balanced, about 455px) is narrower than the lede measure */

/* #solutions: three solutions, the same card each (three columns from 900px, stacked below, equal heights). From 900px the card is a subgrid of
   three rows (icon / title / description) shared by the three cards: the titles and the descriptions line up whatever the length of the
   Spanish or English text, and the content (not a fixed minimum) sets the height. The title is the name of the solution (one h3). */
.solutions { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); }
.solution__icon { width: 32px; height: 32px; margin: 0 0 20px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: butt; stroke-linejoin: miter; }
.solution h3 { margin: 0 0 14px; overflow-wrap: normal; }
.solution__text { margin: 0; font-size: var(--card-text); line-height: var(--card-leading); }
@media (min-width: 900px) {
  .solutions { row-gap: 0; }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .solution { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  }
}
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .solution h3 { min-height: 2.2em; }          /* room for two lines in every card, so the three descriptions start on the same line */
  }
}

/* #contact and the footer are the shared components of main.css and nav.css (the same markup and styles on every page). */

/* Footer offices (switched off with SHOW_OFFICES in tools/build_home.py) */
.footer-offices { padding-bottom: 36px; }
.footer-offices__title { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-offices ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.footer-offices li { display: grid; gap: 2px; font-size: 14px; }

@media (max-width: 1100px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .eco-list { grid-template-columns: 1fr; }
  .arch__row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 899px) {
  .solutions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr; }
  /* «Solutions · FlouLabs Stablecoin Connect»: on a phone the eyebrow goes under the label instead of breaking in the middle */
  .kicker:has(.kicker__sub) { flex-wrap: wrap; row-gap: 4px; }
  .kicker__sub { flex-basis: 100%; }
  .kicker__sub::before { content: none; }
}
