/* playapprentio.com, built from website/apprentio-landing-mockup.html.
   Fonts (all served from this site): Fredoka for headings, Atkinson Hyperlegible for body
   text and numbers, Pixelify Sans for the Apprentio logo only.
   No inline styles anywhere: the Content-Security-Policy only allows this stylesheet. */

@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka.4937249e65.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-regular.95bfbf511c.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-bold.d1188482ff.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("/assets/fonts/pixelify.581e0d8838.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --night: #16133a;
  --deep: #0f0d29;
  --panel: #1c1945;
  --panel-2: #221e52;
  --glow: #2c2766;
  --gold: #f6c453;
  --gold-hover: #ffe08a;
  --gold-shadow: #c9962b;
  --cream: #f6eedb;
  --ink: #2a2140;
  --ink-soft: #4a4160;
  --ink-mute: #6b6185;
  --moss: #6e9a45;
  --lavender: #d9d2f5;
  --text: #f4efff;
  --soft: #b9b0de;
  --mute: #a9a0d0;
  --amber: #8f5a17;      /* eyebrows on cream; darker than the mockup's #B4762A for contrast */
  --heading: "Fredoka", "Atkinson Hyperlegible", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --logo: "Pixelify Sans", var(--heading);
}

* { box-sizing: border-box; }
/* Anything marked hidden stays hidden, even if a class gives it display: flex. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--heading); margin: 0; line-height: 1.1; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 10; background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700; border-radius: 999px; }
.skip:focus { left: 0.5rem; }

/* Stacked fractions, as kids see them in school (same as in the game). */
.frac { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; vertical-align: middle; margin: 0 2px; font-weight: 700; }
.frac > span:first-child { border-bottom: 2px solid currentColor; padding: 0 3px 2px; }
.frac > span:last-child { padding-top: 2px; }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0.7rem 1.25rem; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.pill:hover { background: var(--gold-hover); color: var(--ink); }
.pill-big { min-height: 3.6rem; padding: 1rem 1.9rem; font-size: 1.125rem; box-shadow: 0 6px 0 var(--gold-shadow); transition: transform 0.1s, box-shadow 0.1s; }
.pill-big:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-shadow); }
.pill-block { width: 100%; margin-top: 0.4rem; }
.ghost { display: inline-flex; align-items: center; min-height: 3.6rem; padding: 1rem 1.5rem; border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 999px; color: #fff; font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }

.eyebrow { font-weight: 700; font-size: 0.95rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.eyebrow.amber { color: var(--amber); }
.eyebrow.muted { color: #a59cd3; }
.sub { font-size: 1.125rem; line-height: 1.6; color: var(--lavender); }

/* Header */
.site-header { background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.logo { font-family: var(--logo); font-weight: 600; font-size: 1.6rem; color: var(--gold); text-decoration: none; letter-spacing: 0.5px; }
.logo-sm { font-size: 1.25rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-link { color: var(--lavender); text-decoration: none; display: none; padding: 0.6rem 0; }
.nav-link:hover { color: #fff; }

/* Hero: the message, then one large, sharp game screenshot */
.hero { background: radial-gradient(circle at 50% 0%, var(--glow) 0%, var(--night) 60%); padding: 3rem 0 4rem; }
.hero-copy { max-width: 46rem; margin: 0 auto; text-align: center; }
.badge { display: inline-block; background: rgba(246, 196, 83, 0.12); border: 1px solid rgba(246, 196, 83, 0.35); color: var(--gold); padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.95rem; font-weight: 700; }
h1 { font-weight: 700; font-size: clamp(2.75rem, 6.5vw, 4.75rem); line-height: 1.02; margin: 1.4rem 0 1.25rem; color: #fff; text-wrap: balance; }
h1 .hl { color: var(--gold); }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--lavender); margin: 0 auto 2rem; max-width: 34rem; }
.lede strong { color: #fff; }
.actions { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.promise { margin-top: 1.6rem; font-size: 0.95rem; color: var(--mute); }
/* Not rotated or overlapped, so every pixel of the game stays crisp and readable. */
.hero-figure { margin: 3rem auto 0; max-width: 68rem; }
.hero-shot { width: 100%; border-radius: 18px; border: 4px solid var(--gold); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }

/* Wobbin, drawn in CSS to match the game (on the sign-up card). */
.blob { position: relative; background: #a9c8ff; border: 5px solid #4e6fd6; border-radius: 50% 50% 44% 44% / 62% 62% 38% 38%; }
.blob > span { position: absolute; display: block; }
.blob .eye { background: #fff; border-radius: 50%; }
.blob .pupil { position: absolute; background: #1e1a3a; border-radius: 50%; }
.blob .mouth.smile { border-bottom: 4px solid #1e1a3a; border-radius: 0 0 50% 50%; }
/* Three benefits */
.cream { background: var(--cream); color: var(--ink); }
.benefits { background: var(--cream); color: var(--ink); padding: 4.5rem 0; }
.head { margin-bottom: 2.5rem; }
.benefits h2 { font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 0.6rem; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.benefit { background: #fff; border-radius: 24px; padding: 1.75rem 1.75rem 1.9rem; box-shadow: 0 2px 0 #e4d6b4, 0 18px 40px rgba(90, 60, 20, 0.08); }
.benefit-icon { width: 3.25rem; height: 3.25rem; margin-bottom: 0.9rem; }
.benefit h3 { font-weight: 600; font-size: 1.5rem; margin-bottom: 0.6rem; }
.benefit p { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }

/* Founder story */
.story { background: var(--night); padding: 5rem 0; }
.letter { position: relative; background: var(--cream); color: var(--ink); border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.quote { position: absolute; top: -22px; left: 44px; width: 52px; height: 52px; }
.letter h2 { font-weight: 700; font-size: 2rem; margin: 0.5rem 0 1.25rem; }
.letter p { font-size: 1.1875rem; line-height: 1.7; margin-bottom: 1rem; }
.letter .pull { font-family: var(--heading); font-weight: 600; font-size: 1.5rem; line-height: 1.4; margin: 1.5rem 0; color: #7a4e14; }
.signature { font-weight: 700; font-size: 1.0625rem; margin: 0; }

/* Sign-up */
.join { background: radial-gradient(circle at 50% 0%, var(--glow) 0%, var(--night) 60%); padding: 7rem 0 6.5rem; }
.join-wrap { max-width: 640px; }
.join-card { position: relative; background: #fff; color: var(--ink); border-radius: 28px; padding: 4rem clamp(1.5rem, 5vw, 3rem) 2.5rem; text-align: center; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.blob-join { position: absolute; top: -62px; left: 50%; margin-left: -60px; width: 120px; height: 94px; }
.blob-join .eye { top: 32px; width: 20px; height: 22px; }
.blob-join .eye-l { left: 28px; } .blob-join .eye-r { right: 28px; }
.blob-join .pupil { left: 5px; top: 6px; width: 10px; height: 11px; }
.blob-join .mouth { top: 60px; left: 44px; width: 22px; height: 9px; }
.join h2 { font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.join-card .sub { color: var(--ink-soft); margin-bottom: 1.75rem; }
.signup { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.signup label { font-weight: 700; font-size: 1rem; }
.signup input[type="email"] { font: inherit; font-size: 1.125rem; min-height: 3.4rem; padding: 0.9rem 1.1rem; border: 2px solid #d8cfef; border-radius: 14px; color: var(--ink); background: #fff; }
.signup input[type="email"]::placeholder { color: #6b6185; }
.signup input[type="email"]:focus { border-color: #8f7fd6; }
.check { display: flex; gap: 0.75rem; align-items: center; min-height: 2.75rem; }
.check input { width: 22px; height: 22px; accent-color: var(--moss); flex: none; margin: 0; }
.check label { font-weight: 400; cursor: pointer; padding: 0.6rem 0; flex: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: #8a1f05; background: #fde7df; border-left: 4px solid #d8572a; padding: 0.6rem 0.8rem; border-radius: 8px; }
.fine { margin-top: 1.25rem; font-size: 0.875rem; color: var(--ink-mute); }
.join-card a { color: #7a4e14; }
.thanks { text-align: center; padding-top: 1rem; } /* clear of Wobbin above the card */
.thanks h3 { font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.15; color: #4d7330; margin-bottom: 0.9rem; }
.thanks:focus { outline: none; }
.thanks p { color: var(--ink-soft); }
/* Optional pricing question (thank-you screen) */
.price { text-align: left; margin-top: 1.75rem; }
.price fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.price legend { font-weight: 700; font-size: 1.0625rem; line-height: 1.45; color: var(--ink); margin-bottom: 0.8rem; padding: 0; }
.optional { font-weight: 400; color: var(--ink-mute); }
.choice { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.6rem 0.9rem; border: 2px solid #d8cfef; border-radius: 14px; cursor: pointer; font-weight: 400; }
.choice:hover { border-color: #8f7fd6; }
.choice:has(input:checked) { border-color: var(--moss); background: #eef5e6; }
.choice input { width: 20px; height: 20px; accent-color: var(--moss); margin: 0; flex: none; }
.price-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.25rem; }
.skip-link { background: none; border: 0; padding: 0.75rem 0.5rem; min-height: 2.75rem; font: 700 1.0625rem var(--body); color: #7a4e14; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.price .error { margin-top: 1rem; }
.price-done { margin-top: 1.25rem; font-weight: 700; color: #4d7330; }
.price-done:focus { outline: none; }
.page .price { max-width: 34rem; }
.page .fine { margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--deep); padding: 2.25rem 0; font-size: 0.95rem; color: var(--mute); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-row p { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.footer-links { gap: 1.4rem; }

/* Simple pages: privacy, thanks, not found */
.page { background: var(--cream); color: var(--ink); padding: 3.5rem 0 4.5rem; }
.page h1 { font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.25rem); color: var(--ink); margin: 0 0 1.5rem; }
.page h2 { font-weight: 600; font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
.page p, .page li { font-size: 1.125rem; line-height: 1.65; color: var(--ink-soft); }
.page p { margin-bottom: 1rem; }
.page ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.page li { margin-bottom: 0.4rem; }
.page a:not(.pill) { color: #7a4e14; }
.page strong { color: var(--ink); }
.updated { font-size: 0.95rem; color: var(--ink-mute); }

/* Wider screens */
@media (min-width: 48rem) {
  .wrap { padding: 0 2rem; }
  .nav-link { display: inline; }
  .benefit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding: 4.5rem 0 5.5rem; }
  .benefits, .story { padding: 6rem 0; }
  .join { padding: 7.5rem 0 6.5rem; }
}

/* Phones */
@media (max-width: 30rem) {
  .hero-figure { margin-top: 2.25rem; }
  .hero-shot { border-width: 3px; border-radius: 12px; }
  .actions .pill-big, .actions .ghost { width: 100%; justify-content: center; }
  .footer-links { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill-big { transition: none; }
}
