:root {
  color-scheme: light;
  --page: #f5f3e8;
  --surface: #fffdf5;
  --ink: #1e2c22;
  --muted: #566353;
  --green: #3f6444;
  --sage: #bed7aa;
  --line: #d8dbcf;
  --rounded: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
button, p, h1, h2, h3, figure { margin: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; }
.closing :focus-visible { outline-color: var(--sage); }
::selection { background: #cbdcbe; color: var(--ink); }
.wrap { width: min(100% - 128px, 1296px); margin-inline: auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; transform: translateY(-160%); background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; padding-block: 28px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 15px; font: 750 45px/1 var(--rounded); letter-spacing: -1.8px; }
.brand img { width: 55px; height: 55px; border-radius: 14px; }
nav { display: flex; align-items: center; gap: 42px; }
.nav-link { font-size: 16px; color: var(--muted); transition: color .2s; padding-block: 12px; }
.nav-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 60px; padding: 16px 32px; border: 0; border-radius: 999px; background: var(--green); color: var(--surface); font-size: 18px; line-height: 1.2; font-weight: 600; transition: background .2s, transform .2s; }
.button:hover { background: #315437; transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 54px; font-size: 16px; padding: 16px 28px; }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 48px; padding-top: 22px; padding-bottom: 43px; }
.hero-copy { padding-bottom: 40px; }
h1 { font: 750 clamp(48px, 5.65vw, 84px)/1.1 var(--rounded); letter-spacing: -3.8px; }
h1 span { display: block; white-space: nowrap; }
h1 em { color: var(--green); font-style: normal; }
.hero-description { font-size: 21px; line-height: 1.55; color: var(--muted); max-width: 540px; margin-top: 32px; }
.hero-actions { display: flex; align-items: center; gap: 38px; margin-top: 36px; }
.store-badge { display: inline-block; flex-shrink: 0; border-radius: 12px; }
.store-badge img { height: 62px; width: auto; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 19px; line-height: 1.5; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; white-space: nowrap; }
.text-link:hover { color: var(--green); }
.hero-note { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 26px; }
.tree-preview { min-width: 0; scroll-margin-top: 28px; }
.tree-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 36px; padding: 33px 34px 30px; }
.tree-panel h2 { font-size: 21px; font-weight: 500; color: var(--muted); letter-spacing: -.3px; }
.tree-art { position: relative; aspect-ratio: 1; margin: 4px -16px 2px; }
.tree-art img { width: 100%; height: 100%; object-fit: contain; }
.tree-art img.is-changing { animation: tree-grow .38s ease-out; }
@keyframes tree-grow { from { opacity: .25; transform: translateY(5px) scale(.98); } to { opacity: 1; transform: none; } }
.growth-control { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; max-width: 500px; margin: 0 auto; }
.growth-control button { flex: 1; min-height: 44px; padding: 9px 8px; border: 0; border-radius: 999px; color: var(--ink); background: transparent; font-size: 15px; white-space: nowrap; transition: color .2s, background .2s; }
.growth-control button[aria-pressed="true"] { background: var(--green); color: var(--surface); }
.growth-control button:hover:not([aria-pressed="true"]) { background: #e9eddf; }
figcaption { font-size: 13px; text-align: center; color: var(--muted); margin-top: 18px; }
.promise { border-top: 1px solid var(--line); text-align: center; padding-block: 31px 36px; color: var(--muted); font-size: 21px; letter-spacing: -.4px; }
.learning { padding-top: 88px; padding-bottom: 104px; }
.learning-heading { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 80px; }
.learning h2 { font: 700 clamp(44px, 4.45vw, 64px)/1.07 var(--rounded); letter-spacing: -2.4px; }
.learning-heading > p { font-size: 22px; line-height: 1.4; color: var(--muted); }
.learning-content { display: grid; grid-template-columns: 1.08fr 1fr; gap: 80px; align-items: start; margin-top: 48px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 28px; padding-block: 25px 29px; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 21px; }
.steps li:last-child { border: 0; }
.step-number { font: 650 40px/1.15 var(--rounded); color: #778471; min-width: 57px; letter-spacing: -2px; }
.steps h3 { font: 650 25px/1.25 var(--rounded); letter-spacing: -.5px; margin-bottom: 10px; }
.steps p { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 450px; }
.practice-preview { scroll-margin-top: 40px; }
.practice-card { min-height: 423px; background: var(--surface); border-radius: 28px; padding: 38px 48px; text-align: center; box-shadow: 0 16px 35px #28312309; }
.practice-card h3 { font-size: 17px; color: var(--muted); font-weight: 400; }
.word-content { height: 248px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 3px; }
.korean-word { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 70px; font-weight: 650; letter-spacing: -3px; line-height: 1.2; }
.romanization { font-size: 28px; line-height: 1.3; color: var(--muted); margin-top: 10px; }
.meaning { font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--green); margin-top: 17px; animation: meaning-reveal .2s ease-out; }
@keyframes meaning-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.reveal-button { width: 100%; min-height: 55px; font-size: 17px; }
.preview-note { color: var(--muted); text-align: center; font-size: 13px; line-height: 1.5; margin-top: 18px; }
.preview-note br { display: none; }
.closing { background: var(--ink); color: var(--surface); }
.closing-copy { text-align: center; padding: 64px 0 46px; }
.closing h2 { font: 650 48px/1.2 var(--rounded); letter-spacing: -1.7px; }
.closing-copy > p { color: #cbd0c4; font-size: 21px; line-height: 1.5; margin-top: 14px; }
.button-sage { margin-top: 28px; background: var(--sage); color: var(--ink); }
.button-sage:hover { background: #d0e3c0; }
.closing-copy > .release-note { font-size: 13px; margin-top: 16px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 27px 0 32px; border-top: 1px solid #ffffff20; gap: 24px; }
.footer-brand { font-size: 32px; letter-spacing: -1px; }
.site-footer > span { font-size: 13px; color: #cbd0c4; }
dialog { width: min(430px, calc(100% - 40px)); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); color: var(--ink); padding: 40px 32px 32px; text-align: center; box-shadow: 0 24px 100px #10141133; }
dialog::backdrop { background: #10141177; backdrop-filter: blur(4px); }
.close-dialog { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.close-dialog:hover { background: var(--page); }
.dialog-app-icon { margin: 0 auto 20px; border-radius: 18px; }
dialog h2 { font: 650 28px/1.2 var(--rounded); letter-spacing: -.5px; }
dialog p { font-size: 17px; color: var(--muted); line-height: 1.55; margin-top: 14px; }
dialog .button { width: 100%; margin-top: 28px; }
.no-script { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 20px; }
[hidden] { display: none !important; }

@media (min-width: 1500px) { .hero { padding-top: 40px; } }
@media (max-width: 1199px) {
  .wrap { width: calc(100% - 80px); }
  .hero { gap: 32px; grid-template-columns: 1fr 1fr; }
  h1 { font-size: 5.4vw; letter-spacing: -2.6px; }
  .hero-copy { padding-bottom: 20px; }
  .hero-description { font-size: 19px; margin-top: 24px; }
  .hero-actions { gap: 24px; }
  .tree-panel { padding: 26px 24px; border-radius: 30px; }
  .tree-panel h2 { font-size: 18px; }
  .tree-art { margin-inline: -12px; }
  .learning-heading, .learning-content { gap: 52px; }
  .learning-heading > p { font-size: 20px; }
  .steps li { gap: 20px; }
  .steps h3 { font-size: 23px; }
  .steps p { font-size: 17px; }
  .practice-card { padding-inline: 30px; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  nav { gap: 24px; }
  .brand { font-size: 37px; }
  .brand img { width: 47px; height: 47px; border-radius: 12px; }
  .hero { gap: 28px; }
  .hero-actions { flex-wrap: wrap; gap: 20px; margin-top: 26px; }
  .hero-description { font-size: 17px; }
  .hero-note { font-size: 12px; margin-top: 20px; }
  .store-badge img { height: 54px; }
  .text-link { font-size: 16px; }
  .growth-control button { font-size: 12px; min-height: 40px; }
  .tree-panel { padding: 24px 16px 20px; }
  .tree-panel h2 { font-size: 16px; }
  .learning { padding-top: 66px; padding-bottom: 70px; }
  .learning-content, .learning-heading { gap: 36px; grid-template-columns: 1fr 1fr; }
  .learning h2 { font-size: 44px; }
  .learning-heading > p { font-size: 18px; }
  .steps li { gap: 16px; }
  .step-number { font-size: 31px; min-width: 39px; }
  .steps h3 { font-size: 21px; }
  .steps p { font-size: 16px; }
  .practice-card { min-height: 390px; padding-inline: 24px; padding-block: 28px; }
  .word-content { height: 240px; }
  .preview-note br { display: block; }
  .closing h2 { font-size: 42px; }
}
@media (max-width: 700px) {
  .site-header { padding-block: 20px; }
  .brand { font-size: 34px; gap: 11px; }
  .brand img { width: 43px; height: 43px; }
  .nav-link { display: none; }
  .button-small { min-height: 44px; padding: 12px 18px; font-size: 14px; gap: 8px; }
  .button-small .icon { width: 16px; height: 16px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 38px; padding-top: 38px; padding-bottom: 32px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(39px, 8.7vw, 61px); line-height: 1.12; letter-spacing: -1.8px; }
  .hero-description { max-width: 460px; font-size: 18px; line-height: 1.55; margin-top: 24px; }
  .hero-actions { gap: 28px; margin-top: 26px; }
  .store-badge img { height: 54px; }
  .hero-note { font-size: 13px; margin-top: 20px; }
  .text-link { font-size: 17px; gap: 7px; }
  .tree-panel { padding: 25px 20px 22px; border-radius: 28px; }
  .tree-panel h2 { font-size: 18px; }
  .tree-art { margin: 2px -10px; }
  .growth-control button { font-size: 13px; min-height: 42px; }
  figcaption { font-size: 12px; margin-top: 14px; }
  .promise { padding-block: 25px; font-size: 16px; letter-spacing: -.3px; }
  .learning { padding-top: 58px; padding-bottom: 56px; }
  .learning-heading, .learning-content { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .learning h2 { font-size: 44px; line-height: 1.1; letter-spacing: -1.7px; }
  .learning-heading > p { font-size: 18px; line-height: 1.5; }
  .desktop-break { display: none; }
  .learning-content { margin-top: 26px; gap: 30px; }
  .steps li { gap: 22px; padding-block: 23px; }
  .steps h3 { font-size: 23px; }
  .steps p { font-size: 16px; }
  .step-number { font-size: 33px; min-width: 44px; }
  .practice-card { min-height: 390px; padding: 30px; }
  .word-content { height: 240px; }
  .korean-word { font-size: 68px; }
  .preview-note { font-size: 12px; }
  .closing-copy { padding-block: 50px 35px; }
  .closing h2 { font-size: 35px; letter-spacing: -1.1px; }
  .closing-copy > p { font-size: 17px; max-width: 320px; margin-inline: auto; }
  .button-sage { min-height: 55px; font-size: 16px; padding-inline: 27px; }
  .site-footer { padding-block: 25px; gap: 15px; }
  .footer-brand { font-size: 30px; }
  .site-footer > span { font-size: 11px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 36px); }
  .hero-actions { gap: 20px; }
  .store-badge img { height: 48px; }
  .text-link { font-size: 15px; }
  .brand { font-size: 29px; }
  .learning h2 { font-size: 39px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover { transform: none; }
}
