/* Landing page — a clone of learn.erenjoy.com's welcome screen with the
   app's own Duolingo-style system (styles.css is loaded first, so the --dl-*
   tokens, Nunito and the chunky button treatment are already available).

   One centred column: brand, title, a strip of phone screenshots, tag pills,
   a single big button, then the plain-text detail below the fold. */

:root {
  --mint: #5cc0b6;
  --mint-deep: #3f9c93;
  --mint-pale: #cdeee9;
  --mint-wash: #eefaf7;
  --mint-ink: #0d5f63;
}

html { scroll-behavior: smooth; }

body.landing {
  background-color: var(--dl-eel);
  background-image: radial-gradient(circle, rgba(88, 167, 0, 0.09) 2px, transparent 2px);
  background-size: 24px 24px;
}

section[id] { scroll-margin-top: 16px; }

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 70;
  background: var(--dl-ink); color: #fff; padding: 10px 16px;
  border-radius: 10px; font-weight: 800;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------- welcome fold */

.welcome {
  max-width: 560px; margin: 0 auto;
  padding: 30px 16px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}

.welcome-brand { display: flex; align-items: center; gap: 10px; }
.welcome-brand .brand-mark { font-size: 2rem; line-height: 1; }
.welcome-brand h1 {
  margin: 0; font-size: clamp(30px, 8vw, 40px); line-height: 1;
  font-weight: 900; letter-spacing: -0.03em; color: var(--dl-ink);
}
.welcome-brand h1 span { color: var(--dl-green); }

.welcome-title {
  margin: 2px 0 6px; max-width: 24ch;
  font-size: clamp(19px, 5.2vw, 24px); font-weight: 800; line-height: 1.25;
  color: var(--dl-wolf);
}

/* the screenshot strip — swipes on touch, snaps one card at a time */

.screens {
  width: calc(100% + 32px); margin: 2px -16px 0;
  padding: 6px 16px 10px;
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.screens::-webkit-scrollbar { display: none; }

.screen {
  flex: none; width: clamp(104px, 30vw, 148px); margin: 0;
  scroll-snap-align: start;
}
.screen img {
  display: block; width: 100%; height: auto;
  border-radius: 16px; background: #fff;
  border: 3px solid var(--dl-swan); border-bottom-width: 5px;
}
.screen figcaption {
  margin-top: 6px; font-size: 0.7rem; font-weight: 900; color: var(--dl-wolf);
}

.welcome-tags {
  list-style: none; margin: 4px 0 2px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
.welcome-tags li {
  padding: 4px 11px; border-radius: 999px;
  background: #fff; border: 2px solid var(--dl-swan);
  font-size: 0.78rem; font-weight: 800; color: var(--dl-ink); white-space: nowrap;
}

.welcome-go {
  width: 100%; min-height: 58px; margin-top: 6px; cursor: pointer;
  border: 0; border-bottom: 5px solid var(--dl-green-deep); border-radius: 14px;
  background: var(--dl-green); color: #fff;
  font: inherit; font-size: 1.2rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.welcome-go:hover { background: var(--dl-green-light); }
.welcome-go:active { transform: translateY(4px); border-bottom-width: 1px; }

.welcome-note {
  margin: 0; font-size: 0.84rem; font-weight: 800; color: var(--dl-wolf);
}

.welcome-all {
  padding: 4px 6px; font-size: 0.9rem; font-weight: 900;
  color: var(--dl-green-deep);
  text-decoration: underline; text-underline-offset: 3px;
}
.welcome-all:hover { color: var(--dl-green); }

/* ------------------------------------------------- text below the fold */

.welcome-more { max-width: 720px; margin: 0 auto; padding: 10px 18px 46px; }

.welcome-more h2 {
  margin: 26px 0 6px; font-size: 1.1rem; font-weight: 900; color: var(--dl-ink);
}
.welcome-more h2:first-child { margin-top: 6px; }

.welcome-more .more-title { margin-top: 28px; }

.inside-list { list-style: none; margin: 0; padding: 0; }
.inside-list li {
  padding: 9px 0; border-bottom: 2px solid var(--dl-swan);
  font-size: 0.9rem; font-weight: 600; color: var(--dl-wolf); line-height: 1.45;
}
.inside-list b { color: var(--dl-ink); font-weight: 900; }

.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.faq details {
  background: #fff; border: 2px solid var(--dl-swan);
  border-bottom: 4px solid var(--dl-swan); border-radius: 14px; padding: 0 16px;
}
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 13px 30px 13px 0; font-size: 0.95rem; font-weight: 800; color: var(--dl-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 900; color: var(--dl-green-deep);
}
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 14px; font-size: 0.9rem; font-weight: 600; color: var(--dl-wolf); }

/* -------------------------------------------------------- sign-up overlay */

.signup-backdrop {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
  background-color: #eaf8f3;
  background-image: radial-gradient(circle, #c9e9df 2.5px, transparent 2.5px);
  background-size: 22px 22px;
}
.signup-backdrop[hidden] { display: none; }
body.modal-open { overflow: hidden; }

.signup-card {
  width: 100%; max-width: 560px; margin: auto;
  background: #fff; border: 3px solid var(--mint); border-radius: 28px;
  padding: 22px 24px 20px;
  box-shadow: 0 18px 40px rgba(13, 95, 99, 0.14);
  animation: signup-in 0.18s ease-out;
}
@keyframes signup-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.signup-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.signup-avatar {
  position: relative; flex: 0 0 auto; width: 64px; height: 64px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--mint-wash); border: 3px solid var(--dl-green-pale);
}
.signup-avatar img { width: 40px; height: auto; }
.signup-avatar-owl { font-size: 2.3rem; line-height: 1; }
.signup-avatar-badge {
  position: absolute; right: -5px; bottom: -3px;
  width: 25px; height: 25px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; border: 2px solid var(--mint-pale); font-size: 0.72rem;
}
.signup-head h2 {
  margin: 0; font-size: 1.55rem; font-weight: 900;
  letter-spacing: -0.02em; color: var(--mint-ink);
}

.field-label { display: block; margin: 0 0 8px; font-weight: 800; font-size: 1rem; color: var(--dl-ink); }

.text-input {
  width: 100%; min-height: 56px; padding: 0 16px;
  font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--dl-ink);
  background: #fff; border: 2px solid var(--mint-pale); border-radius: 14px;
}
.text-input::placeholder { color: #9a9a9a; font-weight: 700; }
.text-input:focus {
  outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(92, 192, 182, 0.18);
}

.age-field { border: 0; padding: 0; margin: 20px 0 0; }
.age-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.age-chip {
  min-height: 54px; border-radius: 14px; cursor: pointer;
  background: #fff; border: 2px solid var(--mint-pale); border-bottom: 4px solid var(--mint-pale);
  font: inherit; font-size: 1.15rem; font-weight: 900; color: var(--dl-ink);
  transition: background 0.12s, border-color 0.12s;
}
.age-chip:hover { border-color: var(--mint); }
.age-chip.on {
  background: var(--dl-green-pale); border-color: var(--dl-green);
  border-bottom-color: var(--dl-green-deep); color: var(--dl-green-deep);
}

.field-help { margin: -2px 0 8px; font-size: 0.85rem; font-weight: 700; color: var(--dl-wolf); }

.email-input { margin-bottom: 20px; }

.signup-submit {
  width: 100%; min-height: 62px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-bottom: 5px solid var(--dl-green-deep); border-radius: 16px;
  background: var(--dl-green); color: #fff;
  font: inherit; font-size: 1.14rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.signup-submit:hover { background: var(--dl-green-light); }
.signup-submit:active { transform: translateY(4px); border-bottom-width: 1px; }
.signup-play { font-size: 0.9rem; }

.signup-error {
  margin: 12px 0 0; text-align: center;
  font-size: 0.86rem; font-weight: 800; color: var(--dl-red-deep);
}

.signup-cancel {
  display: block; margin: 14px auto 0; padding: 6px 10px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 0.98rem; font-weight: 800; color: var(--mint-ink);
  text-decoration: underline; text-underline-offset: 3px;
}

/* -------------------------------------------------------------- responsive */

@media (min-width: 620px) {
  .welcome { padding-top: 44px; }
  .screens { gap: 12px; }
  .screen { width: 148px; }
}

@media (max-width: 560px) {
  .welcome { padding: 22px 14px 20px; gap: 10px; }
  .screens { width: calc(100% + 28px); margin-left: -14px; margin-right: -14px; padding: 4px 14px 8px; }
  .screen { width: 108px; }
  .welcome-go { min-height: 54px; font-size: 1.08rem; }
  .welcome-more { padding: 6px 16px 36px; }
  .signup-card { padding: 18px 16px 16px; border-radius: 22px; }
  .signup-head h2 { font-size: 1.3rem; }
  .signup-avatar { width: 54px; height: 54px; }
  .signup-avatar img { width: 34px; }
  .age-row { gap: 6px; }
  .age-chip { min-height: 50px; font-size: 1.05rem; }
  .signup-backdrop { padding: 12px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signup-card { animation: none; }
}

/* ------------------------------------------------------------ all-games page */

.acts-bar {
  max-width: 720px; margin: 0 auto; padding: 18px 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.acts-bar .brand-mark { font-size: 1.35rem; line-height: 1; }
.acts-bar .brand span { font-weight: 900; }
.acts-home { font-size: 0.85rem; font-weight: 900; color: var(--dl-green-deep); }
.acts-home:hover { color: var(--dl-green); }

.acts { max-width: 720px; margin: 0 auto; padding: 12px 18px 44px; }
.acts h1 {
  margin: 18px 0 10px; font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.1;
  font-weight: 900; letter-spacing: -0.025em; color: var(--dl-ink);
}
.acts-intro { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--dl-wolf); }

.acts-group { margin-top: 26px; }
.acts-group > h2 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
  font-size: 1.06rem; font-weight: 900; color: var(--dl-ink);
}
.acts-num {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dl-green-pale); color: var(--dl-green-deep);
  font-size: 0.78rem; font-weight: 900;
}
.acts-group > p { margin: 0 0 10px; font-size: 0.88rem; font-weight: 600; color: var(--dl-wolf); }
.acts-group b { color: var(--dl-ink); font-weight: 900; }

.acts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.acts-list li {
  padding: 12px 14px; border-radius: 14px; background: #fff;
  border: 2px solid var(--dl-swan); border-bottom: 4px solid var(--dl-swan);
}
.acts-list h3 { margin: 0 0 4px; font-size: 0.98rem; font-weight: 900; }
.acts-list h3 a { color: var(--dl-ink); }
.acts-list h3 a:hover { color: var(--dl-green-deep); }
.acts-list p { margin: 0; font-size: 0.87rem; font-weight: 600; color: var(--dl-wolf); }
.acts-builds { margin-top: 5px !important; font-size: 0.78rem !important; font-weight: 800 !important; color: var(--dl-green-deep) !important; }

.acts-sub { margin: 34px 0 8px; font-size: 1.06rem; font-weight: 900; color: var(--dl-ink); }

.acts-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.acts-cta .welcome-go {
  width: auto; min-width: 230px; padding: 0 26px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 560px) {
  .acts-bar { padding: 14px 16px 0; }
  .acts { padding: 8px 16px 36px; }
  .acts-cta .welcome-go { width: 100%; }
}

/* ------------------------------------------------------------ policy pages */

.legal { max-width: 720px; margin: 0 auto; padding: 12px 18px 44px; }
.legal h1 {
  margin: 18px 0 6px; font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.1;
  font-weight: 900; letter-spacing: -0.025em; color: var(--dl-ink);
}
.legal-meta { margin: 0 0 18px; font-size: 0.8rem; font-weight: 800; color: var(--dl-wolf); }
.legal-lead { margin: 0 0 6px; font-size: 0.98rem; font-weight: 700; line-height: 1.5; color: var(--dl-ink); }
.legal h2 { margin: 30px 0 8px; font-size: 1.06rem; font-weight: 900; color: var(--dl-ink); }
.legal p { margin: 0 0 10px; }
.legal p, .legal li { font-size: 0.92rem; font-weight: 600; line-height: 1.55; color: var(--dl-wolf); }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal b { color: var(--dl-ink); font-weight: 900; }
.legal a { color: var(--dl-green-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--dl-green); }
.legal-note {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 14px;
  background: var(--mint-wash); border: 2px solid var(--mint-pale);
}
.legal-note p:last-child { margin-bottom: 0; }
.legal-contact {
  margin: 26px 0 0; padding: 14px 16px; border-radius: 14px; background: #fff;
  border: 2px solid var(--dl-swan); border-bottom: 4px solid var(--dl-swan);
}
.legal-contact h2 { margin-top: 0; }
.legal-back { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 560px) { .legal { padding: 8px 16px 36px; } }
