/*
  BidBlock landing site.

  Layout and copy come from the holding-page design; every colour, radius, shadow
  and font comes from the app's own tokens, so the two properties read as one
  product. Keep the app's colour grammar when adding sections:
    - ink (--pri-*) = actions: primary buttons.
    - brand (glacier) = punctuation only: links, icons, markers.
    - semantic green/red/amber = state, never decoration.
*/
@import "./tokens.css";

/* the landing page's own rhythm — the app is a dense tool, marketing needs air */
:root {
  --gutter: 26px;
  --band: 96px;
  --stack-lg: 34px;
}

* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  min-height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
}
a {
  color: var(--brand-strong);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1, h2, h3, h4, p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.band {
  padding: var(--band) 0 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.siteHead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--canvas);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.siteHead.stuck {
  border-bottom-color: var(--line);
}
.headIn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
/* The app's BrandWordmark component, as plain CSS: Bid + Bl + cube + ck, with
   the two halves driven by the same --wordmark-* variables the app sets. */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 var(--text-brand)/1 var(--font-brand);
  font-variation-settings: "opsz" 48;
  letter-spacing: 0;
  color: var(--ink-2);
  text-decoration: none;
  --wordmark-bid: var(--ink-2);
  --wordmark-block: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font: inherit;
  line-height: 1;
  letter-spacing: inherit;
}
.wmBid {
  color: var(--wordmark-bid, currentColor);
}
.wmBlock {
  color: var(--wordmark-block, currentColor);
}
.wmCube {
  width: 0.57em;
  height: 0.57em;
  margin: 0 0.035em;
  align-self: center;
  flex: none;
  overflow: visible;
  transform: translateY(-0.025em);
  color: var(--wordmark-block, currentColor);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.headRight {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* ============================================================
   BUTTONS — the app's Button component, as plain CSS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}
.btn:hover {
  border-color: var(--line-2);
  background: var(--surface-soft);
  text-decoration: none;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn.primary {
  border-color: var(--pri-border);
  background: var(--pri-bg);
  color: var(--pri-ink);
  box-shadow: var(--pri-shadow);
}
.btn.primary:hover {
  border-color: var(--pri-border);
  background: var(--pri-bg-hover);
  box-shadow: var(--pri-shadow);
}
.btn.icon {
  width: 36px;
  padding: 0;
  color: var(--ink-2);
}
.btn.lg {
  min-height: 42px;
  padding: 0 22px;
  font-size: 14px;
}

/* ============================================================
   HERO — copy left, form right
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 428px;
  gap: 64px;
  align-items: start;
  padding: 60px 0 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--warning-border);
  border-radius: 7px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pill i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
h1 {
  margin: 22px 0 18px;
  max-width: 14ch;
  font: 600 clamp(38px, 5.6vw, 62px)/1.02 var(--font-brand);
  font-variation-settings: "opsz" 60;
  letter-spacing: -.028em;
}
.lede {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: 17.5px;
  line-height: 1.6;
}
.lede strong {
  color: var(--ink);
  font-weight: 600;
}
.points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: var(--stack-lg) 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  display: flex;
  gap: 13px;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.55;
}
.points svg {
  flex: none;
  margin-top: 2px;
  color: var(--brand);
}
.points b {
  color: var(--ink);
  font-weight: 600;
}
.points span {
  color: var(--ink-2);
}
.heroNote {
  max-width: 44ch;
  margin: var(--stack-lg) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ============================================================
   FORM CARD
   ============================================================ */
.card {
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--elev-1);
}
.cardHead {
  margin-bottom: 22px;
}
.card h2 {
  margin: 0 0 7px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
}
.cardHead p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 11px;
  font-weight: 700;
}
.field label .opt {
  color: var(--ink-3);
  font-weight: 500;
}
.field input,
.field select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-item);
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: var(--inset);
  outline: 0;
}
.field input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
.field input:focus,
.field select:focus {
  border-color: var(--ink-2);
  box-shadow: var(--inset), 0 0 0 3px var(--line);
}
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field.err input,
.field.err select {
  border-color: var(--red);
}
.msg {
  display: none;
  color: var(--red);
  font-size: 12px;
}
.field.err .msg {
  display: block;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
/* Honeypot. Off-screen rather than display:none, which some bots know to skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
  cursor: pointer;
}
.consent input {
  appearance: none;
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--surface-soft);
  box-shadow: var(--inset);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.consent input:checked {
  border-color: var(--pri-border);
  background: var(--pri-bg);
  box-shadow: none;
}
.consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 10px;
  border: solid var(--pri-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.consent.err input {
  border-color: var(--red);
}
.consentMsg {
  margin-left: 29px;
}
.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  border: 1px solid var(--pri-border);
  border-radius: var(--radius-control);
  background: var(--pri-bg);
  color: var(--pri-ink);
  box-shadow: var(--pri-shadow);
  font-size: 14.5px;
  font-weight: 700;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}
.submit:hover {
  background: var(--pri-bg-hover);
  box-shadow: var(--pri-shadow);
}
.submit:active:not([disabled]) {
  transform: scale(0.99);
}
.submit[disabled] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.privacy {
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.55;
  text-align: center;
}

/* success state */
.done {
  padding: 10px 0 4px;
  text-align: center;
}
.doneIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border: 1px solid var(--success-border);
  border-radius: var(--radius-card);
  background: var(--green-soft);
  color: var(--green);
}
.done h2 {
  margin-bottom: 9px;
  font-size: 21px;
}
.done > p {
  max-width: 34ch;
  margin: 0 auto 22px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.next {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.next b {
  display: block;
  margin-bottom: 13px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.next ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.next li {
  display: flex;
  gap: 11px;
  margin-bottom: 11px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.next svg {
  flex: none;
  margin-top: 2px;
  color: var(--brand);
}
.share {
  display: flex;
  gap: 9px;
}
.share .btn {
  flex: 1;
}

/* ============================================================
   SECTION FURNITURE
   ============================================================ */
.secHead {
  max-width: 60ch;
  margin: 0 auto var(--stack-lg);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.secHead h2 {
  margin: 0 0 11px;
  font: 600 clamp(26px, 3.6vw, 36px)/1.12 var(--font-brand);
  font-variation-settings: "opsz" 48;
  letter-spacing: -.022em;
}
.secHead p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   MOTIF BAND
   ============================================================ */
.motifBand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 26px 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--elev-1);
}
.stack svg {
  max-width: 100%;
  overflow: visible;
}
.stack text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
}
.blk {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: assemble 8s cubic-bezier(.22, .72, .24, 1) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes assemble {
  0%   { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(.86) rotate(var(--r, 0deg)); }
  9%   { opacity: 1; transform: none; }
  68%  { opacity: 1; transform: none; }
  78%  { opacity: 0; transform: translateY(-7px) scale(.97); }
  100% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(.86) rotate(var(--r, 0deg)); }
}
.sweep {
  opacity: 0;
  animation: sweep 8s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes sweep {
  0%, 30% { opacity: 0; transform: translateY(-18px); }
  38%     { opacity: .9; }
  55%     { opacity: .9; }
  62%, 100% { opacity: 0; transform: translateY(178px); }
}
.pulseline {
  transform-box: fill-box;
  transform-origin: left center;
  animation: pulseline 8s ease-in-out infinite;
}
@keyframes pulseline {
  0%, 44%  { transform: scaleX(0); }
  56%, 74% { transform: scaleX(1); }
  82%, 100% { transform: scaleX(0); }
}
.motifFoot {
  width: 100%;
  max-width: 620px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
}
.motifFoot strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   MARKET — one feature figure, then three supporting
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 14px;
  padding: 30px 32px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.featureValue {
  color: var(--ink);
  font-size: clamp(52px, 7vw, 76px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  line-height: .92;
  white-space: nowrap;
}
.featureValue small {
  font-size: .45em;
  font-weight: 600;
  letter-spacing: -.01em;
}
.featureTitle {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.featureSub {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.featureSrc {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 11px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat {
  padding: 22px 20px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--elev-1);
  transition: transform 200ms cubic-bezier(.2, .7, .2, 1), box-shadow 200ms ease;
}
.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.statValue {
  margin-bottom: 10px;
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  line-height: 1;
}
.statValue small {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.statTitle {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}
.statSub {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.statSrc {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 10.5px;
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing {
  padding: var(--band) 0 0;
  text-align: center;
}
.closing h2 {
  margin: 0 0 12px;
  font: 600 clamp(26px, 3.6vw, 36px)/1.12 var(--font-brand);
  font-variation-settings: "opsz" 48;
  letter-spacing: -.022em;
}
.closing p {
  max-width: 48ch;
  margin: 0 auto 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.siteFoot {
  margin-top: var(--band);
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}
.footGrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 30px;
}
.footBlurb {
  max-width: 38ch;
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}
.footCol h4 {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.footCol a,
.footCol span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-2);
  font-size: 13px;
}
.footCol a:hover {
  color: var(--ink);
}
.footBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11.5px;
}
.footBar .right {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .7, .2, 1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 44px;
  }
}
@media (max-width: 900px) {
  :root {
    --band: 72px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 40px;
  }
  h1,
  .lede,
  .points li,
  .heroNote {
    max-width: none;
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 24px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .footGrid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footBrand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --band: 60px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .motifBand {
    padding: 30px 18px 26px;
  }
  .footGrid {
    grid-template-columns: 1fr;
  }
  .footBar .right {
    margin-left: 0;
  }
  .hideSm {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .blk {
    opacity: 1;
    animation: none;
  }
  .sweep,
  .pulseline {
    display: none;
  }
}
