/* Pricing page (pricing.html). Builds on front.css: the hero, sections, plan cards, art cards and tick lists. */

/* hero */
.pr-hero { padding-bottom: 24px; }
.pr-hero-copy { text-align: center; display: grid; justify-items: center; }
.pr-hero-copy .f-lede { margin-left: auto; margin-right: auto; }
.pr-hero-copy .f-cta { justify-content: center; }
.pr-trial { margin: -8px 0 24px; padding: 8px 18px; border-radius: 999px; font-weight: 600;
  background: color-mix(in srgb, var(--f-green) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--f-green) 35%, transparent); }
.pr-trial[hidden], .pr-save[hidden] { display: none; }
.pr-save { margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 800; vertical-align: 2px;
  color: var(--good); background: var(--good-soft); }

/* Free vs Plus */
.f-plans .f-section-head { margin-bottom: 0; }
.f-plan-price small { display: block; margin-top: 4px; }
.f-plan > .f-btn { margin-top: auto; }
.pr-table-wrap { max-width: 860px; margin: 28px auto 0; overflow-x: auto; }
.pr-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pr-table th, .pr-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pr-table tbody tr:last-child > * { border-bottom: 0; }
.pr-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.pr-table thead th:last-child { color: var(--accent); }
.pr-table tbody th { font-weight: 600; }
.pr-table th small, .pr-table td small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.pr-table td { width: 22%; text-align: center; font-weight: 600; }
.pr-table td.yes { color: var(--good); font-weight: 900; }
.pr-table td.no { color: var(--muted); }
.pr-table td:last-child { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* What you get: one row per feature, copy and illustration side by side (alternating) */
.pr-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 64px; }
.pr-feature.flip .pr-feature-copy { order: 2; }
.pr-feature-copy h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin: 10px 0 12px; }
.pr-feature-copy p { color: var(--muted); font-size: 1.08rem; line-height: 1.55; margin: 0; }
.pr-art { padding: 36px; border-radius: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 24%, var(--bg)), color-mix(in srgb, var(--c) 10%, var(--bg))); }
.pr-art .art-card { transform: rotate(-1deg); }
.pr-feature.flip .pr-art .art-card { transform: rotate(1deg); }
.pr-answer { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .88rem; font-style: italic; }
.pr-wrong { border-color: var(--f-red); background: color-mix(in srgb, var(--f-red) 12%, var(--surface)); }
.pr-explain { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.5;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid var(--line); }
.pr-explain p { margin: 0 0 8px; }
.pr-explain .pr-tip { margin: 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.pr-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pr-week div { display: grid; gap: 5px; align-content: start; min-height: 120px; padding: 6px 4px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.pr-week b { font-size: .75rem; color: var(--muted); }
.pr-week i { font-style: normal; font-size: .78rem; font-weight: 700; line-height: 1.2; padding: 7px 2px; border-radius: 7px;
  background: color-mix(in srgb, var(--h) 30%, var(--surface)); color: var(--ink); }
.pr-week-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 0; font-size: .75rem; color: var(--muted); }
.pr-week-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px;
  background: color-mix(in srgb, var(--h) 60%, var(--surface)); }
.pr-week .exam { background: color-mix(in srgb, var(--f-red) 14%, var(--surface)); }
.pr-week .rest span { font-size: .7rem; color: var(--muted); }
.pr-ins { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.pr-bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pr-bar i { display: block; height: 100%; border-radius: 99px; background: var(--f-green); }
.pr-ins-line { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.pr-ins-line b { color: var(--ink); }
.pr-email-head { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.pr-email-head div { display: grid; }
.pr-email-head small { color: var(--muted); font-size: .78rem; }
.pr-mini-mark { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.pr-email-stats { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pr-email-stats li { display: grid; padding: 10px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.pr-email-stats b { font-size: 1.3rem; }
.pr-email-stats span { font-size: .75rem; color: var(--muted); }

/* For parents */
.pr-parents { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pr-parents div { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pr-parents div > span { font-size: 1.5rem; }
.pr-parents b { font-size: 1.02rem; }
.pr-parents small { color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* Share Genious */
.pr-share { display: flex; align-items: center; gap: 28px; padding: 32px; border-radius: 28px;
  background: color-mix(in srgb, var(--f-teal) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--f-teal) 30%, var(--line)); }
.pr-share h2 { margin: 8px 0 10px; }
.pr-share p { margin: 0 0 8px; line-height: 1.55; }
.pr-share-art { font-size: 4.5rem; flex: none; }

/* Get Plus */
.pr-get { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; scroll-margin-top: 80px; }
.pr-get-copy p { color: var(--muted); font-size: 1.1rem; line-height: 1.55; margin: 0; }
.pr-get .plus-card { margin: 0; padding: 26px; font-size: 1rem; }
.pr-get .plus-card h3 { font-size: 1.45rem; }
.pr-get .btn { text-decoration: none; }
.pr-get .plus-card label { display: flex; gap: 8px; font-weight: 400; }
.pr-get .plus-consent { font-size: .85rem; align-items: flex-start; }
.pr-get .plus-invite input { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; flex: 1 1 200px; }

/* FAQ */
.pr-faq { max-width: 780px; padding-bottom: 20px; }
.pr-faq details { border-bottom: 1px solid var(--line); }
.pr-faq summary { cursor: pointer; padding: 18px 4px; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.pr-faq details[open] summary::after { content: "−"; }
.pr-faq details p { margin: 0 4px 18px; color: var(--muted); line-height: 1.6; }

@media (max-width: 860px) {
  .pr-feature, .pr-get { grid-template-columns: 1fr; gap: 28px; }
  .pr-feature { margin-top: 48px; }
  .pr-feature.flip .pr-feature-copy { order: 0; }
  .pr-art { padding: 20px; }
}
@media (max-width: 560px) {
  .pr-table th, .pr-table td { padding: 11px 10px; font-size: .9rem; }
  .pr-table td { width: 24%; }
  .pr-share { flex-direction: column; align-items: flex-start; padding: 24px; }
  .pr-share-art { display: none; }
  .pr-week { gap: 3px; }
  .pr-week i { font-size: .68rem; padding: 5px 1px; }
  .pr-week div { min-height: 100px; padding: 5px 2px; }
}
