/* Shared public layout for the static landing and service information pages. */
:root {
  color-scheme: light dark;
  font-family: 'Nunito', ui-rounded, system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.035em; text-wrap: balance; }
h2 { line-height: 1.25; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
.icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.skip-link {
  position: absolute;
  inset-block-start: -80px;
  inset-inline-start: 20px;
  padding: var(--brand-spaceMedium);
  z-index: 10;
  background: var(--white);
}
.skip-link:focus { inset-block-start: 12px; }

.brand-dark { display: none; }
.primary, .secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.25;
}
.primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 4px 0 var(--purple-dark);
  font-size: 18px;
}
.primary:hover { background: var(--purple-dark); }
.secondary {
  color: var(--purple);
  border: 1px solid var(--line);
  background: var(--white);
}
.secondary:hover { background: var(--lilac); }
@media (prefers-color-scheme: dark) {
  .brand-light { display: none; }
  .brand-dark { display: block; }
  .primary { background: var(--purple-dark); }
  .primary:hover { background: color-mix(in srgb, var(--purple-dark) 86%, var(--ink)); }
}
html[dir='rtl'] .reading-arrow { scale: -1 1; }

.welcome-page {
  max-width: 1920px;
  min-height: 100dvh;
  margin-inline: auto;
  padding-inline: clamp(20px, 5.5vw, 112px);
}
.welcome-header, nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--brand-spaceLarge);
}
.welcome-header { min-height: 96px; }
.welcome-brand { flex-shrink: 0; }
.welcome-brand img { width: clamp(126px, 16vw, 218px); height: auto; }
nav { gap: clamp(12px, 2.5vw, 40px); }
.parent-link, .language-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--brand-spaceSmall);
  min-height: var(--brand-touchTarget);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.parent-link:hover { color: var(--purple); }
.language-choice {
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.public-welcome .welcome-scene {
  --mascot-size: min(100%, 480px);
  grid-template-columns: minmax(0, 480px);
  place-content: center;
  padding: clamp(12px, 2.4vw, 38px);
  border: 0;
  background: none;
}
.public-welcome .welcome-scene::before {
  inline-size: min(94%, 451px);
  aspect-ratio: 94 / 83;
  border-radius: 47% 53% 61% 39% / 51% 43% 57% 49%;
  transform: rotate(-7deg);
}
.public-welcome .welcome-illustration { z-index: 1; }
.mascot-label {
  grid-area: 1 / 1;
  place-self: start;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 12%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: clamp(12px, 1.15vw, 17px);
  font-weight: 850;
  white-space: nowrap;
  transform: rotate(-6deg);
}
.mascot-label .icon { width: 1.1em; height: 1.1em; color: var(--purple); }
.welcome-scene figcaption {
  font-size: clamp(12px, 1.2vw, 18px);
  font-weight: 800;
  text-align: center;
  text-wrap: balance;
}
.age-label {
  display: flex;
  align-items: center;
  gap: var(--brand-spaceSmall);
  font-size: 14px;
  font-weight: 800;
  color: var(--purple);
}
.age-label span {
  display: grid;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background: var(--lilac);
}
.age-label .icon { width: 17px; height: 17px; }
.welcome-hero h1 {
  margin-block: var(--brand-spaceSmall) var(--brand-spaceMedium);
  max-inline-size: 14ch;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.welcome-intro {
  max-width: 36ch;
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.5;
}
.start-block { margin-block-start: var(--brand-spaceLarge); }
.start-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.start-actions :is(.primary, .secondary) { min-height: 60px; font-size: 17px; }
.start-actions [aria-busy='true'] { opacity: 0.65; cursor: wait; }
.install-benefit, .try-note, .signed-in { margin-block-start: 14px; font-size: 14px; line-height: 1.5; }
.install-benefit:empty { margin: 0; }
.try-note, .signed-in { display: flex; align-items: center; gap: var(--brand-spaceSmall); font-weight: 800; }
:is(.try-note, .signed-in) .icon { width: 18px; height: 18px; color: var(--green-ink); }

.discovery { padding-block: clamp(24px, 3.5vw, 56px) 0; }
.discovery h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--brand-spaceMedium);
  margin-block-end: clamp(22px, 3vw, 40px);
  font-size: clamp(19px, 2vw, 28px);
  text-align: center;
}
.discovery h2::before, .discovery h2::after {
  content: '';
  flex: 1;
  border-block-start: 1px solid var(--line);
}
.faq-section h2 { font-size: clamp(27px, 3vw, 40px); }
.activity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 48px);
}
.activity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: clamp(10px, 1.2vw, 20px);
}
.activity-symbol svg { width: 29px; height: 29px; }
.activity h3 { font-size: clamp(16px, 1.6vw, 23px); margin-block-end: 4px; }
.activity p { font-size: 15px; line-height: 1.45; }
.sample-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--brand-spaceSmall);
  padding: 0;
  margin: 0;
  list-style: none;
}
.activity p + .sample-list, .school-samples { margin-block-start: 10px; }
.sample-list li {
  background: var(--lilac);
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
}
.school-samples { display: flex; flex-wrap: wrap; gap: var(--brand-spaceMedium); }
.school-samples strong { display: block; margin-block-end: 5px; font-size: 14px; }
.school-samples li { background: var(--mint); color: var(--green-ink); }

.about-section, .grownup-section { margin-block-start: clamp(32px, 4vw, 64px); }
.about-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 6vw, 96px);
  padding-block-start: clamp(24px, 3vw, 48px);
  border-block-start: 1px solid var(--line);
}
.about-section h2 { font-size: clamp(22px, 2.15vw, 30px); }
.about-section p { max-width: 70ch; margin-block-start: var(--brand-spaceSmall); line-height: 1.65; }
.grownup-section {
  display: flex;
  align-items: flex-start;
  gap: var(--brand-spaceLarge);
  padding: clamp(20px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  scroll-margin-top: var(--brand-spaceLarge);
}
.grownup-icon {
  display: grid;
  flex: 0 0 50px;
  place-items: center;
  height: 50px;
  border-radius: 50%;
  color: var(--purple);
  background: var(--lilac);
}
.grownup-copy { flex: 1; }
.grownup-copy h2 { font-size: clamp(22px, 2.15vw, 30px); }
.grownup-copy p { max-width: 58ch; margin-block-start: var(--brand-spaceSmall); line-height: 1.65; }
.parent-actions { display: grid; gap: var(--brand-spaceSmall); }
.account-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; }
.account-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--brand-touchTarget);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.faq-section { max-width: 900px; margin: clamp(32px, 5vw, 72px) auto 0; }
.faq-section h2 { margin-block-end: var(--brand-spaceMedium); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 20px 4px; font-size: 18px; font-weight: 800; cursor: pointer; }
details p { padding: 0 4px 20px; line-height: 1.65; }
.closing-play { display: flex; justify-content: center; padding-block: 40px 16px; }

footer { padding-block: 16px 24px; }
.public-information-links { flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.public-information-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--brand-touchTarget);
  font-size: 14px;
  text-underline-offset: 4px;
}
.public-information {
  max-width: 72ch;
  margin-inline: auto;
  padding-block: clamp(28px, 6vw, 72px) 24px;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.public-information h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; }
.public-information h2 { margin-block-start: 28px; }
.public-information p, .public-information li { margin-block: 12px; }
.public-information ul { padding-inline-start: 1.5em; }

@media (max-width: 760px) {
  .public-welcome .welcome-hero {
    grid-template-columns: minmax(0, 1fr) 32%;
    grid-template-areas: 'age age' 'title mascot' 'intro intro' 'actions actions';
    align-items: center;
    column-gap: var(--brand-spaceSmall);
    padding: clamp(16px, 5vw, 36px);
  }
  .public-welcome .welcome-content { display: contents; }
  .age-label { grid-area: age; }
  .welcome-hero h1 { grid-area: title; font-size: clamp(30px, 8.7vw, 54px); }
  .public-welcome .welcome-scene { grid-area: mascot; padding: 0; margin-block: 10px; }
  .public-welcome .welcome-scene::before,
  .public-welcome .welcome-scene .welcome-illustration { grid-row: 2; }
  .mascot-label {
    place-self: center;
    gap: 3px;
    margin: 0;
    padding: 3px 5px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
  }
  .welcome-scene figcaption { line-height: 1.2; }
  .welcome-intro { grid-area: intro; }
  .start-block { grid-area: actions; }
}
@media (max-width: 680px) {
  .welcome-header { min-height: 78px; gap: var(--brand-spaceSmall); }
  .welcome-brand img { width: clamp(92px, 32vw, 144px); }
  nav { gap: var(--brand-spaceSmall); }
  .parent-link, .language-choice { font-size: 12px; }
  .language-choice { padding-inline: 9px; }
  .language-choice .icon, .parent-link .icon, .grownup-icon { display: none; }
  .start-actions { display: grid; grid-auto-rows: 1fr; }
  .start-actions :is(.primary, .secondary) { padding-inline: var(--brand-spaceMedium); font-size: 16px; }
  .start-actions :is(.primary, .secondary), .closing-play .primary { width: 100%; }
  .activity-list { grid-template-columns: minmax(0, 1fr); }
  .about-section { grid-template-columns: minmax(0, 1fr); }
  .grownup-section { flex-direction: column; align-items: stretch; gap: var(--brand-spaceMedium); }
}
