/* App product pages (Questly) and the referral card. Colors come from theme.css only. */

.co-hero .hunt-icon { display: block; margin: 0 auto 14px; }

/* Price block under the hero */
.price-hero { margin: 24px auto 0; max-width: 560px; }
.price { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.price-now { font-size: clamp(44px, 9vw, 64px); font-weight: 900; color: var(--text); line-height: 1; }
.price-was { font-size: 24px; color: var(--text-muted); }
.price-once { display: inline-block; margin: 12px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--pill-bg); color: var(--star-gold); font-weight: 800; }
.price-note { color: var(--text-muted); margin: 10px 0 18px; }
.price-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.button-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.button-ghost:hover { background: var(--pill-bg); color: var(--accent-hover); }

section.principles, section.included, section.compare, section.faq, section.get, section.sources { margin: 72px auto 0; scroll-margin-top: 90px; }
.principles > h2, .included > h2, .compare > h2, .faq > h2, .sources > h2 { font-size: clamp(26px, 4vw, 34px); text-align: center; }
.principles > .lead, .compare > .lead { text-align: center; margin-left: auto; margin-right: auto; }

.principle-grid, .included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.principle h3, .included-grid h3 { color: var(--accent); }
.principle p { font-size: 16px; }
.cite {
  font-size: 12px; font-weight: 800; vertical-align: super; line-height: 0;
  margin-left: 2px; text-decoration: none; padding: 0 2px;
}
.small { font-size: 14px; }
.principles > .small, .compare > .small { margin-top: 18px; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: "\2605"; position: absolute; left: 0; color: var(--star-gold); }

/* Comparison table: scrolls sideways on a phone instead of squashing */
.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table thead th { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody th { font-weight: 800; }
.compare-table .ours { background: var(--pill-bg); }
.compare-table .ours th { color: var(--accent-hover); }

/* Questions */
.faq { max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-top: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--text-muted); }

/* Get Questly form */
.get .doc h2 { margin-top: 0; }
.referred { background: var(--pill-bg); color: var(--pill-text); border-radius: 12px; padding: 12px 16px; }
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.form .check input { width: 20px; height: 20px; accent-color: var(--accent); }
.share-line { text-align: center; margin-top: 20px; }

/* Sources */
.sources { max-width: 860px; }
.sources ol { color: var(--text-muted); font-size: 14px; padding-left: 22px; }
.sources li { margin-bottom: 10px; scroll-margin-top: 90px; }
.sources li:target { color: var(--text); }
.sources a { overflow-wrap: anywhere; }

/* Selling points under the intro */
section.selling { margin: 40px auto 0; }
.selling-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.selling-grid h3 { color: var(--accent); margin-top: 0; }
.selling-grid p { margin-bottom: 0; color: var(--text-muted); }

/* Comparison extras: a short description under each name, and the savings column */
.compare-table .what { display: block; font-weight: 400; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.compare-table .save { font-weight: 800; color: var(--star-gold); }
.compare-table .ours .save { color: var(--accent-hover); }
.compare > .lead strong { color: var(--star-gold); }

/* On a phone the comparison becomes one card per product, so the savings are never scrolled out of sight */
@media (max-width: 700px) {
  .compare .table-wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table tr { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; margin-bottom: 12px; padding: 6px 0; box-shadow: var(--shadow); }
  .compare-table tbody th { border-bottom: 1px solid var(--border); }
  .compare-table td { display: flex; justify-content: space-between; gap: 16px; border-bottom: 0; padding: 8px 16px; text-align: right; }
  .compare-table td::before { content: attr(data-label); color: var(--text-muted); font-weight: 700; text-align: left; flex: 0 0 auto; }
}

/* A call to action between the comparison and the questions */
section.cta-band { margin: 56px auto 0; text-align: center; max-width: 760px; background: var(--pill-bg); border: 1px solid var(--border); border-radius: 24px; padding: 32px 24px; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); }
.cta-band p { margin: 0 0 16px; color: var(--text-muted); }
.cta-band p:last-child { margin-bottom: 0; }

/* Desktop: the hero becomes text beside the phones, and long single columns spread out */
.get-steps { margin: 4px 0 20px; }
.get-steps li { margin-bottom: 8px; }

@media (min-width: 1000px) {
  .product-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 24px;
    min-height: min(760px, calc(100vh - 140px));
  }
  .product-hero .co-hero { text-align: left; }
  .product-hero .co-hero .lead { margin-left: 0; font-size: 21px; }
  .product-hero .hunt-icon { margin: 0 0 18px; }
  .product-hero h1 { font-size: 64px; margin-bottom: 12px; }
  .product-hero .price-hero { margin: 28px 0 0; }
  .product-hero .price, .product-hero .price-actions { justify-content: flex-start; }
  .product-hero .price-now { font-size: 72px; }
  .product-hero .stage { margin: 0; height: 640px; max-width: none; }
  .product-hero .stage .phone { width: 210px; }
  .product-hero .stage .p-center { width: 260px; }
  .product-hero .stage .p-left { transform: translate(-50%, -50%) translate3d(-185px, 30px, -80px) rotateY(24deg); }
  .product-hero .stage .p-right { transform: translate(-50%, -50%) translate3d(185px, 30px, -80px) rotateY(-24deg); }

  .hunt-intro { margin-top: 56px; }
  .hunt-intro .tagline { font-size: 26px; max-width: 820px; }
  .hunt-intro .muted { max-width: 820px; font-size: 18px; }

  .scrolly { gap: 80px; }
  .scrolly-phone { width: 300px; }
  .step-copy h3 { font-size: 36px; }
  .step-copy p { font-size: 19px; max-width: 520px; }

  .faq { max-width: 1100px; }
  .faq-list { columns: 2; column-gap: 16px; }
  .faq-list details { break-inside: avoid; margin: 0 0 10px; }

  .get .doc { max-width: 1100px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; padding: 48px; }
  .get-intro h2 { font-size: 34px; }
}

/* Referral card */
.refer { text-align: center; }
.refer .lead { margin-left: auto; margin-right: auto; }
.qr { display: block; width: min(280px, 70vw); height: auto; margin: 24px auto; border-radius: 18px; background: var(--qr-light); padding: 12px; box-shadow: var(--shadow); }
.refer-link { font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.refer-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0; }
.refer-actions .button { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.refer .form { text-align: left; max-width: 420px; margin: 0 auto; }
.refer-steps { text-align: left; max-width: 520px; margin: 24px auto 0; }

@media print {
  .galaxy, .site-header, .site-footer, .refer-actions, .no-print { display: none !important; }
  body { background: var(--print-bg); color: var(--print-text); }
  .doc { box-shadow: none; border: 0; background: none; }
  .refer .lead, .refer .muted, .refer-steps { color: var(--print-text); }
  .refer-link { color: var(--print-text); }
  .qr { box-shadow: none; }
}

/* School PTO app page: a wide hero picture with the words over its empty left side, and a full width photo */
.pto-hero { position: relative; margin-top: 8px; }
.pto-hero-art { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }
.pto-hero-copy .pill { display: inline-block; margin-bottom: 10px; }
.pto-photo { margin: 48px 0 0; }
.pto-photo img { display: block; width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }

@media (min-width: 1000px) {
  .pto-hero { min-height: min(760px, calc(100vh - 140px)); display: flex; align-items: center; }
  .pto-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
  .pto-hero-copy { position: relative; text-align: left; max-width: 560px; padding: 48px; }
  .pto-hero-copy h1 { font-size: 56px; margin-bottom: 12px; }
  .pto-hero-copy .lead { margin-left: 0; font-size: 20px; }
  .pto-hero-copy .price-hero { margin: 28px 0 0; }
  .pto-hero-copy .price, .pto-hero-copy .price-actions { justify-content: flex-start; }
}

/* The ad on the PTO app page: a bold band with the video in a phone frame */
section.pto-watch {
  margin: 64px 0 0; padding: 48px 24px; border-radius: 32px; scroll-margin-top: 90px;
  background: radial-gradient(ellipse at 70% 50%, var(--nebula-violet), transparent 70%), var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: grid; gap: 40px; align-items: center; text-align: center;
}
.pto-watch h2 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; margin: 14px 0 16px; }
.pto-watch .gold { color: var(--star-gold); }
.pto-watch-copy p { color: var(--text-muted); font-size: 18px; max-width: 520px; margin-left: auto; margin-right: auto; }
.pto-play-btn { border: 0; font: inherit; font-weight: 800; font-size: 18px; padding: 14px 26px; cursor: pointer; }
.pto-reel-wrap { position: relative; display: flex; justify-content: center; }
.pto-reel-glow { position: absolute; inset: 10% 0; background: radial-gradient(circle, var(--device-glow), transparent 65%); filter: blur(20px); }
.pto-reel {
  position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 16; padding: 8px; border-radius: 36px;
  background: var(--device-frame); border: 1px solid var(--device-edge); box-shadow: var(--device-shadow);
}
.pto-reel video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: var(--bg-deep); }
.pto-reel-play {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 2px solid var(--text); background: var(--star-gold); color: var(--accent-contrast);
  font-size: 34px; cursor: pointer; box-shadow: 0 0 0 0 var(--star-gold); animation: pto-pulse 2s ease-out infinite;
}
.pto-reel-play span { margin-left: 6px; }
.pto-reel.playing .pto-reel-play { display: none; }
@keyframes pto-pulse { 0% { box-shadow: 0 0 0 0 var(--device-glow); } 100% { box-shadow: 0 0 0 28px transparent; } }
@media (prefers-reduced-motion: reduce) { .pto-reel-play { animation: none; } }

@media (min-width: 1000px) {
  section.pto-watch { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 64px; text-align: left; }
  .pto-watch-copy p { margin-left: 0; }
  .pto-reel { width: 340px; }
}
