@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; }
/* Distinct, consistent plan borders across the four app palettes. */
.tier.premium { border-color: #8161b8; background-image: none; }
.tier.group { border-color: #c59535; background-image: none; }
.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: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 52%, var(--bg-tint) 100%); padding: 2.5rem 1.25rem 1.75rem; }
#download h2 { color: var(--text); font-size: 1.9rem; margin-bottom: .45rem; }
#download p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }
#download .eyebrow { color: var(--app-dark); font-size: .7rem; margin-bottom: .65rem; }
footer { background: var(--bg-tint); padding: 1.25rem 1.5rem; color: var(--muted); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--app-dark); }
.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; }

/* QD's review draft: retained background renderer, static branded phone deck. */
.site-nav { gap: 1.4rem; }
.site-nav .logo { margin-right: auto; }
.header-download { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1.1rem; white-space: nowrap; }
.explore-menu { position: relative; }
.explore-toggle { display: flex; align-items: center; gap: .45rem; min-height: 44px; border: 0; padding: .4rem 0; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 600; }
.explore-toggle:hover, .explore-toggle[aria-expanded="true"] { color: var(--app-dark); }
.explore-toggle svg { transition: transform .15s; }
.explore-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.app-switcher { position: absolute; top: calc(100% + .5rem); left: -1rem; padding: .65rem; border: 1px solid var(--card-line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); }
.app-switcher nav { display: flex; gap: .4rem; }
.nav-links .explore-app { display: grid; place-items: center; padding: .4rem; width: 60px; height: 60px; border: 1px solid transparent; border-radius: 12px; }
.explore-app[aria-current="page"], .explore-app:hover { background: var(--app-subtle); border-color: var(--app-border); }
.explore-app .qmark { width: 44px; height: 44px; }
.app-preview { min-width: 0; }
.phone-deck { position: relative; height: 462px; width: 100%; isolation: isolate; }
.phone-frame { position: absolute; left: 50%; top: 12px; width: 190px; padding: 6px; border: 1px solid var(--app-border); border-radius: 28px; background: #fff; box-shadow: 0 16px 36px var(--app-subtle), 0 3px 10px #00000009; }
.phone-frame:nth-child(1) { z-index: 4; transform: translateX(-50%) translateY(14px); }
.phone-frame:nth-child(2) { z-index: 3; transform: translateX(calc(-50% - 84px)) translateY(36px) rotate(-10deg); }
.phone-frame:nth-child(3) { z-index: 2; transform: translateX(calc(-50% + 84px)) translateY(38px) rotate(10deg); }
.phone-frame:nth-child(4) { z-index: 1; transform: translateX(calc(-50% + 122px)) translateY(54px) rotate(16deg); }
.phone-screen { position: relative; aspect-ratio: 9 / 19.5; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--card-line); border-radius: 22px; background: var(--card-bg); }
.phone-app-mark { width: 110px; height: 110px; }
.phone-camera { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--app-border); }
.phone-home-bar { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 44px; height: 3px; border-radius: 4px; background: var(--app-border); }
.preview-caption { margin: 0; color: var(--muted); font-size: .75rem; text-align: center; }
@media (max-width: 740px) {
  .site-nav { gap: .65rem; padding: .65rem 1rem; }
  .site-nav .logo { font-size: 1rem; }
  .soon-chip { display: none; }
  .header-download { order: 1; padding: .45rem .8rem; font-size: .8rem; }
  .nav-toggle { order: 2; width: 44px; height: 44px; }
  .explore-toggle { width: 100%; padding: .65rem 0; font-size: 1rem; }
  .app-switcher { position: static; padding: .5rem; margin: .3rem 0 .8rem; box-shadow: none; }
  .app-switcher nav { justify-content: space-between; gap: .25rem; }
  .nav-links .explore-app { width: 54px; height: 54px; padding: .25rem; }
  .hero-grid { gap: 1.25rem; }
  .hero-sub { max-width: 330px; line-height: 1.55; font-size: .9rem; }
  .hero-badges { display: none; }
  .phone-deck { height: 346px; max-width: 360px; margin: 0 auto; }
  .phone-frame { top: 8px; width: clamp(116px, 34vw, 146px); padding: 5px; border-radius: 22px; }
  .phone-screen { border-radius: 17px; }
  .phone-app-mark { width: 80px; height: 80px; }
  .phone-frame:nth-child(2) { transform: translateX(calc(-50% - 52px)) translateY(29px) rotate(-10deg); }
  .phone-frame:nth-child(3) { transform: translateX(calc(-50% + 52px)) translateY(29px) rotate(10deg); }
  .phone-frame:nth-child(4) { display: none; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .phone-frame { width: 176px; }
  .phone-frame:nth-child(2) { transform: translateX(calc(-50% - 60px)) translateY(36px) rotate(-10deg); }
  .phone-frame:nth-child(3) { transform: translateX(calc(-50% + 60px)) translateY(38px) rotate(10deg); }
  .phone-frame:nth-child(4) { display: none; }
}
@media (min-width: 741px) and (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-copy { text-align: center; }
  .hero-mark, .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .phone-deck { max-width: 440px; margin: 0 auto; }
}

/* Mobile compares plans through three equal choices, without a card stack. */
.plan-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0 0 14px; padding: 5px; border: 1px solid var(--app-border); border-radius: 15px; background: #ffffffb8; }
.plan-tabs button { min-height: 48px; border: 0; padding: .6rem .25rem; border-radius: 10px; background: transparent; color: var(--muted); font-size: .88rem; font-weight: 700; }
.plan-tabs button[aria-selected="true"] { background: var(--app-dark); color: #fff; box-shadow: var(--shadow-sm); }
.tier > .plan-status { border: 0; padding: 0; background: none; text-align: left; font-weight: 500; margin-bottom: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.launch-signup { max-width: 520px; margin: 1rem auto 0; text-align: left; }
.launch-signup fieldset { border: 0; min-inline-size: 0; margin: 0; padding: 0; }
.launch-signup label { display: block; font-size: .85rem; margin-bottom: .45rem; color: var(--muted); font-weight: 600; }
.launch-signup-row { display: flex; gap: .6rem; }
.launch-signup input[type=email] { min-width: 0; flex: 1; min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--muted); border-radius: 12px; background: #fff; color: var(--text); font-size: 1rem; }
.launch-signup input[aria-invalid=true] { border-color: #b7c2c9; }
.launch-signup button { min-height: 48px; border: 2px solid var(--app-dark); border-radius: 12px; padding: .7rem 1rem; font-size: .9rem; font-weight: 700; white-space: nowrap; background: var(--app-dark); color: #fff; }
.launch-signup button:disabled { opacity: .75; }
#download .launch-signup-status { min-height: 1.5em; font-size: .8rem; line-height: 1.5; margin-top: .4rem; color: var(--muted); }
#download :focus-visible { outline-color: var(--app-dark); }
.launch-signup input:focus-visible { outline-color: var(--text) !important; outline-offset: -4px; }
@media (max-width: 740px) {
  .plan-tabs:not([hidden]) { display: grid; }
  .pricing-grid { grid-template-columns: 1fr; }
  .tier { min-height: 350px; padding: 1.5rem; border: 2px solid var(--app-border); background: #fff; }
  .tier-badge { display: none; }
  .plan-intro { margin-bottom: 1.35rem; }
  .pass-note { margin-top: 1rem; }
  .launch-signup { margin-top: 1.25rem; }
  .launch-signup-row { gap: .4rem; }
  .launch-signup button { padding-left: .7rem; padding-right: .7rem; }
}
