/* Prime AI Academy — funnel pages. Builds on base.css (shared campus tokens, header, footer). */

:root { color-scheme: light; } /* the pages are designed light; don't inherit a dark browser/OS scheme */
.funnel { background: var(--white); }
.motto { font-family: var(--font-head); font-weight: 700; color: var(--white); }

/* Step tracker */
.steps-bar { background: var(--white); border-bottom: 1px solid var(--line-light); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-block: 1.25rem; counter-reset: none; }
.steps__item { display: flex; align-items: center; gap: .8rem; color: var(--ink-muted); }
.steps__item strong { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--ink); }
.steps__item small { display: block; font-size: .85rem; line-height: 1.3; }
.steps__num {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; border: 2px solid var(--line-light); color: var(--ink-muted);
}
.steps__item.is-current .steps__num { background: var(--blue); border-color: var(--blue); color: var(--white); }
.steps__item.is-done .steps__num { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.steps__item.is-done .steps__num { font-size: 0; }
.steps__item.is-done .steps__num::before { content: "✓"; font-size: 1.1rem; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .steps__item { flex-direction: column; text-align: center; gap: .4rem; }
  .steps__item small { display: none; }
  .steps__item strong { font-size: .8rem; }
}

/* Booking layout */
.booking { padding-block: clamp(2.25rem, 5vw, 4rem); }
.booking__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 959px) { .booking__grid { grid-template-columns: 1fr; } }

.pill {
  display: inline-block; background: var(--teal); color: var(--navy); font-family: var(--font-mono); font-weight: 500;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}
.booking__title { color: var(--navy); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.booking__tagline { font-family: var(--font-head); font-weight: 700; color: var(--teal-ink); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem); margin: .35rem 0 1rem; }
.booking__intro { color: var(--ink-muted); max-width: 60ch; margin-bottom: 1.5rem; }

.card { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(6, 20, 38, .07); }
.booking-card { padding: clamp(1.1rem, 3vw, 1.75rem); }
.booking-card__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .92rem; color: var(--ink-muted); margin-bottom: 1rem; }
.booking-card__meta span::before { content: "•"; color: var(--teal); margin-right: .45rem; }
.booking-card__alt { margin-top: 1rem; font-size: .95rem; color: var(--ink-muted); text-align: center; }

/* Calendar */
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal__month { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.cal__nav { display: flex; gap: .4rem; }
.cal__nav button, .cal__day {
  border: 1px solid transparent; background: transparent; border-radius: 10px; cursor: pointer;
}
.cal__nav button { width: 38px; height: 38px; border-color: var(--line-light); color: var(--navy); }
.cal__nav button:disabled { opacity: .35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; text-align: center; }
.cal__dow { font-size: .78rem; font-family: var(--font-mono); color: var(--ink-muted); padding-bottom: .3rem; }
.cal__day { aspect-ratio: 1; min-height: 40px; font-weight: 600; color: #9AA8B8; cursor: default; }
.cal__day.is-available { background: #E3F4F3; color: var(--navy); border-color: #BFE5E2; cursor: pointer; }
.cal__day.is-available:hover { border-color: var(--teal); }
.cal__day.is-selected { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.cal__day:focus-visible, .slot:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.slots { display: grid; gap: .5rem; margin: 1rem 0 1.25rem; }
.slots__date { font-weight: 700; color: var(--navy); }
.slot {
  display: flex; justify-content: space-between; align-items: center; width: 100%; padding: .85rem 1rem;
  border: 1.5px solid var(--line-light); border-radius: 12px; background: var(--white); cursor: pointer; text-align: left;
}
.slot strong { font-family: var(--font-head); color: var(--navy); }
.slot small { color: var(--teal-ink); font-weight: 600; }
.slot[aria-pressed="true"] { border-color: var(--teal); background: #E3F4F3; }
.slots__local { font-size: .85rem; color: var(--ink-muted); }
.empty { color: var(--ink-muted); font-size: .95rem; }

.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Intake form */
.selected { background: #E3F4F3; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; color: var(--navy); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .3rem; margin-bottom: .85rem; font-size: .92rem; font-weight: 600; color: var(--ink); }
.field input, .field select {
  font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1.5px solid var(--line-light); border-radius: 10px; background: var(--white); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 166, 160, .2); }
.field [aria-invalid="true"] { border-color: #C0392B; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .86rem; line-height: 1.45; color: var(--ink-muted); margin-bottom: .85rem; }
.check input { margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.check strong { color: var(--ink); }
.form-msg { background: #FDECEA; color: #8A1C12; border-radius: 10px; padding: .7rem .9rem; margin-bottom: .85rem; font-size: .92rem; }
.form-msg.is-ok { background: #E3F4F3; color: var(--navy); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--teal-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.back { display: block; margin: 1rem auto 0; }

/* Price */
.price { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; color: var(--ink-muted); }
.price__now { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--navy); }
.price__was { text-decoration: line-through; font-size: 1.1rem; }
.price__label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; background: var(--navy); color: var(--white); padding: .35rem .65rem; border-radius: 999px; }
.price__note { flex-basis: 100%; font-size: .88rem; }

/* Class panel (placeholder for the class graphic) */
.class-panel { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-light); box-shadow: 0 10px 30px rgba(6, 20, 38, .1); }
.class-panel__head { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: var(--on-dark-muted); padding: clamp(1.5rem, 3vw, 2.25rem); }
.class-panel__head h2 { color: var(--white); font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem); margin-bottom: .3rem; }
.class-panel__format { color: var(--white); font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; margin-bottom: .9rem; }
.class-panel__body { padding: clamp(1.25rem, 3vw, 2rem); }
.class-panel__body .label { display: block; margin: 1.25rem 0 .7rem; }
.class-panel__body .label:first-child { margin-top: 0; }
.ticks { display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink); line-height: 1.45; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-ink); font-weight: 700; }
.class-panel__motto { background: var(--navy); color: var(--cyan); text-align: center; font-family: var(--font-head); font-weight: 700; font-style: italic; padding: 1rem; }

/* Icon banner */
.banner__title { text-align: center; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.banner__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 860px) { .banner__grid { grid-template-columns: 1fr 1fr; } }
.banner__icon { width: 72px; height: 72px; margin: 0 auto 1rem; color: var(--teal); }
.banner__icon img, .banner__icon svg { width: 100%; height: 100%; }
.banner__grid h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.banner__grid p { color: var(--on-dark-muted); font-weight: 600; font-size: .95rem; }

/* Facts strip */
.facts { background: var(--white); border-bottom: 1px solid var(--line-light); }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-block: 2rem; }
@media (max-width: 720px) { .facts__grid { grid-template-columns: 1fr; } }
.facts__grid li { text-align: center; }
.facts__grid strong { display: block; font-family: var(--font-mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.facts__grid span { color: var(--ink-muted); font-size: .92rem; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line-light); border-radius: 14px; margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1.1rem 1.25rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-ink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.25rem 1.2rem; color: var(--ink-muted); }

/* Modals */
.modal { color-scheme: light; background: var(--white); color: var(--ink); border: 0; border-radius: var(--radius-lg); padding: 0; width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal::backdrop { background: rgba(6, 20, 38, .7); }
.modal__close-form { position: sticky; top: 0; display: flex; justify-content: flex-end; height: 0; z-index: 2; }
.modal__close { width: 44px; height: 44px; margin: .6rem .6rem 0 0; border: 0; border-radius: 50%; background: var(--silver); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal__body { padding: 2.75rem clamp(1.25rem, 4vw, 2.25rem) 2rem; }
.modal__body h2 { color: var(--navy); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin: 0 2.5rem .6rem 0; }
.modal__lede { color: var(--ink-muted); margin-bottom: 1.25rem; }
.modal__body--center { text-align: center; }
.modal__body--center h2 { margin-inline: 2.5rem; }
.modal__body--center p { color: var(--ink-muted); margin-bottom: .75rem; }
.modal__check { width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--navy); font-size: 2rem; font-weight: 700; }
.modal__signoff { font-family: var(--font-head); font-weight: 700; color: var(--navy) !important; font-size: 1.2rem; }

.closed { text-align: center; padding: 1rem 0; }
.closed h2 { color: var(--navy); margin-bottom: .5rem; }

/* Poster (class graphic) and included list */
.poster { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 14px 40px rgba(6, 20, 38, .18); }
.poster img { width: 100%; height: auto; }
.included { margin-top: 1.75rem; }
.included .label { display: block; margin-bottom: .75rem; }
.facts__icon { width: 48px; height: 48px; margin: 0 auto .6rem; }

/* Registration-closed page (/, 404) */
main.section .closed { max-width: 46rem; margin-inline: auto; padding: clamp(3rem, 10vw, 7rem) 0; }
main.section .closed .booking__intro { margin: 1rem auto 2rem; }
.closed__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.btn--outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }

.consent-note { font-size: .8rem; color: var(--ink-muted); margin: -.25rem 0 1rem 1.9rem; line-height: 1.45; }
.consent-note a { color: inherit; text-decoration: underline; }
