/* ML Quest: Rout1 editorial shell opening into the game's pixel world. */

:root {
  --mlq-teal: #123f3e;
  --mlq-teal-2: #1d5260;
  --mlq-mint: #edf4ef;
  --mlq-gold: #f0c55c;
  --mlq-cream: #fbf8f0;
  --mlq-rust: #8f493f;
}

body a:focus-visible,
body button:focus-visible,
body summary:focus-visible,
body input:focus-visible,
body textarea:focus-visible {
  outline: 3px solid var(--mlq-gold);
  outline-offset: 4px;
}

.mlq-hero {
  min-height: 100svh;
  display: grid !important;
  grid-template-columns: minmax(400px, 0.78fr) minmax(0, 1.22fr);
  grid-template-areas: "copy media";
  padding: 0 !important;
  overflow: hidden;
  background: var(--paper);
}

.mlq-hero-media {
  grid-area: media;
  min-width: 0;
  height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--mlq-mint);
}

.mlq-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}

.mlq-hero-copy {
  grid-area: copy;
  z-index: 2;
  align-self: center;
  width: min(100%, 610px);
  margin-left: max(2.5rem, calc((100vw - 1040px) / 2));
  padding: 7rem clamp(2.5rem, 4.5vw, 5rem) 3.5rem 0;
}

.mlq-hero .hero-tag { margin-bottom: 1.35rem; }

.mlq-product-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.mlq-product-lockup img {
  width: 52px;
  height: 52px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
}

.mlq-product-lockup span,
.mlq-hero-note,
.mlq-state-label,
.mlq-capability-line,
.mlq-meta-line {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mlq-product-lockup span,
.mlq-hero-note {
  color: var(--faint);
  font-size: 11px;
}

.mlq-hero .hero-title {
  margin-bottom: 0.65rem;
  font-size: clamp(4.8rem, 7vw, 7.2rem);
  line-height: 0.9;
}

.mlq-promise {
  max-width: 17ch;
  margin-bottom: 1rem;
  color: var(--mlq-teal);
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.8vw, 2.7rem);
  font-weight: 300;
  line-height: 1.05;
}

.mlq-hero .hero-desc { max-width: 43ch; font-size: 15px; }

.mlq-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.mlq-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.22s, background 0.22s, border-color 0.22s, transform 0.22s;
}

.mlq-button:hover { transform: translateY(-2px); }
.mlq-button-primary { background: var(--mlq-teal); color: var(--paper); }
.mlq-button-primary:hover { background: var(--ink); }
.mlq-button-secondary { border-color: var(--accent-line); color: var(--ink-soft); }
.mlq-button-secondary:hover { border-color: var(--mlq-teal); color: var(--mlq-teal); }
.mlq-hero-note { margin-top: 1rem; }

.mlq-map-section,
.mlq-lesson-section,
.mlq-trust-section,
.mlq-final-cta {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}

.mlq-map-section { background: var(--mlq-cream); }

.mlq-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: end;
}

.mlq-section-heading .section-title { max-width: 15ch; margin-bottom: 0; }

.mlq-memory-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 4rem;
  border: 1px solid var(--mlq-teal);
  background: var(--mlq-teal);
}

.mlq-memory-state { margin: 0; background: var(--paper); }

.mlq-memory-state img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  image-rendering: pixelated;
}

.mlq-memory-state figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-size: 13px;
}

.mlq-state-label { color: var(--mlq-teal); font-size: 10px; }
.mlq-state-mark { width: 0.65rem; height: 0.65rem; border: 2px solid currentColor; }
.mlq-state-mark.fresh { color: var(--mlq-teal); border-radius: 50%; background: var(--mlq-teal); }
.mlq-state-mark.fading { color: var(--mlq-rust); border-style: dashed; border-radius: 50%; }

.mlq-credits {
  margin-top: 1rem;
  border-top: 0.5px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.mlq-credits summary {
  position: relative;
  padding: 0.9rem 2rem 0.9rem 0;
  color: var(--faint);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  list-style: none;
}

.mlq-credits summary::-webkit-details-marker { display: none; }

.mlq-credits summary::after {
  position: absolute;
  right: 0;
  content: '+';
}

.mlq-credits[open] summary::after { content: '−'; }

.mlq-credits-content {
  max-width: 78ch;
  padding: 0.25rem 0 1.25rem;
}

.mlq-credits-content p { line-height: 1.7; }
.mlq-credits-content p + p { margin-top: 0.85rem; }
.mlq-credits-content strong { color: var(--ink-soft); }

.mlq-credits-content a {
  color: var(--mlq-teal);
  overflow-wrap: anywhere;
}

.mlq-credit-records {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.mlq-lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.mlq-lesson-media { margin: 0; overflow: hidden; background: var(--mlq-mint); }

.mlq-lesson-media img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.mlq-lesson-media:hover img { transform: scale(1.018); }
.mlq-lesson-copy .section-title { max-width: 11ch; }
.mlq-lesson-copy .section-intro { margin-bottom: 2rem; }

.mlq-capability-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 1.15rem;
  border-top: 0.5px solid var(--line);
  color: var(--mlq-teal);
  font-size: 10px;
}

.mlq-trust-section { background: var(--mlq-mint); }

.mlq-trust-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  border-top: 0.5px solid rgba(18, 63, 62, 0.28);
  border-bottom: 0.5px solid rgba(18, 63, 62, 0.28);
}

.mlq-trust-line article {
  padding: 2rem 2.25rem 2.25rem 0;
  border-right: 0.5px solid rgba(18, 63, 62, 0.2);
}

.mlq-trust-line article + article { padding-left: 2.25rem; }
.mlq-trust-line article:last-child { padding-right: 0; border-right: 0; }

.mlq-trust-line h3 {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.mlq-trust-line p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.mlq-final-cta { background: var(--mlq-teal); color: var(--paper); }
.mlq-final-cta .section-label { color: rgba(255, 255, 255, 0.65); }

.mlq-final-cta h2 {
  max-width: 16ch;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 300;
  line-height: 0.98;
}

.mlq-final-cta h2 span { color: var(--mlq-gold); }

.mlq-final-cta > .wrap > p:not(.section-label) {
  max-width: 44ch;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.78);
}

.mlq-button-light { background: var(--paper); color: var(--mlq-teal); }
.mlq-button-light:hover { background: var(--mlq-gold); color: var(--ink); }
.mlq-button-outline { border-color: rgba(255, 255, 255, 0.55); color: var(--paper); }
.mlq-button-outline:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.08); }

/* Support and privacy pages */
.mlq-utility-hero {
  padding: 9rem 2.5rem 4.5rem;
  background: var(--mlq-teal);
  color: var(--paper);
}

.mlq-back-link {
  display: inline-flex;
  gap: 0.55rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.mlq-back-link:hover { color: var(--paper); text-decoration: underline; }
.mlq-utility-hero .section-label { color: var(--mlq-gold); }
.mlq-utility-hero .section-title { max-width: 14ch; font-size: clamp(3.2rem, 7vw, 6rem); }
.mlq-utility-hero .section-intro { color: rgba(255, 255, 255, 0.76); }

.mlq-utility-content { padding-top: 5.5rem; padding-bottom: 7rem; }
.mlq-utility-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr); gap: clamp(3rem, 9vw, 8rem); align-items: start; }

.mlq-content-heading {
  margin-bottom: 2.25rem;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.1;
}

.mlq-faq-list { border-top: 0.5px solid var(--line); }

.mlq-faq-list details { border-bottom: 0.5px solid var(--line); }

.mlq-faq-list summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  line-height: 1.4;
}

.mlq-faq-list summary::-webkit-details-marker { display: none; }
.mlq-faq-list summary::after { position: absolute; top: 1.15rem; right: 0; content: '+'; color: var(--mlq-teal); font-family: var(--font-mono); font-size: 1.3rem; }
.mlq-faq-list details[open] summary::after { content: '−'; }
.mlq-faq-list details p { max-width: 60ch; padding: 0 2.5rem 1.35rem 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.mlq-contact-panel {
  padding: 2rem;
  background: var(--mlq-mint);
}

.mlq-contact-panel .section-label { color: var(--mlq-teal); }
.mlq-contact-panel h2 { margin-bottom: 0.7rem; font-family: var(--font-serif); font-size: 2rem; font-weight: 300; line-height: 1.1; }
.mlq-contact-panel > p { color: var(--muted); font-size: 14px; }
.mlq-contact-panel .contact-form { margin-top: 2rem; }
.mlq-support-note { margin-top: 1.25rem; color: var(--faint); font-size: 12px; }

.mlq-policy {
  max-width: 720px;
  margin: 0 auto;
}

.mlq-meta-line { margin-bottom: 3rem; color: var(--faint); font-size: 10px; }

.mlq-policy section {
  padding: 2rem 0;
  border-top: 0.5px solid var(--line);
}

.mlq-policy h2 {
  margin-bottom: 0.85rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.15;
}

.mlq-policy p,
.mlq-policy li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.mlq-policy p + p { margin-top: 0.9rem; }
.mlq-policy ul { margin: 0.9rem 0 0 1.2rem; }
.mlq-policy li + li { margin-top: 0.45rem; }
.mlq-policy a { color: var(--mlq-teal); }

.mlq-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; }
.mlq-footer-links a { color: var(--faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; text-decoration: none; }
.mlq-footer-links a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .mlq-hero-media img { animation: mlq-image-settle 1.25s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  .mlq-product-lockup,
  .mlq-promise,
  .mlq-actions,
  .mlq-hero-note {
    opacity: 0;
    transform: translateY(12px);
    animation: mlq-rise 0.85s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }
  .mlq-product-lockup { animation-delay: 0.12s; }
  .mlq-promise { animation-delay: 0.4s; }
  .mlq-actions { animation-delay: 0.55s; }
  .mlq-hero-note { animation-delay: 0.65s; }
}

@keyframes mlq-rise { to { opacity: 1; transform: none; } }
@keyframes mlq-image-settle { from { transform: scale(1.04); } to { transform: scale(1); } }

@media (max-width: 920px) {
  .mlq-hero { grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr); }
  .mlq-hero-copy { margin-left: 2rem; padding-right: 2.5rem; }
  .mlq-hero .hero-title { font-size: 4.8rem; }
  .mlq-promise { font-size: 2rem; }
}

@media (max-width: 760px) {
  .mlq-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas: "media" "copy";
    padding-top: 58px !important;
  }
  .mlq-hero-media { height: clamp(290px, 42svh, 390px); }
  .mlq-hero-copy { width: auto; margin: 0; padding: 1.7rem 1.5rem 2.5rem; }
  .mlq-hero .hero-tag { margin-bottom: 1rem; }
  .mlq-product-lockup { margin-bottom: 1rem; }
  .mlq-hero .hero-title { margin-bottom: 0.45rem; font-size: 3.7rem; }
  .mlq-promise { margin-bottom: 0.75rem; font-size: 1.75rem; }
  .mlq-hero .hero-desc { font-size: 14px; line-height: 1.6; }
  .mlq-map-section,
  .mlq-lesson-section,
  .mlq-trust-section,
  .mlq-final-cta { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .mlq-section-heading,
  .mlq-lesson-layout,
  .mlq-utility-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mlq-memory-pair { grid-template-columns: 1fr; }
  .mlq-trust-line { grid-template-columns: 1fr; }
  .mlq-trust-line article,
  .mlq-trust-line article + article { padding: 1.6rem 0 1.8rem; border-right: 0; border-bottom: 0.5px solid rgba(18, 63, 62, 0.2); }
  .mlq-trust-line article:last-child { border-bottom: 0; }
  .mlq-utility-hero { padding: 7.5rem 1.5rem 4rem; }
  .mlq-utility-content { padding-top: 4rem; }
  .mlq-contact-panel { padding: 1.5rem; }
}

@media (max-width: 560px) {
  .mlq-hero .hero-tag { display: none; }
  .mlq-product-lockup span,
  .mlq-hero-note { font-size: 10px; }
  .mlq-hero .hero-title { font-size: 3.25rem; }
  .mlq-promise { font-size: 1.6rem; }
  .mlq-actions { align-items: stretch; flex-direction: column; }
  .mlq-button { width: 100%; }
  .mlq-memory-state figcaption { align-items: flex-start; flex-direction: column; }
  .mlq-final-cta h2 { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mlq-button,
  .mlq-lesson-media img { transition: none; }
}
