/* ==========================================================================
   Pricing page (/pricing). Loads after styles.css and reuses its tokens and components:
   .status-pill, .btn, .checklist, .card, .step-art mockups (.art-checklist, .browser, .art-jargon, .art-question),
   .net-seal, .faq-list. Everything here is scoped to classes that exist only on this page.
   ========================================================================== */

/* ---------- 1. Hero: copy left, founders photo card right (homepage .hero-visual components) ---------- */
.pricing-hero { padding: 32px 0 40px; background: linear-gradient(180deg, var(--peach-wash) 0%, #fff 100%); }
.pricing-hero-grid { display: grid; gap: 40px; }
.pricing-hero h1 { font-size: clamp(2rem, 1.55rem + 1.9vw, 3.15rem); margin-bottom: .35em; }
.pricing-hero-sub { font-size: 18px; max-width: 52ch; margin-bottom: 24px; }
.pricing-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Status pill in terracotta instead of blue */
.pricing-hero .status-pill {
  font-size: 1.02rem; padding: 6px 16px 6px 13px; gap: 10px; margin-bottom: 18px;
  background: var(--terracotta-soft); border-color: var(--peach-line); color: var(--terracotta);
}
.pricing-hero .status-dot { width: 10px; height: 10px; }
.pricing-hero .status-dot, .pricing-hero .status-dot::after { background: var(--terracotta); }

/* "AI expert": hand-drawn terracotta underline; draws once on load like the homepage swoosh (off with reduced motion) */
.hand-underline {
  white-space: nowrap; padding-bottom: .12em;
  background: url("assets/swoosh-terracotta.svg") no-repeat left bottom / 100% .32em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: swoosh-draw .8s cubic-bezier(.3, .6, .3, 1) .25s both;
}

/* Terracotta outline button (hero, free strip): 5.3:1 text on white, fills on hover */
.btn-terracotta-outline { background: #fff; color: var(--terracotta); box-shadow: inset 0 0 0 2px var(--terracotta); font-weight: 600; }
.btn-terracotta-outline:hover { background: var(--terracotta-hover); color: #fff; box-shadow: none; }

/* Skool line under the buttons: official logo file only (assets/skool-logo.png), never redrawn or recolored */
.skool-line { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--muted); font-size: .9rem; font-weight: 500; }
.skool-logo { height: 20px; width: auto; flex: none; }
.skool-logo-lg { height: 28px; }

/* Photo card: same card, badge and pills as the homepage; caption under it */
.pricing-visual .badge-disclosure { text-align: center; margin-top: 12px; }

/* Phones: the one-line pill needs ~500px; below that, break at the dot like the homepage */
@media (max-width: 539px) {
  .pricing-hero .pill-part { display: block; }
  .pricing-hero .pill-sep { display: none; }
  .pricing-hero-actions { flex-direction: column; }
}
@media (min-width: 1040px) {
  .pricing-hero { padding: 80px 0 48px; }
  .pricing-hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 64px; }
}

/* ---------- 2. Pricing ----------
   Each kind of purchase is one block: a solid header bar with its cards attached underneath
   (blue = monthly, terracotta = one-time). Phones and tablets follow the DOM order.
   Desktop (1100px+): 1fr 1fr 1.3fr, both bars on row 1, and the cards share rows 2-12 (subgrid),
   so "Best for", the line above the price, prices and buttons sit on the same lines in all three cards. */
/* Hero to "Choose your path": 40% less space than before (176 → 106px desktop, 136 → 82px phones) */
#plans { padding-top: 42px; }
@media (min-width: 1040px) { #plans { padding-top: 58px; } }

.plan-grid { display: grid; gap: 16px; }
.plan-bar {
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 -16px; padding: 15px 14px; border-radius: 16px 16px 0 0;
  color: #fff; text-align: center; text-wrap: balance;
  font: 800 1.08rem/1.3 var(--font-head); letter-spacing: .05em; text-transform: uppercase;
}
/* Each phrase stays whole, so a wrapped bar breaks after a dot, never before one */
.bar-part { white-space: nowrap; }
.plan-bar-monthly { background: var(--blue); }       /* white text 6.0:1 */
.plan-bar-once { background: var(--terracotta); margin-top: 16px; }  /* white text 5.3:1 */

.plan-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 0 24px 24px;
}
/* The card under a bar loses its top corners and top border: bar + card read as one block */
.plan-bar + .plan-card { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.plan-name { font-size: 1.25rem; margin: 0 0 6px; padding-top: 26px; }
.plan-line { margin: 0 0 16px; color: var(--muted); line-height: 1.5; }
.plan-includes { margin: 0 0 10px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.plan-list { margin: 0 0 18px; gap: 8px; align-content: start; font-size: .96rem; line-height: 1.45; }
.plan-best {
  margin: 0 0 20px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface-alt); font-size: .92rem; line-height: 1.5;
}
.plan-best strong { color: var(--ink); }
/* Price block: thin line above it; pushed to the bottom of the card */
.plan-price-label {
  display: block; margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font: 800 .78rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta);
}
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 6px; color: var(--ink); }
.plan-amount { font: 800 2.8rem/1 var(--font-head); letter-spacing: -0.03em; }
.plan-term { color: var(--muted); font-weight: 600; font-size: .95rem; }
.plan-price-sub { display: flex; align-items: center; min-height: 28px; margin: 0 0 18px; font-weight: 600; }
/* Smaller muted line under a benefit (Intensive: "For when your exam is booked.") */
.plan-sub { display: block; margin-top: 2px; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.plan-featured .plan-sub { color: var(--navy-text); }
.plan-chip { padding: 4px 10px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: .8rem; font-weight: 600; }
.plan-btn { width: 100%; font-weight: 700; }
.plan-note { margin: 10px 0 0; text-align: center; font-size: .85rem; line-height: 1.45; }

/* Featured: the Intensive on navy, with the red urgency band under the terracotta bar */
.plan-featured { background: var(--navy); border-color: var(--navy); color: var(--navy-text); box-shadow: var(--shadow-lift); }
/* Urgency band: --urgent-red with white text (4.8:1); a 2px cream line keeps it apart from the terracotta bar above
   (similar brightness, 1.1:1). "20 spots" is 1.25x so the number is what the eye lands on. */
.plan-band {
  margin: 0 -24px; padding: 14px 16px;
  background: var(--urgent-red); border-top: 2px solid var(--peach-wash); color: #fff; text-align: center; text-wrap: balance;
  font: 800 1.05rem/1.3 var(--font-head); letter-spacing: .04em; text-transform: uppercase;
}
.band-num { font-size: 1.25em; letter-spacing: .02em; }
/* "Live" dot: inline at the start of the text, so it always sits on the first line when the band wraps */
.live-dot {
  position: relative; display: inline-block; width: 10px; height: 10px; margin-right: .55em;
  vertical-align: .12em; border-radius: 50%; background: #fff;
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: live-ring 1.8s ease-out infinite;
}
@keyframes live-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}
/* Static dot when motion is reduced (styles.css also stops every animation then) */
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; box-shadow: none; } }
.plan-featured .plan-name, .plan-featured .plan-price, .plan-featured .plan-includes,
.plan-featured .plan-best strong, .plan-featured .plan-list, .plan-featured .plan-price-sub { color: #fff; }
.plan-featured .plan-term, .plan-featured .plan-line, .plan-featured .plan-note { color: var(--navy-text); }
.plan-featured .checklist .icon { color: var(--peach); }
.plan-featured .plan-best { background: rgba(255, 255, 255, .08); color: var(--navy-text); }
/* --terracotta is 3.1:1 on navy; --copper is 5.2:1 */
.plan-featured .plan-price-label { color: var(--copper); border-top-color: rgba(255, 255, 255, .18); }
.plan-featured :focus-visible { outline-color: #fff; }
/* Strong contrast on navy: white button, navy text (16:1) */
.btn-on-navy { background: #fff; color: var(--navy); }
.btn-on-navy:hover { background: var(--peach); color: var(--navy); }

/* Cohort deadline banner: a callout one step deeper than the quiz card's green (--teal-line, ink text 14.3:1),
   2px --teal border with a 6px --teal bar down the left, so it can't blend into the cream free strip below */
.deadline-banner {
  display: flex; flex-direction: column; gap: 14px; margin-top: 28px; padding: 30px 24px;
  background: var(--teal-line); color: var(--ink);
  border: 2px solid var(--teal); border-left-width: 6px;
  border-radius: 20px; box-shadow: var(--shadow);
}
/* Calendar in a solid --teal circle, white strokes (5.2:1) */
.deadline-icon-wrap {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: 50%; background: var(--teal);
}
.deadline-icon {
  width: 26px; height: 26px;
  fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.deadline-main {
  margin: 0 0 6px; color: var(--ink); text-wrap: balance;
  font: 800 clamp(1.3rem, 1.05rem + 1vw, 1.55rem)/1.3 var(--font-head); letter-spacing: -0.01em;
}
.deadline-sub { margin: 0; color: var(--ink); font-size: 1rem; }

/* Free strip and "Pass or come back free": one matching box style */
.free-strip, .comeback-card {
  margin-top: 20px; padding: 24px;
  background: var(--peach-wash); border: 1px solid var(--peach-line); border-radius: 20px;
}
.free-strip { display: grid; gap: 20px; }
.free-strip h3 { font-size: 1.3rem; margin: 14px 0 6px; }
.free-strip-copy p { margin: 0; max-width: 60ch; }
.free-strip .btn { width: 100%; }

.comeback-card { display: grid; gap: 16px; }
/* styles.css stamps .net-seal over the card edge from 640px; here it sits inside the box */
.comeback-card .comeback-seal { position: static; width: 96px; height: 96px; margin: 0; }
.comeback-text h3 { font-size: 1.3rem; margin: 0 0 8px; }
.comeback-text p { margin-bottom: 12px; }
.comeback-list { margin: 0 0 14px; }
.comeback-fine { font-size: .88rem; color: var(--muted); margin: 0; }

.plan-smallprint { margin: 20px 0 0; font-size: .85rem; color: var(--muted); }

@media (min-width: 640px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .plan-bar, .plan-featured { grid-column: 1 / -1; }
  /* Tablet: both monthly cards hang from the blue bar */
  .plan-card:not(.plan-featured) { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
  .deadline-banner { flex-direction: row; align-items: center; gap: 20px; }
  .free-strip .btn { width: auto; justify-self: start; }
  .comeback-card { grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start; }
  .comeback-card .comeback-seal { width: 120px; height: 120px; }
}
@media (min-width: 900px) {
  .deadline-banner { padding: 36px 36px 36px 32px; gap: 24px; }
  .free-strip, .comeback-card { padding: 28px 32px; }
  .free-strip { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
  .free-strip .btn { justify-self: end; }
}

@media (min-width: 1100px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 24px; row-gap: 0; }
  .plan-bar { grid-row: 1; margin: 0; }
  .plan-bar-monthly { grid-column: 1 / 3; }
  /* Extra space between the two kinds of purchase */
  .plan-bar-once, .plan-featured { grid-column: 3; margin-left: 16px; }
  .plan-card { display: grid; grid-template-rows: subgrid; grid-row: 2 / 13; row-gap: 0; }
  .plan-card:nth-of-type(1) { grid-column: 1; }
  .plan-card:nth-of-type(2) { grid-column: 2; }
  .plan-price-label { margin-top: 0; }
  /* The Intensive fills rows 1-11 in order (band to note). The monthly cards have no band, so they start at row 1
     and their list spans two rows; from "Best for" down every card uses the same rows. */
  .plan-card:not(.plan-featured) > .plan-name { grid-row: 1; }
  .plan-card:not(.plan-featured) > .plan-line { grid-row: 2; }
  .plan-card:not(.plan-featured) > .plan-includes { grid-row: 3; }
  .plan-card:not(.plan-featured) > .plan-list { grid-row: 4 / 6; }
  .plan-card:not(.plan-featured) > .plan-best { grid-row: 6; }
  .plan-card:not(.plan-featured) > .plan-price-label { grid-row: 7; }
  .plan-card:not(.plan-featured) > .plan-price { grid-row: 8; }
  .plan-card:not(.plan-featured) > .plan-price-sub { grid-row: 9; }
  .plan-card:not(.plan-featured) > .plan-btn { grid-row: 10; }
}

/* ---------- 4. How we get you exam-ready ----------
   Phones and tablets: a vertical list, numbers on a dashed copper line with an arrowhead into the next step.
   From 1100px: five columns, dashed arrows between the numbers. */
.path-steps { display: grid; gap: 40px; max-width: 640px; margin: 0 auto; }
.path-step {
  position: relative;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; row-gap: 14px;
  grid-template-areas: "num text" ". art";
}
.path-num {
  grid-area: num; position: relative; z-index: 1;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 3px solid var(--copper);
  font: 800 1.15rem var(--font-head); color: var(--copper-ink);
  box-shadow: 0 0 0 6px var(--surface-alt);
}
.path-text { grid-area: text; }
.path-text h3 { font-size: 1.2rem; margin: 10px 0 4px; }
.path-text p { margin: 0; color: var(--muted); font-size: .98rem; }
.path-text a { color: var(--blue); }
.path-step .step-art { grid-area: art; padding: 18px; }

/* Connector: dashed line from this number down to the next, with an arrowhead at the end */
.path-step:not(:last-child)::after {
  content: ""; position: absolute; left: 23px; top: 56px; bottom: -36px;
  border-left: 2px dashed var(--copper);
}
.path-step:not(:last-child)::before {
  content: ""; position: absolute; left: 19px; bottom: -36px; width: 8px; height: 8px;
  border-right: 2px solid var(--copper); border-bottom: 2px solid var(--copper);
  transform: rotate(45deg);
}

@media (min-width: 1100px) {
  .path-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; max-width: none; }
  .path-step {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "num" "text" "art";
    grid-template-rows: auto 1fr auto; justify-items: center; row-gap: 12px;
  }
  .path-text { text-align: center; }
  .path-step .step-art { justify-self: stretch; padding: 14px; }
  /* Horizontal arrow: from 34px right of this number to 34px left of the next (24px column gap) */
  .path-step:not(:last-child)::after {
    left: calc(50% + 34px); top: 23px; bottom: auto; width: calc(100% + 24px - 68px);
    border-left: 0; border-top: 2px dashed var(--copper);
  }
  .path-step:not(:last-child)::before {
    left: calc(150% + 24px - 34px - 10px); top: 19px; bottom: auto;
    transform: rotate(-45deg);
  }
  /* Narrow columns: the "You are here" tag drops under its line */
  .path-step .art-checklist li { flex-wrap: wrap; font-size: .88rem; padding: 8px 10px; }
  .path-step .art-checklist .here { margin-left: 28px; }
  .path-step .jargon-plain { font-size: 1.02rem; }
  .path-step .art-question { padding: 14px; }
}

/* Study Cards mockup inside the browser frame */
.art-flashcard { display: grid; gap: 8px; padding: 16px 14px 14px; }
.flashcard-flip {
  justify-self: end; margin-top: 4px; padding: 4px 12px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); font-size: .74rem; font-weight: 600;
}
/* Skool community mockup: two posts and a reaction row */
.art-community { display: grid; gap: 8px; background: #fff; border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.community-post { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.community-post .face { --s: 32px; }
.community-lines { display: grid; gap: 6px; flex: 1; min-width: 0; }
.community-meta { display: flex; gap: 14px; padding: 2px 4px 0; color: var(--muted); font-size: .8rem; font-weight: 600; }
.community-meta span { display: inline-flex; align-items: center; gap: 4px; }
.community-meta .icon { width: 15px; height: 15px; }

/* ---------- 3. Architect bench (teal band, white cards) ---------- */
.bench { background: var(--teal-ink); }
.bench h2 { color: #fff; }
.bench .section-sub { color: var(--teal-soft); }
.bench :focus-visible { outline-color: #fff; }
.bench-grid { display: grid; gap: 20px; }
.bench-card { display: flex; flex-direction: column; border: 0; }
.bench-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.bench-list { margin: 0; gap: 10px; font-size: .96rem; line-height: 1.5; }
.bench-steps { display: grid; gap: 12px; counter-reset: bench; }
.bench-steps li { display: flex; align-items: flex-start; gap: 12px; counter-increment: bench; font-weight: 600; color: var(--ink); line-height: 1.4; }
.bench-steps li::before {
  content: counter(bench); display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; margin-top: -3px;
  background: var(--teal-soft); color: var(--teal-ink); font: 800 .95rem var(--font-head);
}
.bench-fine { margin: 24px 0 0; text-align: center; font-size: .88rem; color: var(--teal-soft); }
@media (min-width: 900px) { .bench-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 6. Final CTA (navy band) ---------- */
.pricing-final { background: var(--navy); padding: 72px 0; }
.pricing-final-inner { text-align: center; }
.pricing-final h2 { color: #fff; }
.pricing-final p { color: var(--navy-text); font-size: 1.05rem; margin-bottom: 24px; }
.pricing-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pricing-final :focus-visible { outline-color: #fff; }
@media (max-width: 539px) { .pricing-final-actions { flex-direction: column; } }
@media (min-width: 1040px) { .pricing-final { padding: 96px 0; } }

/* ---------- "Heading to Skool" pop-up (same <dialog class="modal"> as Privacy / Terms) ---------- */
.skool-modal { width: min(480px, calc(100vw - 2 * var(--gutter))); }
.skool-modal::backdrop { background: rgba(12, 17, 30, .55); }
.skool-modal .modal-body { padding: 28px 24px 22px; }
.skool-close { display: grid; place-items: center; top: 14px; right: 14px; width: 40px; height: 40px; padding: 0; }
.skool-close .icon { width: 18px; height: 18px; }
.skool-modal-logo { height: 32px; width: auto; margin-bottom: 16px; }
.skool-modal h2 { font-size: 1.4rem; padding-right: 44px; margin-bottom: 10px; }
.skool-modal p { font-size: .98rem; }
/* Numbered steps in small solid-blue circles (white digits 6.0:1) */
.skool-steps { display: grid; gap: 10px; margin: 0 0 22px; counter-reset: skool; }
.skool-steps li { display: flex; gap: 12px; align-items: flex-start; counter-increment: skool; line-height: 1.5; font-size: .98rem; }
.skool-steps li::before {
  content: counter(skool); display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; margin-top: -1px; border-radius: 50%;
  background: var(--blue); color: #fff; font: 800 .85rem var(--font-head);
}
.skool-actions { display: grid; gap: 10px; }
.skool-actions .btn { width: 100%; font-weight: 700; }
.skool-cancel { min-height: 44px; padding: 0 12px; color: var(--muted); }
.skool-cancel:hover { color: var(--ink); }
.skool-modal .skool-help { margin: 14px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
@media (min-width: 480px) {
  .skool-modal .modal-body { padding: 32px 32px 24px; }
  .skool-actions { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 16px; }
  .skool-actions .btn { width: auto; }
}
