/* AdaptiveTech OT — shared styles for the marketing/info site.
   Single stylesheet, no build step, no dependencies.

   Design language: bright, warm, readable. Deliberately does NOT mirror the
   games app's dark neon palette — near-white base with vivid, saturated
   accents (blue/sage/coral/lavender…) used as section tints for rhythm, so
   the page feels energetic rather than muted or clinical.

   Fonts are SELF-HOSTED variable fonts (assets/fonts/*.woff2, latin subset).
   Never load fonts — or anything else — from a CDN: the privacy page
   promises no third-party requests, and that has to stay literally true.

   Accessibility is non-negotiable (see CLAUDE.md): visible focus, ≥52px tap
   targets on controls, real contrast, reduced-motion respected. Every
   `--*-deep` token below is a WCAG-checked (≥4.5:1 on white AND on its own
   tint) text-safe variant of the matching vivid accent — use the vivid one
   for backgrounds/decoration and the deep one whenever it colors text. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/nunito-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/quicksand-latin.woff2) format('woff2');
}

:root {
  --bg: #FFFFFF;
  --bg-alt: #F0F3FA;
  --surface: #FFFFFF;
  --ink: #241F38;
  --ink-body: #453F60;
  --ink-faint: #6D658A;      /* 5.4:1 on white — do not lighten */
  --border: rgba(36, 31, 56, 0.11);
  --border-soft: rgba(36, 31, 56, 0.07);

  /* Vivid accents — backgrounds, tints, gradients, decoration. */
  --blue: #3B7DDE;      --blue-tint: #DCEAFC;
  --sage: #24A283;      --sage-tint: #D3F3E9;
  --coral: #F0672B;     --coral-tint: #FEE2CE;
  --gold: #E8A916;      --gold-tint: #FDECBE;
  --lavender: #7A4FE0;  --lavender-tint: #E7DCFC;
  --pink: #E0447F;      --pink-tint: #FCDCE9;
  --indigo: #545AE0;    --indigo-tint: #E2E2FC;
  --green: #33A852;     --green-tint: #DBF3E0;
  --cyan: #0E93B3;      --cyan-tint: #D3F0F5;

  /* Text-safe deep variants — ≥4.5:1 on white and on the matching tint. */
  --blue-deep: #2266C9;
  --sage-deep: #1B7861;
  --coral-deep: #B33F0D;
  --gold-deep: #8B650D;
  --lavender-deep: #7042DE;
  --pink-deep: #C2205D;
  --indigo-deep: #4B52DE;
  --green-deep: #25793B;
  --cyan-deep: #0B748D;

  /* Gradient text/button stops are pre-darkened: every stop holds ≥3.5:1 on
     white (large-text AA with margin), since these color text, not decor. */
  --grad-hero: linear-gradient(90deg, #B08011, #EE5613 45%, var(--pink) 70%, var(--lavender));
  --grad-cta: linear-gradient(90deg, var(--blue-deep), var(--lavender));

  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1040px;
  --shadow: 0 4px 24px -8px rgba(36, 31, 56, 0.12);
  --shadow-lg: 0 16px 44px -12px rgba(36, 31, 56, 0.20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Anchor jumps must clear the sticky header. */
[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

a { color: inherit; }
p { max-width: 62ch; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Skip link: first tab stop, hidden until focused ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- Focus: always visible, never removed. Adapted-cursor and
              keyboard users both depend on this. ---------- */

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header / nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand .mark {
  font-size: 1.3rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-tint);
  border-radius: 10px;
}
.brand .name-full .ot { color: var(--blue-deep); }

nav.primary {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Generous tap targets (≥52px) — this site is browsed by some of the same
   adapted-cursor users the games are built for. */
nav.primary a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  text-decoration: none;
  color: var(--ink-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 6px 16px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
nav.primary a:hover { background: var(--bg-alt); color: var(--ink); }
nav.primary a.current { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

nav.primary a.cta {
  background: var(--grad-cta);
  color: #fff;
  margin-left: 6px;
}
nav.primary a.cta:hover { filter: brightness(1.08); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  padding: 84px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.65;
}
.hero::before {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--blue-tint), var(--lavender-tint));
  top: -160px;
  left: -140px;
}
.hero::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--coral-tint), var(--gold-tint));
  top: -120px;
  right: -100px;
}
.hero > .wrap { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce), (max-width: 640px) {
  .hero::before, .hero::after { display: none; }
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-deep);
  background: var(--blue-tint);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--ink-body);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(90, 90, 224, 0.45);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--bg-alt); }

/* ---------- Sections ---------- */

section { padding: 68px 0; }
section.tight { padding: 44px 0; }
section.alt { background: var(--bg-alt); }

/* Themed section tints — used in rotation instead of one repeated flat
   color, so the page reads as a sequence of rooms rather than a slab. */
section.tint-blue { background: var(--blue-tint); }
section.tint-sage { background: var(--sage-tint); }
section.tint-lavender { background: var(--lavender-tint); }
section.tint-coral { background: var(--coral-tint); }
section.tint-gold { background: var(--gold-tint); }
section.tint-cyan { background: var(--cyan-tint); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}
.section-head .kicker {
  color: var(--sage-deep);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin: 0 0 16px;
}
.section-head p {
  color: var(--ink-body);
  font-size: 1.08rem;
  margin: 0 auto;
}

/* ---------- Text + screenshot splits ----------
   Used to pepper real gameplay shots through the page instead of one
   gallery block. Text left / image right by default; .rev flips it. */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 40px;
}
.split .section-head {
  text-align: left;
  margin: 0;
  max-width: none;
}
.split.rev > :first-child { order: 2; }
.split .shot-note {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 10px 0 0;
  max-width: none;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split.rev > :first-child { order: 0; }
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card .icon {
  font-size: 1.7rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-alt);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.card p {
  margin: 0;
  color: var(--ink-body);
  font-size: 1rem;
}

.card a.more {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 10px;
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
}
.card a.more:hover { text-decoration: underline; }

/* Product cards (homepage "What we make"). */
.card-product { border-top: 4px solid var(--indigo); }
.card-product.art { border-top-color: var(--sage); }

/* Category card — soft pastel tint per category instead of a neon gradient
   border, so it reads as calm/informative rather than an in-game tile.
   Set BOTH custom props inline: --tint (vivid tint background) and
   --accent (the matching -deep token, because it colors text). */
.cat-card {
  background: var(--tint, var(--bg-alt));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.cat-card .emoji {
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.cat-card h3 { margin: 16px 0 6px; font-size: 1.22rem; color: var(--ink); }
.cat-card .kids-desc { color: var(--ink-body); font-size: 0.98rem; margin: 0 0 16px; }
.cat-card .skill-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent, var(--ink));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  margin: 0 6px 6px 0;
}

/* ---------- Quote / credibility ---------- */

.ot-note {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.ot-note blockquote {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}
.ot-note cite {
  font-style: normal;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

/* ---------- Quick nav (in-page category jump links) ---------- */

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 8px;
}
.quick-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-body);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.quick-nav a:hover { background: var(--bg-alt); color: var(--ink); }

/* ---------- Framework callout (differentiation / credibility) ---------- */

.framework-box {
  background: var(--blue-tint);
  border: 1px solid rgba(78, 134, 198, 0.22);
  border-radius: var(--radius);
  padding: 30px 34px;
}
.framework-box h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--ink);
}
.framework-box p { color: var(--ink-body); margin: 0 0 10px; max-width: 74ch; }
.framework-box .cite-line { font-size: 0.88rem; color: var(--ink-faint); margin: 0; }

/* ---------- Callout (switch-access note, privacy notes) ---------- */

.callout {
  background: var(--gold-tint);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  color: var(--ink-body);
}
.callout strong { color: var(--ink); }

/* ---------- Access-method pill list ---------- */

.methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.methods li {
  background: var(--indigo-tint);
  color: var(--indigo-deep);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- Differentiator cards (why us) ---------- */

.diff-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.diff-card .not {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-decoration: line-through;
  margin-bottom: 6px;
}
.diff-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.diff-card p { margin: 0; color: var(--ink-body); font-size: 0.98rem; }

/* ---------- Game example chips ---------- */

.game-examples {
  margin: 14px 0 18px;
  font-size: 0.92rem;
  color: var(--ink-body);
}
.game-examples .label {
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 6px;
}
.game-examples .titles { font-weight: 600; color: var(--ink); }

/* ---------- Per-audience benefit rows within a category card ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .audience-grid { grid-template-columns: 1fr; }
}
.audience-block .who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent, var(--ink));
  margin-bottom: 6px;
}
.audience-block p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-body);
  max-width: none;
}

/* ---------- Research sources ---------- */

.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.source-list li {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.source-list .cite {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}
.source-list .cite:hover { color: var(--blue-deep); }
.source-list .takeaway {
  margin: 0;
  color: var(--ink-body);
  font-size: 0.97rem;
}

/* ---------- Media boxes (real gameplay screenshots) ----------
   Dashed = reserved space, real screenshots only — never fake imagery.
   .filled = an actual captured screenshot fills the box. */

.media-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-faint);
  text-align: center;
  overflow: hidden;
}
.media-box .glyph { font-size: 1.5rem; }
.media-box .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 22ch;
  padding: 0 10px;
}

.media-box.filled {
  border-style: solid;
  border-color: var(--border-soft);
  padding: 0;
  position: relative;
}
.media-box.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-box.filled .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
}
.media-box.ratio-hero { aspect-ratio: 16 / 9; }
.media-box.ratio-video { aspect-ratio: 16 / 9; }
.media-box.ratio-square { aspect-ratio: 1 / 1; }
.media-box.small { border-radius: var(--radius-sm); }
.media-box.small .glyph { font-size: 1.1rem; }

.media-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .media-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Small thumbnail slot sitting inside a category card, above the title. */
.cat-thumb {
  margin-bottom: 16px;
}
.cat-thumb .media-box { aspect-ratio: 16 / 10; }

/* ---------- Prose pages (about, contact, privacy, 404) ---------- */

.prose {
  max-width: 720px;
  padding: 56px 0;
}
.prose h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.prose h2 { margin: 38px 0 10px; font-size: 1.35rem; }
.prose .lead { font-size: 1.15rem; color: var(--ink-body); }
.prose ul, .prose ol { margin: 14px 0; padding-left: 24px; color: var(--ink-body); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue-deep); font-weight: 600; }
.prose .callout { margin: 26px 0; }

/* Buttons keep their own text colors even on prose pages, where the
   .prose link rule above would otherwise paint them blue on the purple
   gradient and make the label unreadable. */
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: #fff; }
.prose a.btn-secondary { color: var(--ink); }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 44px 0 34px;
  margin-top: 20px;
}
.footer-cols {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 28px;
}
.footer-cols h4 {
  font-family: 'Quicksand', sans-serif;
  color: var(--ink);
  font-size: 0.87rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.footer-cols p { margin: 0; font-size: 0.95rem; color: var(--ink-faint); }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 2px; }
.footer-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.footer-cols a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 0.9rem;
}
.footer-bottom a { color: var(--ink-faint); }
.footer-bottom a:hover { color: var(--ink); }

/* Email links kept obviously visible: full-contrast color plus an
   underline, wherever they sit. */
a[href^="mailto:"], .footer-bottom a.email {
  color: var(--blue-deep);
  text-decoration: underline;
  font-weight: 700;
}
a[href^="mailto:"]:hover, .footer-bottom a.email:hover { color: var(--ink); }

/* ---------- Utility ---------- */

.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 44px; }

/* ---------- Accessibility rule 1 from the games project: respect
              reduced motion. ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover { transform: none; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 46px; }
  section { padding: 48px 0; }
  header.site .wrap { justify-content: center; }
}
