/* =============================================================
   ENROLL-STEP — V38 Stage 1
   Card chrome for the on-page close (public/v39/_lib/enroll-step/
   enroll-step.js). Matches the quiz card's ink-border/offset-shadow
   language (_lib/quiz-module.css) so the whole quiz -> reveal -> lock
   -> enroll arc reads as one surface, not a bolted-on new component.
   Depends only on lemon.css tokens — no local :root additions needed.
   ============================================================= */

.es-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink-dark); display: block; margin: 0 0 10px;
}

.es-plan-card,
.es-family-card,
.es-tobacco-card,
.es-success {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 26px 24px;
  max-width: 560px;
  margin: 0 0 24px;
}

.es-plan-card { background: var(--lemon-2); }
.es-plan-name {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 20px;
  line-height: 1.25; color: var(--ink); margin: 0 0 6px;
}
.es-plan-price {
  font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 34px;
  color: var(--pink-dark); margin: 0 0 10px; line-height: 1;
}
.es-plan-price small { font-size: 15px; font-weight: 500; color: var(--mute); margin-left: 4px; }
.es-plan-sub { font-size: 13.5px; line-height: 1.55; color: var(--ink); opacity: .8; margin: 0; max-width: 440px; }

.es-family-card h3,
.es-tobacco-card h3,
.es-success h3 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px;
  line-height: 1.28; color: var(--ink); margin: 0 0 10px; max-width: 460px;
}
.es-family-card p,
.es-tobacco-sub,
.es-success p {
  font-size: 14.5px; line-height: 1.6; color: var(--mute); margin: 0 0 20px; max-width: 460px;
}

.es-family-cta,
.es-success-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink); color: var(--cream); border: 2px solid var(--ink);
  padding: 14px 22px; border-radius: 999px; font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s cubic-bezier(.22,.61,.36,1), box-shadow .12s cubic-bezier(.22,.61,.36,1);
}
.es-family-cta:hover,
.es-success-cta:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.es-family-cta svg,
.es-success-cta svg { width: 15px; height: 15px; }

.es-tobacco-err {
  font-size: 13px; color: var(--pink-dark); font-weight: 600; margin: 12px 0 0;
}

.es-success { background: var(--blush-2); }

.es-modal-host {
  max-width: 720px;
  margin: 0 0 24px;
}

/* =============================================================
   TWO-COLUMN TAKEOVER LAYOUT — N1 fix (walkthrough-evidence
   38c-rewalk): the identity/enroll takeover step used to render a
   single 560px card island inside the full-width takeover container.
   >=900px (matches Stage's own drawer-dock breakpoint): a form column
   that deliberately stays narrow (forms scan better narrow) beside a
   summary column carrying the locked-plan card + two short reassurance
   lines, so the width earns its keep instead of sitting empty. Below
   900px this is a plain block — same single-column stack, same DOM
   order, as before this change. Mobile is unaffected.
   ============================================================= */
.es-layout { display: block; }
.es-summary-col { display: block; }
.es-form-col { display: block; min-width: 0; }
.es-summary-extra { display: none; }

@media (min-width: 900px) {
  .es-layout {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(260px, 320px);
    gap: 32px;
    align-items: start;
  }
  /* DOM order stays summary-first (so mobile's single-column stack keeps
     its pre-existing top-to-bottom order — plan card, then form). At this
     breakpoint `order` flips the VISUAL placement only, so the summary
     column renders on the right (spec: "a persistent right summary
     column") while still landing in the wider first grid track — reversed
     to match, so the form gets 620px and the summary gets 320px. */
  .es-form-col { order: 1; }
  .es-summary-col { order: 2; }
  .es-summary-extra { display: block; margin-top: 4px; }
  .es-plan-card { margin: 0 0 14px; }
}

.es-reassure {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; line-height: 1.5; color: var(--mute); margin: 0 0 12px;
}
.es-reassure svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--pink-dark); }
.es-license-line {
  font-size: 11.5px; line-height: 1.55; color: var(--mute); opacity: .85; margin: 0;
}

[hidden] { display: none !important; }
