:root {
  color-scheme: light;
  --ink: #173d3f;
  --ink-soft: #586b67;
  --line: #e5dfcf;
  --surface: #fdf9ed;
  --surface-soft: #f3f3e7;
  --purple: #5d2878;
  --purple-light: #8d4ca4;
  --gold: #bd8e24;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: clamp(1rem, 0.96rem + 0.15vw, 1.1rem);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(4.2rem, 8vw, 8.5rem);
}

h2 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
}

.page-shell,
.nav-shell {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.65rem 0.85rem;
  color: #fff;
  background: var(--purple);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(24 58 61 / 9%);
  background: rgb(253 249 237 / 92%);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 4.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.site-nav a,
.footer-nav a {
  color: #415552;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--purple);
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: #846822;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.download-hero {
  display: grid;
  min-height: calc(100svh - 4.7rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 34%, rgb(231 190 72 / 19%), transparent 25rem),
    radial-gradient(circle at 14% 18%, rgb(159 195 166 / 19%), transparent 28rem),
    repeating-linear-gradient(120deg, rgb(116 88 34 / 1.4%) 0 1px, transparent 1px 9px),
    linear-gradient(145deg, #fffaf0 0%, #f8f2dc 55%, #edf3e7 100%);
  place-items: center;
}

.download-hero__inner {
  display: block;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.download-hero__content {
  max-width: 66rem;
}

.download-hero__lead {
  margin: 1.2rem 0 2.2rem;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.7vw, 2.5rem);
  font-style: italic;
  font-weight: 700;
}

.download-hero__lead span {
  display: block;
}

.download-action {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.download-action__purchase {
  position: relative;
  z-index: 1;
}

.app-store-button {
  display: inline-flex;
  min-width: min(100%, 19.5rem);
  min-height: 5.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid #000;
  border-radius: 0.95rem;
  color: #fff;
  background: #050505;
  box-shadow: 0 16px 34px rgb(0 0 0 / 18%);
  gap: 0.8rem;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.app-store-button:hover {
  box-shadow: 0 20px 42px rgb(0 0 0 / 24%);
  transform: translateY(-2px);
}

.app-store-button:focus-visible,
.discover-button:focus-visible,
.audience-card:focus-visible,
.site-nav a:focus-visible,
.footer-nav a:focus-visible {
  outline: 3px solid #d5aa39;
  outline-offset: 4px;
}

.app-store-button__icon {
  font-size: 2.7rem;
  line-height: 1;
}

.app-store-button small,
.app-store-button strong {
  display: block;
  line-height: 1.1;
}

.app-store-button small {
  margin-bottom: 0.18rem;
  font-size: 0.8rem;
}

.app-store-button strong {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.purchase-summary {
  display: grid;
  max-width: 27rem;
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  gap: 0.18rem;
}

.purchase-summary strong {
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.miki-mascot {
  position: relative;
  overflow: hidden;
  width: clamp(12rem, 22vw, 18rem);
  flex: 0 0 auto;
  margin: 0;
  border-radius: 48% 52% 45% 55% / 43% 44% 56% 57%;
  box-shadow: 0 30px 70px rgb(29 64 55 / 17%);
}

.miki-mascot::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgb(245 246 238 / 38%));
  content: "";
  pointer-events: none;
}

.miki-mascot img {
  width: 100%;
  height: auto;
}

.compatibility-section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  border-block: 1px solid var(--line);
  background: #fffdf7;
}

.compatibility-section__inner {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
}

.compatibility-section h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
}

.compatibility-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.compatibility-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.compatibility-list li::before {
  position: absolute;
  left: 0;
  color: #4f814c;
  content: "✓";
}

.requirements-section {
  padding-block: clamp(4rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.requirements-section__inner {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1.2fr);
}

.requirements-section h2 {
  font-size: clamp(2rem, 3.3vw, 3.2rem);
}

.requirements-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.requirements-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.requirements-list li::before {
  position: absolute;
  left: 0;
  color: #4f814c;
  content: "✓";
}

.requirements-list span {
  color: var(--ink-soft);
  font-weight: 500;
}

.requirements-section__details p {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: italic;
}

.audience-section {
  padding-block: clamp(6rem, 11vw, 9rem);
  background:
    radial-gradient(circle at 15% 82%, rgb(144 184 145 / 13%), transparent 22rem),
    radial-gradient(circle at 85% 18%, rgb(220 177 68 / 11%), transparent 24rem),
    #fdfaf1;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.audience-cards {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-card {
  display: flex;
  min-height: 28rem;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.7rem, 3vw, 2.5rem);
  border: 1px solid rgb(117 93 48 / 16%);
  border-radius: 1.3rem;
  color: inherit;
  background: linear-gradient(155deg, rgb(255 255 255 / 88%), rgb(248 241 219 / 92%));
  box-shadow: 0 14px 40px rgb(46 62 49 / 7%);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.audience-card:hover {
  border-color: rgb(94 40 121 / 28%);
  box-shadow: 0 18px 45px rgb(31 58 52 / 9%);
  transform: translateY(-3px);
}

.audience-card--parents {
  background: linear-gradient(155deg, #fffdf3, #edf6df);
}

.audience-card--teachers {
  background: linear-gradient(155deg, #fffaf0, #f2e8f4);
}

.audience-card--voice {
  background: linear-gradient(155deg, #fffdf2, #e4f1ee);
}

.audience-card h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.audience-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.audience-card__portrait {
  position: relative;
  width: min(13.5rem, 78%);
  flex: 0 0 auto;
  margin: auto auto -0.35rem;
  overflow: hidden;
  border: 3px solid rgb(255 253 242 / 90%);
  border-radius: 50% 50% 44% 44% / 48% 48% 43% 43%;
  aspect-ratio: 1;
  box-shadow:
    0 18px 30px rgb(34 53 43 / 14%),
    0 0 0 1px rgb(119 91 40 / 12%);
}

.audience-card__portrait::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 24px rgb(255 247 213 / 22%);
  content: "";
  pointer-events: none;
}

.audience-card__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-button {
  display: flex;
  width: fit-content;
  min-height: 3.8rem;
  align-items: center;
  justify-content: center;
  margin: 3rem auto 0;
  padding: 0.9rem 1.8rem;
  border: 1px solid rgb(92 40 119 / 30%);
  border-radius: 999px;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.about-section {
  padding: clamp(5rem, 9vw, 7rem) 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  text-align: center;
}

.about-section p {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
}

.site-footer {
  padding-block: 3rem;
  color: #b9c1bf;
  background: #15363a;
}

.site-footer__inner {
  display: grid;
  align-items: center;
  gap: 1.5rem 3rem;
  grid-template-columns: auto 1fr auto;
}

.wordmark--footer,
.site-footer a {
  color: #f4f0df;
}

.footer-nav {
  justify-content: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.75rem;
}

@media (max-width: 820px) {
  .nav-shell {
    padding-block: 1rem;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .download-hero__inner,
  .compatibility-section__inner,
  .requirements-section__inner {
    grid-template-columns: 1fr;
  }

  .audience-cards {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: 0;
  }

  .audience-card__portrait {
    width: min(13rem, 58%);
    margin-top: 2rem;
  }

  .site-footer__inner {
    text-align: center;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .nav-shell {
    width: min(100% - 2rem, 1180px);
  }

  .nav-shell {
    display: grid;
  }

  .site-nav {
    display: grid;
    gap: 0.55rem 1.25rem;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }

  .download-hero {
    min-height: 0;
  }

  .app-store-button {
    width: 100%;
  }

  .download-action {
    align-items: flex-end;
    gap: 0.75rem;
  }

  .download-action__purchase {
    flex: 1;
  }

  .miki-mascot {
    width: 7.5rem;
    border-radius: 1.5rem 1.5rem 2.5rem 1.5rem;
  }

  .purchase-summary {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .app-store-button,
  .audience-card {
    transition: none;
  }
}
