/* Package landing — page-specific sections (hero+plan card, checklist, price card, proof, slim footer). */

/* Topbar: the package name is the wordmark (can be long). */
.pkg-logo__word { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22rem; }
.pkg-topbar .pub-logo__descriptor { white-space: nowrap; }
.pkg-topbar__cta { white-space: nowrap; }
.pkg-cta__short { display: none; }

@media (max-width: 48rem) {
  .pkg-topbar .pub-logo__descriptor { display: none; }
  .pkg-logo__word { max-width: 11rem; font-size: 0.95rem; }
  .pkg-cta__long { display: none; }
  .pkg-cta__short { display: inline; }
}

/* Hero (2-col, shared shape with home/teams). */
.pkg-hero { padding-block: 4rem 3rem; }
.pkg-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: 3rem; align-items: center; }
.pkg-hero__left { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.pkg-hero__left .pub-display { max-width: 16ch; }
.pkg-hero__sub { margin: 0; max-width: 34rem; color: var(--semantic-text-text-secondary); font-size: 1.1rem; line-height: 1.6; }
.pkg-hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pkg-buy-error { margin: 0; color: var(--semantic-text-text-error, #c0392b); font-size: 0.9rem; }

/* Hero preview card — a picture of the product, not a list of promises.
   Per the Figma (47:2) this is a miniature of the readiness view: a score, the
   real topics of THIS package, and one real practice question. The topics and
   the question are the package's own data; the score and the bar fills are
   chrome, which is why the card says "Sample view" out loud. */
.pkg-preview { background: var(--semantic-background-bg-surface); border: 1px solid var(--semantic-border-border-subtle); border-radius: 1.25rem; box-shadow: 0 20px 50px -24px rgba(20,20,40,.25); padding: 1.4rem 1.5rem; }
.pkg-preview__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.pkg-preview__label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--semantic-text-text-tertiary); }
.pkg-preview__sample { flex: none; padding: 0.2rem 0.5rem; border-radius: var(--pub-radius-pill); background: var(--semantic-background-bg-page); border: 1px solid var(--semantic-border-border-subtle); color: var(--semantic-text-text-tertiary); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; }
.pkg-preview__score { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.35rem; }
.pkg-preview__score strong { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.pkg-preview__score span { color: var(--semantic-text-text-tertiary); font-size: 0.9rem; }

.pkg-preview__topics { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
/* name | bar | state — the bar column absorbs the slack so the state words
   right-align into a readable column however long the topic names run. */
.pkg-preview__topic { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem auto; align-items: center; gap: 0.65rem; font-size: 0.82rem; }
.pkg-preview__topic-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--semantic-text-text-secondary); }
.pkg-preview__bar { height: 0.3rem; border-radius: 999px; background: var(--semantic-background-bg-page); overflow: hidden; }
.pkg-preview__bar i { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.pkg-preview__state { font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
/* Tone is set on the row so the bar (currentColor) and the word always agree. */
.pkg-preview__topic--strong { color: var(--base-success-success-600); }
.pkg-preview__topic--solid { color: var(--base-primary-primary-500); }
.pkg-preview__topic--building { color: var(--base-warning-warning-600); }
.pkg-preview__topic--weak { color: var(--semantic-text-text-tertiary); }

.pkg-preview__q { margin-top: 1.1rem; padding: 0.9rem 1rem; border-radius: 0.85rem; background: var(--semantic-background-bg-page); border: 1px solid var(--semantic-border-border-subtle); }
.pkg-preview__q-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--base-warning-warning-600); }
.pkg-preview__q-text { margin: 0.4rem 0 0.7rem; font-size: 0.86rem; font-weight: 600; line-height: 1.45; }
.pkg-preview__q-opts { display: flex; flex-direction: column; gap: 0.35rem; }
.pkg-preview__q-opt { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.6rem; border-radius: 0.45rem; border: 1px solid var(--semantic-border-border-subtle); background: var(--semantic-background-bg-surface); font-size: 0.8rem; color: var(--semantic-text-text-secondary); }
.pkg-preview__q-opt .pub-icon { flex: none; width: 0.9rem; height: 0.9rem; color: var(--semantic-border-border-default); }
.pkg-preview__q-opt.is-correct { border-color: var(--base-success-success-500); background: var(--base-success-success-50); color: var(--base-success-success-700); font-weight: 600; }
.dark .pkg-preview__q-opt.is-correct { background: color-mix(in srgb, var(--base-success-success-500) 18%, transparent); color: var(--base-success-success-300); }
.pkg-preview__q-opt.is-correct .pub-icon { color: currentColor; }
.pkg-preview__q-note { margin: 0.7rem 0 0; font-size: 0.72rem; line-height: 1.45; color: var(--semantic-text-text-tertiary); }

.pkg-preview__meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--semantic-border-border-subtle); font-size: 0.8rem; color: var(--semantic-text-text-tertiary); }

/* Scenarios — the questions this academy actually asks (Figma 100:2).
   Two columns, not the shared .pub-grid: these cards hold a sentence, and at
   three-up they wrap mid-question. 26rem is what forces two — a third track
   would need 80rem inside a 72rem container. */
.pkg-scenarios { display: grid; gap: 1rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr)); }
.pkg-scenario__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.pkg-scenario__icon { width: 1.9rem; height: 1.9rem; border-radius: 0.5rem; display: grid; place-items: center; background: var(--base-primary-primary-50); color: var(--base-primary-primary-600); }
.dark .pkg-scenario__icon { background: color-mix(in srgb, var(--base-primary-primary-500) 16%, var(--base-neutral-neutral-800)); color: var(--base-primary-primary-300); }
.pkg-scenario__icon .pub-icon { width: 1rem; height: 1rem; }
.pkg-scenario__tag { font-size: 0.72rem; font-weight: 600; color: var(--base-primary-primary-600); }
.dark .pkg-scenario__tag { color: var(--base-primary-primary-300); }
.pkg-scenario__q { margin: 0; font-size: 0.98rem; line-height: 1.5; }
.pkg-scenarios__more { margin: 1.5rem 0 0; text-align: center; font-size: 0.85rem; color: var(--semantic-text-text-tertiary); }

/* What's inside — outcomes checklist. */
.pkg-checklist { list-style: none; margin: 3rem auto 0; padding: 0; max-width: 56rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 2.5rem; }
.pkg-checklist li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.98rem; line-height: 1.5; }
.pkg-checklist .pub-icon { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.12rem; color: var(--semantic-text-text-success); }

/* Pricing card. */
.pkg-price-card { max-width: 28rem; margin: 2.5rem auto 0; background: var(--semantic-background-bg-surface); border: 1px solid var(--semantic-border-border-default); border-radius: 1rem; padding: 2rem; box-shadow: 0 20px 50px -30px rgba(20,20,40,.25); }
.pkg-price-card__name { font-size: 1.1rem; font-weight: 600; }
.pkg-price-card__price { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 0.5rem; line-height: 1.1; }
.pkg-price-card__note { color: var(--semantic-text-text-tertiary); font-size: 0.9rem; margin-top: 0.4rem; }
.pkg-price-card__divider { height: 1px; background: var(--semantic-border-border-subtle); margin: 1.25rem 0; }
.pkg-price-card__incl { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.pkg-price-card__incl li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.92rem; }
.pkg-price-card__incl .pub-icon { flex: none; width: 1.05rem; height: 1.05rem; margin-top: 0.12rem; color: var(--semantic-text-text-success); }
.pkg-price-card__guarantee { margin: 0.9rem 0 0; text-align: center; font-size: 0.85rem; color: var(--semantic-text-text-secondary); }
.pkg-price-card__disclaimer { margin: 0.6rem 0 0; text-align: center; font-size: 0.78rem; color: var(--semantic-text-text-tertiary); }

/* Proof / testimonials. */
.pkg-proof { margin: 0; }
.pkg-proof__quote { margin: 0 0 0.9rem; font-size: 1rem; line-height: 1.55; color: var(--semantic-text-text-primary); }
.pkg-proof__by { font-size: 0.85rem; color: var(--semantic-text-text-tertiary); }

/* Slim footer. */
.pkg-footer { padding-block: 2.5rem 1.75rem; }
.pkg-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pkg-footer__nav { display: flex; gap: 1.25rem; }
.pkg-footer__nav a { font-size: 0.9rem; color: var(--semantic-text-text-secondary); }
.pkg-footer__nav a:hover { color: var(--semantic-text-text-primary); }
.pkg-footer__disclaimer { margin: 1rem 0 0; font-size: 0.82rem; color: var(--semantic-text-text-tertiary); }

@media (max-width: 60rem) {
  .pkg-hero__grid { grid-template-columns: 1fr; }
  .pkg-hero__left .pub-display { max-width: none; }
  .pkg-checklist { grid-template-columns: 1fr; }
}

/* "Request an invitation" — the showcase waiting-list form (in the access card).
   Stacked like the card itself: input, block button, one quiet note. */
.pkg-request { display: flex; flex-direction: column; }
.pkg-request__form { display: flex; flex-direction: column; gap: 0.6rem; }
.pkg-request__input { width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--semantic-border-border-default); border-radius: 0.6rem; font: inherit; font-size: 0.92rem; background: var(--semantic-background-bg-page); color: var(--semantic-text-text-primary); }
.pkg-request__input:focus { outline: 2px solid var(--semantic-border-border-brand); outline-offset: -1px; }
.pkg-request__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pkg-request__note { font-size: 0.78rem; color: var(--semantic-text-text-tertiary); line-height: 1.45; margin: 0; }
.pkg-request__error { font-size: 0.82rem; color: var(--base-error-error-500, #c53030); margin: 0; }
.pkg-request__success { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.8rem 0.9rem; border-radius: 0.6rem; background: var(--base-success-success-50, #dff6ec); color: var(--base-success-success-700, #11663c); }
.pkg-request__success p { margin: 0.15rem 0 0; font-size: 0.85rem; }
.pkg-request__success .pub-icon { flex-shrink: 0; margin-top: 0.1rem; }

/* Showcase access card: "By invitation" is a status line, not a price tag. */
.pkg-price-card__price--invite { font-size: 1.35rem; font-weight: 600; letter-spacing: 0; }

/* Request-an-invitation dialog — one input, one button, one note. */
.pkg-dialog { border: none; border-radius: 1rem; padding: 1.5rem; width: min(24rem, calc(100vw - 2.5rem)); background: var(--semantic-background-bg-surface); color: var(--semantic-text-text-primary); box-shadow: 0 24px 60px -24px rgba(20, 20, 40, 0.35); }
.pkg-dialog::backdrop { background: rgba(12, 12, 24, 0.45); }
.pkg-dialog__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.pkg-dialog__title { margin: 0; font-size: 1.05rem; font-weight: 600; }
.pkg-dialog__close { border: none; background: none; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--semantic-text-text-tertiary); padding: 0 0.2rem; }
.pkg-dialog__close:hover { color: var(--semantic-text-text-primary); }

/* CTA explainer + provenance: a visitor's first questions are "an invitation to
   what?" and "who made this?" — both answered next to the buttons themselves. */
.pkg-hero__cta-note { margin: 0.9rem 0 0; max-width: 34rem; color: var(--semantic-text-text-secondary); font-size: 0.9rem; line-height: 1.55; }
.pkg-hero__provenance { margin: 1.1rem 0 0; color: var(--semantic-text-text-tertiary); font-size: 0.8rem; }

/* The academy's other tracks — cards that link to their own landing pages. */
.pkg-track { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
.pkg-track:hover { border-color: var(--base-primary-primary-300, #b9b4f5); transform: translateY(-2px); }
.pkg-track__meta { display: inline-block; margin-top: 0.9rem; color: var(--semantic-text-text-tertiary); font-size: 0.8rem; }

/* Who-made-this block. */
/* Centred under the centred section heading — a max-width block with no auto
   margin hugs the container's left edge and reads as misaligned. */
.pkg-maker { max-width: 44rem; margin: 2.5rem auto 0; color: var(--semantic-text-text-secondary); font-size: 1.02rem; line-height: 1.7; }
.pkg-maker p + p { margin-top: 1rem; }
.pkg-maker strong { color: var(--semantic-text-text-primary); }

/* Dialog: lead line above the input, and the close button on the success panel. */
.pkg-request__lead { margin: 0 0 0.9rem; color: var(--semantic-text-text-secondary); font-size: 0.9rem; line-height: 1.55; }
.pkg-dialog__done { margin-top: 1rem; }
