/* MatricMap Predictor pages (predictor.html, predictor-maths.html): MatricMap's flat green, gold and paper, under the site's own
   banner (css/header.css: Tools | My Matric Map | Predictor, lit here). The banner stays at the top while scrolling, so a jump to a
   part of the page lands just below it. */
.predictor-page { background: var(--paper); --pr-head: 76px; }

.pr-hero { background: var(--brand); color: #fff; padding: 28px 0 44px; }
.pr-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.pr-hero h1 { color: #fff; margin: 10px 0 14px; }
.pr-hero h1 span { color: var(--accent); }
.pr-lead { font-size: 1.12rem; line-height: 1.55; color: rgba(255, 255, 255, .9); margin: 0 0 22px; max-width: 34em; }
.pr-soon { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(237, 182, 75, .16); color: var(--accent); font-weight: 700; font-size: .9rem; }
.pr-soon-dark { background: #fbf1da; color: #6b4a00; }
.pr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pr-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #0b2f30; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.pr-hero .pr-fine { color: rgba(255, 255, 255, .7); margin-top: 8px; }
.pr-fine { font-size: .85rem; color: var(--ink-3); margin: 6px 0 0; }
.pr-try { margin: 14px 0 0; }
.pr-try a { color: var(--accent); font-weight: 700; }
.pr-try a::after { content: " →"; }

.pr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border: 0; border-radius: 999px; font: 700 1.02rem var(--font); text-decoration: none; cursor: pointer; }
.pr-btn-gold { background: var(--accent); color: var(--accent-ink); }
.pr-btn-gold:hover { background: #f2c66c; }
.pr-btn:focus-visible, .pr-link:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.pr-btn[disabled] { opacity: .7; cursor: wait; }
.pr-wide { width: 100%; }
.pr-link { display: block; margin: 14px auto 0; padding: 6px; border: 0; background: none; color: var(--brand-2); font: 600 .95rem var(--font); text-decoration: underline; cursor: pointer; }

.pr-steps { padding-top: 44px; }
.pr-steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.pr-steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pr-steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; }
.pr-steps b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.pr-steps span { color: var(--ink-2); font-size: .97rem; line-height: 1.5; }

.pr-price { padding-top: 44px; }
.pr-card { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; text-align: center; box-shadow: 0 10px 30px rgba(15, 61, 62, .08); scroll-margin-top: var(--pr-head); }
.pr-card h2 { margin: 12px 0 6px; }
.pr-amount { margin: 0 0 14px; color: var(--ink-2); }
.pr-amount b { display: block; font: 700 2.8rem/1.1 var(--serif); color: var(--brand); }
.pr-offer { margin: 0 0 16px; padding: 8px 12px; border-radius: 12px; background: #fbf1da; color: #4a3500; font-weight: 600; }
.pr-includes { text-align: left; margin: 0 0 20px; padding: 0; list-style: none; }
.pr-includes li { position: relative; padding: 6px 0 6px 28px; border-top: 1px solid var(--line); }
.pr-includes li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand-2); font-weight: 700; }

.pr-faq { padding-top: 44px; max-width: 760px; }
.pr-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.pr-faq summary { font-weight: 650; cursor: pointer; }
.pr-faq p { margin: 8px 0 0; color: var(--ink-2); }
.pr-foot { padding: 40px 20px 32px; color: var(--ink-3); font-size: .9rem; }

.pr-dialog { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 18px; padding: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.pr-dialog::backdrop { background: rgba(10, 30, 31, .55); }
.pr-dialog h2 { font-size: 1.5rem; margin: 0 30px 8px 0; }
.pr-dialog p { margin: 0 0 12px; color: var(--ink-2); }
.pr-close-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.pr-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tint); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pr-form { display: grid; gap: 8px; }
.pr-form > label { font-weight: 650; margin-top: 4px; }
.pr-form input[type="email"], .pr-form select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9b5a6; border-radius: 10px; font: inherit; background: #fff; }
.pr-form fieldset { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.pr-form legend { font-weight: 650; margin-bottom: 4px; padding: 0; }
.pr-form fieldset label { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pr-form fieldset label:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); }
.pr-form .pr-btn { margin-top: 8px; }
.pr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pr-error { margin: 4px 0 0; padding: 8px 12px; border-radius: 10px; background: #fdecea; color: #8a1c12 !important; font-weight: 600; }

@media (max-width: 860px) {
  .pr-hero-in { grid-template-columns: 1fr; gap: 24px; }
  .pr-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pr-hero { padding: 18px 0 32px; }
  .pr-video { max-width: 260px; margin: 0 auto; width: 100%; }
  .pr-video video { aspect-ratio: 9 / 16; }
  .pr-steps ol { grid-template-columns: 1fr; gap: 10px; }
  .pr-steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 14px; }
  .pr-steps li::before { grid-row: span 2; margin: 0; }
  .pr-card { padding: 22px 18px; }
}
