/* NODAL — site styles */
:root {
  /* brand palette */
  --green:        #59bc53;   /* "Green" — bright accent            */
  --green-pastel: #addea8;   /* "Pastel Green" — soft tint         */
  --green-dark:   #3d5c38;   /* "Dark Green" — dominant            */
  --beige:        #f2ecec;   /* "Reddish Beige" — warm paper       */

  /* semantic aliases */
  --green-bright: var(--green);       /* accent / highlights / CTAs */
  --green-hover:  #3f8f43;            /* darker green — button hover */
  --green-deep:   var(--green-dark);  /* dark sections / strong text */
  --green-soft:   #e4f1e1;            /* light tint section bg       */

  /* liquid glass */
  --glass-header: rgba(173,222,168,.6); /* light green glass header    */
  --glass-white:  rgba(255,255,255,.55);
  --glass-line:   rgba(255,255,255,.16);

  /* neutrals */
  --plaster:     var(--beige);
  --plaster-2:   #f9f5f5;
  --paper:       var(--plaster);      /* semantic page background    */
  --ink:         #25341f;    /* near-black green — headings/strong  */
  --ink-2:       #46543f;    /* warm dark-green — body copy         */
  --muted:       #6e7a69;    /* secondary text / captions           */
  --concrete:    #8b9587;    /* faint labels                        */
  --hairline:    rgba(61,92,56,.16);
  --black:       #000000;    /* footer bottom band — true black     */

  /* type */
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Montserrat', system-ui, -apple-system, sans-serif;
  --font-num:     'Montserrat', system-ui, sans-serif;
  --font-mono:    var(--font-display);  /* technical labels → Montserrat signage */

  /* radii */
  --r-card:  6px;    /* content cards — squared, architectural    */
  --r-btn:   7px;    /* buttons — squared, stamp-like             */
  --r-pill:  999px;  /* tags & status chips only                  */

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.015em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); position: relative; z-index: 1; }

/* ---------- buttons — squared plates with print-press physics:
   they sit on a hard offset shadow, rise toward the cursor, and press
   down into the page on click ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 15px 28px; border-radius: var(--r-btn); cursor: pointer;
  border: 2px solid transparent;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1),
              box-shadow .22s cubic-bezier(.34,1.56,.64,1),
              background .2s ease, color .2s ease;
}
.btn:hover { transform: translate(-2px,-2px); }
.btn:active { transform: translate(1px,1px); transition-duration: .08s; }
.btn:disabled, .btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; transform: none; }
/* .btn sets display, which would otherwise override the hidden attribute (the landing Supporter button ships hidden). */
.btn[hidden] { display: none; }
.btn-primary { background: var(--green-bright); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { background: var(--green-hover); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn-ghost:hover { background: var(--green-deep); color: #fff; box-shadow: 6px 6px 0 rgba(61,92,56,.25); }
.btn-ghost:active { box-shadow: 1px 1px 0 rgba(61,92,56,.25); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-dark:hover { background: #fff; color: var(--green-deep); box-shadow: 6px 6px 0 rgba(173,222,168,.4); }
.btn-lg { padding: 18px 40px; font-size: 18px; }
.btn-pill.btn-nav { padding: 9px 18px; font-size: 14px; font-weight: 500; white-space: nowrap;
  background: var(--green-bright); color: #fff; box-shadow: none; border-radius: var(--r-btn); }
.btn-pill.btn-nav:hover { background: #fff; color: var(--green-hover); transform: translateY(-1px); box-shadow: none; }
.btn-pill.btn-nav:active { transform: scale(.96); }

/* header */
.navbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center;
  gap: 10px;
  padding: 6px clamp(20px, 4vw, 56px);
  background: var(--glass-header);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  color: var(--green-deep);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar { background: var(--green-pastel); }
}
.brand { display: flex; align-items: center; gap: 0; margin-right: clamp(8px, 1vw, 20px); -webkit-user-select: none; user-select: none; flex-shrink: 0; }
.brand-mark { width: 84px; height: 88px; display: block; overflow: visible; margin-right: -10px; }
/* the wordmark asset is white: black over light sections, white over dark ones
   (nav.js toggles .nav-dark on the navbar while a dark section scrolls under it) */
.brand-wordmark { display: block; height: 40px; width: auto;
  filter: brightness(0); transition: filter .25s ease; }
.navbar.nav-dark .brand-wordmark { filter: none; }

.nav-main { display: flex; gap: 10px; font-size: 14px; font-weight: 400; }
.nav-account { margin-left: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; }
/* glass pill nav links */
.nav-main a, .nav-account a:not(.btn) {
  position: relative; overflow: hidden; white-space: nowrap;
  padding: 8px 14px; border-radius: 0;
  background: rgba(255,255,255,.38); border: 1px solid rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s ease, border-color .2s ease,
              transform .18s cubic-bezier(.34,1.56,.64,1);
}
.nav-main a:hover, .nav-account a:not(.btn):hover {
  background: rgba(255,255,255,.6); border-color: #fff;
}
.nav-main a:active, .nav-account a:not(.btn):active { transform: scale(.94); }
.nav-main a[aria-current="page"] { background: #fff; border-color: #fff; font-weight: 600; }
.btn-pill.btn-nav { position: relative; overflow: hidden; }

/* minimalist language switcher — glass pill matching the nav language */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.38); border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px; padding: 3px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; color: var(--green-deep);
  padding: 5px 9px; border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}
.lang-btn:hover { background: rgba(255,255,255,.6); }
.lang-btn.is-on { background: var(--green-deep); color: #fff; }

/* iOS-style press glint — light burst at the press point (coords set by nav.js) */
.navbar .glint::after {
  content: ""; position: absolute; left: var(--gx, 50%); top: var(--gy, 50%);
  width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; pointer-events: none;
  opacity: 0; /* invisible unless the animation drives it (reduced-motion disables animations) */
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.35) 38%, transparent 70%);
  animation: glint .55s ease-out forwards;
}
@keyframes glint { from { opacity: .95; transform: scale(.25); } to { opacity: 0; transform: scale(1.7); } }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 26px; height: 3px; background: var(--green-deep); border-radius: 2px; }

/* hero */
.hero { position: relative; min-height: calc(100vh - 92px); overflow: hidden; isolation: isolate; }

/* graticule + warm light */
.hero-atmos {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 70% at 12% 80%, rgba(173,222,168,.32), transparent 62%),
    radial-gradient(48% 58% at 93% 26%, rgba(89,188,83,.12), transparent 60%),
    repeating-linear-gradient(0deg,  transparent 0 63px, rgba(61,92,56,.05) 63px 64px),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(61,92,56,.05) 63px 64px);
}

/* Phones show the map pushed past the right edge; body overflow-x alone still lets mobile browsers widen the
   layout viewport to it, so the page pans sideways. This box clips it (no z-index: the map keeps its own). */
.hero-clip { position: absolute; top: 0; left: 0; width: 100%; height: 92vh; overflow: hidden; pointer-events: none; }
/* latam map plate + network overlay: one box, so they can never drift apart.
   It starts at the very top so it slides up behind the glass header (no seam). */
.hero-map {
  position: absolute; top: 0; right: -2vw; height: 92vh; aspect-ratio: 1953 / 2385;
  z-index: 6; pointer-events: none;
  --hn-deep: var(--green-deep);   /* #3d5c38 nodes and links at rest */
  --hn-leaf: var(--green-bright); /* #59bc53 events only */
  --hn-halo: var(--green-pastel); /* #addea8 at .42 reads as pale #dcebd6 on plaster */
  --hn-knock: var(--plaster);     /* #f2ecec knockout ring and label halo */
  --hn-label: var(--ink-2);       /* #46543f hover label */
}
@supports not (aspect-ratio: 1 / 1) { .hero-map { width: calc(92vh * 1953 / 2385); } }
.hero-map > .map-outline, .hero-map > .hero-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-map > .map-outline { opacity: .5; }
@media (min-width: 1100px) { .hero-map > .map-outline { opacity: .36; } }

/* hidden until hero-network.js has drawn its first state; shown as a still without JS */
.hero-net { overflow: visible; visibility: hidden; contain: layout paint; }
.hero-net.is-live { visibility: visible; }
.hero-net.is-off { display: none; }
@media (scripting: none) { .hero-net { visibility: visible; } }

/* static paint. JS writes animated paint as attributes, and CSS must never set these
   properties on engine elements (CSS would override the attributes). */
.hn-edge { fill: none; stroke-linecap: round; }
.hn-core { stroke: var(--hn-knock); paint-order: stroke; }
.hn-halo { fill: var(--hn-halo); transform-box: fill-box; transform-origin: center; }
.hn-ring { fill: none; stroke: var(--hn-leaf); }
.hn-signals path { fill: none; stroke: var(--hn-leaf); stroke-linecap: round; }
.hn-label { fill: var(--hn-label); stroke: var(--hn-knock); paint-order: stroke;
  font-family: var(--font-mono); font-weight: 600; letter-spacing: .12em;
  opacity: 0; transition: opacity 240ms ease; pointer-events: none; }
.hn-label.is-on { opacity: 1; transition-duration: 160ms; pointer-events: visiblePainted; } /* hoverable while shown (WCAG 1.4.13) */
.hn-hit { fill: transparent; pointer-events: all; cursor: default; }

/* the no-JS still (and anything before JS takes over) */
.hero-net:not(.is-live) .hn-edge { stroke: var(--hn-deep); stroke-opacity: .72; stroke-width: 5.8px; }
.hero-net:not(.is-live) .hn-edge.is-accent { stroke: var(--hn-leaf); stroke-opacity: .85; stroke-width: 6.6px; }
.hero-net:not(.is-live) .hn-core { fill: var(--hn-deep); stroke-width: 11.5px; }
.hero-net:not(.is-live) .hn-halo { fill-opacity: .42; }

/* hover focus (classes toggled by JS). Only opacity transitions; never transition fill/stroke. */
.hn-edge, .hn-core, .hn-halo { transition: opacity 240ms ease; }
.hero-net.is-focus .hn-edge { opacity: .3; transition-duration: 160ms; }
.hero-net.is-focus .hn-edge.is-near { opacity: 1; stroke: var(--hn-deep); stroke-opacity: .85; }
.hero-net.is-focus .hn-core:not(.is-near):not(.is-focus),
.hero-net.is-focus .hn-halo:not(.is-near):not(.is-focus) { opacity: .45; transition-duration: 160ms; }
.hero-net .hn-core.is-focus { fill: var(--hn-leaf); }

/* hubs breathe while the life runs (JS sets .is-running, and each hub's period and phase). Transform only:
   JS writes the halo's r and fill-opacity, and hover focus owns its opacity. */
@keyframes hn-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.hero-net.is-running .hn-halo.is-hub { animation: hn-breathe 3.6s cubic-bezier(.45, 0, .55, 1) infinite; }

/* WCAG 2.2.2 pause control, over the empty South Atlantic */
.hn-toggle {
  position: absolute; right: calc(2vw + 24px); bottom: 9%;
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--glass-white); color: var(--green-deep);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  pointer-events: auto; cursor: pointer; transition: background-color .2s ease;
}
.hn-toggle[hidden] { display: none; }
.hn-toggle:hover { background: #fff; }
.hn-toggle:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; border-radius: 50%; } /* the global button focus rule squares corners */
.hn-toggle::before, .hn-toggle::after {
  content: ""; position: absolute; top: 9px; width: 3px; height: 12px; border-radius: 1px; background: currentColor;
}
.hn-toggle::before { left: 11px; }
.hn-toggle::after { right: 11px; }
.hn-toggle[aria-pressed="true"]::before {
  left: 12px; top: 8px; width: 0; height: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor;
}
.hn-toggle[aria-pressed="true"]::after { display: none; }
/* forced colors repaint backgrounds and borders: draw the glyph in the button text colour */
@media (forced-colors: active) {
  .hn-toggle { border-color: ButtonText; }
  .hn-toggle::before, .hn-toggle::after { forced-color-adjust: none; background: ButtonText; }
  .hn-toggle[aria-pressed="true"]::before { background: none; border-color: transparent transparent transparent ButtonText; }
}

@media (max-width: 1099px) { .hero-net, .hn-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hn-edge, .hn-core, .hn-halo, .hn-label, .hn-toggle { transition: none; }
  .hero-net .hn-halo { animation: none; }
}

/* coordinate captions */
.hero-coord {
  position: absolute; z-index: 4; font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--concrete);
  pointer-events: none;
}
.hero-coord--tr { top: 28px; right: clamp(20px, 5vw, 56px); }
.hero-coord--bl { bottom: 28px; left: clamp(24px, 5vw, 70px); }

.hero-content { position: relative; z-index: 2; max-width: 900px;
  padding: clamp(44px, 8vh, 92px) clamp(24px, 5vw, 70px) clamp(40px, 7vh, 80px); }

.hero-kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--concrete); margin-bottom: 24px; display: inline-flex; align-items: center; gap: .8em;
  opacity: 0; transform: translateY(12px); animation: rise .7s cubic-bezier(.2,.8,.2,1) .05s forwards;
}
.hero-kicker::before { content: ""; width: 28px; height: 1px; background: var(--green-bright); }

.headline {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em;
  line-height: 1.0; display: flex; flex-direction: column; gap: 0; color: var(--green-deep);
}
/* direct children only — the i18n spans nested inside each line must stay
   inline and visible, or language swaps break the headline */
.headline > span { display: block; }
.word-building { font-size: clamp(42px, 6.4vw, 92px); font-weight: 800; }
.word-infra { font-size: clamp(34px, 5vw, 72px); font-weight: 600; font-style: italic; color: var(--green-bright); letter-spacing: -.02em; }
.word-collab { font-size: clamp(36px, 5.2vw, 74px); font-weight: 700; margin-top: 2px; }
.word-collab mark {
  background: linear-gradient(180deg, transparent 15%, rgba(173,222,168,.92) 15% 90%, transparent 90%);
  color: var(--green-deep);
  padding: 0 .06em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-sub { margin-top: 30px; font-size: clamp(16px, 1.5vw, 20px); font-weight: 400; color: var(--ink); max-width: 540px; line-height: 1.6; opacity: 1; transform: none; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; opacity: 1; transform: none; }
.headline.in ~ .hero-sub { animation: rise .7s cubic-bezier(.2,.8,.2,1) .9s forwards; }
.headline.in ~ .hero-cta { animation: rise .7s cubic-bezier(.2,.8,.2,1) 1.05s forwards; }

.headline > span { opacity: 0; transform: translateY(18px); }
.headline.in .word-building { animation: rise .7s cubic-bezier(.2,.8,.2,1) .1s forwards; }
.headline.in .word-infra    { animation: rise .7s cubic-bezier(.2,.8,.2,1) .25s forwards; }
.headline.in .word-collab   { animation: rise .7s cubic-bezier(.2,.8,.2,1) .4s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ticker ribbon — hand-set energy under the hero */
.ticker { background: var(--green-bright); overflow: hidden; padding: 13px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 26s linear infinite; }
.ticker-seq { white-space: nowrap; font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; font-size: clamp(15px, 1.8vw, 21px);
  color: var(--green-deep); padding-right: .6em; }
.ticker-seq mark { background: none; color: #fff; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(90px, 14vh, 180px) 0; position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green-bright); margin-bottom: 20px;
}
.eyebrow::before { content: "●"; font-size: .7em; vertical-align: middle; margin-right: .7em; opacity: .9; }
.eyebrow.light { color: var(--green-pastel); }
.section-title { font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; line-height: 1.02; letter-spacing: -.022em; color: var(--ink); }
.section-title.light { color: #fff; }
.section-lead { font-size: clamp(25px, 3.2vw, 42px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; max-width: 980px; color: var(--ink); }
.section-lead .hl { color: var(--green-bright); font-style: italic; }

/* about */
.about { background: var(--paper); }
.about-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* problem */
.problem { background: var(--ink); }
.problem::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 60% at 84% 16%, rgba(89,188,83,.20), transparent 70%),
    radial-gradient(40% 55% at 6% 90%, rgba(173,222,168,.12), transparent 72%); }
.cards-3 { margin-top: 48px; display: grid; grid-template-columns: repeat(3,1fr); gap: 36px 30px; }
/* survey-plate cards: a short datum line that draws itself across on hover,
   plus an oversized ghost index — field-notes, not generic boxes */
.card-flat { position: relative; padding: 24px 4px 0; }
.card-flat::before { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 38px;
  background: var(--green-bright); transition: width .55s cubic-bezier(.16,1,.3,1); }
.card-flat:hover::before { width: 100%; }
.card-flat .card-num { position: absolute; top: 12px; right: 0; font-family: var(--font-num);
  font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -.02em;
  color: rgba(173,222,168,.17); pointer-events: none; }
.card-flat h3 { color: #fff; font-size: 21px; margin-bottom: 10px; position: relative; }
.card-flat p { color: rgba(255,255,255,.78); line-height: 1.55; font-size: 15.5px; position: relative; }
.problem-foot { margin-top: 40px; color: rgba(255,255,255,.85); font-size: clamp(18px,2vw,24px); max-width: 760px; line-height: 1.5; }
.problem-foot strong { color: var(--green-bright); }

/* insight stats */
.insight { background: var(--plaster-2); }
/* stats as standalone numbers over a flat ground — no boxes */
.stats { margin-top: 50px; display: grid; grid-template-columns: repeat(4,1fr); gap: 36px 30px; }
.stat { border-top: 2px solid var(--ink); padding: 18px 4px 0; }
.stat-num { display: block; font-family: var(--font-num); font-size: clamp(30px,3.4vw,46px); font-weight: 800; letter-spacing: -.02em; color: var(--green-deep); line-height: 1; }
.stat-label { display: block; margin-top: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.insight-foot { margin-top: 40px; font-size: clamp(17px,1.8vw,22px); color: var(--green-deep); max-width: 820px; line-height: 1.5; }
.insight-foot strong { color: var(--green-bright); }

/* platform / graph — clear "engineering paper" treatment */
.platform { background: #fff; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.platform::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(44% 58% at 88% 10%, rgba(173,222,168,.16), transparent 70%); }
.platform-head { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px,5vw,64px); align-items: end; }
.platform-head .section-title { margin-top: 14px; max-width: 13ch; }
.platform-intro { max-width: 460px; font-size: clamp(16px,1.7vw,20px); line-height: 1.6; color: var(--ink-2); }
.platform-intro strong { color: var(--green-bright); font-weight: 700; }

/* platform tabs */
.plat-tabs { margin-top: clamp(28px,4vh,44px); display: flex; gap: 6px; border-bottom: 2px solid var(--hairline); }
.plat-tab { position: relative; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); padding: 12px 18px 14px; margin-bottom: -2px;
  border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.plat-tab:hover { color: var(--green-deep); }
.plat-tab.is-on { color: var(--green-deep); border-bottom-color: var(--green-bright); }
.plat-panel { padding-top: clamp(24px,4vh,40px); }
/* three wrapped tabs overflow a phone; one swipeable row keeps each label on a line */
@media (max-width: 560px) {
  .plat-tabs { overflow-x: auto; scrollbar-width: none; border-bottom: 0; box-shadow: inset 0 -2px 0 var(--hairline); }
  .plat-tab { flex: 0 0 auto; white-space: nowrap; margin-bottom: 0; }
  .plat-tab:focus-visible { outline-offset: -3px; }   /* the scroll strip would clip an outer ring */
}


.graph-panel::before, .graph-panel::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--green-bright); }
.graph-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.graph-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.graph-axis { position: absolute; top: 14px; left: 18px; z-index: 2; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 600; color: var(--concrete); }
#graph { width: 100%; height: auto; display: block; }
.graph-hint { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
  font-size: 11px; color: var(--concrete); margin-top: 14px; text-align: right; }
.gnode { cursor: grab; outline: none; transition: opacity .25s ease; touch-action: none; }
.gnode.is-drag { cursor: grabbing; }
.gnode circle { transform-box: fill-box; transform-origin: center; }
.gnode.is-dim { opacity: .25; }
.gnode:focus-visible circle:first-of-type { stroke: var(--green-bright); stroke-width: 3; }
.glabel { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; fill: var(--ink);
  letter-spacing: .02em; pointer-events: none; }
.g-in { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; }
.g-in.g-on { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1); }

/* node card */
.graph-card { position: absolute; left: var(--gc-x, 50%); top: var(--gc-y, 30%); z-index: 5;
  width: min(330px, 86%); background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: 7px 8px 0 rgba(61,92,56,.12); padding: 16px 16px 14px; }
.graph-card::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px;
  border-top: 2px solid var(--green-bright); border-left: 2px solid var(--green-bright); }
.gc-head { display: flex; align-items: flex-start; gap: 10px; }
.gc-headline { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.gc-title { font-size: 17px; color: var(--ink); }
/* chip text length varies from "9 active nodes" to a full sentence — it must wrap
   inside the card, never force it wider */
.gc-chip { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-deep); background: var(--green-soft);
  border-radius: var(--r-pill); padding: 4px 9px; max-width: 100%; min-width: 0;
  line-height: 1.45; overflow-wrap: anywhere; }
.gc-close { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px;
  padding: 4px 6px; flex-shrink: 0; margin-top: -2px; }
.gc-close:hover { color: var(--ink); }
.gc-path { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--muted); text-transform: uppercase; }
.gc-path strong { color: var(--green-deep); font-weight: 700; }
.gc-path .gc-here { color: var(--green-bright); }
.gc-tabs { margin-top: 12px; display: flex; gap: 2px; border-bottom: 1px solid var(--hairline); }
.gc-tab { border: 0; background: none; cursor: pointer; font-family: var(--font-display);
  font-size: 12px; font-weight: 700; color: var(--muted); padding: 7px 10px 9px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.gc-tab.is-on { color: var(--green-deep); border-bottom-color: var(--green-bright); }
.gc-pane { padding-top: 11px; }
.gc-list { list-style: none; display: grid; gap: 7px; }
.gc-list li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.gc-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green-bright); }
.gc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.gc-peer { border: 1px solid var(--hairline); background: #fff; cursor: pointer; border-radius: var(--r-pill);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--green-deep); padding: 6px 12px;
  transition: border-color .2s ease, background-color .2s ease; }
.gc-peer:hover { border-color: var(--green-bright); background: var(--green-soft); }
.graph-card .gc-ask { font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 14px; line-height: 1.5; color: var(--green-deep);
  border-left: 3px solid var(--green-bright); padding-left: 12px; }
@media (max-width: 820px) {
  .graph-card { position: static; width: 100%; margin-top: 14px; box-shadow: none; }
  /* the SVG scales down hard on phones — labels need larger SVG units to stay legible */
  .glabel { font-size: 22px; font-weight: 700; }
}
/* on a phone the SVG nodes are too small to read or tap: app.js adds one
   button per node, shown here in place of the labels */
.graph-nodes { display: none; }
@media (max-width: 560px) {
  .graph-nodes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
  .graph-nodes .gc-peer { min-height: 44px; }
  .glabel { display: none; }
}

/* "how matching works" panel */
.match-how { max-width: 720px; }
.match-how-lead { font-size: clamp(17px,1.9vw,21px); line-height: 1.55; color: var(--ink-2); }
.match-how-lead strong { color: var(--green-bright); }
.sig-bars { list-style: none; margin-top: 28px; display: grid; gap: 13px; }
.sig-bars li { display: grid; grid-template-columns: 200px 1fr 44px; align-items: center; gap: 14px; }
.sig-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.sig-bar { height: 8px; background: var(--green-soft); border-radius: 2px; overflow: hidden; }
.sig-bar i { display: block; height: 100%; background: var(--green-bright); border-radius: 2px; }
.sig-bar .w30 { width: 30%; }
.sig-bar .w20 { width: 20%; }
.sig-bar .w10 { width: 10%; }
.sig-pct { font-family: var(--font-num); font-size: 13px; font-weight: 800; color: var(--green-deep); text-align: right; }
.match-how-foot { margin-top: 26px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 560px) { .sig-bars li { grid-template-columns: 1fr 44px; } .sig-bar { grid-column: 1 / -1; } }

/* steps */
.steps { list-style:none; margin-top: clamp(40px,6vh,64px); display:grid; grid-template-columns: repeat(3,1fr);
  gap: clamp(20px,3vw,40px); position: relative; }
.steps::before { content:""; position:absolute; top:5px; left:6px; right:6px; height:1px; background: var(--hairline); }
.step { color: var(--ink); position: relative; padding-top: 30px; }
.step::before { content:""; position:absolute; top:0; left:0; width:11px; height:11px; border-radius:50%;
  background: var(--green-bright); box-shadow: 0 0 0 5px #fff; }
.step-n { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--green-bright); letter-spacing: .12em; }
.step h3 { font-size: 20px; margin: 8px 0 8px; color: var(--ink); }
.step p { color: var(--ink-2); line-height: 1.55; font-size: 15px; }

/* profile */
.profile { background: var(--paper); }
.profile-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.profile-copy p { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-top: 8px; }
.profile-copy .section-title { margin-bottom: 18px; }
/* bullets as a mini network — nodes joined by a dashed edge */
.bullets { list-style: none; margin: 22px 0 28px; }
.bullets li { position: relative; padding: 0 0 14px 30px; font-size: 16px; color: var(--ink); }
.bullets li:last-child { padding-bottom: 0; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 4px; width: 11px; height: 11px;
  border-radius: 50%; border: 2.5px solid var(--green-bright); background: var(--paper); z-index: 1; }
.bullets li:first-child::before { background: var(--green-bright); }
.bullets li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 17px; bottom: 2px;
  border-left: 2px dashed rgba(61,92,56,.3); }
/* the deck reads as a real stack — two ghost files fanned out behind */
.match-stack { display: flex; justify-content: center; perspective: 1000px; position: relative; }
.match-stack::before, .match-stack::after { content: ""; position: absolute; left: 50%; top: 0;
  width: 340px; max-width: 100%; height: 100%; background: #fff;
  border: 1px solid var(--hairline); border-radius: var(--r-card); pointer-events: none; }
.match-stack::before { transform: translateX(-50%) rotate(2.5deg) translateY(12px); opacity: .75; }
.match-stack::after  { transform: translateX(-50%) rotate(-3.5deg) translateY(22px); opacity: .45; }
.match-card { position: relative; z-index: 1; width: 340px; max-width: 100%; background: #fff;
  border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden;
  box-shadow: 8px 10px 0 rgba(61,92,56,.08);
  transition: transform .35s ease, opacity .35s ease; }
/* member-file strip — the card is a numbered node record, not a tinder clone */
.match-file { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--concrete); }
.match-file span:first-child { color: var(--green-deep); }
/* dot-grid avatar placeholder */
.match-avatar, .leader-photo {
  display: grid; place-items: center;
  background-color: var(--green-deep);
  background-image: radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.7px);
  background-size: 16px 16px;
}
.match-avatar { height: 190px; }
.match-body { padding: 22px 24px 8px; }
.match-body h3 { font-size: 22px; display: flex; align-items: center; gap: 8px; }
.lock { display: inline-flex; color: var(--muted); }
.lock svg { width: 14px; height: 14px; }
.match-role { color: var(--muted); margin: 4px 0 14px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--green-soft); color: var(--green-deep); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); }
.match-why { margin-top: 16px; font-size: 14px; color: var(--ink-2); } .match-why em { color: var(--green-bright); font-style: normal; font-weight: 700; }
.match-actions { display: flex; gap: 18px; justify-content: center; padding: 18px 0 24px; }
.match-actions button { width: 56px; height: 56px; border-radius: 16px; border: 0; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s cubic-bezier(.34,1.56,.64,1); }
.match-actions button:hover { transform: translate(-1px,-2px) rotate(-2deg); }
.match-actions button:active { transform: translate(1px,1px); }
.m-like:hover { box-shadow: 3px 4px 0 rgba(61,92,56,.35); }
.match-actions button:disabled { opacity: .45; pointer-events: none; }
.match-actions svg { width: 22px; height: 22px; }
.m-skip { background: var(--plaster-2); color: var(--muted); border: 1px solid var(--hairline); }
.m-skip:hover { color: var(--ink-2); border-color: var(--muted); }
.m-like { background: var(--green-bright); color: #fff; }
.leader-initial { font-family: var(--font-display); font-weight: 800; font-size: 54px; line-height: 1; color: var(--green-pastel); }

/* quote band */
.quote { background: var(--green-deep); }
.quote::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 64% at 12% 18%, rgba(173,222,168,.16), transparent 70%); }
.quote blockquote { font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(26px, 3.6vw, 48px); line-height: 1.22; letter-spacing: -.015em;
  color: #fff; max-width: 920px; }
.quote .q-hl { color: var(--green-pastel); }
.quote figcaption { margin-top: 26px; font-family: var(--font-mono); font-size: 12px;
  font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55);
  display: inline-flex; align-items: center; gap: .9em; }
.quote figcaption::before { content: ""; width: 34px; height: 1px; background: var(--green-bright); }

/* knowledge & resources */
.resources { background: var(--plaster-2); }
.res-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3,1fr); gap: 36px 30px; }
.res-card { position: relative; padding: 22px 4px 0; }
.res-card::before { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 44px;
  background: var(--ink); transition: width .55s cubic-bezier(.16,1,.3,1), background-color .3s ease; }
.res-card:hover::before { width: 100%; background: var(--green-bright); }
.res-num { display: block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; color: var(--green-bright); margin-bottom: 14px; }
.res-card h3 { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.res-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.resources .link-arrow { margin-top: 44px; }

/* membership */
.membership { background: var(--black); }
.membership::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48% 64% at 88% 8%, rgba(89,188,83,.22), transparent 70%),
    radial-gradient(42% 58% at 4% 94%, rgba(61,92,56,.55), transparent 74%); }
.plans { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 940px; }
.plan { background: none; border: 1px solid rgba(255,255,255,.28); border-radius: var(--r-card); padding: 34px 32px; color: #fff; position: relative; }
.plan-pro { background: var(--beige); color: var(--ink); border: 2px solid var(--green-bright); }
/* rubber-stamp flag — inked, slightly off-square, like it was pressed on */
.plan-flag { position: absolute; top: -16px; right: 22px; background: var(--beige); color: var(--green-deep);
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; font-weight: 700;
  padding: 7px 14px; border: 2px solid var(--green-bright); border-radius: 5px;
  letter-spacing: .08em; transform: rotate(2deg); box-shadow: 2px 2px 0 rgba(37,52,31,.45); }
.plan header h3 { font-size: 24px; } .plan .price { font-size: 16px; opacity: .8; margin-top: 4px; margin-bottom: 22px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.plan li { position: relative; padding-left: 26px; line-height: 1.45; font-size: 15.5px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green-bright); font-weight: 800; }

/* leaders row */
.leaders { background: var(--paper); padding-bottom: clamp(60px,8vh,100px); }
.leader-row { margin-top: 44px; display: flex; gap: 20px; overflow-x: auto; padding: 6px clamp(20px,5vw,48px) 24px; scroll-snap-type: x mandatory; }
.leader-row::-webkit-scrollbar { height: 8px; }
.leader-row::-webkit-scrollbar-thumb { background: #cdd6cc; border-radius: 99px; }
/* pinboard wall — each portrait hangs at its own slight angle and
   straightens up when you reach for it */
.leader-card { flex: 0 0 260px; scroll-snap-align: start; background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--r-card); overflow: hidden;
  transition: border-color .25s ease, transform .35s cubic-bezier(.16,1,.3,1),
              box-shadow .35s cubic-bezier(.16,1,.3,1); }
.leader-card:nth-child(odd)  { transform: rotate(-.7deg); }
.leader-card:nth-child(even) { transform: rotate(.5deg) translateY(3px); }
.leader-card:nth-child(3n)   { transform: rotate(.9deg) translateY(-2px); }
.leader-card:hover { border-color: var(--green-bright); transform: rotate(0) translateY(-6px);
  box-shadow: 7px 9px 0 rgba(61,92,56,.12); }
.leader-photo { height: 240px; }
.leader-card:nth-child(even) .leader-photo {
  background-color: var(--green-pastel);
  background-image: radial-gradient(rgba(33,40,24,.12) 1.5px, transparent 1.7px); }
.leader-card:nth-child(even) .leader-initial { color: var(--green-deep); }
.leader-meta { padding: 16px 18px 20px; } .leader-meta h3 { font-size: 18px; } .leader-meta p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.leader-more { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--green-deep); color: #fff; }
.leader-more h3 { color: #fff; font-size: 22px; } .leader-more p { color: rgba(255,255,255,.8); padding: 0 18px; }

/* partners / traction */
.partners { background: var(--ink); }
.partners::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(44% 60% at 10% 14%, rgba(89,188,83,.14), transparent 72%); }
.logos { margin-top: 40px; display: flex; flex-wrap: wrap; gap: clamp(20px,4vw,52px); align-items: center; }
.logos span { font-family: var(--font-display); font-size: clamp(16px,1.7vw,22px); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.5); }
.traction { margin-top: 60px; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.traction div { border-left: 3px solid var(--green-bright); padding-left: 20px; }
.t-num { display: block; font-family: var(--font-num); font-size: clamp(32px,3.8vw,50px); font-weight: 800; letter-spacing: -.02em; color: var(--green-bright); }
.t-label { display: block; margin-top: 6px; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.4; }

/* CTA band */
.cta-band { background: var(--green-bright); color: var(--ink); text-align: center; padding: clamp(60px,9vh,110px) 0; }
.cta-band h2 { font-size: clamp(30px,4vw,54px); font-weight: 800; }
.cta-band p { margin: 14px 0 30px; font-size: clamp(16px,1.8vw,20px); }
.cta-band .btn-primary { background: #fff; color: var(--green-deep); box-shadow: 4px 4px 0 var(--green-deep); }
.cta-band .btn-primary:hover { background: var(--green-deep); color: #fff; box-shadow: 6px 6px 0 var(--ink); }
.cta-band .btn-primary:active { box-shadow: 1px 1px 0 var(--ink); }

/* footer */
.footer {
  position: relative; overflow: hidden; background: var(--black);
  --ft-h:   clamp(280px, 27vw, 400px);   /* height of the light panel  */
  --illu-h: clamp(260px, 26vw, 380px);   /* rendered illustration size */
}
/* light upper panel */
.footer-top {
  position: relative; z-index: 1; height: var(--ft-h);
  background: linear-gradient(180deg, var(--beige) 0%, var(--plaster-2) 100%);
}
/* green glow bleeding across the footer seam */
.footer-blob {
  position: absolute; z-index: 2; pointer-events: none;
  top: 0; right: -6%; width: 72%;
  height: calc(var(--ft-h) + 170px);   /* panel + bleed into the dark band */
  background:
    radial-gradient(52% 48% at 62% 24%, rgba(89,188,83,.95) 0%, rgba(89,188,83,.5) 38%, rgba(89,188,83,0) 72%),
    radial-gradient(38% 32% at 82% 90%, rgba(89,188,83,.95) 0%, rgba(89,188,83,0) 70%),
    radial-gradient(24% 26% at 72% 56%, rgba(89,188,83,.55) 0%, rgba(89,188,83,0) 72%);
  filter: blur(34px);
  margin-bottom: 0;
}
/* community illustration, feet on the seam */
.footer-illu {
  position: absolute; z-index: 4; left: clamp(14px, 5vw, 64px);
  top: calc(var(--ft-h) - var(--illu-h));
  height: var(--illu-h); width: auto; pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(37,52,31,.16));
}
/* z-index 3 lifts the black band above the blob (z2): the glow bleeds flush
   beneath it — zero gap at the seam, the green sits slightly behind the footer */
.footer-bottom { position: relative; z-index: 3; background: var(--black); color: #fff; margin-bottom: 0; padding: clamp(40px,6vh,70px) 0 50px; }
.footer-bottom .wrap { position: relative; z-index: 3; }
.footer-bottom h2 { font-size: clamp(40px,6vw,72px); font-weight: 800; letter-spacing: -.01em; }
.footer-rights { margin-top: 30px; font-weight: 600; }
.footer-email {
  display: inline-block; margin-top: 14px; font-weight: 600; color: #fff;
  text-decoration: none; transition: color .2s ease;
}
.footer-email:hover { color: var(--green-pastel); }
.footer-old { display: block; margin-top: 8px; font-weight: 600; color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer-old:hover { color: var(--green-pastel); }
.footer-divider { height: 1px; background: rgba(255,255,255,.25); margin: 40px 0 22px; max-width: 360px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 14px; max-width: 100%; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; color: #fff; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.socials a:hover { color: var(--green-pastel); transform: translateY(-2px); }
.socials svg { width: 24px; height: 24px; flex-shrink: 0; fill: currentColor; }


/* polish */
/* sticky navbar shouldn't hide section headings when jumping via in-page nav */
:where(section, footer)[id] { scroll-margin-top: 104px; }

/* keyboard focus */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--green-bright); outline-offset: 3px; border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }
/* the bright ring is under 2:1 on the pastel glass header; forest keeps it at about 6:1
   (over a dark section, nav.js sets .nav-dark and the bright ring stays) */
.navbar:not(.nav-dark) :is(a, button):focus-visible { outline-color: var(--green-deep); }

/* hover states */
.plan { transition: border-color .25s ease, transform .3s cubic-bezier(.16,1,.3,1),
        box-shadow .3s cubic-bezier(.16,1,.3,1); }
.plan:not(.plan-pro):hover { border-color: rgba(255,255,255,.55); transform: translate(-3px,-3px);
  box-shadow: 6px 6px 0 rgba(173,222,168,.22); }
.plan-pro:hover { border-color: var(--green-deep); transform: translate(-3px,-3px);
  box-shadow: 6px 6px 0 rgba(89,188,83,.5); }

/* hover grammar — boxed plates lift onto a hard shadow; quiet elements answer the cursor */
.pay-plan, .match-card { transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1), border-color .25s ease; }
.pay-plan:hover, .match-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 rgba(61,92,56,.10); }
.stat { transition: border-color .25s ease; }
.stat:hover { border-top-color: var(--green-bright); }
.step { transition: transform .3s cubic-bezier(.16,1,.3,1); }
.step:hover { transform: translateY(-3px); }

/* registration ticks — corner marks that brand boxed cards as atlas plates */
.match-card, .pf-hero-card, .pf-panel { position: relative; }
.plan::before, .pay-plan::before, .pay-summary::before,
.match-card::before, .pf-hero-card::before, .pf-panel::before {
  content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; z-index: 2;
  border-top: 2px solid var(--green-bright); border-left: 2px solid var(--green-bright);
  pointer-events: none;
}
.plan::after, .pay-plan::after, .pay-summary::after,
.match-card::after, .pf-hero-card::after, .pf-panel::after {
  content: ""; position: absolute; bottom: 0; right: 0; width: 13px; height: 13px; z-index: 2;
  border-bottom: 2px solid var(--green-bright); border-right: 2px solid var(--green-bright);
  pointer-events: none;
}
.pf-panel::before, .pf-panel::after { border-color: rgba(173,222,168,.7); }

/* arrow links — editorial secondary actions */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px;
  color: var(--green-deep); border-bottom: 2px solid var(--green-bright); padding-bottom: 3px;
  transition: color .2s ease; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover { color: var(--green-bright); }
.link-arrow:hover::after { transform: translateX(4px); }

.logos span { transition: color .25s ease; cursor: default; }
.logos span:hover { color: var(--green-bright); }

.tags span { transition: background-color .2s ease, color .2s ease; }
.tags span:hover { background: var(--green-pastel); }

/* responsive */
@media (max-width: 980px) {
  .about-grid, .cards-3, .stats, .plans, .traction, .res-grid { grid-template-columns: 1fr 1fr; }
  .profile-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } /* a bare 1fr grows to the 340px card and pushes it to the screen edge */
  .platform-head { grid-template-columns: 1fr; gap: 18px; }
  .platform-head .section-title { max-width: none; }
}
/* collapse the nav early enough that the pills never clip — 1080 leaves
   room for the longer Spanish / Portuguese strings after a language swap */
@media (max-width: 1080px) {
  .nav-main, .nav-account { display: none; }
  .nav-toggle { display: flex; }
  .navbar.open { flex-wrap: wrap; }
  .navbar.open .nav-main, .navbar.open .nav-account {
    display: flex; flex-direction: column; width: 100%; gap: 14px; margin: 8px 0 0; padding-bottom: 10px;
  }
  .navbar.open .nav-account { margin-left: 0; }
  .navbar.open .nav-main a, .navbar.open .nav-account a:not(.btn) { width: fit-content; }
}
@media (max-width: 820px) {
  .hero-map { right: -38vw; z-index: 1; }
  .hero-map > .map-outline { opacity: .22; }
  .hero-net, .hero-coord { display: none; }
  .cards-3, .stats, .steps, .traction, .plans, .res-grid { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step { padding-top: 0; }
  .step::before { display: none; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-wordmark { height: 32px; }
  .brand-mark { width: 70px; height: 74px; }
  .hero-content { width: 100%; max-width: 100%; padding-inline: 24px; }
  .headline {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }
  .hero-sub,
  .hero-cta {
    width: min(312px, calc(100vw - 48px));
    max-width: min(312px, calc(100vw - 48px));
  }
  .headline, .hero-sub { overflow-wrap: normal; word-break: normal; }
  .word-building { font-size: 40px; }
  .word-infra { font-size: 31px; line-height: 1.06; max-width: 15ch; }
  .word-collab { font-size: 31px; line-height: 1.06; max-width: 12ch; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { max-width: 100%; white-space: normal; line-height: 1.2; text-align: center; }
  .footer { --ft-h: 240px; --illu-h: 215px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .headline > span, .hero-sub, .hero-cta, .hero-kicker { opacity: 1; transform: none; }
  .card-flat, .res-card, .stat, .plan, .match-card, .leader-card, .pf-card, .btn, .socials a { transition: none; }
}

/* payments page */
.pay-page { background: var(--plaster); }
/* these pages have no animated logo mark, so give the bar comparable height */
.pay-page .navbar, .profile-page .navbar { padding-top: 18px; padding-bottom: 18px; }

/* page hero */
.pay-hero { position: relative; padding: clamp(60px, 9vh, 110px) 0 clamp(36px, 5vh, 60px); border-bottom: 1px solid var(--hairline); }
.pay-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 70% at 88% 20%, rgba(173,222,168,.35), transparent 70%); }
.pay-title { font-size: clamp(40px, 6vw, 80px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; color: var(--ink); }
.pay-title em { font-style: italic; font-weight: 600; color: var(--green-bright); }
.pay-sub { margin-top: 22px; max-width: 560px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-2); }
.pay-flag { display: inline-block; margin-top: 22px; font-family: var(--font-mono); font-size: 11.5px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep);
  border: 2px solid var(--green-bright); border-radius: 5px; padding: 8px 16px;
  transform: rotate(-1.5deg); box-shadow: 2px 2px 0 rgba(61,92,56,.2); }

/* plans + summary layout */
.pay-body { padding: clamp(50px, 7vh, 90px) 0; }
.pay-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 3.5vw, 48px); align-items: start; }

/* billing toggle */
.cycle { display: inline-flex; border: 1px solid var(--hairline); border-radius: 12px; padding: 4px; margin-bottom: 28px; background: #fff; }
.cycle-btn { border: 0; background: transparent; cursor: pointer; font-family: var(--font-body);
  font-size: 15px; font-weight: 700; color: var(--green-deep); padding: 10px 22px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 10px; transition: background-color .2s ease, color .2s ease; }
.cycle-btn.is-on { background: var(--ink); color: #fff; }
.cycle-btn:not(.is-on):hover { background: var(--green-soft); }
.cycle-btn:disabled { opacity: .45; pointer-events: none; }
.cycle-save { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--green-pastel); color: var(--green-deep); border-radius: var(--r-pill); padding: 4px 10px; }

/* plan cards */
.pay-plan { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 32px 30px; position: relative; transition: border-color .25s ease; }
.pay-plan + .pay-plan { margin-top: 22px; }
.pay-plan:hover { border-color: var(--green-bright); }
.pay-plan h2 { font-size: 24px; color: var(--ink); }
.pay-price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.pay-amount { font-family: var(--font-num); font-size: clamp(34px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.pay-per { font-size: 16px; font-weight: 600; color: var(--muted); }
.pay-price-note { margin-top: 8px; font-size: 14px; color: var(--muted); }
.pay-plan ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; }
.pay-plan li { position: relative; padding-left: 26px; line-height: 1.45; font-size: 15.5px; color: var(--ink-2); }
.pay-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green-bright); font-weight: 800; }
.pay-plan-pro { background: #fff; border: 2px solid var(--green-bright); }

/* order summary */
.pay-summary { position: sticky; top: 110px; background: var(--ink); color: #fff;
  border-radius: var(--r-card); padding: 30px 28px; }
.pay-summary-kicker { font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green-pastel); margin-bottom: 10px; }
.pay-summary h2 { font-size: 26px; color: #fff; }
.pay-summary dl { margin: 22px 0; display: grid; gap: 12px; }
.pay-summary dl div { display: flex; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 12px; }
.pay-summary dt { font-size: 14px; color: rgba(255,255,255,.65); }
.pay-summary dd { font-size: 14.5px; font-weight: 700; text-align: right; }
.pay-methods { margin: 18px 0 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-methods p { width: 100%; font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 2px; }
.pay-methods span { font-size: 12.5px; font-weight: 700; border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--r-pill); padding: 6px 12px; }
.btn-block { width: 100%; }
/* ink panel — the hard shadow needs a green tint to read against the dark */
.pay-summary .btn-primary { box-shadow: 4px 4px 0 rgba(89,188,83,.35); }
.pay-summary .btn-primary:hover { box-shadow: 6px 6px 0 rgba(89,188,83,.35); }
.pay-summary .btn-primary:active { box-shadow: 1px 1px 0 rgba(89,188,83,.35); }
.pay-secure { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.6); }
.pay-checkout-note { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--green-pastel); }

/* faq */
.pay-faq { background: #fff; border-top: 1px solid var(--hairline); padding: clamp(50px, 7vh, 90px) 0 clamp(70px, 9vh, 110px); }
.pay-faq .section-title { margin-bottom: 34px; }
.pay-faq details { border-top: 1px solid var(--hairline); max-width: 760px; }
.pay-faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.pay-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 20px 2px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.pay-faq summary::-webkit-details-marker { display: none; }
.pay-faq summary::after { content: "+"; font-size: 22px; font-weight: 600; color: var(--green-bright); flex-shrink: 0; }
.pay-faq details[open] summary::after { content: "–"; }
.pay-faq details p { padding: 0 2px 22px; max-width: 640px; line-height: 1.6; color: var(--ink-2); }

/* payments footer */
.pay-footer .footer-bottom { padding-top: clamp(40px, 6vh, 70px); }

/* auth */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f9fbf7 0%, #eef6ec 100%);
}
.auth-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(110px, 14vh, 150px) 0 clamp(52px, 8vh, 86px);
  display: grid;
  grid-template-columns: .9fr 1.3fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.auth-intro h1 {
  margin-top: 12px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
  letter-spacing: 0;
  color: var(--green-deep);
}
.auth-intro p:not(.eyebrow) {
  margin-top: 20px;
  max-width: 440px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
}
.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: 6px 6px 0 rgba(61,92,56,.08);
}
.auth-card h2 { font-size: 22px; color: var(--ink); margin-bottom: 18px; }
.auth-card label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-top: 14px;
}
.auth-card input {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 12px 13px;
  font: inherit;
  letter-spacing: 0;
  color: var(--ink);
  background: #fbfdf9;
}
.auth-card .btn { width: 100%; justify-content: center; margin-top: 18px; }
.auth-card .btn:disabled { opacity: .55; cursor: wait; }
.auth-hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.auth-error {
  margin-top: 12px;
  color: #8c1d18;
  background: #fff1ee;
  border: 1px solid #f0b8ae;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .auth-shell, .auth-grid { grid-template-columns: 1fr; }
  .auth-shell { padding-top: 96px; }
}

/* ============== profile page — clean white, sistemaurbano-style ============== */
.profile-page { background: #fff; }

.pf-hero { position: relative; padding: clamp(40px, 6vh, 72px) 0 clamp(28px, 4vh, 44px); }
.pf-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 80% at 90% 10%, rgba(173,222,168,.18), transparent 70%); }

/* identity plate — one structured block, read like a surveyor's record card */
.pf-hero-card { display: flex; align-items: center; gap: clamp(22px, 3vw, 36px); flex-wrap: wrap;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px); box-shadow: 8px 10px 0 rgba(61,92,56,.06); }
/* coordinate caption in the plate corner — same signage as the landing hero */
.pf-coord { position: absolute; top: 14px; right: 18px; font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--concrete); pointer-events: none; }
.pf-avatar { position: relative; width: 140px; height: 140px; border-radius: 18px; flex-shrink: 0;
  display: grid; place-items: center;
  background-color: var(--green-deep);
  background-image: radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.7px);
  background-size: 16px 16px;
  outline: 3px solid rgba(89,188,83,.75); outline-offset: 4px; }
.pf-online { position: absolute; right: 8px; bottom: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--green-bright); border: 3px solid #fff; }
.pf-kicker { font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green-bright); margin-bottom: 10px; }
.pf-id h1 { font-size: clamp(32px, 4vw, 48px); color: var(--ink); line-height: 1.05; }
.pf-role { color: var(--muted); font-weight: 600; margin: 8px 0 14px; }
.pf-meta { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.pf-linkedin { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 13px; font-weight: 700; color: var(--green-deep);
  border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 6px 13px;
  transition: border-color .2s ease, background-color .2s ease; }
.pf-linkedin[hidden] { display: none; }
.pf-linkedin:hover { border-color: var(--green-bright); background: var(--green-soft); }
.pf-linkedin svg { width: 14px; height: 14px; fill: currentColor; }
.pf-quote { margin-top: 18px; font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 17px; line-height: 1.5; color: var(--green-deep);
  border-left: 3px solid var(--green-bright); padding-left: 16px; }
.pf-actions { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
/* match score as a pressed stamp, not a soft badge */
.pf-match { font-family: var(--font-num); font-weight: 800; font-size: 15px; color: var(--green-deep);
  background: #fff; border: 2px solid var(--green-bright);
  padding: 10px 18px; border-radius: 6px; text-align: right;
  transform: rotate(-1.5deg); box-shadow: 2px 2px 0 rgba(61,92,56,.2); }
.pf-match small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 11px;
  color: var(--ink-2); margin-top: 2px; }
.pf-btns { display: flex; gap: 10px; }
.btn.is-sent { background: var(--green-deep); }

.pf-body { padding: clamp(36px, 5vh, 64px) 0 clamp(70px, 9vh, 110px); }
.pf-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }

/* crisp white plates with the site's eyebrow language as headings */
.pf-card { position: relative; background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 30px 28px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1); }
.pf-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 rgba(61,92,56,.08); }
.pf-card + .pf-card { margin-top: 22px; }
/* plate number in the sheet corner */
.pf-num { position: absolute; top: 28px; right: 26px; font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--concrete);
  pointer-events: none; }
.pf-card h2 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green-bright); margin-bottom: 16px; }
.pf-card h2::before { content: "●"; font-size: .7em; vertical-align: middle; margin-right: .7em; }
.pf-card p { color: var(--ink-2); line-height: 1.65; font-size: 16px; }
.pf-projects { list-style: none; display: grid; gap: 14px; }
.pf-projects li { position: relative; border: 1px solid var(--hairline); border-radius: 8px; padding: 18px 20px;
  transition: border-color .2s ease; }
.pf-projects li::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px;
  width: 3px; background: var(--green-bright); border-radius: 0 3px 3px 0;
  transform: scaleY(0); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.pf-projects li:hover { border-color: var(--green-bright); }
.pf-projects li:hover::before { transform: scaleY(1); }
.pf-proj-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pf-projects h3 { font-size: 16.5px; color: var(--ink); }
.pf-projects p { font-size: 14.5px; margin-top: 6px; }
.pf-status { flex-shrink: 0; display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep);
  background: rgba(173,222,168,.5); border-radius: var(--r-pill); padding: 4px 10px; }

/* members-only block — content blurred under a veil; grid-stacked so the card
   is sized by the TALLER layer and the overlay never gets clipped */
.pf-card.pf-locked { display: grid; overflow: hidden; padding: 0; }
.pf-blur { grid-area: 1 / 1; padding: 30px 28px; filter: blur(8px);
  -webkit-user-select: none; user-select: none; pointer-events: none; }
.pf-lock-overlay { grid-area: 1 / 1; display: grid; place-items: center; text-align: center;
  padding: 28px; background: rgba(255,255,255,.6); }
.pf-lock-inner .lock { display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(173,222,168,.5); border: 1px solid var(--green-pastel);
  color: var(--green-deep); }
.pf-lock-inner .lock svg { width: 20px; height: 20px; }
.pf-lock-inner h3 { font-size: 18px; color: var(--ink); margin-top: 10px; }
.pf-lock-inner p { margin: 8px auto 16px; max-width: 360px; color: var(--ink-2); }

.pf-panel { background: var(--ink); color: #fff; border-radius: var(--r-card); padding: 26px; }
.pf-panel + .pf-panel { margin-top: 22px; }
.pf-panel h2 { font-size: 18px; color: #fff; margin-bottom: 14px; }
.pf-panel dl { display: grid; gap: 11px; }
.pf-panel dl div { display: flex; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 10px; }
.pf-panel dt { font-size: 13.5px; color: rgba(255,255,255,.65); }
.pf-panel dd { font-family: var(--font-num); font-weight: 800; }
.pf-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-links span { display: inline-block; font-size: 12.5px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill); padding: 7px 13px; }

@media (max-width: 900px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-actions { margin-left: 0; align-items: flex-start; }
  .pf-match { text-align: left; }
  .pay-grid { grid-template-columns: 1fr; }
  .pay-summary { position: static; }
}
