@font-face { font-family: "Quest Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Quest Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Quest Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Quest Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Quest Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-800.woff2") format("woff2"); }
body { font-family: "Quest Inter", Inter, system-ui, -apple-system, sans-serif; }
/* One Quest web surface. App palettes and exported marks remain page-owned. */
html { scroll-padding-top: 100px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--app-dark); outline-offset: 5px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 500; background: #fff; color: var(--text); padding: 12px 20px; border: 2px solid var(--app-dark); border-radius: 12px; }
.skip-link:focus { top: 12px; }
.site-nav { padding: 1rem max(1.25rem, calc((100vw - 1120px) / 2)); }
.logo { font-size: 1.15rem; }
.btn-nav { border-radius: 12px; }
.eyebrow { font-size: .72rem; letter-spacing: .10em; }
.hero { padding-top: 8rem; padding-bottom: 2.5rem; }
.hero-in { max-width: 1080px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4rem; text-align: left; }
.hero-copy { min-width: 0; }
.hero-mark { width: 132px; height: 132px; margin: 0 0 1.1rem -8px; border: 0; padding: 0; background: none; border-radius: 22px; }
.hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); letter-spacing: -.045em; line-height: 1.1; margin-bottom: 1.25rem; }
.hero-sub { max-width: 475px; font-size: 1.05rem; margin-bottom: 1.3rem; line-height: 1.7; }
.hero-badges { justify-content: flex-start; gap: .5rem; }
.pill { font-size: .72rem; background: #ffffffb8; }
.hero-cta { flex-direction: row; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn-primary { border-radius: 14px; box-shadow: 0 4px 0 var(--text); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--text); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--text); }
.family-heading { margin-top: 3rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.family { margin-top: .8rem; }
.family-app { width: 7rem; }
.family-app .qmark { width: 3.2rem; height: 3.2rem; }
.miniquest { min-width: 0; padding: 1.75rem; background: #fff; border: 2px solid var(--card-line); border-bottom: 6px solid var(--card-line); border-radius: 26px; box-shadow: 0 18px 50px var(--app-subtle); transform: rotate(1.3deg); scroll-margin-top: 100px; }
.miniquest > * { transform: rotate(0deg); }
.sample-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.25rem; }
.sample-tag { color: var(--app-dark); background: var(--app-subtle); border-radius: 8px; padding: .35rem .65rem; font-size: .72rem; font-weight: 800; }
.sample-count { font-size: .7rem; color: var(--muted); font-weight: 600; }
.miniquest h2 { font-size: 1.45rem; line-height: 1.3; letter-spacing: -.025em; }
.sample-prompt { margin-top: .7rem; color: var(--muted); font-size: .88rem; line-height: 1.6; min-height: 2.9rem; }
.sample-controls { margin-top: 1.3rem; }
.sample-choices { display: flex; gap: .6rem; margin: .85rem 0; }
.sample-choices button { flex: 1; min-height: 48px; padding: .55rem .7rem; color: var(--text); background: #fff; border: 2px solid var(--card-line); border-bottom-width: 4px; border-radius: 12px; font-weight: 700; }
.sample-choices button:hover, .sample-choices button[aria-pressed="true"] { border-color: var(--app-dark); color: var(--app-dark); background: var(--app-subtle); }
.sample-choices button[data-correct="true"] { color: var(--app-dark); background: var(--app-subtle); border-color: var(--app-dark); }
.sample-choices button:disabled { opacity: .8; }
.sample-primary { background: var(--app-dark); color: #fff; border: 0; border-bottom: 4px solid var(--text); border-radius: 12px; padding: .7rem 1rem; min-height: 48px; font-size: .84rem; font-weight: 700; }
.sample-primary:hover { filter: brightness(.94); }
.sample-primary:disabled { opacity: .65; }
.sample-secondary { background: none; border: 0; color: var(--app-dark); min-height: 44px; margin-top: .25rem; padding: .4rem .25rem; font-size: .82rem; font-weight: 700; }
.sample-secondary:hover { text-decoration: underline; }
.sample-feedback { font-size: .85rem; line-height: 1.55; margin-top: .8rem; color: var(--app-dark); min-height: 2.65rem; font-weight: 600; }
.sample-feedback[data-kind="retry"] { color: var(--muted); }
.sample-foot { border-top: 1px solid var(--card-line); padding-top: .8rem; margin-top: .55rem; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.letter-tiles { display: flex; justify-content: center; gap: .5rem; margin: 1.3rem 0; }
.letter-tiles span { display: grid; place-items: center; background: var(--app-subtle); border: 2px solid var(--app-border); border-bottom: 5px solid var(--app-border); width: 50px; height: 60px; border-radius: 11px; color: var(--app-dark); font-size: 1.5rem; font-weight: 800; }
.letter-tiles span:nth-child(even) { transform: translateY(-4px); }
.word-entry { display: flex; gap: .6rem; margin-top: .35rem; }
.word-entry input { width: 100%; min-width: 0; padding: .75rem; border: 2px solid var(--card-line); border-radius: 12px; font-size: 1rem; color: var(--text); background: #fff; text-transform: uppercase; }
.word-entry input::placeholder { text-transform: none; font-size: .85rem; }
[data-word-form] label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.fraction-art { display: flex; justify-content: center; gap: .45rem; margin: 1.6rem 0; }
.fraction-art span { width: 52px; height: 72px; border: 2px solid var(--app-border); border-bottom-width: 5px; border-radius: 11px; background: var(--app-subtle); }
.fraction-art .filled { background: var(--app); border-color: var(--app-dark); }
[data-sample="mathquest"] .sample-choices button { font-size: 1.5rem; }
.sound-art { height: 88px; display: flex; align-items: center; justify-content: center; gap: .65rem; margin: 1.1rem 0; }
.sound-art i { display: block; width: 12px; border-radius: 12px; background: var(--app-light); height: 28px; }
.sound-art i:nth-child(2n) { height: 48px; background: var(--app); }
.sound-art i:nth-child(3n) { height: 72px; }
.sound-art i:nth-child(5) { height: 88px; background: var(--app-dark); }
.sound-art.playing i { animation: note-wave .65s ease-in-out 2 alternate; }
@keyframes note-wave { to { transform: scaleY(.55); } }
.visual-alternative { margin-top: .65rem; font-size: .8rem; color: var(--muted); }
.visual-alternative summary { cursor: pointer; padding: .5rem 0; min-height: 44px; }
.visual-alternative p { padding-bottom: .5rem; }
.focus-art { display: flex; align-items: center; gap: 1rem; margin: 1.1rem 0; color: var(--app-dark); font-size: .63rem; font-weight: 800; letter-spacing: .1em; }
.focus-art > span:first-child { font-size: 2rem; letter-spacing: -.05em; }
.focus-bars { display: flex; align-items: flex-end; height: 54px; gap: .5rem; flex: 1; }
.focus-bars i { background: var(--app-light); border-radius: 5px; height: 23px; flex: 1; }
.focus-bars i:nth-child(2) { height: 38px; background: var(--app); }
.focus-bars i:nth-child(3) { height: 54px; background: var(--app-dark); }
.focus-title { font-size: 1rem; font-weight: 800; margin-top: 1rem; }
.focus-copy { color: var(--muted); font-size: .82rem; margin: .4rem 0 1rem; min-height: 2.8rem; }
.section-heading { max-width: 610px; margin-bottom: 2rem; }
.section-heading > p:last-child { color: var(--muted); margin-top: .8rem; font-size: .95rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { border: 1px solid var(--card-line); border-radius: 20px; background: var(--card-bg); padding: 1.8rem; }
.feature-number { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; color: var(--app-dark); border: 1px solid var(--app-border); border-bottom: 3px solid var(--app-border); border-radius: 12px; font-size: .8rem; font-weight: 800; margin-bottom: 1.5rem; }
.feature-card h3 { margin-bottom: .7rem; }
.feature-card p { color: var(--muted); font-size: .86rem; line-height: 1.7; }
.quest-promise { display: flex; gap: 1.25rem; align-items: center; margin-top: 2rem; padding: 1.5rem 2rem; border: 1px solid var(--card-line); border-radius: 20px; }
.promise-mark { color: var(--app-dark); font-size: 2rem; }
.quest-promise p { color: var(--muted); font-size: .86rem; line-height: 1.7; margin-top: .4rem; }
#pricing h2 { margin-bottom: .8rem; }
.plan-intro { color: var(--muted); font-size: .9rem; max-width: 650px; margin-bottom: 2.5rem; }
.tier { padding: 1.7rem; }
.price-num, .tier.premium .price-num, .tier.group .price-num { color: var(--app-dark); background: none; -webkit-text-fill-color: currentColor; }
.tier-badge.quest-pass, .tier-badge.group-badge { color: #fff; background: var(--app-dark); animation: none; }
.btn-primary.btn-gradient { background: var(--app-dark); animation: none; }
#download { background: var(--app-dark); }
#download .eyebrow { color: #fff; }
#download .dl-note { font-size: .8rem; opacity: .9; margin-bottom: 0; }
footer, .footer-apps a, .footer-links a { color: #fff; }
.website-privacy { max-width: 650px; margin: 1rem auto; text-align: left; font-size: .75rem; }
.website-privacy summary { text-align: center; padding: .5rem; cursor: pointer; }
.website-privacy p { line-height: 1.8; margin-top: .5rem; }
@media (max-width: 900px) {
  .hero-grid { gap: 2rem; }
  .hero h1 { font-size: 2.7rem; }
  .miniquest { padding: 1.35rem; }
  .feature-card { padding: 1.35rem; }
}
@media (max-width: 740px) {
  .hero { padding-top: 6.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { text-align: center; }
  .hero-mark { margin: 0 auto .8rem; width: 106px; height: 106px; }
  .hero h1 { font-size: clamp(2rem, 7.5vw, 2.8rem); }
  .hero-sub { margin-left: auto; margin-right: auto; font-size: .95rem; }
  .hero-badges, .hero-cta { justify-content: center; }
  .miniquest { max-width: 440px; width: 100%; margin: .5rem auto; transform: none; }
  .family-heading { margin-top: 2rem; }
  .family-app { width: 4.6rem; font-size: .7rem; }
  .family-app .qmark { width: 2.5rem; height: 2.5rem; }
  .family { gap: .3rem; }
  section { padding: 3.5rem 1.25rem; }
  .container { padding: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 1.5rem; }
  .feature-number { margin-bottom: 1rem; }
  .quest-promise { padding: 1.25rem; align-items: flex-start; }
}
@media (max-width: 380px) {
  .soon-chip { display: none; }
  .family-app { width: 4.1rem; }
  .miniquest { padding: 1.1rem; }
  .sample-top { align-items: flex-start; }
  .letter-tiles { gap: .3rem; }
  .letter-tiles span { width: 44px; height: 54px; }
  .sample-choices { gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Opaque foregrounds keep small text legible on each app's dark tone. */
.tier.group { opacity: 1; }
#download p { opacity: 1; }
footer > p { opacity: 1 !important; }
#download .dl-note { opacity: 1; }

.hero-cta .link-subtle { border: 2px solid var(--app-border); border-bottom-width: 4px; padding: .7rem 1.15rem; border-radius: 14px; font-size: .87rem; font-weight: 700; color: var(--app-dark); background: #ffffffc9; }
.hero-cta .link-subtle:hover { border-color: var(--app-dark); }
.plan-status { padding: .8rem 1rem; text-align: center; border: 1px solid var(--card-line); background: var(--card-bg); color: var(--muted); border-radius: 12px; font-weight: 600; font-size: .8rem; }
