/* ==========================================================================
   D06 — Partner With Us
   Focused conversion page: 3-step qualification form (intent → details →
   meeting slot) with a booking confirmation, plus a sticky "what happens
   next" aside. Header uses the .site-header--focused variant.
   Behavior: js/pages/d06-partner-with-us.js
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page grid: form column + aside
   -------------------------------------------------------------------------- */
.partner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: start;
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(80px, 9vw, 120px);
}

.partner__form-col {
  position: relative;
  min-width: 0;
}

.partner__title {
  margin-top: 14px;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: .92;
  font-weight: 750;
  font-stretch: 125%;
  letter-spacing: -.045em;
}

/* Annotation layer (footer toggle) */
/* Annotation box (base: components/annotation.css) */
.partner__anno {
  top: 0;
  right: 0;
  max-width: 280px;
}

/* --------------------------------------------------------------------------
   Progress (3 steps)
   -------------------------------------------------------------------------- */
.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 28px;
}

.progress__step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.progress__bar {
  height: 3px;
  background: var(--line-strong);
}

.progress__step.is-reached {
  color: var(--text);
}

.progress__step.is-reached .progress__bar {
  background: var(--text);
}

/* --------------------------------------------------------------------------
   Form shell
   -------------------------------------------------------------------------- */
.qualify {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.qualify__step--stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qualify__legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
}

.qualify__legend--intent {
  margin-bottom: 16px;
}

.qualify__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.qualify__label {
  font-size: 14px;
  font-weight: 500;
}

.qualify__route {
  font-size: 13px;
  color: var(--text-2);
}

.qualify__route b {
  color: var(--text);
}

/* Step navigation */
.qualify__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.qualify__back {
  height: 52px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: 500 15px var(--font-sans);
}

.qualify__back.is-hidden {
  visibility: hidden;
}

.qualify__error {
  font-size: 13px;
  color: var(--critical);
}

.qualify__next {
  border: 0;
}

/* --------------------------------------------------------------------------
   Step 1 · Intent options (radio cards)
   -------------------------------------------------------------------------- */
.intent-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

/* Keeps the browser's default button font for the description, as the original */
.intent-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: transparent;
  color: var(--text);
  text-align: left;
  font: 13.3333px/normal Arial, sans-serif;
  outline: 1px dashed transparent;
  outline-offset: 0;
  transition: outline-offset 400ms var(--ease-inertia), outline-color 250ms;
}

.intent-option:hover {
  outline-color: var(--info);
  outline-offset: 6px;
}

.intent-option[aria-checked="true"] {
  border-color: var(--action);
  background: var(--surface-2);
}

.intent-option .icon {
  color: #EDEFF2;
}

.intent-option__title {
  font: 600 19px var(--font-sans);
  font-stretch: 112%;
}

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

.intent-option__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   Step 2 · Details
   -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

/* Input with trailing unit */
.field__control {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--surface-1);
}

.field__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 400 16px var(--font-sans);
  outline: none;
}

.field__unit {
  padding-right: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

.field__hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}

/* Plain boxed input (step 3) */
.field__box {
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--surface-1);
  color: var(--text);
  font: 400 16px var(--font-sans);
}

/* Inline email check (set on blur) */
.field[data-state="ok"] .field__box { border-color: var(--success); }
.field[data-state="ok"] .field__hint { color: var(--success); }
.field[data-state="bad"] .field__box { border-color: var(--critical); }
.field[data-state="bad"] .field__hint { color: var(--critical); }

/* Timeline segmented choice */
.timeline-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-pick__options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
}

.timeline-pick__btn {
  height: 44px;
  border: 0;
  border-radius: 1px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: normal;
}

.timeline-pick__btn[aria-pressed="true"] {
  background: var(--text);
  color: var(--canvas);
}

/* --------------------------------------------------------------------------
   Step 3 · Meeting
   -------------------------------------------------------------------------- */
.engineer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
}

.engineer__avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 6px), var(--surface-2);
}

.engineer__text {
  font-size: 14px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: normal;
}

.slot__time {
  font-size: 13px;
}

.slot[aria-checked="true"] {
  border-color: var(--action);
  background: var(--action);
  color: var(--on-action);
}

.slot:disabled {
  opacity: .35;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.consent--optional {
  color: var(--text-2);
}

.consent a,
.consent a:hover {
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-2);
}

.consent__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #FFB020;
}

/* --------------------------------------------------------------------------
   Done · booking confirmation
   -------------------------------------------------------------------------- */
.booked {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.booked__confirm {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--success);
}

.booked__check {
  color: #3DDC97;
}

.booked__title {
  font-size: 20px;
}

.booked__text {
  margin-top: 4px;
  color: var(--text-2);
}

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

.booked__calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
}

.booked__calendar .icon {
  color: #EDEFF2;
}

.booked__eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.booked__resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.resource-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
}

.resource-link__kind {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   Aside · what happens next, credentials
   -------------------------------------------------------------------------- */
.partner__aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--surface-1);
}

/* `ol.` outweighs the base `ol[class]` padding reset */
ol.next-steps__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--line-strong);
}

.next-steps__item {
  position: relative;
}

/* Node on the timeline border */
.next-steps__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  background: var(--canvas);
}

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

.next-steps__title {
  font-size: 15px;
}

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

/* `ul.` outweighs the base `ul[class]` padding reset */
ul.credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
}

.credentials__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 14px;
}

.credentials__item .icon {
  color: #EDEFF2;
}

.partner__note {
  font-size: 12px;
  color: var(--text-3);
}
