/* Bambali web · the landing's look. Colours repeat assets/tokens.js (its pairs are contrast-tested); change both.
   No inline styles anywhere (CSP style-src 'self'); site.js only moves things through element.style. */

/* MARK: - Font */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
}

/* MARK: - Tokens */

:root {
  --ink: #0f1222;
  --muted: #4a5068;
  --wine: #962030;
  --wine-light: #ae2c3e;
  --wine-dark: #741826;
  --gold: #d9a441;
  --magenta: #e04a9e;
  --blue: #4aa3e0;
  --bg: #ffffff;
  --bg-alt: #fafafb;
  --line: #eceef3;

  --status-grey-bg: #f2f3f7;
  --status-blue: #1f5fbf;
  --status-blue-bg: #e8f1fb;
  --status-green: #2a6b4f;
  --status-green-bg: #e3f1ea;
  --status-amber: #85550a;
  --status-amber-bg: #fbf0d9;

  /* tokens.js NAV_BASE_ALPHA: ink at .8 holds 4.5:1 for white even over pure white */
  --nav-base: rgba(15, 18, 34, 0.8);
  --nav-link: #d9dbe4;

  /* Text on the ink sections and the clapperboard; form field borders (3:1, WCAG 1.4.11) */
  --on-ink-muted: #aab0c4;
  --field-line: #7d8399;

  --max: 1180px;
  --gutter: 32px;
  --section: 128px;
  --radius: 20px;
  --shadow-lg: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 13px 27px -5px rgba(50, 50, 93, 0.18), 0 8px 16px -8px rgba(0, 0, 0, 0.2);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-swap: cubic-bezier(0.7, 0, 0.2, 1);

  --font: 'Inter', -apple-system, system-ui, sans-serif;
}

/* MARK: - Base */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: 'cv11', 'ss03';
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
}

/* MARK: - Nav */

.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px;
  pointer-events: none;
}

.nav__bar {
  pointer-events: auto;
  max-width: calc(var(--max) - 2 * var(--gutter) + 24px);
  margin: 0 auto;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px 0 20px;
  border-radius: 999px;
  background: var(--nav-base);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 18px 40px -18px rgba(15, 18, 34, 0.55);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
  border-radius: 999px;
}

.brand__mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 45%),
    conic-gradient(from 210deg, var(--magenta), var(--wine-light), var(--gold), var(--blue), var(--magenta));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.brand__word {
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-right: 8px;
}

.nav__links a,
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--nav-link);
  font: inherit;
  font-size: 14.5px;
  font-weight: 520;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav__links a:hover,
.nav__lang:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__lang {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav__lang-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(255, 255, 255, 0.6);
}

/* MARK: - Hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* The wave: a curved band whose lower edge stays above the title's column and falls behind the phone. */
.wave {
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  z-index: -1;
  overflow: hidden;
  background: var(--wine);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 95% 90.5%, 90% 81.7%, 85% 73.5%, 80% 66%, 75% 59.1%, 70% 52.8%, 65% 47.2%, 60% 42.1%, 55% 37.5%, 50% 33.5%, 45% 30.1%, 40% 27.1%, 35% 24.6%, 30% 22.6%, 25% 20.9%, 20% 19.7%, 15% 18.9%, 10% 18.3%, 5% 18.1%, 0 18%);
}

.wave__blobs {
  position: absolute;
  inset: -20%;
}

.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob--1 { left: 2%;  top: 8%;  background: radial-gradient(closest-side, rgba(224, 74, 158, 0.95), rgba(224, 74, 158, 0)); }
.blob--2 { left: 22%; top: 30%; background: radial-gradient(closest-side, rgba(174, 44, 62, 0.95), rgba(174, 44, 62, 0)); }
.blob--3 { left: 40%; top: 4%;  background: radial-gradient(closest-side, rgba(217, 164, 65, 0.9), rgba(217, 164, 65, 0)); }
.blob--4 { left: 58%; top: 28%; background: radial-gradient(closest-side, rgba(74, 163, 224, 0.9), rgba(74, 163, 224, 0)); }
.blob--5 { left: 72%; top: 2%;  background: radial-gradient(closest-side, rgba(224, 74, 158, 0.85), rgba(224, 74, 158, 0)); }
.blob--6 { left: 34%; top: 52%; background: radial-gradient(closest-side, rgba(116, 24, 38, 0.95), rgba(116, 24, 38, 0)); mix-blend-mode: multiply; }

.wave__lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 120px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 268px var(--gutter) 112px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 40px;
  align-items: start;
}

.hero__copy { padding-top: 4px; }

.badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line) inset, 0 6px 16px -10px rgba(15, 18, 34, 0.25);
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ink);
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 0 4px rgba(42, 107, 79, 0.16);
  animation: pulse 2.4s var(--ease) infinite;
}
.badge__sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}
.badge__soon { color: var(--wine); font-weight: 650; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(42, 107, 79, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(42, 107, 79, 0.06); }
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(42px, 5.7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 780;
}

.hero__line {
  display: block;
  white-space: nowrap;
}

/* The rotating role: every word in one grid cell, so the box is as wide as the widest and nothing jumps. */
.rot {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.rot__word {
  grid-area: 1 / 1;
  background: linear-gradient(100deg, var(--wine) 0%, var(--wine-light) 45%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(105%);
  filter: blur(8px);
  transition: transform 0.75s var(--ease-swap), opacity 0.55s var(--ease), filter 0.6s var(--ease);
}
.rot__word.is-current { opacity: 1; transform: none; filter: none; }
.rot__word.is-leaving { opacity: 0; transform: translateY(-105%); filter: blur(8px); }

.hero__lead {
  margin-top: 28px;
  max-width: 560px;
  font-size: 19.5px;
  line-height: 1.6;
  color: var(--muted);
}
.hero__lead strong { color: var(--ink); font-weight: 650; }

.hero__for {
  margin-top: 14px;
  max-width: 540px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 8px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(150, 32, 48, 0.65);
}
.btn--primary:hover {
  background: var(--wine-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(116, 24, 38, 0.7);
}

.btn__arrow,
.btn__chev { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow,
.btn:hover .btn__chev { transform: translateX(3px); }

.btn--quiet {
  color: var(--wine);
  padding: 0 18px;
}
.btn--quiet:hover { background: rgba(150, 32, 48, 0.06); }

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 30px;
  padding-top: 22px;
  max-width: 520px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.hero__note-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--wine);
  stroke-width: 1.7;
  stroke-linecap: round;
}

/* MARK: - The phone that acts */

.stage {
  position: relative;
  height: 660px;
  margin-top: -120px;
  perspective: 1600px;
}

.stage__glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 18, 34, 0.22), transparent);
  filter: blur(10px);
}

.phone {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 300px;
  height: 612px;
  margin-left: -150px;
  border-radius: 50px;
  padding: 11px;
  background: linear-gradient(145deg, #2b2f45, #0f1222 40%, #1b1e31);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform-style: preserve-3d;
  transform: rotateY(-8deg) rotateX(4deg);
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: var(--bg);
  padding: 14px 14px 16px;
  font-size: 13px;
  line-height: 1.4;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px 0;
  height: 26px;
  font-size: 13px;
  font-weight: 650;
}
.phone__island {
  width: 86px;
  height: 25px;
  border-radius: 999px;
  background: var(--ink);
}
.phone__icons { display: flex; gap: 3px; align-items: flex-end; }
.phone__icons i { display: block; width: 4px; border-radius: 1px; background: var(--ink); }
.phone__icons i:nth-child(1) { height: 6px; }
.phone__icons i:nth-child(2) { height: 8px; }
.phone__icons i:nth-child(3) { height: 10px; }

.phone__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 4px 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
}
.phone__sample {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--status-grey-bg);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.callcard {
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -14px rgba(15, 18, 34, 0.28);
}

.callcard__art {
  position: relative;
  height: 172px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), #7a5fd0 45%, var(--magenta));
}
.callcard__shape {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.callcard__shape--a { width: 170px; height: 170px; right: -40px; top: -50px; background: radial-gradient(closest-side, rgba(217, 164, 65, 0.85), transparent); }
.callcard__shape--b { width: 120px; height: 120px; left: 20px; bottom: -60px; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), transparent); }
.callcard__shape--c {
  width: 74px; height: 74px; left: 50%; top: 50%; margin: -37px 0 0 -37px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  mix-blend-mode: normal;
}
.callcard__shape--c::after {
  content: '';
  position: absolute;
  left: 29px;
  top: 23px;
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.85);
}
.callcard__chip {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.callcard__body { padding: 14px 14px 16px; }
.callcard__title { font-size: 17px; font-weight: 720; letter-spacing: -0.02em; }
.callcard__org {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 560;
}
.seal {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--status-blue);
  font-weight: 600;
  font-size: 11.5px;
}
.seal__icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.callcard__meta { margin-top: 2px; font-size: 12.5px; color: var(--muted); }

.steps { display: flex; gap: 5px; margin-top: 14px; }
.steps i {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #e3e6ee;
  transition: background-color 0.5s var(--ease);
}
.steps i.is-done { background: var(--status-green); }

.status {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  transition: background-color 0.4s, color 0.4s;
}
.status--grey { background: var(--status-grey-bg); color: var(--muted); }
.status--blue { background: var(--status-blue-bg); color: var(--status-blue); }
.status--amber { background: var(--status-amber-bg); color: var(--status-amber); }
.status--green { background: var(--status-green-bg); color: var(--status-green); }

.tap {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
  z-index: 2;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s;
  pointer-events: none;
}
.tap.is-on { transform: scale(1); opacity: 1; }

.phone__button {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  transition: background-color 0.4s, transform 0.2s;
}
.phone__button.is-sent { background: var(--status-green); }
.phone__button.is-pressed { transform: scale(0.97); }

.toast {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 290px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(15, 18, 34, 0.05);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }
.toast--one { left: -34px; top: 170px; }
.toast--two { right: -30px; top: 410px; }

.toast__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.toast__icon--warm { background: linear-gradient(135deg, var(--gold), var(--wine)); }
.toast__icon--cool { background: linear-gradient(135deg, var(--blue), var(--magenta)); }

.toast__text { display: grid; line-height: 1.35; }
.toast__text b { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.toast__text span { font-size: 12px; color: var(--muted); }

/* A second, quieter call under the first, so the screen reads as a feed */
.minicall {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line);
}
.minicall__art {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--wine-light));
}
.minicall__text { display: grid; min-width: 0; line-height: 1.35; }
.minicall__text b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minicall__text span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* MARK: - Marquee */

.live {
  position: relative;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.live__label {
  position: relative;
  z-index: 2;
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 18px 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.live__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.live__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}
.live:hover .live__track { animation-play-state: paused; }

.live__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 26px;
  white-space: nowrap;
  font-size: 14.5px;
  color: var(--muted);
}
.live__item b { color: var(--ink); font-weight: 620; }
.live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 0 4px rgba(42, 107, 79, 0.14);
}
.live__tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 12.5px;
  font-weight: 560;
  color: var(--muted);
}

/* A public call from /api/convocatorias is a link to its page (site.js); the samples are not. */
.live__track--real > li { display: flex; }
a.live__item { text-decoration: none; }
a.live__item:hover b { text-decoration: underline; text-underline-offset: 3px; }
a.live__item:focus-visible { outline-offset: -6px; border-radius: 14px; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* MARK: - Trust strip */

.trust { padding: var(--section) 0; }

.trust__title {
  margin-top: 14px;
  max-width: 720px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 740;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 64px;
}

.trust__item {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 40px;
  height: 2px;
  background: var(--accent-line, var(--wine));
}
.trust__item:nth-child(2) { --accent-line: var(--blue); }
.trust__item:nth-child(3) { --accent-line: var(--magenta); }
.trust__item:nth-child(4) { --accent-line: var(--gold); }

.trust__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--bg-alt);
  box-shadow: 0 0 0 1px var(--line) inset;
  color: var(--wine);
}
.trust__icon--verified { color: var(--status-blue); }
.trust__icon--data { color: #a32d72; }
.trust__icon--city { color: var(--status-amber); }
.trust__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust__item h3 {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 680;
}
.trust__item p {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* MARK: - Pause and play */

.motion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 11px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line) inset, 0 6px 16px -10px rgba(15, 18, 34, 0.3);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.motion:hover { box-shadow: 0 0 0 1px var(--field-line) inset, 0 8px 18px -10px rgba(15, 18, 34, 0.35); }

/* Two bars (pause); a triangle once paused (play) */
.motion__icon {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
}
.motion__icon::before,
.motion__icon::after {
  content: '';
  position: absolute;
  top: 0;
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: currentColor;
}
.motion__icon::before { left: 1px; }
.motion__icon::after { right: 1px; }
.motion.is-paused .motion__icon::before {
  left: 2px;
  width: 0;
  height: 0;
  border-radius: 0;
  background: none;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}
.motion.is-paused .motion__icon::after { display: none; }

.motion--stage {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  transform: translateX(-50%);
}

.motion--live {
  position: relative;
  z-index: 2;
  flex: none;
  margin: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 0 12px;
}

.is-still .live__track,
.is-still .badge__dot,
.is-still .close__wave .blob,
.is-still .slate__go { animation-play-state: paused; }

/* MARK: - Sections */

[hidden] { display: none !important; }

.sec { position: relative; padding: var(--section) 0; }
.sec--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec__head { max-width: 780px; }
.sec__head--center { margin: 0 auto; text-align: center; }

.sec__title {
  margin-top: 14px;
  max-width: 780px;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 760;
  text-wrap: balance;
}
.sec__head--center .sec__title { margin-left: auto; margin-right: auto; }

.sec__lead {
  margin-top: 22px;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.sec__aside {
  margin-top: 18px;
  font-size: 15.5px;
  color: var(--muted);
}

.link {
  color: var(--wine);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 4px;
}
.link:hover { color: var(--wine-dark); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 80px;
  align-items: center;
}

/* Sections rise into view once (only when site.js adds .can-reveal, never with reduced motion) */
.reveal { transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.can-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }
.features .reveal:nth-child(3n + 2),
.how .reveal:nth-child(2),
.vs .reveal:nth-child(2) { transition-delay: 0.08s; }
.features .reveal:nth-child(3n),
.how .reveal:nth-child(3) { transition-delay: 0.16s; }

/* MARK: - Cards that show the app (samples) */

.panel {
  position: relative;
  padding: 22px;
  border-radius: 26px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.panel__head b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

.chip {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--status-grey-bg);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.chip--dark { background: rgba(255, 255, 255, 0.1); color: var(--nav-link); }

.apps__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.apps__row:first-child { border-top: 0; }
.apps__row .status { margin-top: 0; white-space: nowrap; }

.apps__art {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.apps__art--1 { background: linear-gradient(135deg, var(--blue), var(--magenta)); }
.apps__art--2 { background: linear-gradient(135deg, var(--gold), var(--wine)); }
.apps__art--3 { background: linear-gradient(135deg, var(--wine-light), var(--wine-dark)); }
.apps__art--4 { background: linear-gradient(135deg, var(--magenta), var(--gold)); }
.apps__art--5 { background: linear-gradient(135deg, var(--wine), var(--magenta)); }
.apps__art--6 { background: linear-gradient(135deg, var(--blue), var(--gold)); }

.apps__text { display: grid; min-width: 0; line-height: 1.35; }
.apps__text b { font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apps__text span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ask {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-alt);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.ask__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line) inset;
  color: var(--wine);
}
.ask__icon svg,
.feature__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ask__text { display: grid; line-height: 1.4; }
.ask__text b { font-size: 13.5px; font-weight: 650; }
.ask__text span { font-size: 12.5px; color: var(--muted); }

/* MARK: - For talent */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 48px;
  margin-top: 112px;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(150, 32, 48, 0.08), rgba(224, 74, 158, 0.1));
  box-shadow: 0 0 0 1px rgba(150, 32, 48, 0.12) inset;
  color: var(--wine);
}

.feature h3 {
  margin-top: 20px;
  font-size: 18.5px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 680;
}
.feature p {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* MARK: - For organizations: tabs */

.tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 44px;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line) inset, 0 10px 24px -16px rgba(15, 18, 34, 0.3);
}

.tabs__tab {
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 620;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected='true'] { background: var(--ink); color: #fff; }

.tabpanel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 64px;
  align-items: start;
  margin-top: 56px;
  border-radius: 12px;
  animation: panel-in 0.5s var(--ease);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
}

.orglist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
}
.orglist li { padding-top: 22px; border-top: 1px solid var(--line); }
.orglist h3 { font-size: 17px; line-height: 1.3; font-weight: 680; letter-spacing: -0.01em; }
.orglist p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.filters span {
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.filters .filters__on { background: var(--ink); color: #fff; box-shadow: none; }

.tray {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tray__item {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 7px 7px 9px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line) inset;
  line-height: 1.3;
}
.tray__item b { margin-top: 6px; font-size: 12.5px; font-weight: 650; }
.tray__item span:not(.tray__art) { font-size: 11px; color: var(--muted); }
.tray__item.is-picked { box-shadow: 0 0 0 2px var(--wine) inset; }
.tray__item.is-picked::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 2px #fff;
}
.tray__item.is-picked::before {
  content: '';
  position: absolute;
  z-index: 1;
  right: 19px;
  top: 16px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tray__art {
  display: block;
  aspect-ratio: 4 / 3.4;
  border-radius: 11px;
}
.tray__art--1 { background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.45), transparent 40%), linear-gradient(135deg, var(--blue), var(--magenta)); }
.tray__art--2 { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 42%), linear-gradient(135deg, var(--gold), var(--wine)); }
.tray__art--3 { background: radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.35), transparent 40%), linear-gradient(135deg, var(--magenta), var(--wine-dark)); }
.tray__art--4 { background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.4), transparent 40%), linear-gradient(135deg, var(--wine-light), var(--gold)); }
.tray__art--5 { background: radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.4), transparent 40%), linear-gradient(135deg, var(--blue), var(--wine)); }
.tray__art--6 { background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.35), transparent 42%), linear-gradient(135deg, var(--gold), var(--magenta)); }

.panel__action {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 14.5px;
  font-weight: 650;
}

.event {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-alt);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.event__qr {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.event__qr i { border-radius: 2px; background: var(--ink); }
.event__qr i:nth-child(5n + 2),
.event__qr i:nth-child(8),
.event__qr i:nth-child(11) { background: transparent; }
.event__text { display: grid; min-width: 0; line-height: 1.4; }
.event__text b { font-size: 14px; font-weight: 650; }
.event__text span { font-size: 12.5px; color: var(--muted); }

/* MARK: - How it works */

.how {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}
.how::before {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  top: 54px;
  border-top: 2px dashed var(--line);
}

.how__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border-radius: 26px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-md);
}
.how__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--wine-light), var(--wine-dark));
  color: #fff;
  font-size: 19px;
  font-weight: 750;
  box-shadow: 0 10px 22px -10px rgba(150, 32, 48, 0.7);
}
.how__step h3 { margin-top: 22px; font-size: 21px; font-weight: 720; letter-spacing: -0.02em; }
.how__step p { margin-top: 10px; font-size: 15.5px; line-height: 1.62; color: var(--muted); }
.how__step .how__tag { margin-top: 22px; }
.how__step .seal { font-size: 13px; }

/* MARK: - Before and now */

.vs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.vs__card {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 28px;
}
.vs__card--before { background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.vs__card--now {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.vs__card--now::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--magenta), var(--wine-light), var(--gold), var(--blue));
}

.vs__title { font-size: 20px; font-weight: 720; letter-spacing: -0.02em; }
.vs__card--before .vs__title { color: var(--muted); }

.vs__list { display: grid; gap: 16px; margin-top: 26px; }
.vs__list li {
  position: relative;
  padding-left: 38px;
  font-size: 16.5px;
  line-height: 1.5;
}
.vs__card--before li { color: var(--muted); }
.vs__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.vs__list li::after {
  content: '';
  position: absolute;
}
/* ✗ for before: two crossed bars */
.vs__card--before li::before { background: var(--status-grey-bg); }
.vs__card--before li::after {
  left: 7px;
  top: 7px;
  width: 10px;
  height: 10px;
  background:
    linear-gradient(45deg, transparent 43%, var(--muted) 43% 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--muted) 43% 57%, transparent 57%);
}
/* ✓ for now */
.vs__card--now li::before { background: var(--gold); }
.vs__card--now li::after {
  left: 9px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* MARK: - The clapperboard */

.split--clap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li {
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 560;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--status-green-bg);
}
.ticks li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--status-green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ticks--small li { font-size: 15px; }

/* Room above the slate for its open clapstick */
.slate-wrap { position: relative; padding-top: 150px; }
.slate-wrap::before {
  content: '';
  position: absolute;
  inset: 8% -6% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(224, 74, 158, 0.16), rgba(74, 163, 224, 0.1) 60%, transparent);
  filter: blur(20px);
}

.slate {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  filter: drop-shadow(0 40px 60px rgba(15, 18, 34, 0.24));
  cursor: pointer;
}
.slate.is-hit .slate__body,
.slate.is-hit .slate__hinge { animation: knock 0.32s var(--ease) 0.15s; }

@keyframes knock {
  30% { transform: translateY(3px); }
}

.slate__clap {
  display: block;
  width: 100%;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: repeating-linear-gradient(-55deg, var(--ink) 0 30px, #fff 30px 60px);
  box-shadow: 0 0 0 1.5px var(--ink) inset;
  transform-origin: 14px 100%;
  transform: rotate(-20deg);
  transition: transform 0.16s cubic-bezier(0.6, 0, 1, 1);
  cursor: pointer;
}
.slate__clap:hover { transform: rotate(-23deg); }
.slate__clap.is-shut { transform: rotate(0); transition-duration: 0.14s; }
.slate__clap:focus-visible { outline-offset: 4px; }

.slate__hinge {
  height: 24px;
  background: repeating-linear-gradient(-55deg, #fff 0 30px, var(--ink) 30px 60px);
  box-shadow: 0 0 0 1.5px var(--ink) inset;
}

.slate__body {
  padding: 26px 28px 28px;
  border-radius: 0 0 24px 24px;
  background: var(--ink);
  color: #fff;
}
.slate__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.slate__kind {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.slate__title { margin-top: 12px; font-size: 30px; line-height: 1.1; font-weight: 740; letter-spacing: -0.03em; }
.slate__who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; font-size: 14.5px; color: var(--nav-link); }
.slate__seal { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 620; font-size: 13.5px; }

.slate__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 0;
}
.slate__grid div { padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.slate__grid dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}
.slate__grid dd { margin: 4px 0 0; font-size: 17px; font-weight: 650; }

.slate__go {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--wine-light), var(--wine), var(--wine-dark), var(--wine-light));
  background-size: 300% 100%;
  animation: go-flow 8s ease-in-out infinite;
  font-size: 15.5px;
  font-weight: 650;
}

@keyframes go-flow {
  50% { background-position: 100% 0; }
}

.slate-hint { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }

/* MARK: - Trust (dark) */

.sec--ink {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.sec--ink::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -30%;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(224, 74, 158, 0.22), rgba(150, 32, 48, 0.12) 55%, transparent);
  pointer-events: none;
}
.sec--ink .container { position: relative; }
.eyebrow--gold { color: var(--gold); }

.split--trust {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 72px;
  align-items: end;
}

.safe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 44px;
  margin-top: 60px;
}
.safe li { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.safe h3 { font-size: 17.5px; font-weight: 680; letter-spacing: -0.01em; }
.safe p { margin-top: 8px; font-size: 15.5px; line-height: 1.62; color: var(--on-ink-muted); }

.verify {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.verify__title { font-size: 19px; font-weight: 720; letter-spacing: -0.02em; }
.verify__steps { display: grid; gap: 22px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: verify; }
.verify__steps li {
  position: relative;
  display: grid;
  padding-left: 46px;
  line-height: 1.45;
  counter-increment: verify;
}
.verify__steps li::before {
  content: counter(verify);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
.verify__steps b { font-size: 15.5px; font-weight: 650; }
.verify__steps span { margin-top: 2px; font-size: 14.5px; color: var(--on-ink-muted); }
.verify__note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-ink-muted);
}

/* MARK: - Questions */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative;
  display: block;
  padding: 24px 48px 24px 0;
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  border-radius: 8px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before,
.faq__item summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--wine);
  transition: transform 0.3s var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item summary:hover { color: var(--wine); }
.faq__item p {
  max-width: 640px;
  padding: 0 48px 26px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* MARK: - Closing: the waitlist */

.close {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 136px 0;
}

.close__wave {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--wine);
}
.close__wave .blob { animation: drift 22s ease-in-out infinite alternate; }
.close__wave .blob--1 { left: -8%; top: -30%; }
.close__wave .blob--3 { left: 30%; top: 20%; animation-duration: 26s; animation-delay: -6s; }
.close__wave .blob--4 { left: 62%; top: -20%; animation-duration: 30s; animation-delay: -12s; }
.close__wave .blob--5 { left: 78%; top: 40%; animation-duration: 24s; animation-delay: -3s; }
.close__wave .blob--6 { left: 10%; top: 50%; animation-duration: 28s; }

@keyframes drift {
  to { transform: translate3d(12vw, 8vh, 0) scale(1.1); }
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
  padding: 64px;
  border-radius: 34px;
  background: var(--bg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.join__title {
  margin-top: 14px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 770;
  text-wrap: balance;
}
.join__lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* MARK: - The form */

.form { position: relative; }
.form__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

.field { display: grid; gap: 8px; }
.field__label { font-size: 14.5px; font-weight: 650; }

.field__input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--field-line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input::placeholder { color: var(--muted); opacity: 1; }
.field__input:hover { border-color: var(--muted); }
.field__input:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(150, 32, 48, 0.14); }
/* A real outline too, so the focus shows in forced-colours mode */
.field__input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 14px; }
.field__input[aria-invalid='true'] { border-color: var(--wine); }

.field__select { position: relative; }
.field__select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.field__select::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}

.field--check {
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}
.field--check label { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.field--check .field__error { grid-column: 2; }

.check {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--wine);
  cursor: pointer;
}

.field__error {
  font-size: 13.5px;
  font-weight: 620;
  color: var(--wine);
}

/* Turnstile's flexible widget is 300 px at least: the card leaves it that much room at 360 px */
.turnstile { min-height: 65px; max-width: 100%; overflow: hidden; }
.turnstile:empty { min-height: 0; }

.form__submit { width: 100%; height: 56px; justify-content: center; border: 0; font: inherit; font-size: 16.5px; font-weight: 650; cursor: pointer; }
.form__submit:disabled { cursor: progress; background: var(--wine-dark); transform: none; }

.form__status { min-height: 1.5em; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.form__status.is-error { color: var(--wine); font-weight: 620; }

.form__done {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 32px 12px;
  text-align: center;
  border-radius: 24px;
  background: var(--bg-alt);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.form__done:focus { outline: none; }
.form__done-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--status-green-bg);
  color: var(--status-green);
  animation: pop 0.5s var(--ease);
}
.form__done-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form__done-title { margin-top: 6px; font-size: 26px; font-weight: 760; letter-spacing: -0.03em; }
.form__done-sub { max-width: 360px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
}

/* MARK: - Footer */

.foot { padding: 72px 0 36px; border-top: 1px solid var(--line); }

.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 48px;
  align-items: start;
}

.brand--dark { color: var(--ink); margin-right: 0; }
.foot__tag { margin-top: 16px; max-width: 360px; font-size: 15px; color: var(--muted); }
.foot__note { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.foot__nav { display: grid; gap: 12px; justify-items: start; }
.foot__nav a {
  font-size: 15px;
  font-weight: 560;
  text-decoration: none;
  border-radius: 6px;
}
.foot__nav a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

.foot__lang {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line) inset;
}
.foot__lang-btn {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.foot__lang-btn[aria-pressed='true'] { background: var(--ink); color: #fff; }

.foot__base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.foot__base span { display: block; }

/* MARK: - Legal pages (privacidad, términos) */

.legal-top {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 26px 0 120px;
  background: var(--wine);
}
.legal-top .blob { opacity: 0.85; }
.legal-top__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-top .brand { margin-right: 0; }
.legal-top__back {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--nav-base);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.legal-top .wave__lines,
.legal-top__blobs { position: absolute; inset: 0; z-index: -1; }

.legal {
  position: relative;
  max-width: 820px;
  margin: -72px auto 0;
  padding: 56px 64px 64px;
  border-radius: 28px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}
.legal__flag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--status-amber-bg);
  color: var(--status-amber);
  font-size: 13px;
  font-weight: 650;
}
.legal h1 { margin-top: 18px; font-size: clamp(32px, 5vw, 46px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 760; }
.legal__date { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.legal h2 { margin-top: 40px; font-size: 21px; letter-spacing: -0.02em; font-weight: 700; }
.legal p,
.legal li { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal ul { padding-left: 20px; list-style: disc; }
.legal strong { color: var(--ink); font-weight: 650; }
.legal__en { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; }

/* MARK: - Responsive */

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --section: 104px; }

  .wave {
    height: 300px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 87.5% 95%, 75% 90.4%, 62.5% 86.3%, 50% 82.6%, 37.5% 79.4%, 25% 76.8%, 12.5% 74.9%, 0 74%);
  }
  .blob { min-width: 300px; min-height: 300px; width: 80vw; height: 80vw; }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 332px;
    padding-bottom: 64px;
  }
  .stage { margin-top: 24px; height: 640px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; --section: 96px; }
  body { font-size: 16px; }

  .nav { top: 10px; padding: 0 12px; }
  .nav__bar { height: 54px; padding: 0 7px 0 16px; }
  .brand__word { font-size: 19px; }
  .nav__lang { padding: 0 10px; }
  .nav__lang [data-i18n] { display: none; }
  .nav__cta { padding: 0 15px; font-size: 14px; }

  .wave {
    height: 236px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 87.5% 95%, 75% 90.4%, 62.5% 86.3%, 50% 82.6%, 37.5% 79.4%, 25% 76.8%, 12.5% 74.9%, 0 74%);
  }

  .hero__inner { padding-top: 270px; }
  .hero__title { margin-top: 22px; font-size: clamp(38px, 11.2vw, 56px); letter-spacing: -0.04em; }
  .hero__lead { font-size: 17.5px; margin-top: 22px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  .stage { height: 600px; perspective: 1200px; }
  .phone { transform: none; width: 280px; height: 580px; margin-left: -140px; top: 14px; }
  .callcard__art { height: 128px; }
  .badge { font-size: 12.5px; padding: 6px 12px 6px 10px; }
  .badge__sep,
  .badge__soon { display: none; }
  .toast { max-width: 250px; padding: 10px 14px 10px 10px; }
  .toast--one { left: 0; top: 118px; }
  .toast--two { right: 0; top: 380px; }

  .live__item { padding: 16px 20px; font-size: 14px; }
  .live__label { padding-left: var(--gutter); }

  .trust__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 48px; }
}

/* MARK: - Responsive: the sections */

@media (max-width: 1080px) {
  .split { gap: 56px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabpanel { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .tabpanel .panel { max-width: 560px; }
  .split--trust { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .verify { max-width: 560px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .join { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 56px; }
  .foot__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__lang { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 900px) {
  .stage { height: 690px; }
  .split,
  .split--clap { grid-template-columns: minmax(0, 1fr); }
  .split .panel { max-width: 560px; }
  .slate-wrap { padding-top: 120px; }
  .features { margin-top: 88px; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }
  .how::before { left: 55px; right: auto; top: 40px; bottom: 40px; border-top: 0; border-left: 2px dashed var(--line); }
  .vs { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 901px) {
  .stage { height: 700px; }
}

@media (max-width: 560px) {
  .stage { height: 650px; }
  .motion--live { margin-right: var(--gutter); padding: 0; width: 36px; justify-content: center; }
  .motion--live .motion__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .sec__lead { font-size: 17.5px; }
  .split { gap: 48px; }
  .panel { padding: 16px; border-radius: 22px; }
  .apps__row { grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; row-gap: 6px; }
  .apps__art { width: 36px; height: 36px; border-radius: 10px; }
  .apps__row .status { grid-column: 2; justify-self: start; }

  .features { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 72px; }

  .tabs { display: grid; width: 100%; border-radius: 22px; }
  .tabs__tab { border-radius: 17px; }
  .tabpanel { margin-top: 36px; }
  .orglist { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tray { gap: 8px; }

  .how__step { padding: 26px 24px; }
  .how::before { left: 47px; }
  .vs__card { padding: 30px 24px; border-radius: 24px; }
  .vs__list li { font-size: 16px; }

  .slate__body { padding: 22px 20px 22px; }
  .slate__title { font-size: 25px; }
  .slate__grid dd { font-size: 15.5px; }
  .slate-wrap { padding-top: 84px; }
  .slate__clap { height: 52px; transform: rotate(-14deg); }
  .slate__clap:not(.is-shut):hover { transform: rotate(-16deg); }
  .slate__hinge { height: 20px; }

  .safe { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 44px; }
  .verify { padding: 26px 22px; }

  .faq__item summary { font-size: 16.5px; padding: 20px 40px 20px 0; }
  .faq__item p { padding-right: 0; }

  .close { padding: 72px 0; }
  .close .container { padding: 0 12px; }
  .join { padding: 30px 14px; border-radius: 26px; }
  .join__copy { padding: 0 6px; }
  .join__lead { font-size: 17px; }

  .foot__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .legal-top { padding-bottom: 96px; }
  .legal { margin: -64px 16px 0; padding: 36px 22px 40px; border-radius: 22px; }
}

/* MARK: - Reduced motion: everything stays still */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .live__viewport { mask-image: none; }
  .live__track { width: auto; flex-wrap: wrap; justify-content: flex-start; padding: 6px 0; }
  .live__track [data-clone] { display: none; }
  .live__item { padding: 10px 18px; }
  .motion { display: none; }
  .can-reveal .reveal:not(.is-in) { opacity: 1; transform: none; }
  .slate__clap,
  .slate__clap:hover { transform: none; }
}
