:root {
  --primary-purple: #432969;
  --deep-purple: #2e1a4f;
  --light-purple-bg: #ede6fb;
  --purple-stroke: #bba9f5;
  --purple-selection: #d4c9f6;
  --action-purple-gray: #dcd7f7;
  --gold: #e4c161;
  --gold-cta: #f0c84b;
  --soft-gold: #fff5c0;
  --soft-white: #f5f5f5;
  --white: #ffffff;
  --text: #212121;
  --muted: #5e526c;
  --grid-green: #5f8f4e;
  --grid-orange: #ffc680;
  --grid-gray: #787c7e;
  --shadow-card: 0 9px 18px rgba(67, 41, 105, 0.18);
  --shadow-soft: 0 5px 12px rgba(67, 41, 105, 0.16);
  --radius-card: 10px;
  --radius-small: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--light-purple-bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.language-gate[hidden],
.flag-menu[hidden] {
  display: none;
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--light-purple-bg);
}

.language-gate__panel {
  display: grid;
  justify-items: center;
  gap: 26px;
  width: min(360px, 100%);
}

.language-gate__icon {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.language-gate__options {
  display: grid;
  gap: 10px;
  width: min(320px, 100%);
}

.language-gate__option {
  display: grid;
  grid-template-columns: 1fr 58px;
  align-items: center;
  min-height: 58px;
  padding: 8px 22px;
  color: var(--text);
  background: var(--purple-selection);
  border: 2px solid transparent;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-weight: 950;
}

.language-gate__option:hover,
.language-gate__option:focus-visible,
.language-gate__option.is-active {
  background: var(--soft-gold);
  border-color: var(--gold);
  outline: none;
}

.language-gate__option img {
  width: 58px;
  height: 38px;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(237, 230, 251, 0.94);
  border-bottom: 1px solid rgba(187, 169, 245, 0.7);
  backdrop-filter: blur(14px);
}

.site-header .back-link {
  min-height: 38px;
  margin-bottom: 0;
  padding: 8px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-purple);
  font-weight: 900;
  text-decoration: none;
}

.brand__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.brand__text {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.brand--tagline {
  min-width: 0;
}

.brand--tagline .brand__text {
  font-size: clamp(1.05rem, 2.4vw, 1.7rem);
  line-height: 1.12;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.language-menu {
  position: relative;
}

.flag-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  min-width: 64px;
  padding: 6px 9px;
  color: var(--primary-purple);
  background: var(--action-purple-gray);
  border: 1px solid var(--purple-stroke);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-weight: 900;
}

.flag-toggle img {
  width: 34px;
  height: 23px;
  object-fit: cover;
}

.flag-toggle__chevron {
  font-size: 0.82rem;
}

.flag-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  min-width: 118px;
  padding: 8px;
  background: var(--soft-white);
  border: 1px solid var(--purple-stroke);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.flag-menu button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 7px;
  color: var(--primary-purple);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.flag-menu button:hover,
.flag-menu button:focus-visible,
.flag-menu button.is-active {
  background: var(--soft-gold);
  outline: none;
}

.flag-menu img {
  width: 34px;
  height: 23px;
  object-fit: cover;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  color: var(--primary-purple);
  background: var(--gold-cta);
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
  width: min(1040px, calc(100% - 36px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(32px, 6vh, 64px) 0;
}

.hero-copy {
  color: var(--primary-purple);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-purple);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.55rem, 5.4vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy__lead {
  max-width: 39ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  text-align: justify;
}

.phone-scene {
  position: relative;
  justify-self: stretch;
  min-width: 0;
  padding-top: 62px;
}

.hero-mascot {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 2;
  width: min(222px, 48vw);
  transform: translateX(-50%);
  animation: mascot-float 4.4s ease-in-out infinite;
}

.daily-card {
  position: relative;
  z-index: 1;
  padding: 90px clamp(18px, 3vw, 26px) clamp(18px, 3vw, 24px);
  background: var(--soft-white);
  border: 3px solid var(--gold);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.daily-card__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 22px);
  margin-bottom: 16px;
  text-align: left;
}

.daily-card__icon {
  width: clamp(54px, 8vw, 70px);
  height: clamp(54px, 8vw, 70px);
  object-fit: contain;
}

.daily-card h2 {
  margin-bottom: 2px;
  color: var(--primary-purple);
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  font-weight: 950;
  line-height: 1.04;
  text-transform: uppercase;
}

.daily-card p {
  margin-bottom: 0;
  color: var(--primary-purple);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  width: min(100%, 236px);
  margin: 0 auto 16px;
}

.tile,
.rule-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-width: 0;
  color: var(--primary-purple);
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius-small);
  font-weight: 950;
  line-height: 1;
}

.tile {
  font-size: clamp(0.95rem, 2vw, 1.24rem);
  transform-origin: center;
}

.tile--green,
.tile--orange,
.tile--gray {
  border-color: var(--gold);
}

.tile--green {
  --tile-final-bg: var(--grid-green);
  --tile-final-color: var(--white);
}

.tile--orange {
  --tile-final-bg: var(--grid-orange);
  --tile-final-color: var(--primary-purple);
}

.tile--gray {
  --tile-final-bg: var(--grid-gray);
  --tile-final-color: var(--white);
}

.tile--green:not(.tile--revealing),
.tile--orange:not(.tile--revealing),
.tile--gray:not(.tile--revealing) {
  color: var(--tile-final-color);
  background: var(--tile-final-bg);
}

.tile.tile--revealing {
  color: transparent;
  background: var(--white);
  animation-name: tile-type, tile-flip;
  animation-duration: 160ms, 420ms;
  animation-timing-function: ease-out, cubic-bezier(0.2, 0.9, 0.28, 1.2);
  animation-fill-mode: both, forwards;
  animation-delay: var(--type-delay, 0ms), var(--tile-delay, 0ms);
}

.mock-keyboard {
  --key-size: minmax(0, 25px);
  --action-key-size: minmax(54px, 1.85fr);
  display: grid;
  gap: 5px;
  width: min(100%, 340px);
  margin: 0 auto 18px;
}

.mock-keyboard__row {
  display: grid;
  grid-auto-rows: 31px;
  justify-content: center;
  gap: 4px;
}

.mock-keyboard__row--1 {
  grid-template-columns: repeat(10, var(--key-size));
}

.mock-keyboard__row--2 {
  grid-template-columns: repeat(10, var(--key-size));
  padding: 0 10px;
}

.mock-keyboard__row--3 {
  grid-template-columns: var(--action-key-size) repeat(7, var(--key-size)) var(--action-key-size);
}

.mock-key {
  display: grid;
  place-items: center;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 3px;
  color: var(--primary-purple);
  background: #feea98;
  border: 1px solid #efc02e;
  border-radius: 7px;
  font-size: clamp(0.52rem, 1.75vw, 0.64rem);
  font-weight: 900;
  transform-origin: center;
}

.mock-key--green,
.mock-key--gray {
  --key-final-color: var(--white);
}

.mock-key--green:not(.mock-key--revealing),
.mock-key--gray:not(.mock-key--revealing) {
  color: var(--key-final-color);
  background: var(--key-final-bg);
  border-color: var(--key-final-border);
}

.mock-key--green {
  --key-final-bg: var(--grid-green);
  --key-final-border: #4f7d41;
}

.mock-key--gray {
  --key-final-bg: var(--grid-gray);
  --key-final-border: #63686a;
}

.mock-key.mock-key--revealing {
  color: var(--primary-purple);
  background: #feea98;
  border-color: #efc02e;
  animation: key-flip 360ms cubic-bezier(0.2, 0.9, 0.28, 1.2) forwards;
  animation-delay: var(--key-delay, 0ms);
}

.mock-key--action {
  background: var(--gold-cta);
  font-size: clamp(0.46rem, 1.55vw, 0.58rem);
  text-transform: uppercase;
}

.daily-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 320px);
  min-height: 48px;
  margin: 0 auto;
  padding: 10px 18px;
  color: var(--primary-purple);
  background: var(--gold-cta);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  cursor: default;
  font-size: clamp(0.86rem, 3.4vw, 1rem);
  font-weight: 950;
  line-height: 1.1;
  opacity: 1;
  white-space: nowrap;
}

.daily-cta::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: var(--primary-purple);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(67, 41, 105, 0.34);
  animation: cta-pulse 1.8s ease-out infinite;
}

.section {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 78px) 0;
}

.product-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
}

.languages-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
}

.product-copy {
  max-width: 600px;
}

.product-copy p:not(.eyebrow) {
  margin-bottom: 0;
}

.product-highlights {
  display: grid;
  gap: 10px;
}

.product-highlight {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 14px 16px;
  background: var(--soft-white);
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.product-highlight--daily {
  border-color: var(--gold);
}

.product-highlight--modes {
  color: var(--white);
  background: var(--primary-purple);
}

.product-highlight img,
.product-highlight__number {
  justify-self: center;
  width: 52px;
  height: 52px;
}

.product-highlight img {
  object-fit: contain;
}

.product-highlight--modes img {
  filter: brightness(0) invert(1);
}

.product-highlight__number {
  display: grid;
  place-items: center;
  color: var(--primary-purple);
  background: var(--gold-cta);
  border-radius: 14px;
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
}

.product-highlight strong {
  display: block;
  margin-bottom: 3px;
  color: var(--primary-purple);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.product-highlight__body {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.25;
}

.product-highlight--modes strong,
.product-highlight--modes .product-highlight__body {
  color: var(--white);
}

.section h2 {
  margin-bottom: 10px;
  color: var(--primary-purple);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.section p,
.rule-card p,
.mode-card p,
.mode-detail p,
.feature-card p,
.site-footer span {
  color: var(--muted);
  font-size: 1.04rem;
  text-align: justify;
}

.section-heading {
  max-width: 670px;
  margin-bottom: 24px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rule-card,
.mode-card {
  background: var(--soft-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.rule-card {
  padding: 20px;
}

.rule-tile {
  width: 58px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.rule-card h3,
.mode-card h3 {
  margin-bottom: 6px;
  color: var(--primary-purple);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.rule-card p,
.mode-card p {
  margin-bottom: 0;
}

.mode-card p {
  text-align: left;
}

.mode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mode-item {
  min-width: 0;
}

.mode-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 132px;
  padding: 20px 50px 20px 20px;
  color: inherit;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mode-card:hover,
.mode-card:focus-visible,
.mode-card.is-open {
  box-shadow: 0 14px 24px rgba(67, 41, 105, 0.18);
  transform: translateY(-2px);
}

.mode-card:focus-visible {
  outline: 3px solid rgba(240, 200, 75, 0.75);
  outline-offset: 3px;
}

.mode-card img,
.mode-card__symbol {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
}

.mode-card__symbol {
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.mode-card__chevron {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 14px;
  height: 14px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  opacity: 0.82;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.mode-card.is-open .mode-card__chevron {
  transform: translateY(4px) rotate(225deg);
}

.mode-card--daily {
  border: 2px solid var(--gold);
}

.mode-card--infinite {
  color: var(--white);
  background: var(--primary-purple);
}

.mode-card--infinite h3,
.mode-card--infinite p {
  color: var(--white);
}

.mode-detail {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid var(--purple-stroke);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  animation: detail-open 180ms ease both;
}

.mode-detail[hidden] {
  display: none;
}

.mode-detail p {
  margin-bottom: 10px;
}

.mode-detail ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: justify;
}

.mode-detail li {
  text-align: justify;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-width: 0;
  padding: 20px;
  background: var(--soft-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.feature-card img {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin-bottom: 6px;
  color: var(--primary-purple);
  font-size: 1.18rem;
  text-transform: uppercase;
}

.language-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.language-badges span {
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 88px;
  min-height: 104px;
  padding: 12px;
  color: var(--primary-purple);
  background: var(--purple-selection);
  border: 2px solid var(--purple-stroke);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  font-weight: 950;
}

.language-badges i {
  width: 18px;
}

.language-badges img {
  width: 58px;
  height: 38px;
  object-fit: cover;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 52px);
  color: var(--white);
  background: var(--primary-purple);
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: none;
}

.privacy-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--light-purple-bg);
}

.privacy-main {
  flex: 1;
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 9px 16px;
  color: var(--primary-purple);
  background: var(--gold-cta);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-weight: 900;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: none;
}

.privacy-card {
  padding: clamp(24px, 5vw, 48px);
  color: var(--text);
  background: var(--soft-white);
  border: 2px solid var(--gold);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.privacy-card h1 {
  margin: 0 0 6px;
  color: var(--primary-purple);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.privacy-card h2 {
  margin: 32px 0 10px;
  color: var(--primary-purple);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.16;
}

.privacy-card h3 {
  margin: 20px 0 8px;
  color: var(--deep-purple);
  font-size: 1.05rem;
}

.privacy-card p,
.privacy-card li {
  text-align: justify;
}

.privacy-card p {
  margin: 0 0 13px;
}

.privacy-card ul {
  margin: 0 0 16px 22px;
  padding: 0;
}

.privacy-card li {
  margin: 0 0 9px;
}

.privacy-card a {
  color: var(--primary-purple);
  font-weight: 800;
  text-decoration: none;
}

.privacy-card a:hover,
.privacy-card a:focus-visible {
  text-decoration: none;
}

.privacy-card .meta {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 750;
}

.legal-warning {
  padding: 12px 14px;
  color: var(--primary-purple);
  background: var(--soft-gold);
  border: 2px solid var(--gold);
  border-radius: 8px;
  font-weight: 750;
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translate(-50%, 0px) rotate(-1deg);
    filter: drop-shadow(0 10px 12px rgba(67, 41, 105, 0.32));
  }

  50% {
    transform: translate(-50%, -10px) rotate(1.2deg);
    filter: drop-shadow(0 22px 26px rgba(67, 41, 105, 0.13));
  }
}

@keyframes tile-type {
  0% {
    color: transparent;
    transform: scale(0.92);
  }

  70% {
    color: var(--primary-purple);
    transform: scale(1.08);
  }

  100% {
    color: var(--primary-purple);
    transform: scale(1);
  }
}

@keyframes tile-flip {
  0% {
    color: var(--primary-purple);
    background: var(--white);
    transform: rotateX(0deg) scale(0.96);
  }

  49% {
    color: var(--primary-purple);
    background: var(--white);
    transform: rotateX(88deg) scale(1.04);
  }

  50% {
    color: var(--tile-final-color);
    background: var(--tile-final-bg);
    transform: rotateX(88deg) scale(1.04);
  }

  100% {
    color: var(--tile-final-color);
    background: var(--tile-final-bg);
    transform: rotateX(0deg) scale(1);
  }
}

@keyframes key-flip {
  0% {
    color: var(--primary-purple);
    background: #feea98;
    border-color: #efc02e;
    transform: rotateX(0deg) scale(0.96);
  }

  49% {
    color: var(--primary-purple);
    background: #feea98;
    border-color: #efc02e;
    transform: rotateX(88deg) scale(1.04);
  }

  50% {
    color: var(--key-final-color);
    background: var(--key-final-bg);
    border-color: var(--key-final-border);
    transform: rotateX(88deg) scale(1.04);
  }

  100% {
    color: var(--key-final-color);
    background: var(--key-final-bg);
    border-color: var(--key-final-border);
    transform: rotateX(0deg) scale(1);
  }
}

@keyframes cta-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(67, 41, 105, 0.34);
  }

  72%,
  100% {
    box-shadow: 0 0 0 9px rgba(67, 41, 105, 0);
  }
}

@keyframes detail-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-mascot,
  .tile--revealing,
  .mock-key--revealing,
  .mode-detail,
  .daily-cta::before {
    animation: none;
  }

  .tile--revealing {
    color: var(--tile-final-color);
    background: var(--tile-final-bg);
  }

  .mock-key--revealing {
    color: var(--key-final-color);
    background: var(--key-final-bg);
    border-color: var(--key-final-border);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    width: min(680px, calc(100% - 36px));
    min-height: 0;
    padding-top: 34px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .phone-scene {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .product-section,
  .languages-section {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 700px) {
  .site-header {
    position: sticky;
    min-height: 66px;
    padding: 10px 16px;
  }

  .brand__icon {
    width: 42px;
    height: 42px;
  }

  .brand__text {
    font-size: 1.55rem;
  }

  .brand--tagline .brand__text {
    font-size: 1.05rem;
  }

  .header-actions {
    gap: 8px;
  }

  .flag-toggle {
    min-height: 38px;
    padding: 5px 8px;
  }

  .flag-toggle img {
    width: 30px;
    height: 20px;
  }

  .store-link {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .hero {
    gap: 18px;
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.15rem);
  }

  .phone-scene {
    padding-top: 56px;
  }

  .hero-mascot {
    width: min(184px, 50vw);
  }

  .daily-card {
    padding: 82px 16px 18px;
  }

  .daily-card__heading {
    gap: 12px;
  }

  .daily-card h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .letter-grid {
    width: min(100%, 228px);
  }

  .mock-keyboard {
    --key-size: minmax(0, 23px);
    --action-key-size: minmax(48px, 1.85fr);
    width: min(100%, 320px);
  }

  .mock-keyboard__row {
    grid-auto-rows: 29px;
  }

  .mock-key {
    min-width: 0;
    padding: 0 3px;
    font-size: 0.58rem;
  }

  .mock-key--action {
    font-size: 0.52rem;
  }

  .rules-grid,
  .mode-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: auto;
    padding: 16px 46px 16px 16px;
    border-radius: 8px;
  }

  .rule-card {
    border-radius: 8px;
  }

  .feature-card {
    border-radius: 8px;
  }

  .language-badges span {
    min-width: 70px;
    min-height: 78px;
    padding: 8px 6px;
    font-size: 0.86rem;
  }

  .language-badges i {
    width: 10px;
  }

  .language-badges img {
    width: 42px;
    height: 28px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-main {
    width: min(100% - 28px, 960px);
    padding: 24px 0 36px;
  }

  .privacy-card {
    padding: 22px 18px;
  }
}

@media (max-width: 430px) {
  .brand__text {
    display: none;
  }

  .brand--tagline .brand__text {
    display: block;
    font-size: 0.92rem;
  }

  .site-header {
    gap: 10px;
  }

  .flag-toggle span[data-selected-code] {
    display: none;
  }

  .store-link {
    padding: 8px 11px;
  }

  .daily-card__heading {
    flex-direction: column;
    text-align: center;
  }

  .daily-card__icon {
    width: 58px;
    height: 58px;
  }

  .mock-keyboard {
    --key-size: minmax(0, 23px);
    --action-key-size: minmax(42px, 1.8fr);
    gap: 4px;
  }

  .mock-keyboard__row {
    grid-auto-rows: 28px;
    gap: 3px;
  }

  .mock-key {
    min-width: 0;
    padding: 0 2px;
  }

  .mock-key--action {
    font-size: 0.48rem;
  }

  .mode-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px 46px 16px 16px;
  }

  .mode-card img,
  .mode-card__symbol {
    justify-self: center;
    width: 54px;
    height: 54px;
  }

  .mode-card h3 {
    overflow-wrap: normal;
    font-size: clamp(0.98rem, 5vw, 1.2rem);
    line-height: 1.05;
  }

  .mode-card p {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .mode-detail {
    padding: 18px 14px 18px;
  }

  .product-highlight {
    grid-template-columns: 54px 1fr;
    gap: 12px;
    min-height: 78px;
    padding: 12px;
  }

  .product-highlight img,
  .product-highlight__number {
    width: 46px;
    height: 46px;
  }

  .product-highlight strong {
    font-size: 0.96rem;
  }

  .product-highlight__body {
    font-size: 0.92rem;
  }

  .feature-card {
    padding: 16px;
  }
}

@media (max-width: 360px) {
  .mock-keyboard {
    --key-size: minmax(0, 22px);
    --action-key-size: minmax(46px, 1.9fr);
    width: min(100%, 300px);
  }

  .mock-key {
    font-size: 0.5rem;
  }

  .mock-key--action {
    font-size: 0.44rem;
  }

  .daily-cta {
    gap: 8px;
    padding-inline: 12px;
    font-size: 0.76rem;
  }

  .daily-cta::before {
    width: 8px;
    height: 8px;
  }

  .mode-card {
    grid-template-columns: 56px 1fr;
    gap: 10px;
    padding: 14px 42px 14px 14px;
  }

  .mode-card img,
  .mode-card__symbol {
    width: 48px;
    height: 48px;
  }

  .mode-card h3 {
    font-size: 0.94rem;
  }

}
