/* Blind Box landing and legal pages. Candy pink and lavender from the app's art, Fredoka headings
   (the app's own font). Loaded after /styles.css; forces the light palette. */
:root.bb[data-theme] {
  --bg: #FFF8FC; --surface: #FFFFFF; --ink: #2B1745; --muted: #67587A;
  --line: #F1DCEB; --pink: #E5428A; --pink-dk: #B8236A; --pink-soft: #FFE4F1;
  --lav: #7A4FD8; --lav-dk: #5A33B5; --lav-soft: #EEE7FF; --sun: #F7B733;
  --honey: #E5428A; --honey-ink: #B8236A; --honey-soft: #FFE4F1; --teal: #B8236A;
  --shadow: 0 1px 2px rgba(60, 20, 70, .06), 0 14px 34px rgba(90, 40, 110, .10);
  --f-round: "Fredoka", "Onest", system-ui, sans-serif;
  color-scheme: light;
}
.bb { overflow-x: clip; }
.bb h1, .bb h2, .bb h3 { font-family: var(--f-round); letter-spacing: -.005em; font-weight: 600; color: var(--ink); }
.bb-main a { color: var(--pink-dk); }
.bb :focus-visible { outline-color: var(--lav-dk); }

.bb-eyebrow { font: 600 .76rem/1.3 var(--f-body); letter-spacing: .16em; color: var(--lav-dk); text-transform: uppercase; }
.bb-center { text-align: center; }
.bb-spark { display: inline-flex; gap: 6px; color: var(--sun); margin-bottom: 10px; }
.bb-spark svg { width: 18px; height: 18px; }
.bb-spark svg:nth-child(2) { width: 12px; height: 12px; margin-top: 8px; color: var(--pink); }

/* hero */
.bb-hero { position: relative; padding-block: 28px 76px; }
.bb-hero::before {
  content: ""; position: absolute; inset: -64px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 80% 35%, rgba(122, 79, 216, .18), transparent 70%),
    radial-gradient(45% 50% at 60% 80%, rgba(229, 66, 138, .14), transparent 70%),
    radial-gradient(40% 40% at 5% 0%, rgba(247, 183, 51, .12), transparent 70%);
}
.bb-top { margin-bottom: 36px; }
.bb-top .crumbs { margin: 0; }
.bb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center; }
.bb-title { display: flex; align-items: center; gap: 18px; margin: 14px 0 16px; }
.bb-title img { width: 80px; height: 80px; border-radius: 22px; box-shadow: var(--shadow); flex: none; }
.bb-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; }
.bb-hero h1 small { display: block; font-size: .42em; font-weight: 500; color: var(--pink-dk); margin-top: 6px; letter-spacing: 0; }
.bb-pitch { font: 500 clamp(1.25rem, 2.3vw, 1.6rem)/1.35 var(--f-round); color: var(--ink); max-width: 34ch; }
.bb-lede { margin-top: 14px; color: var(--muted); font-size: 1.06rem; max-width: 54ch; }

.bb-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.bb-store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px 10px 16px; min-height: 58px;
  border-radius: 16px; background: var(--ink); color: #fff !important; text-decoration: none;
  box-shadow: 0 8px 20px rgba(43, 23, 69, .22); transition: transform .15s ease, box-shadow .15s ease;
}
.bb-store:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(43, 23, 69, .28); }
.bb-store svg { width: 26px; height: 26px; flex: none; }
.bb-store span { display: grid; line-height: 1.1; font-weight: 600; font-size: 1.14rem; }
.bb-store small { font-size: .7rem; font-weight: 500; letter-spacing: .03em; opacity: .8; }

/* Teacher Approved seal */
.bb-ta {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid #CFE9D8; box-shadow: var(--shadow); color: var(--ink);
}
.bb-ta-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #E3F5EA; color: #1E7A47; flex: none; }
.bb-ta-ico svg { width: 22px; height: 22px; }
.bb-ta b { display: block; font: 600 1rem/1.15 var(--f-round); }
.bb-ta small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.2; }

.bb-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.bb-chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .86rem; color: var(--muted); }
.bb-chips li::before { content: "★"; color: var(--sun); margin-right: 6px; font-size: .8em; }

.bb-art { position: relative; display: grid; place-items: center; }
.bb-art::before {
  content: ""; position: absolute; width: min(440px, 96%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #FFE1F0 0%, rgba(238, 231, 255, .8) 48%, transparent 70%);
}
.bb-phone { position: relative; width: min(290px, 74vw); border-radius: 40px; overflow: hidden; border: 8px solid #2B1745; box-shadow: 0 30px 60px rgba(60, 20, 90, .30); background: #2B1745; transform: rotate(2deg); }
.bb-phone img { width: 100%; height: auto; border-radius: 32px; }
.bb-art .bb-ta { position: absolute; left: max(0px, calc(50% - 230px)); bottom: 12%; transform: rotate(-4deg); }
.bb-star { position: absolute; color: var(--sun); }
.bb-star.s1 { top: 6%; right: 10%; width: 34px; }
.bb-star.s2 { top: 30%; left: 6%; width: 22px; color: var(--pink); }
.bb-star.s3 { bottom: 4%; right: 16%; width: 26px; color: var(--lav); }

/* sections */
.bb-section { padding-block: 76px; }
.bb-section.alt { background: linear-gradient(180deg, #FCEFF7, #FFF8FC); border-block: 1px solid var(--line); }
.bb-head { max-width: 700px; margin: 0 auto 42px; }
.bb-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); line-height: 1.15; }
.bb-head p { margin-top: 12px; color: var(--muted); font-size: 1.06rem; }

/* Teacher Approved band */
.bb-band { padding-block: 0 8px; margin-top: -28px; }
.bb-band-box {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center;
  padding: 30px 34px; border-radius: 28px; background: linear-gradient(120deg, #EAF8EF, #F3FBF6 55%, #FFFFFF);
  border: 1px solid #CFE9D8; box-shadow: var(--shadow);
}
.bb-band-seal { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; border: 2px dashed #8CCBA4; color: #1E7A47; }
.bb-band-seal svg { width: 46px; height: 46px; }
.bb-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.bb-band p { margin-top: 8px; color: #3F5A4A; max-width: 78ch; }
.bb-band ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.bb-band li { font-size: .84rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid #CFE9D8; color: #1E5E3A; }

/* steps */
.bb-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.bb-step { position: relative; padding: 26px 22px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); counter-increment: s; }
.bb-step::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--pink), var(--lav)); color: #fff; font: 600 1.15rem/1 var(--f-round);
}
.bb-step h3 { font-size: 1.22rem; margin-bottom: 6px; }
.bb-step p { color: var(--muted); }

.bb-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.bb-feature { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bb-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--pink-soft); color: var(--pink-dk); margin-bottom: 16px; }
.bb-feature:nth-child(3n+2) .bb-ico { background: var(--lav-soft); color: var(--lav-dk); }
.bb-feature:nth-child(3n) .bb-ico { background: #FFF1D4; color: #A86A00; }
.bb-ico svg { width: 26px; height: 26px; }
.bb-feature h3 { font-size: 1.22rem; margin-bottom: 8px; }
.bb-feature p { color: var(--muted); }

.bb-shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.bb-shots figure { margin: 0; text-align: center; }
.bb-shots img { width: 100%; height: auto; border-radius: 24px; border: 5px solid #2B1745; box-shadow: 0 18px 40px rgba(60, 20, 90, .2); background: #2B1745; }
.bb-shots figcaption { margin-top: 14px; font: 500 .98rem/1.35 var(--f-round); color: var(--ink); }
.bb-note { text-align: center; margin-top: 22px; color: var(--muted); font-size: .86rem; }

/* parents */
.bb-safe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.bb-safe li { display: flex; gap: 14px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.bb-safe .bb-check { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #E3F5EA; color: #1E7A47; }
.bb-safe .bb-check svg { width: 18px; height: 18px; }
.bb-safe h3 { font-size: 1.08rem; margin-bottom: 4px; }
.bb-safe p { color: var(--muted); font-size: .96rem; }
.bb-safe-foot { text-align: center; margin-top: 26px; }
.bb-btn-soft { display: inline-block; padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--pink-dk); color: var(--pink-dk) !important; font: 600 .95rem/1 var(--f-round); text-decoration: none; }
.bb-btn-soft:hover { background: var(--pink-soft); }
.bb-safe-foot .bb-btn-soft + .bb-btn-soft { margin-left: 8px; }

.bb-faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.bb-faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.bb-faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative; font: 600 1.08rem/1.35 var(--f-round); color: var(--ink); }
.bb-faq summary::-webkit-details-marker { display: none; }
.bb-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 500 1.5rem/1 var(--f-round); color: var(--pink); }
.bb-faq details[open] summary::after { content: "−"; }
.bb-faq details > p, .bb-answer { padding: 0 22px 20px; color: var(--muted); line-height: 1.7; }
.bb-answer p + p, .bb-answer p + ul { margin-top: 8px; }
.bb-answer ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.bb-answer li { position: relative; padding-left: 22px; }
.bb-answer li::before { content: "★"; position: absolute; left: 0; top: .05em; color: var(--sun); font-size: .85em; }
.bb-answer strong { color: var(--ink); }

.bb-cta { padding-block: 24px 72px; }
.bb-cta-box {
  position: relative; overflow: hidden; border-radius: 32px; padding: 58px 32px; text-align: center; color: #fff;
  background: radial-gradient(80% 110% at 20% 0%, #F2559A 0%, transparent 60%), radial-gradient(80% 110% at 90% 100%, #8B5CF0 0%, transparent 60%), #5B2C9E;
}
.bb-cta-box img { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.bb-cta-box h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); color: #fff; max-width: 22ch; margin-inline: auto; }
.bb-cta-box p { margin-top: 10px; color: #FBE7FF; }
.bb-cta-box a:not(.bb-store) { color: #FFE38A; font-weight: 600; }
.bb-cta-box .bb-stores { justify-content: center; }
.bb-cta-box .bb-store { background: #fff; color: var(--ink) !important; }

.bb-links { padding-block: 0 56px; text-align: center; color: var(--muted); font-size: .95rem; }
.bb-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; list-style: none; padding: 0; margin: 0 0 12px; }
.bb-links li + li::before { content: "·"; margin: 0 10px; color: var(--pink); }
.bb-links a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 600; }
.bb-links p + p { margin-top: 6px; }

/* ------------------------------------------------------------ legal and help pages */
.lg-hero { padding-block: 28px 52px; }
.lg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: center; }
.lg-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); line-height: 1.05; }
.lg-side { padding: 26px 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.lg-side-label { font: 600 .76rem/1.3 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--lav-dk); }
.lg-side-big { margin-top: 8px; font: 600 clamp(1.3rem, 2.4vw, 1.7rem)/1.2 var(--f-round); color: var(--ink); word-break: break-word; }
.lg-side-meta { margin-top: 10px; color: var(--muted); font-size: .94rem; }
.lg-side .bb-btn-soft { margin-top: 16px; }

.lg-glance { padding-block: 8px 0; }
.lg-glance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.lg-glance-grid > li { display: flex; }
.lg-glance-grid .bb-feature { width: 100%; padding: 22px; }
.lg-glance-grid .bb-feature h3 { font-size: 1.08rem; }
.lg-glance-grid .bb-feature p { font-size: .95rem; }
a.bb-feature { color: inherit !important; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
a.bb-feature:hover { transform: translateY(-2px); border-color: rgba(229, 66, 138, .45); }

.lg-body { padding-block: 52px 64px; }
.lg-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.lg-toc { position: sticky; top: 88px; padding: 20px 14px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lg-toc .bb-eyebrow { padding: 0 8px 10px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lg-toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 12px; color: var(--ink) !important; text-decoration: none; font-size: .93rem; line-height: 1.3; }
.lg-toc a span { font: 600 .74rem/1 var(--f-body); color: var(--pink); }
.lg-toc a:hover { background: var(--pink-soft); }

.lg-cards { display: grid; gap: 18px; min-width: 0; }
.lg-card { padding: 28px 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 88px; }
.lg-card h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.25; margin-bottom: 14px; }
.lg-num { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--pink-soft); color: var(--pink-dk); font: 600 1rem/1 var(--f-round); }
.lg-card h3 { margin: 22px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); font: 700 .8rem/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--lav-dk); }
.lg-card h2 + h3 { margin-top: 4px; padding-top: 0; border-top: 0; }
.lg-card p, .lg-card li { color: #4E4260; line-height: 1.7; }
.lg-card p + p { margin-top: 10px; }
.lg-card strong { color: var(--ink); }
.lg-card ul, .lg-card ol.lg-ol { padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.lg-card ul { list-style: none; }
.lg-card ul li { position: relative; padding-left: 22px; }
.lg-card ul li::before { content: "★"; position: absolute; left: 0; top: .05em; color: var(--sun); font-size: .85em; }
.lg-card ol.lg-ol { padding-left: 1.3em; }
.lg-card table { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: .93rem; }
.lg-card th, .lg-card td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #4E4260; }
.lg-card th { font: 600 .78rem/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--lav-dk); background: #FBF6FF; }
.lg-table { overflow-x: auto; }
.lg-callout { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: #FBF6FF; border: 1px solid #E4D8FB; }
.lg-callout p { color: #4E4260; }

.lg-faq-wrap { max-width: 860px; margin-inline: auto; display: grid; gap: 40px; }
.lg-faq-group { scroll-margin-top: 88px; }
.lg-faq-group h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 16px; }
.lg-faq-group h2::before { content: ""; width: 6px; height: 26px; border-radius: 3px; background: linear-gradient(var(--pink), var(--lav)); }
.lg-faq-group .bb-faq { max-width: none; }

@media (max-width: 1100px) {
  .bb-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
  .lg-glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .bb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-features, .bb-safe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lg-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .lg-side { max-width: 440px; }
  .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lg-toc { position: static; padding: 14px; min-width: 0; }
  .lg-toc ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .lg-toc a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
}
@media (max-width: 820px) {
  .bb-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .bb-band-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .bb-band ul { justify-content: center; }
  .bb-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 20px 24px; margin-inline: -20px; max-width: none; }
  .bb-shots li { flex: 0 0 58%; scroll-snap-align: center; }
}
@media (max-width: 560px) {
  .bb-section { padding-block: 58px; }
  .bb-steps, .bb-features, .bb-safe, .lg-glance-grid { grid-template-columns: 1fr; }
  .bb-title img { width: 64px; height: 64px; border-radius: 18px; }
  .bb-store { flex: 1 1 100%; justify-content: center; }
  .bb-cta-box { padding: 44px 20px; }
  .bb-art .bb-ta { left: 0; bottom: 4%; }
  .lg-card { padding: 22px 18px; border-radius: 20px; }
  .bb-safe-foot .bb-btn-soft + .bb-btn-soft { margin: 10px 0 0; }
}
