/* BBMLS founding-member signup.
   Tokens are lifted from the BBMLS app's design system so the page and the
   product read as the same thing: one deep indigo used sparingly, a cool
   near-white ground, and the dark chrome that frames the app. */

:root {
  --chrome: #10162b;
  --chrome-2: #161d38;
  --paper: #f5f7fa;
  --surface: #ffffff;
  --sunk: #f0f3f8;
  --ink: #1a2332;
  --ink-strong: #0b1220;
  --ink-muted: #58657a;
  --ink-faint: #636f81;
  --rule: #e6eaf1;
  --rule-strong: #d2d9e4;
  --primary: #2f4bd8;
  --primary-ink: #2339ac;
  --primary-soft: #edf0fd;
  --accent: #8b9aff;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --on-dark: #e6eaf6;
  --on-dark-muted: #a3adc6;

  --font: "Schibsted Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-card: 0 2px 4px -2px rgb(11 18 32 / .08), 0 24px 48px -16px rgb(11 18 32 / .28);
  --r: 8px;
  --r-lg: 16px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink-strong); margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── masthead ──────────────────────────────────────────────────────────── */
.mast { background: var(--chrome); color: var(--on-dark); position: relative; z-index: 2; }
.mast-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.wordmark svg { display: block; flex: none; }
.wm-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.wm-rule { width: 1px; height: 18px; background: rgb(255 255 255 / .22); }
.wm-sub { font-size: 13px; color: var(--on-dark-muted); letter-spacing: .005em; }
.mast-cta {
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: .45rem .85rem; border-radius: var(--r);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .24);
  transition: background-color .15s ease, box-shadow .15s ease;
}
.mast-cta:hover { background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(520px, 74vh, 700px);
  display: flex; align-items: flex-end;
  background: var(--chrome); color: var(--on-dark);
  overflow: hidden;
}
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img img { object-fit: cover; object-position: 62% 50%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(16 22 43 / .94) 0%, rgb(16 22 43 / .74) 34%, rgb(16 22 43 / .1) 62%, rgb(16 22 43 / 0) 80%),
    linear-gradient(0deg, rgb(16 22 43 / .9) 0%, rgb(16 22 43 / 0) 38%);
}
.hero-copy { padding-bottom: clamp(48px, 9vh, 96px); padding-top: 72px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 1.2rem + 3.9vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 13.5ch;
}
.lede {
  margin-top: 1.4rem; max-width: 34rem;
  font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); line-height: 1.6;
  color: var(--on-dark);
}

/* ── body grid: the story beside the form ─────────────────────────────── */
.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  grid-template-areas: "story join";
  column-gap: clamp(40px, 6vw, 88px);
  padding-bottom: 120px;
}
.story { grid-area: story; padding-top: 88px; min-width: 0; }
.join  { grid-area: join; margin-top: -440px; position: relative; z-index: 3; align-self: start; }

/* ── the form card ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 30px 26px;
  border-top: 4px solid var(--primary);
}
.card h2 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.022em; }
.card-note { margin-top: .5rem; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
form { margin-top: 1.25rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.f { margin-bottom: 14px; min-width: 0; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-strong); margin-bottom: 5px; }
.opt { font-weight: 400; color: var(--ink-faint); }
input, select {
  width: 100%; height: 44px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--r);
  padding: 0 12px;
  transition: border-color .13s ease, box-shadow .13s ease;
}
input::placeholder { color: var(--ink-faint); opacity: .75; }
input:hover, select:hover { border-color: var(--ink-faint); }
input:focus, select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(47 75 216 / .16);
}
select {
  appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: right 17px center, right 12px center;
  background-size: 5px 5px; background-repeat: no-repeat;
}
[aria-invalid="true"] { border-color: var(--danger); }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(179 38 30 / .14); border-color: var(--danger); }
.err { margin-top: 5px; font-size: 13.5px; line-height: 1.4; color: var(--danger); }
.hint { margin: -4px 0 18px; font-size: 13.5px; line-height: 1.45; color: var(--ink-muted); }
.form-msg {
  margin-top: 1rem; padding: .7rem .85rem; border-radius: var(--r);
  background: var(--danger-soft); color: var(--danger); font-size: 14.5px; line-height: 1.45;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  width: 100%; height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-size: 16.5px; font-weight: 600; letter-spacing: -0.005em;
  color: #fff; background: var(--primary);
  border: 0; border-radius: var(--r); cursor: pointer;
  box-shadow: 0 1px 2px rgb(11 18 32 / .1);
  transition: background-color .15s ease;
}
.btn:hover { background: var(--primary-ink); }
.btn[aria-busy="true"] { cursor: progress; background: var(--primary-ink); }
.btn[aria-busy="true"]::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fine { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--ink-faint); text-align: center; }

/* the confirmed state replaces the form in place */
.card-done { text-align: left; padding: 6px 0 4px; outline: none; }
.card-done .done-mark svg { display: block; }
.done-title { margin-top: 18px; font-size: 1.7rem; letter-spacing: -0.025em; }
.card-done p { margin-top: .6rem; color: var(--ink-muted); font-size: 15.5px; line-height: 1.55; }

/* ── the story ─────────────────────────────────────────────────────────── */
.story h2 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.12; letter-spacing: -0.028em; }
.sec-lede { margin-top: 1rem; max-width: 36rem; color: var(--ink); font-size: 1.06rem; }

.layers-grid {
  margin-top: 44px;
  display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 40px; align-items: center;
}
.layers-fig { width: 100%; height: auto; }
.layers-fig .ring { fill: none; stroke-width: 9; }
.layers-fig .r1 { stroke: #c2cdf7; }
.layers-fig .r2 { stroke: #8fa2ee; }
.layers-fig .r3 { stroke: var(--primary); }
.layers-fig .core { fill: var(--chrome); }
.layers-list { list-style: none; margin: 0; padding: 0; counter-reset: layer; }
.layers-list li {
  position: relative; counter-increment: layer;
  padding: 0 0 22px 52px; margin-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.layers-list li:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.layers-list li::before {
  content: counter(layer);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.layers-list li:nth-child(1)::before { background: #e6ebfd; color: #41529c; }
.layers-list li:nth-child(2)::before { background: #c2cdf7; color: #27358a; }
.layers-list li:nth-child(3)::before { background: var(--primary); color: #fff; }
.layers-list h3 { font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.3; padding-top: 3px; }
.layers-list p { margin-top: .35rem; color: var(--ink-muted); font-size: 16px; line-height: 1.55; }

.more { padding-bottom: 112px; }
.pair {
  margin-top: 8px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 44px; align-items: center;
}
.pair-img { margin: 0; }
.pair-img img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pair-copy h2 { font-size: clamp(1.3rem, 1.05rem + .7vw, 1.6rem); line-height: 1.18; }
.pair-copy h2 + p { margin-top: .7rem; color: var(--ink-muted); }
.pair-copy p + h2 { margin-top: 2.2rem; }

.wide {
  margin: 120px 0 0;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 44px; align-items: end;
}
.wide img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.wide figcaption p {
  font-size: clamp(1.3rem, 1rem + .9vw, 1.75rem); line-height: 1.3; letter-spacing: -0.022em;
  color: var(--ink-strong); font-weight: 500;
}
.again {
  display: inline-flex; margin-top: 1.4rem; height: 46px; align-items: center; padding: 0 1.1rem;
  border-radius: var(--r); background: var(--chrome); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15.5px; transition: background-color .15s ease;
}
.again:hover { background: var(--primary); }

/* ── footer ────────────────────────────────────────────────────────────── */
.foot { background: var(--chrome); color: var(--on-dark-muted); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.foot .wm-name { font-size: 16px; }
.foot p { font-size: 14px; }

/* ── thanks page ───────────────────────────────────────────────────────── */
.solo { min-height: calc(100vh - 64px - 84px); display: grid; place-items: center; padding: 64px 0; }
.solo .card { max-width: 520px; margin: 0 auto; }
.solo .link { display: inline-block; margin-top: 1.4rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.solo .link:hover { text-decoration: underline; }

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .body-grid { grid-template-columns: minmax(0, 1fr) 400px; }
  .join { margin-top: -380px; }
  .pair, .wide { grid-template-columns: 1fr; }
  .pair-img img { aspect-ratio: 16 / 10; object-position: 50% 40%; }
  .wide { gap: 20px; }
}
@media (max-width: 880px) {
  .hero { min-height: 520px; }
  .hero::before {
    background: linear-gradient(0deg, rgb(16 22 43 / .96) 0%, rgb(16 22 43 / .72) 45%, rgb(16 22 43 / .2) 80%);
  }
  .hero-copy { padding-bottom: 88px; }
  .hero-img img { object-position: 72% 78%; }
  .body-grid { grid-template-columns: 1fr; grid-template-areas: "join" "story"; }
  .join { margin-top: -48px; }
  .story { padding-top: 72px; }
}
@media (max-width: 560px) {
  .wm-rule, .wm-sub { display: none; }
  .card { padding: 24px 18px 20px; }
  .row2 { grid-template-columns: 1fr; }
  .layers-grid { grid-template-columns: 1fr; gap: 28px; }
  .layers-fig { max-width: 180px; }
  .pair, .wide { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── v2: networking & membership ───────────────────────────────────────── */
.benefits {
  margin: 40px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px 36px;
}
.benefits > div { position: relative; padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.benefits > div::before {               /* the core square from the mark */
  content: ""; position: absolute; top: -4px; left: 0;
  width: 8px; height: 8px; border-radius: 2px; background: var(--primary);
}
.benefits dt { font-size: 1.08rem; font-weight: 600; color: var(--ink-strong); letter-spacing: -0.015em; line-height: 1.3; }
.benefits dd { margin: .45rem 0 0; color: var(--ink-muted); font-size: 15.5px; line-height: 1.55; }

.flow-sec { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 104px 0; }
.flow-sec h2, .who h2, .founding h2 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.12; letter-spacing: -0.028em; }
.flow-grid { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.flow-img { margin: 0; }
.flow-img img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.flow::before {                          /* the line the deal travels along */
  content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--primary-soft), var(--primary));
}
.flow li { position: relative; counter-increment: step; padding: 0 0 30px 60px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums;
  background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary);
}
.flow li:last-child::before { background: var(--primary); color: #fff; }
.flow h3 { font-size: 1.12rem; letter-spacing: -0.015em; padding-top: 5px; }
.flow p { margin-top: .35rem; color: var(--ink-muted); font-size: 16px; line-height: 1.55; max-width: 34rem; }

.who { padding-top: 104px; padding-bottom: 104px; }
.who-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.who-list li { padding-top: 16px; border-top: 2px solid var(--ink-strong); }
.who-list b { display: block; font-size: 1.05rem; font-weight: 600; color: var(--ink-strong); letter-spacing: -0.012em; }
.who-list span { display: block; margin-top: .4rem; color: var(--ink-muted); font-size: 15px; line-height: 1.5; }

.founding { background: var(--chrome); color: var(--on-dark); padding: 96px 0; }
.founding + .foot .foot-in { border-top: 1px solid rgb(255 255 255 / .1); }
.founding-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.founding-img { margin: 0; }
.founding-img img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.founding h2 { color: #fff; }
.founding ul { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.founding li { position: relative; padding-left: 26px; margin-top: .9rem; font-size: 1.06rem; line-height: 1.5; color: var(--on-dark); }
.founding li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent);
}
.founding .again { background: var(--primary); margin-top: 2rem; }
.founding .again:hover { background: #4a63e8; }
.body-grid { padding-bottom: 104px; }

@media (max-width: 1080px) {
  .benefits { grid-template-columns: 1fr; gap: 28px; }
  .flow-grid, .founding-grid { grid-template-columns: 1fr; gap: 36px; }
  .flow-img img { aspect-ratio: 16 / 10; object-position: 50% 40%; }
  .who-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .flow-sec, .founding { padding: 72px 0; }
  .who { padding-top: 72px; padding-bottom: 72px; }
  .who-list { grid-template-columns: 1fr; gap: 22px; }
}
