@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage-grotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf7ef;
  --panel: #fffdf8;
  --ink: #22231e;
  --muted: #5d5c51;
  --line: #ded9cc;
  --lime: #ddec77;
  --red: #ac432d;
  --forest: #273c32;
  --heading: "Bricolage Grotesque", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #4b76e8; outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 2rem; }
:lang(zh-Hans) { letter-spacing: normal; }

.shell { width: min(100% - 6rem, 77rem); margin-inline: auto; }
.icon { flex: none; width: 1.15em; height: 1.15em; vertical-align: middle; }

.skip-link {
  position: absolute;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  transform: translateY(-150%);
  background: white;
  padding: .6rem 1rem;
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 2.65rem; height: 2.65rem; border-radius: .78rem; box-shadow: 0 2px 8px #3039692b; }
.brand strong { display: block; font: 800 1.52rem/.98 var(--heading); letter-spacing: -.065em; }
.brand strong span { color: var(--red); }
.brand small {
  display: block;
  margin-top: .26rem;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .085em;
}
.main-nav, .header-actions, .footer-inner nav { display: flex; align-items: center; gap: clamp(.95rem, 2.65vw, 2.55rem); }
.main-nav a, .language, .footer-inner nav a { font-size: .92rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .language:hover, .footer-inner nav a:hover { color: var(--red); }
.header-actions { gap: clamp(.7rem, 2vw, 1.5rem); }
.language { display: inline-flex; align-items: center; gap: .36rem; white-space: nowrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  padding: .65rem 1.2rem;
  font-size: .97rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, box-shadow .16s ease;
}
.button-lime { background: var(--lime); color: var(--ink); border-color: #b5c650; box-shadow: 0 2px 0 #b4be65; }
.button-lime:hover { background: #e8f58b; }
.button-outline { border-color: #c6c0b2; color: var(--ink); }
.button-outline:hover { background: #f1ebdd; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #43443b; }
.button-small { min-height: 2.6rem; padding-inline: 1rem; font-size: .88rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(1.6rem, 3.9vw, 4.2rem);
  padding-block: clamp(2.75rem, 5.35vw, 5.1rem) clamp(2.4rem, 4.4vw, 4.05rem);
}
.hero-copy { min-width: 0; }
.eyebrow {
  color: var(--red);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.3rem; }
.hero-kicker span { width: .53rem; height: .53rem; background: #c25037; border-radius: 50%; }
.hero h1 {
  font-size: clamp(3.1rem, 5.75vw, 5.4rem);
  font-weight: 800;
  line-height: .97;
  letter-spacing: -.062em;
}
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em {
  margin-top: .33rem;
  color: var(--red);
  font-size: .85em;
  font-style: normal;
  letter-spacing: -.057em;
}
:lang(zh-Hans) .hero h1 {
  font-size: clamp(2.5rem, 4.52vw, 4.14rem);
  line-height: 1.13;
  letter-spacing: -.065em;
}
:lang(zh-Hans) .hero h1 em { font-size: .91em; }
.hero-lede {
  max-width: 31rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.33vw, 1.18rem);
  line-height: 1.55;
}
.hero-actions, .store-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.55rem; }

.hero-art {
  position: relative;
  isolation: isolate;
  align-self: center;
  aspect-ratio: 1.29;
  min-width: 0;
  border: 1px solid #8c5630;
  border-radius: 1.55rem;
  background: #bc714e;
  box-shadow: 0 14px 30px -17px #512c3280;
}
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: 45% center;
}
.hero-art::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(transparent 54%, #160c06a1);
  content: "";
}
.set-mark { position: absolute; z-index: 2; inset: 1.05rem; color: #fff8e1d9; pointer-events: none; }
.set-mark i { position: absolute; width: .9rem; height: .9rem; border: solid currentColor; }
.set-mark i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.set-mark i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.set-mark i:nth-child(3) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.set-mark i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero-phone {
  position: absolute;
  z-index: 3;
  top: 3.8%;
  left: 46%;
  width: 33%;
  height: auto;
  border-radius: 17% / 8%;
  transform: rotate(8deg);
  box-shadow: .5rem 1.15rem 2rem #2b160e88;
}
.hero-cast {
  position: absolute;
  z-index: 4;
  left: 10%;
  bottom: 9%;
  width: 29%;
  height: auto;
  transform: rotate(-9deg);
  filter: drop-shadow(0 .42rem .3rem #1e18095e);
}
.hero-bubble {
  position: absolute;
  z-index: 4;
  left: 8%;
  bottom: 46%;
  padding: .54em .82em;
  border: 1px solid #4b4737;
  border-radius: .92em .92em .92em .24em;
  background: #fffaf0;
  box-shadow: 0 3px 0 #3324166b;
  transform: rotate(-8deg);
  font: 800 clamp(1rem, 2.05vw, 1.82rem)/1.05 var(--body);
  white-space: nowrap;
}
.hero-art figcaption {
  position: absolute;
  z-index: 4;
  left: 1.65rem;
  bottom: 1.24rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  color: #fff8e7;
  font-size: .76rem;
  font-weight: 800;
  text-shadow: 0 1px 5px #190a06;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-around;
  gap: .75rem;
  margin: 0;
  padding: 1.05rem .5rem;
  border-block: 1px solid var(--line);
  list-style: none;
}
.highlights li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  font-size: .91rem;
  font-weight: 780;
}
.highlights li + li { border-left: 1px solid var(--line); }
.highlights .icon { width: 1.3rem; height: 1.3rem; color: var(--red); }

.section { margin-top: clamp(4.25rem, 8vw, 7.25rem); }
.section-head { margin: 0 auto 2rem; text-align: center; }
.section h2, .download-section h2 {
  margin-top: .46rem;
  font-size: clamp(2.45rem, 4.2vw, 4.4rem);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.065em;
  text-wrap: balance;
}
:lang(zh-Hans) .section h2, :lang(zh-Hans) .download-section h2 { line-height: 1.19; font-size: clamp(2rem, 3.45vw, 3.3rem); }
.section-head > p:last-child { max-width: 38rem; margin: .95rem auto 0; color: var(--muted); font-size: 1.08rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.12rem; }
.feature-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1.13rem; background: var(--panel); }
.feature-art {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  height: clamp(11rem, 16vw, 15rem);
  isolation: isolate;
}
.feature-art::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(#34281b22 .8px, transparent .9px) 0 0 / 11px 11px;
  mask-image: linear-gradient(145deg, #0009, transparent 82%);
  content: "";
}
.feature-art.peach { background: #f7d6c2; }
.feature-art.mint { background: #dce9cb; }
.feature-art.lavender { background: #e8e0f5; }
.feature-art span {
  position: absolute;
  z-index: 1;
  top: .9rem;
  left: .85rem;
  border: 1px solid #54422c30;
  border-radius: 2rem;
  padding: .24rem .65rem;
  background: #fffaf0db;
  color: #39372f;
  font-size: .79rem;
  font-weight: 750;
}
.feature-art img {
  width: 62%;
  height: 78%;
  max-height: 12rem;
  margin: 1rem 0 0 7%;
  object-fit: contain;
  filter: drop-shadow(0 .48rem .55rem #39261926);
}
.feature-text { padding: 1.25rem 1.25rem 1.55rem; }
.feature-text h3, .extra h3 { font-size: clamp(1.31rem, 2.1vw, 1.65rem); line-height: 1.16; letter-spacing: -.035em; }
.feature-text p, .extra p { margin-top: .55rem; color: var(--muted); line-height: 1.55; }
.extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.12rem; margin-top: 1.12rem; }
.extra {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1.13rem;
}
.extra img { width: clamp(3.5rem, 7vw, 6rem); height: auto; flex: none; }

.phrase-section {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  gap: clamp(1.6rem, 5vw, 5.5rem);
  align-items: center;
  border-radius: 1.4rem;
  padding: clamp(1.4rem, 5.5vw, 4.7rem);
  background: var(--forest);
  color: #fffaf0;
}
.phrase-section .eyebrow, .download-panel .eyebrow { color: var(--lime); }
.phrase-copy > p:last-child { max-width: 23rem; margin-top: .95rem; color: #e4e9da; font-size: 1.08rem; }
.phrase-demo { display: grid; gap: .8rem; min-width: 0; }
.phrase-tabs { display: flex; flex-wrap: wrap; gap: .45rem; }
.phrase-tabs button {
  min-height: 2.65rem;
  border: 1px solid #acb9a6;
  border-radius: 5rem;
  padding: .35rem .75rem;
  background: transparent;
  color: #f6f7ed;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 750;
}
.phrase-tabs button:hover { background: #405748; }
.phrase-tabs button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.phrase-results { display: grid; gap: .6rem; }
.phrase-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  min-height: 8.8rem;
  border-radius: .8rem;
  padding: 1.15rem 1.27rem;
  background: #fffaf0;
  color: var(--ink);
}
.korean { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 780; line-height: 1.19; letter-spacing: -.06em; }
.romanization { color: var(--muted); margin-top: .23rem; font-size: .91rem; }
.meaning { margin-top: .32rem; font-weight: 750; }
.listen-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #c7c9a5;
  border-radius: 50%;
  background: #ebf0cb;
  color: var(--forest);
  cursor: pointer;
}
.listen-button:hover { background: var(--lime); }

.faq-section { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 2rem; }
.faq-section h2, .phrase-section h2, .download-section h2 { text-wrap: initial; }
.faq-items { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .97rem 0;
  cursor: pointer;
  font-weight: 780;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red); font-size: 1.48rem; font-weight: 500; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { max-width: 39rem; padding: 0 2rem 1.1rem 0; color: var(--muted); }

.download-section { margin-block: clamp(4rem, 7vw, 6rem); }
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 2rem;
  align-items: center;
  border-radius: 1.35rem;
  padding: clamp(1.5rem, 5vw, 4.2rem);
  background: #282923;
  color: #fffaf0;
}
.download-panel h2 { font-size: clamp(2.55rem, 5.5vw, 5.2rem); }
.download-panel h2 + p { margin-top: .62rem; color: #efecdd; font-size: 1.08rem; }
.download-actions { justify-self: end; max-width: 20rem; }
.store-status { margin-bottom: .8rem; color: #efecdd; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { flex-wrap: wrap; padding-block: 1.25rem; }
.footer-inner nav { flex-wrap: wrap; gap: .55rem 1.45rem; }
.footer-inner small { color: var(--muted); font-size: .85rem; }

.legal-shell { max-width: 55rem; padding-block: 2rem clamp(4rem, 8vw, 7rem); }
.legal-nav { display: flex; gap: .65rem 1.25rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.legal-nav a { color: var(--muted); font-size: .93rem; font-weight: 720; text-decoration: none; }
.legal-nav [aria-current], .legal-nav a:hover { color: var(--red); text-decoration: underline; text-underline-offset: .18rem; }
.legal-article {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.18rem, 5.25vw, 4rem);
  background: var(--panel);
}
.legal-article h1 { font-size: clamp(2.45rem, 6vw, 4.7rem); line-height: 1; letter-spacing: -.065em; }
.legal-date { margin-block: .65rem 1.25rem; color: var(--muted); font-size: .9rem; }
.legal-intro { font-size: 1.13rem; }
.legal-article section { margin-top: 1.75rem; }
.legal-article h2 { font-size: 1.36rem; line-height: 1.2; }
.legal-article section p { margin-top: .56rem; }
.legal-article ul { padding-left: 1.25rem; margin: .55rem 0 0; }
.legal-article li + li { margin-top: .5rem; }
.legal-article .legal-resources { margin-top: 1.25rem; }
.legal-email { display: inline-block; margin-top: 1rem; }
.legal-article a:not(.button) { color: var(--red); text-underline-offset: .16em; }
.legal-article h1 + p + .button { margin-top: .9rem; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 3.2rem); }
  .hero { gap: 1.65rem; }
  .hero h1 { font-size: clamp(3rem, 6vw, 4.65rem); }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.35rem; gap: .65rem; }
  .header-actions .button { white-space: nowrap; min-height: 2.75rem; padding-inline: .68rem; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 1.85rem; }
  .hero h1 { font-size: clamp(3.05rem, 10.6vw, 5.2rem); }
  :lang(zh-Hans) .hero h1 { font-size: clamp(2.48rem, 8.65vw, 4.25rem); }
  .hero-art { max-width: 36rem; width: 100%; margin-inline: auto; }
  .hero-bubble { font-size: clamp(1.03rem, 4.1vw, 1.75rem); }
  .feature-grid { gap: .75rem; }
  .feature-text { padding: .95rem .85rem 1.1rem; }
  .feature-art { height: 10rem; }
  .feature-art span { left: .55rem; top: .6rem; }
  .extra { padding: .85rem; gap: .6rem; }
  .faq-section { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 560px) {
  .hero-art { border-radius: 1rem; }
  .hero-kicker { margin-bottom: 1rem; }
  .hero-lede { margin-top: 1.05rem; }
  .hero-actions { margin-top: 1.2rem; }
  .hero-art figcaption { left: 1.1rem; bottom: .83rem; font-size: .64rem; }
  .set-mark { inset: .63rem; }
  .highlights { gap: .2rem; padding-inline: 0; }
  .highlights li { flex-direction: column; gap: .36rem; text-align: center; font-size: .77rem; }
  .highlights .icon { width: 1.13rem; height: 1.13rem; }
  .feature-grid, .extra-grid, .phrase-section, .download-panel { grid-template-columns: 1fr; }
  .feature-art { height: 11.5rem; }
  .feature-text { padding: 1rem 1.12rem 1.2rem; }
  .extra-grid { gap: .68rem; }
  .download-panel { gap: 1.2rem; }
  .download-actions { justify-self: start; }
  .footer-inner { gap: 1rem; }
  .footer-inner nav { flex-basis: 100%; }
}

@media (max-width: 360px) {
  .header-inner { gap: .45rem; }
  .header-actions { gap: .45rem; }
  .brand { gap: .4rem; }
  .header-inner .brand small { display: none; }
  .brand img { width: 2.25rem; height: 2.25rem; }
  .button-small { padding-inline: .58rem; }
  .header-actions .language .icon { display: none; }
  .button { padding-inline: .8rem; }
  .hero h1 { font-size: clamp(2.55rem, 12.4vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
