/* ==========================================================================
   D12 — Coldline Quantum  (data-theme="coldline")
   Theme proof: the FLUX kit re-skinned through tokens only. Own brand
   header, Bloch-sphere field-line hero, proof metrics, how-it-works steps,
   cloud-access waitlist, research partnerships. Kairon footer with
   Coldline brand props.
   Behavior: js/pages/d12-coldline-quantum.js
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.cl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  padding: 0 var(--gutter-header);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cl-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ring with an equatorial orbit — a Bloch-sphere mark */
.cl-brand__mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
}

.cl-brand__orbit {
  width: 18px;
  height: 6px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
}

.cl-brand__word {
  font-size: 16px;
  font-stretch: 125%;
  letter-spacing: .12em;
}

.cl-nav {
  display: flex;
  gap: 2px;
}

.cl-nav__link {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
}

.cl-header__cta {
  margin-left: auto;
  border: 0;
}

@media (max-width: 899.98px) {
  .cl-nav {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.cl-hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

.cl-hero__field {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Paper-colored fade that keeps the copy legible over the field */
.cl-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 244, 241, .92), rgba(243, 244, 241, 0) 60%);
}

.cl-hero__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vh, 24px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 72px) var(--gutter-site) 28px;
}

.cl-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

.cl-hero__title {
  margin-top: auto;
  font-size: clamp(52px, min(10vw, 14vh), 168px);
  line-height: .86;
  font-weight: 750;
  font-stretch: 125%;
  letter-spacing: -.045em;
}

.cl-hero__lead {
  max-width: 520px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-2);
}

.cl-hero__claim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

.cl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 10px;
  white-space: nowrap;
  border: 1px solid var(--success);
  border-radius: var(--r-pill);
  color: var(--text);
}

.cl-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.cl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cl-hero__secondary {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 22px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
}

.cl-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.cl-hero__pause {
  height: 36px;
  padding: 0 14px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Section shell + headings
   -------------------------------------------------------------------------- */
.cl-section {
  position: relative;
  padding: clamp(80px, 9vw, 136px) 0;
  border-top: 1px solid var(--line);
}

.cl-section--white {
  background: var(--surface-1);
}

/* Slightly larger than .heading-section--lg (64px cap) */
.cl-heading--xl {
  font-size: clamp(34px, 4.4vw, 64px);
}

/* --------------------------------------------------------------------------
   Proof metrics
   -------------------------------------------------------------------------- */
.proof__title {
  margin-top: 14px;
}

.proof-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 40px;
  font-variant-numeric: tabular-nums;
}

.proof-grid__cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
}

.proof-grid__value {
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: -.03em;
  line-height: 1;
}

.proof-grid__unit {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
}

.proof-grid__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.proof-grid__note {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-top: 40px;
}

.how-steps__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface-1);
}

.how-steps__item .icon {
  color: #0B0D10;
}

.how-steps__title {
  font-size: 20px;
}

.how-steps__text {
  font-size: 15px;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Waitlist
   -------------------------------------------------------------------------- */
.waitlist {
  padding: clamp(96px, 11vw, 160px) 0;
}

.waitlist__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
  align-items: end;
}

.waitlist__title {
  margin-top: 14px;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: .92;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -.04em;
}

.cohorts {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.cohorts__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.cohorts__status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Wrapper for the not-yet-sent state; its children lay out in the form's flex column */
.waitlist__fields {
  display: contents;
}

.waitlist__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.waitlist__select {
  height: 52px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--canvas);
  color: var(--text);
  font: 400 16px var(--font-sans);
}

.waitlist__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.waitlist__input {
  flex: 1;
  min-width: 220px;
  height: 56px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--canvas);
  color: var(--text);
  font: 400 16px var(--font-sans);
}

.waitlist__submit {
  padding: 0 24px;
  border: 0;
}

.waitlist__note {
  font-size: 13px;
  color: var(--text-3);
}

.waitlist__sent {
  padding: 20px;
  border: 1px solid var(--success);
}

/* --------------------------------------------------------------------------
   Research partnerships + theme proof note
   -------------------------------------------------------------------------- */
.research {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
  align-items: center;
}

.research__lead {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--text-2);
}

.research__cta {
  display: inline-flex;
  align-items: center;
  height: 52px;
  margin-top: 20px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  font-weight: 600;
}

.theme-proof {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px dashed var(--info);
  background: var(--surface-1);
}

.theme-proof__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--info);
}

.theme-proof__title {
  font-size: 18px;
}

.theme-proof__text {
  font-size: 14px;
  color: var(--text-2);
}

.theme-proof__link {
  font-size: 14px;
  color: var(--action-text);
}
