:root {
  color-scheme: light;
  font-family: "Roboto", Arial, sans-serif;
  background: #f0fafb;
  color: #103e49;
  line-height: 1.55;
}

* { box-sizing: border-box; }

body {
  inline-size: min(72rem, 90%);
  margin-inline: auto;
  margin-block: 0;
}

img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

a {
  color: #075865;
  text-underline-offset: 0.2em;
}

a:hover { color: #102f56; }
a:focus-visible,
summary:focus-visible,
.theme-strip:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

header, footer { padding-block: clamp(1.25rem, 3.5vw, 2.5rem); }
header { border-block-end: 1px solid #aeccd1; }
.publisher-brand {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
}

.policy-header {
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

h1, h2, h3 {
  line-height: 1.15;
  font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
}

h1 { margin: 0; }

/* Kept for get.html compatibility */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4.75rem);
}

.intro h1 {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  letter-spacing: -0.045em;
}

.intro p {
  max-inline-size: 36rem;
  margin: 1rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #dff3f5;
  border: 1px solid #a9d6dc;
  color: #0b4f5c;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.availability {
  display: inline-block;
  margin: 1.5rem 0 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #fff4d6;
  border: 1px solid #e7c97a;
  color: #5b3e00;
  font-weight: 700;
  font-size: 0.95rem;
}

.badges,
footer nav {
  display: flex;
  align-items: safe center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.badges img {
  inline-size: min(9.5rem, 100%);
}

/* Store link + QR cards */
.store-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
  gap: 0.9rem;
  margin-block-start: 0.5rem;
  max-inline-size: 34rem;
}

.store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 1.1rem;
  background: #ffffff;
  border: 1px solid #b8dfdf;
  box-shadow: 0 0.5rem 1.25rem #103e4912;
}

.store-card-cta {
  display: grid;
  gap: 0.4rem;
  min-inline-size: 0;
}

.store-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #35606a;
}

.store-link {
  display: block;
  inline-size: min(9.25rem, 100%);
}

.store-link img {
  inline-size: 100%;
}

.store-qr {
  flex: 0 0 auto;
  inline-size: 5.25rem;
  block-size: 5.25rem;
  padding: 0.3rem;
  border-radius: 0.65rem;
  background: #ffffff;
  border: 1px solid #cde6e8;
}

/* Hero visual showcase */
.icon-frame {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  inline-size: min(100%, 21rem);
  aspect-ratio: 1;
  border: 2px solid #b8dfdf;
  border-radius: 50%;
}

.icon-frame img {
  inline-size: 70%;
  border-radius: 22%;
}

.icon-frame::before,
.icon-frame::after {
  content: "";
  position: absolute;
  inline-size: 5%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid #b8dfdf;
}
.icon-frame::before { inset-inline-end: -2%; top: 16%; }
.icon-frame::after { inset-inline-start: -2%; bottom: 16%; }

.hero-stage {
  position: relative;
  justify-self: center;
  inline-size: min(100%, 23rem);
}

.hero-jar-card {
  margin: 0;
  border-radius: 2rem;
  overflow: clip;
  border: 3px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 1.25rem 2.75rem #103e4924;
}

.hero-jar-card img {
  inline-size: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-icon-badge {
  position: absolute;
  inset-inline-start: -1rem;
  bottom: -1rem;
  inline-size: clamp(4.75rem, 16vw, 6.25rem);
  padding: 0.3rem;
  border-radius: 26%;
  background: #ffffff;
  box-shadow: 0 0.65rem 1.5rem #103e4929;
}

.hero-icon-badge img {
  border-radius: 22%;
}

/* Showcase sections */
.showcase-section {
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
  border-block-start: 1px solid #cee5e8;
}

.section-heading {
  max-inline-size: 44rem;
  margin-block-end: clamp(1.5rem, 3vw, 2.25rem);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0.75rem 0 0;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: #26535e;
}

/* 3-card pillars with subgrid alignment */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  grid-auto-rows: auto 1fr;
  gap: 1.25rem;
}

.pillar-card {
  grid-row: span 2;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-rows: subgrid;
  row-gap: 0.65rem;
  padding: 1.5rem;
  border-radius: 1.35rem;
  background: #ffffff;
  border: 1px solid #c3e2e5;
  box-shadow: 0 0.5rem 1.25rem #103e490d;
}

.pillar-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.pillar-card p {
  margin: 0;
  color: #24505b;
}

/* Multilingual + spoken dictionary spotlight */
.language-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.language-pills {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.language-pills li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #b8dfdf;
  font-weight: 700;
  font-size: 0.95rem;
}

.dictionary-demo {
  display: grid;
  gap: 1rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  border-radius: 1.5rem;
  background: linear-gradient(150deg, #ffffff 0%, #e4f6f8 100%);
  border: 1px solid #b8dfdf;
  box-shadow: 0 0.75rem 1.75rem #103e4914;
}

.bubble-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.word-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #176c7b;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.word-bubble-foreign {
  background: #c83e6f;
}

.word-tag {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #ffffff;
  color: #8f1d47;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

.dict-card {
  padding: 1.1rem 1.25rem;
  border-radius: 1.15rem;
  background: #fff9f7;
  border: 1px solid #ebd4cf;
  color: #2b1d22;
}

.dict-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dict-word {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dict-audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #fde6ec;
  color: #8f1d47;
  font-size: 0.85rem;
  font-weight: 700;
}

.dict-card p {
  margin: 0.5rem 0 0;
  font-size: 0.96rem;
}

.postcard-mini {
  margin: 0;
  border-radius: 1rem;
  overflow: clip;
  border: 1px solid #b8dfdf;
  background: #ffffff;
}

.postcard-mini figcaption {
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  color: #2c5964;
  background: #ffffff;
}

/* Scroll-snap theme gallery */
.theme-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-block: 0.25rem 0.85rem;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
  .theme-strip {
    scroll-behavior: smooth;
  }
}

.theme-card {
  flex: 0 0 min(13.5rem, 68vw);
  scroll-snap-align: start;
  margin: 0;
  border-radius: 1.25rem;
  overflow: clip;
  background: #ffffff;
  border: 1px solid #c3e2e5;
  box-shadow: 0 0.45rem 1rem #103e4910;
}

.theme-card img {
  inline-size: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.theme-card figcaption {
  padding: 0.75rem 0.95rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
}

/* 4-card feature bento */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.35rem;
}

.bento-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 1.45rem;
  background: #ffffff;
  border: 1px solid #c3e2e5;
  box-shadow: 0 0.5rem 1.25rem #103e490d;
}

.bento-media {
  border-radius: 1rem;
  overflow: clip;
  border: 1px solid #d7ecee;
  background: #eaf7f8;
}

.bento-media img {
  inline-size: 100%;
}

.bento-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

.bento-pair .bento-media {
  display: flex;
}

.bento-pair .bento-media img {
  object-fit: cover;
  block-size: 100%;
}

.bento-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.bento-card p {
  margin: 0;
  color: #24505b;
}

/* Closing download banner */
.download-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.75rem;
  background: linear-gradient(140deg, #dff4f6 0%, #ffffff 100%);
  border: 1px solid #a9d6dc;
}

.download-copy h2 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
}

.download-copy p {
  margin: 0;
  color: #24505b;
}

.download-copy .availability {
  margin: 0;
}

.download-banner .store-cards {
  max-inline-size: none;
  margin: 0;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: space-between;
  gap: 1.5rem;
  border-block-start: 1px solid #aeccd1;
}

.publisher { display: grid; gap: 0.2rem; }
.publisher a { justify-self: start; }
footer nav { gap: 0.5rem 1.5rem; }

/* Legal pages (Privacy Policy & Terms of Service) */
.legal-page {
  max-inline-size: 46rem;
  margin-inline: auto;
  padding-block: 3rem;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}
.legal-page h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  margin-block: 0.5rem 0.35rem;
}
.legal-page h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.5rem;
}
.legal-page p { margin: 0.65rem 0; }
.legal-page .updated { font-size: 0.98rem; color: #46646a; margin-block-start: 0; }
.legal-page ul { padding-inline-start: 1.5rem; }
.legal-page li + li { margin-block-start: 0.6rem; }

.language-picker { position: relative; }
.language-picker summary,
.language-picker nav {
  border: 1px solid #8aaeb5;
  border-radius: 0.5rem;
}
.language-picker summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-block-size: 44px;
  padding: 0.4rem 0.75rem;
  background: #ffffff;
  cursor: pointer;
  list-style: none;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after {
  content: "";
  border-inline: 0.3rem solid transparent;
  border-block-start: 0.35rem solid currentColor;
}
.language-picker[open] summary::after { transform: rotate(180deg); }
.language-picker nav {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0;
  top: calc(100% + 0.4rem);
  inline-size: max-content;
  max-inline-size: 88vw;
  padding: 0.375rem;
  background: #ffffff;
  box-shadow: 0 0.4rem 1rem #103e491a;
}
.language-picker nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
}
.language-picker nav a:hover,
.language-picker nav a[aria-current] { background: #e1f2f2; }
.language-picker nav a[aria-current] { font-weight: 700; }

@media print {
  .policy-header { display: none; }
}

@media (max-width: 54rem) {
  .hero,
  .language-spotlight,
  .download-banner {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    max-inline-size: 19rem;
    margin-block-start: 0.5rem;
  }

  .hero-icon-badge {
    inset-inline-start: -0.5rem;
    bottom: -0.75rem;
  }
}

@media (max-width: 44rem) {
  .hero { gap: 1.5rem; padding-block: 1.75rem 2.5rem; }
  .icon-frame { grid-row: 1; inline-size: 8.5rem; justify-self: start; }
  .badges img { inline-size: min(42%, 9.5rem); }
  .store-card { padding: 0.75rem 0.85rem; }
  .store-qr { inline-size: 4.75rem; block-size: 4.75rem; }
  .bento-pair { grid-template-columns: 1fr; }
}
