/* Production homepage enhancements layered after the original token baseline. */
:root {
  --maxw: 1160px;
}

body {
  background: var(--surface);
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  transform: translateY(calc(-100% - 24px));
  border-radius: 999px;
  background: #fff;
  color: #4322b8;
  padding: 10px 16px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.hero {
  padding: 0 0 clamp(72px, 10vw, 128px);
}
.topbar-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--maxw));
  margin: 0 auto;
  padding: 22px 0;
}
.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.brand-home img { width: 40px; height: 40px; }
.hero-nav { display: flex; align-items: center; gap: 22px; }
.hero-nav a {
  color: rgba(255,255,255,.92);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.hero-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.language-switcher { position: relative; color: inherit; }
.language-switcher summary {
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  list-style: none;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after {
  content: '▾';
  font-size: .76em;
  transition: transform .16s ease;
}
.language-switcher[open] summary::after { transform: rotate(180deg); }
.language-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(260px, 80vw);
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(16,14,26,.24);
  padding: 8px;
}
.language-options a {
  display: block;
  min-height: 42px;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.language-options a:hover,
.language-options a[aria-current="true"] { background: var(--grape-50); color: #4322b8; }
.hero-grid { padding-top: clamp(48px, 7vw, 82px); }
.hero h1 { max-width: 12ch; text-wrap: balance; }
.hero p.lede { max-width: 42ch; }
html:lang(ja),
html:lang(zh-Hans),
html:lang(ko) {
  line-break: strict;
  word-break: normal;
}
html:lang(ja),
html:lang(zh-Hans) {
  word-break: auto-phrase;
}
html:lang(ja) .eyebrow,
html:lang(zh-Hans) .eyebrow,
html:lang(ko) .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}
.hero-secondary {
  display: inline-block;
  margin-top: 20px;
  color: #fff;
  font-weight: 800;
  text-underline-offset: 5px;
}

.store-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.store-badge {
  display: inline-flex;
  min-height: 48px;
  border-radius: 9px;
  transition: transform .16s ease, filter .16s ease;
}
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.06); }
.store-badge:focus-visible,
.hero-nav a:focus-visible,
.brand-home:focus-visible,
.fnav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.store-badge img { display: block; width: auto; height: 52px; }
.availability-note {
  max-width: 52ch;
  margin-top: 14px;
  color: rgba(255,255,255,.9);
  font-size: .88rem;
  line-height: 1.55;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: rgba(255,255,255,.92);
  font-size: .9rem;
  font-weight: 700;
}
.hero-proof span::before { content: '✓'; margin-right: 7px; color: #a9ffe6; }

.phone { isolation: isolate; }
.phone::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 42%, rgba(53,180,255,.34), transparent 50%);
}
.phone-art {
  position: absolute;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 28px;
  background: rgba(255,255,255,.13);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  font-size: 2.15rem;
  backdrop-filter: blur(4px);
}
.phone-art:nth-child(1) { top: 15%; left: 14%; transform: rotate(-8deg); }
.phone-art:nth-child(2) { top: 34%; right: 10%; transform: rotate(7deg); }
.phone-art:nth-child(3) { top: 55%; left: 18%; transform: rotate(5deg); }
.phone-art:nth-child(4) { right: 17%; bottom: 12%; transform: rotate(-6deg); }

.section-head { max-width: 720px; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .lead { margin-inline: auto; }
.feature-card { position: relative; overflow: hidden; }
.feature-card::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  right: -60px;
  bottom: -70px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--grape) 10%, transparent);
}

.worlds { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.world { min-height: 148px; box-shadow: 0 12px 28px rgba(16,14,26,.09); }
.world .g { font-size: 2.2rem; }
.world b { font-size: 1rem; }
.world span { opacity: .86; }
.world[data-world-card="free"] { outline: 3px solid rgba(47,211,166,.45); outline-offset: 3px; }
.world-summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--grape-50);
  color: #4322b8;
  padding: 9px 14px;
  font-size: .9rem;
  font-weight: 800;
}

.how-band,
.privacy-band { background: var(--ink-50); border-block: 1px solid var(--border); }
.simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.simple-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
}
.simple-card p { margin-top: 9px; color: var(--text-2); }
.safety-note {
  margin-top: 28px;
  border-left: 4px solid var(--sunny);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--sunny) 11%, var(--surface));
  padding: 18px 20px;
  color: var(--text-2);
}

.faq-list { display: grid; gap: 14px; margin-top: 38px; }
.faq-list details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 0 20px;
  box-shadow: 0 1px 2px rgba(16,14,26,.06);
}
.faq-list summary {
  cursor: pointer;
  padding: 20px 34px 20px 0;
  font-weight: 800;
}
.faq-list details p { padding: 0 0 20px; color: var(--text-2); }

.download-band {
  padding: clamp(64px, 9vw, 96px) 0;
  background: linear-gradient(145deg,#25164f,#5230ce 55%,#6d4aff);
  color: #fff;
  text-align: center;
}
.download-band h2 { text-wrap: balance; }
.download-band p { max-width: 56ch; margin: 14px auto 0; color: rgba(255,255,255,.87); }
.download-band .store-badges { justify-content: center; }
.download-band .availability-note { margin-inline: auto; }

footer { background: var(--surface); }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-brand { max-width: 38ch; }
.footer-brand b { display: block; margin-bottom: 6px; color: var(--text); }
.fnav { justify-content: flex-end; }
.copyright { margin-top: 22px; font-size: .82rem; }

@media (max-width: 860px) {
  .hero-grid { padding-top: 42px; }
  .hero h1 { margin-inline: auto; }
  .store-badges, .hero-proof { justify-content: center; }
  .availability-note { margin-inline: auto; }
  .phone { margin-top: 8px; }
}

@media (max-width: 700px) {
  .topbar-shell { align-items: flex-start; }
  .hero-nav { display: none; }
  .language-switcher { margin-left: auto; }
  .hero h1 { max-width: 100%; text-wrap: balance; }
  .store-badge img { height: 47px; }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world { min-height: 138px; }
  .faq-list details { padding: 0 16px; }
  .faq-list summary { padding: 18px 28px 18px 0; font-size: .96rem; }
  .footer-grid { flex-direction: column; }
  .fnav { justify-content: flex-start; }
}

@media (max-width: 390px) {
  .worlds { grid-template-columns: 1fr; }
}
