/* AI Enablement product page — layered on the design system (tokens, brand.css, site.css).
   Uses shared tokens only; nothing here redefines the palette. */

/* ---------- Hero ---------- */
.program .hero__copy { max-width: 36rem; }
.program .hero h1 { font-size: clamp(38px, 4.6vw, 56px); }
.hero .subline { max-width: 52ch; }

/* ---------- Stat band on this page: five figures ---------- */
.statband--five .statband__inner { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) { .statband--five .statband__inner { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* ---------- Generic card grids ---------- */
.cards { display: grid; gap: 22px; margin-top: 46px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards-2, .cards-3 { grid-template-columns: 1fr; } }
.cards .card h3 { font-size: 20px; color: var(--midnight-plum); margin: 0 0 10px; }
.cards .card p { color: var(--ink); font-size: 15px; line-height: 1.55; }
.cards .card .numeral { display: block; margin-bottom: 8px; }
.section--plum .cards .card { background: rgba(255,255,255,0.04); border-top: 0; border-left: 4px solid var(--orchid); }
.section--plum .cards .card h3 { color: #fff; }
.section--plum .cards .card p { color: var(--orchid-soft); }

/* ---------- The program: four tracks ---------- */
.track { display: flex; flex-direction: column; }
.track .who { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--royal-violet); margin: 0 0 12px; }
.track .sq-list { gap: 8px; margin-top: 14px; }
.track .sq-list li { font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips .badge { text-transform: none; letter-spacing: 0; font-size: 13px; padding: 6px 12px; white-space: normal; }
.shape { margin-top: 46px; padding: 26px 28px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: #fff; }
.shape h3 { font-size: 18px; color: var(--midnight-plum); margin-bottom: 12px; }
.shape ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 40px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.shape ol li { break-inside: avoid; margin: 0.25em 0; }
@media (max-width: 720px) { .shape ol { columns: 1; } }

/* ---------- Who it is for: reuse .roles, allow thirteen ---------- */
.roles--many { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.roles--many .role { height: 100%; box-sizing: border-box; }
@media (max-width: 1000px) { .roles--many { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roles--many { grid-template-columns: 1fr; } }

/* ---------- Six-week timeline ---------- */
.timeline { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .timeline { grid-template-columns: 1fr; } }
.timeline li { position: relative; padding: 18px 16px 16px; border-top: 4px solid var(--royal-violet); background: #fff; border-radius: var(--radius-card); border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.timeline .wk { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--royal-violet); }
.timeline h4 { font-size: 16px; color: var(--midnight-plum); margin: 8px 0 8px; line-height: 1.3; }
.timeline p { font-size: 14px; line-height: 1.5; color: var(--slate); margin: 0; }
.timeline .out { margin-top: 10px; font-size: 13px; color: var(--ink); }
.timeline .out b { color: var(--royal-violet); }
.aside-note { margin-top: 28px; padding: 18px 22px; background: var(--lavender-mist); border-left: 4px solid var(--royal-violet); border-radius: 0 var(--radius-card) var(--radius-card) 0; font-size: 15px; line-height: 1.6; color: var(--ink); max-width: 80ch; }

/* ---------- Demo story ---------- */
.story { counter-reset: step; list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; max-width: 78ch; }
.story li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; color: var(--orchid-soft); font-size: 16px; line-height: 1.55; }
.story li::before { content: counter(step, decimal-leading-zero); font-weight: 700; font-size: 20px; color: var(--orchid); line-height: 1.2; }
.story li b { color: #fff; }

/* ---------- Pricing ---------- */
/* Four plans at 1120px is 247px a card, which is narrower than the bullet
   lists inside them read at, so they pair up instead. */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 46px; align-items: stretch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--hairline); border-radius: var(--radius-card); background: #fff; padding: 26px 26px 22px; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.plan--featured { border-color: var(--royal-violet); box-shadow: var(--shadow-card); }
.plan h3 { font-size: 22px; color: var(--midnight-plum); margin: 6px 0 6px; }
.plan .tagline { color: var(--slate); font-size: 14.5px; min-height: 3.2em; margin-bottom: 14px; }
.plan .price { font-size: 34px; font-weight: 700; color: var(--royal-violet); line-height: 1; }
.plan .price small { font-size: 13px; font-weight: 400; color: var(--slate); margin-left: 6px; }
.plan .price-note { font-size: 12.5px; color: var(--slate); margin: 6px 0 16px; min-height: 2.6em; }
.plan .sq-list { margin: 0 0 18px; flex: 0 0 auto; }
.plan .sq-list li { font-size: 14.5px; }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan .fine { font-size: 13px; color: var(--slate); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); min-height: 4.4em; }
@media (max-width: 960px) { .plan .fine, .plan .price-note, .plan .tagline { min-height: 0; } }
.tier-table { max-width: 820px; margin: 40px auto 0; overflow-x: auto; }
.tier-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tier-table th { background: var(--midnight-plum); color: #fff; text-align: left; padding: 11px 14px; }
.tier-table th small { display: block; font-weight: 400; font-size: 12px; color: var(--orchid-soft); margin-top: 2px; }
.tier-table td { padding: 11px 14px; border-bottom: 1px solid var(--hairline); }
.tier-table td.num { font-weight: 700; color: var(--midnight-plum); }
.tier-table tbody tr:nth-child(even) td { background: var(--lavender-mist); }
.tier-table .foot { font-size: 13px; color: var(--slate); margin-top: 10px; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-top: 1px solid var(--hairline); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; font-size: 17px; color: var(--midnight-plum); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--royal-violet); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--royal-violet); }
.faq .a { padding: 0 0 18px; font-size: 15.5px; line-height: 1.65; color: var(--ink); max-width: 72ch; }
.faq .a p + p { margin-top: 0.7em; }
.faq .a a { color: var(--royal-violet); }

/* ---------- Small print ---------- */
.fineprint { font-size: 13px; color: var(--slate); margin-top: 18px; max-width: 70ch; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Buy ----------------------------------------------------------------
   The order page: what you are buying on the left, who is buying and the
   total on the right. Card details are never collected here - Stripe takes
   those, and the billing address with them. */
[hidden] { display: none !important; }   /* .btn sets its own display, which beats the browser's rule */

.buy .sec-head { margin-bottom: 32px; }
.buy-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .buy-grid { grid-template-columns: 1fr; } }

.buy-items { display: flex; flex-direction: column; gap: 18px; }
.buy-item {
  display: grid;
  /* The description earns the room; the three numeric columns are sized to
     their content and no wider. */
  grid-template-columns: minmax(11rem, 1fr) max-content max-content max-content;
  gap: 14px 18px;
  align-items: start;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--royal-violet);
  border-radius: var(--radius-card);
}
@media (max-width: 1120px) {
  /* Below this the four columns stop fitting; the description takes its own row. */
  .buy-item { grid-template-columns: max-content max-content 1fr; }
  .buy-item__main { grid-column: 1 / -1; }
  .buy-item__price { width: auto; }
}
@media (max-width: 520px) {
  .buy-item { grid-template-columns: 1fr 1fr; }
  .buy-item__total { grid-column: 1 / -1; text-align: left; }
}
.buy-item__main h2 { font-size: 20px; color: var(--midnight-plum); margin: 0 0 8px; }
.buy-item__main p { font-size: 14.5px; line-height: 1.55; color: var(--slate); margin: 0 0 6px; }
.buy-item__tier { font-size: 13px; color: var(--royal-violet); }
.buy-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.buy-item__price, .buy-item__qty, .buy-item__total { text-align: right; }
.buy-item__price { width: 6.5rem; }            /* "per seat, per module, per year" wraps rather than shoves */
.buy-item__total { min-width: 5.5rem; }
.buy-item__main p { max-width: 46ch; }
.buy-unit, .buy-item__total span:last-child { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.buy-item__total span:last-child { font-weight: 700; font-size: 20px; color: var(--midnight-plum); }

.stepper { display: inline-flex; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: #fff; }
.stepper input {
  width: 3.6em; border: 0; text-align: center; font: inherit; font-size: 17px;
  padding: 8px 4px; color: var(--ink); background: #fff;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--royal-violet); outline-offset: -2px; }
.stepper__btn {
  width: 38px; border: 0; background: var(--lavender-mist); color: var(--midnight-plum);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
}
.stepper__btn:hover { background: var(--lavender-deep); }
.stepper__btn:focus-visible { outline: 2px solid var(--royal-violet); outline-offset: -2px; }
.buy-note { font-size: 14px; color: var(--slate); margin: 6px 2px 0; }

.hero__watch { margin: 14px 0 0; font-size: 14.5px; color: rgba(255,255,255,0.72); }
.hero__watch a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero__watch a:hover { color: var(--orchid, #9D7BE0); }

/* Two ways to buy a seat, chosen before anything else on the page. */
/* A legend is not a grid item anywhere reliable, so the fieldset stays a
   block and the choices sit in their own grid inside it. */
.buy-offering { border: 0; padding: 0; margin: 0; min-width: 0; }
.buy-offering > legend { padding: 0; margin-bottom: 10px; }
.buy-offering__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .buy-offering__opts { grid-template-columns: 1fr; } }
.buy-offering__opt {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  padding: 14px 16px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-card);
}
.buy-offering__opt:hover { border-color: var(--royal-violet); }
.buy-offering__opt input { margin: 3px 0 0; accent-color: var(--royal-violet); }
.buy-offering__opt:has(input:checked) { border-color: var(--royal-violet); box-shadow: inset 0 0 0 1px var(--royal-violet); }
.buy-offering__opt input:focus-visible { outline: 2px solid var(--royal-violet); outline-offset: 2px; }
.buy-offering__body b { display: block; font-size: 15.5px; color: var(--midnight-plum); }
.buy-offering__body small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--slate); }

/* The picker puts the catalogue itself where the stepper would be, on its own
   full-width row under the price. */
.buy-item--picker { grid-template-columns: minmax(11rem, 1fr) max-content max-content; }
.buy-modules {
  grid-column: 1 / -1; display: grid; gap: 4px 20px; margin-top: 4px;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  border-top: 1px solid var(--hairline); padding-top: 14px;
}
.buy-modules__opt { display: flex; gap: 9px; align-items: baseline; font-size: 14.5px; color: var(--ink); cursor: pointer; padding: 3px 0; }
.buy-modules__opt input { accent-color: var(--royal-violet); }
.buy-modules__opt input:focus-visible { outline: 2px solid var(--royal-violet); outline-offset: 2px; }
.buy-link {
  border: 0; background: none; padding: 0; font: inherit; color: var(--royal-violet);
  text-decoration: underline; cursor: pointer;
}
@media (max-width: 1120px) { .buy-item--picker { grid-template-columns: max-content 1fr; } }
@media (max-width: 520px) { .buy-item--picker { grid-template-columns: 1fr 1fr; } }

.buy-side {
  padding: 26px 26px 24px; background: var(--lavender-mist);
  border: 1px solid var(--lavender-deep); border-radius: var(--radius-card);
  position: sticky; top: 92px;
}
@media (max-width: 900px) { .buy-side { position: static; } }
.buy-side h2 { font-size: 20px; color: var(--midnight-plum); margin: 0 0 8px; }
.buy-side__note { font-size: 12.5px; line-height: 1.55; color: var(--slate); margin: 0 0 18px; }
.buy-side label { display: block; font-size: 13px; font-weight: 700; color: var(--midnight-plum); margin-bottom: 14px; }
.buy-side input {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px;
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1px solid var(--hairline); border-radius: var(--radius);
}
.buy-side input:focus { outline: 2px solid var(--royal-violet); outline-offset: 1px; border-color: var(--royal-violet); }
.buy-side label small { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 400; color: var(--danger, #B42318); }
.buy-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.checkout-code__row { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
.checkout-code__row input { margin-top: 0; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono, monospace); }
.checkout-code__row .btn { flex: none; }

.buy-summary { margin: 20px 0 14px; padding-top: 16px; border-top: 1px solid var(--lavender-deep); }
.buy-summary__list { margin: 0; }
.buy-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 10px; }
.buy-summary__row dt { font-size: 14px; color: var(--slate); margin: 0; }
.buy-summary__row dt small { display: block; font-size: 12px; }
.buy-summary__row dd { margin: 0; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.buy-summary__discount dt, .buy-summary__discount dd { color: var(--royal-violet); }
.buy-summary__total { padding-top: 10px; border-top: 1px solid var(--lavender-deep); }
.buy-summary__total dt { font-size: 16px; font-weight: 700; color: var(--midnight-plum); }
.buy-summary__total dd { font-size: 24px; font-weight: 700; color: var(--midnight-plum); }
.buy-summary__note { font-size: 12.5px; color: var(--slate); margin: 4px 0 0; }
.buy-problem { font-size: 14px; color: var(--danger, #B42318); margin: 0; }
.btn--block { display: block; width: 100%; text-align: center; }
/* Loud on purpose: the one thing worse than a checkout that cannot take a
   payment is one that quietly takes a real one during a rehearsal. */
.buy-testmode {
  max-width: 72ch;
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 2px dashed var(--orchid, #8b5cf6);
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.06);
}
.buy-testmode p { margin: 0; font-size: 15px; line-height: 1.55; }
.buy-testmode code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(43, 27, 77, 0.08);
  white-space: nowrap;
}

.buy-unavailable { max-width: 60ch; }
.buy-unavailable .lead { color: var(--midnight-plum); font-weight: 700; }
/* The way out if retrying keeps failing: present, but not the first thing read. */
.buy-unavailable__fallback { font-size: 14px; color: var(--slate); }

.checkout-message { margin: 0 0 14px; font-size: 14px; }
.checkout-message--error { color: var(--danger, #B42318); }
.checkout-message--ok { color: var(--ok, #1F7A4D); font-size: 16px; }
