/* ============================================================
   Hangul Path — the app's own look ("Playful, revised"):
   warm paper, obangsaek accents, the saekdong stripe, red seal
   stamps and syllable blocks. Tokens mirror Theme.swift; small
   text always uses the *-text cuts, which pass WCAG AA.
   ============================================================ */

:root {
    --paper: #FBF7F0;
    --card: #FFFFFF;
    --hairline: #EEE6DA;
    --ink: #23252B;
    --muted: #8B8578;
    --muted-text: #736D62;
    --accent: #3B6CF6;
    --accent-text: #2F5BD8;
    --accent-tint: #E8EEFE;
    --seal: #E4573F;
    --seal-text: #C2412B;
    --seal-tint: #FCE9E5;
    --sun: #F4B942;
    --sun-tint: #FDEFD2;
    --sun-text: #8F5D06;
    --leaf: #2FA36B;
    --leaf-text: #1F7A4F;
    --leaf-tint: #E1F3EA;
    --band: #F5EFE4;
    --on-ink: #FFFFFF;
    --shadow: 0 1px 2px rgba(35, 37, 43, .04), 0 10px 30px rgba(35, 37, 43, .07);
    --accent-shadow: 0 6px 16px rgba(59, 108, 246, .30);
    --radius-card: 22px;
    --radius-tile: 12px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #16171A;
        --card: #1F2024;
        --hairline: #2C2D33;
        --ink: #F3EFE7;
        --muted: #9A948A;
        --muted-text: #A8A297;
        --accent-text: #7C9CFA;
        --accent-tint: #1E2742;
        --seal-text: #F07A63;
        --seal-tint: #3A1F1A;
        --sun-tint: #3A2E14;
        --sun-text: #F4B942;
        --leaf-text: #4CC98A;
        --leaf-tint: #16301F;
        --band: #1B1C20;
        --on-ink: #16171A;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #16171A; --card: #1F2024; --hairline: #2C2D33; --ink: #F3EFE7;
    --muted: #9A948A; --muted-text: #A8A297; --accent-text: #7C9CFA; --accent-tint: #1E2742;
    --seal-text: #F07A63; --seal-tint: #3A1F1A; --sun-tint: #3A2E14; --sun-text: #F4B942;
    --leaf-text: #4CC98A; --leaf-tint: #16301F; --band: #1B1C20; --on-ink: #16171A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 80px; }
body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    background: var(--paper);
    color: var(--ink);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, .logo-text, .eyebrow, .section-tag, .numbers b, .chip, .n {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Hangul glyphs: the system Korean face, bold */
.jamo, .syll, .tile, .seal, .float-seal, .hero-sub, .stages p {
    font-feature-settings: normal;
}
.jamo, .syll, .tile, .seal, .float-seal {
    font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
    font-weight: 800;
}

/* === Nav === */
#navbar {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
#navbar.scrolled {
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 1px 0 var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-left { display: flex; align-items: center; gap: 6px; }
.nav-back {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; color: var(--muted-text);
}
.nav-back:hover { background: var(--band); color: var(--ink); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.nav-icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--hairline); }
.logo-text { font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    font-weight: 600; font-size: .95rem; color: var(--muted-text);
    padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { background: var(--ink); color: var(--paper); padding: 10px 18px; margin-left: 6px; }
.nav-links .nav-cta:hover { color: var(--paper); opacity: .9; }
.mobile-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.mobile-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.mobile-toggle span:nth-child(1) { top: 15px; }
.mobile-toggle span:nth-child(2) { top: 21px; }
.mobile-toggle span:nth-child(3) { top: 27px; }
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* === Shared pieces === */
.stripe { display: flex; gap: 6px; margin-bottom: 22px; }
.stripe i { width: 26px; height: 7px; border-radius: 4px; background: var(--seal); }
.stripe i:nth-child(4n+2) { background: var(--sun); }
.stripe i:nth-child(4n+3) { background: var(--accent); }
.stripe i:nth-child(4n+4) { background: var(--leaf); }

.eyebrow, .section-tag {
    display: inline-block; font-weight: 600; font-size: .82rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px;
}
.section-tag.red, .eyebrow { color: var(--seal-text); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2, .hangul-copy h2, .panel h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 700;
    margin-bottom: 14px; text-wrap: balance;
}
.section-head p:not(.section-tag) { color: var(--muted-text); font-size: 1.08rem; text-wrap: pretty; }

.store-badge { display: inline-flex; min-height: 44px; border-radius: 12px; transition: transform .15s, opacity .15s; }
.store-badge img { height: 56px; width: auto; }
.store-badge:hover { opacity: .88; }
.store-badge:active { transform: scale(.98); }

section { padding: 96px 0; }

/* === Hero === */
.hero { padding: 132px 0 72px; position: relative; overflow: hidden; }
.hero::before {
    content: '한'; position: absolute; right: -4%; top: 40px; z-index: 0;
    font: 800 min(52vw, 620px)/1 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
    color: var(--ink); opacity: .035; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700;
    margin-bottom: 22px; text-wrap: balance;
}
.hero h1 .hl { color: var(--accent-text); }
.hero-sub { font-size: 1.2rem; color: var(--muted-text); max-width: 34em; margin-bottom: 32px; text-wrap: pretty; }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-note { font-size: .95rem; color: var(--muted-text); font-weight: 600; }

.hero-art { position: relative; justify-self: center; width: min(100%, 340px); }
.device {
    border-radius: 48px; padding: 10px; background: #23252B;
    box-shadow: 0 30px 60px -20px rgba(35, 37, 43, .35), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.device img { border-radius: 38px; width: 100%; height: auto; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .device { box-shadow: 0 0 0 1px #3A3B42, 0 30px 60px -20px rgba(0, 0, 0, .6); }
}
:root[data-theme="dark"] .device { box-shadow: 0 0 0 1px #3A3B42, 0 30px 60px -20px rgba(0, 0, 0, .6); }
.float-block {
    position: absolute; left: -64px; bottom: 96px;
    display: flex; align-items: center; gap: 8px;
    background: var(--card); border: 1px solid var(--hairline); border-radius: 20px;
    padding: 12px 14px; box-shadow: var(--shadow);
}
.float-block .jamo, .float-block .syll {
    width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-tile);
    font-size: 1.7rem; line-height: 1;
}
.float-block .jamo { background: var(--accent-tint); color: var(--accent-text); }
.float-block .syll { background: var(--sun); color: #23252B; }
.float-block .op { color: var(--muted); font-weight: 700; }
.float-seal {
    position: absolute; right: -28px; top: 64px;
    width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center;
    background: var(--seal); color: #FFFFFF; font-size: 3.1rem; transform: rotate(-8deg);
    box-shadow: 0 14px 30px -8px rgba(228, 87, 63, .55);
}

@media (prefers-reduced-motion: no-preference) {
    .float-block .j1 { animation: snap-l 4.8s ease-in-out infinite; }
    .float-block .j2 { animation: snap-r 4.8s ease-in-out infinite; }
    .float-block .syll { animation: pop 4.8s ease-in-out infinite; }
    .float-seal { animation: stamp 4.8s cubic-bezier(.2, .9, .3, 1.3) infinite; }
}
@keyframes snap-l { 0%, 12% { transform: translateX(-10px); opacity: .4; } 28%, 100% { transform: none; opacity: 1; } }
@keyframes snap-r { 0%, 16% { transform: translateX(10px); opacity: .4; } 32%, 100% { transform: none; opacity: 1; } }
@keyframes pop { 0%, 36% { transform: scale(.6); opacity: 0; } 46% { transform: scale(1.08); opacity: 1; } 52%, 100% { transform: none; opacity: 1; } }
@keyframes stamp { 0%, 52% { transform: rotate(-8deg) scale(1.35); opacity: 0; } 60% { transform: rotate(-8deg) scale(.94); opacity: 1; } 66%, 100% { transform: rotate(-8deg); opacity: 1; } }

/* === Numbers === */
.numbers { padding: 0 0 24px; }
.numbers-grid {
    display: grid; grid-template-columns: repeat(6, 1fr);
    background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-card);
    overflow: hidden; position: relative;
}
.numbers-grid::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: repeating-linear-gradient(90deg, var(--seal) 0 25%, var(--sun) 25% 50%, var(--accent) 50% 75%, var(--leaf) 75% 100%);
    background-size: 160px 5px;
}
.numbers-grid li { padding: 28px 16px 22px; text-align: center; border-left: 1px solid var(--hairline); }
.numbers-grid li:first-child { border-left: 0; }
.numbers b { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.numbers span { display: block; font-size: .9rem; color: var(--muted-text); margin-top: 4px; line-height: 1.35; }

/* === Hangul === */
.hangul-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hangul-copy p:not(.section-tag) { color: var(--muted-text); font-size: 1.08rem; margin-bottom: 14px; text-wrap: pretty; }
.blocks {
    background: var(--card); border: 1px solid var(--hairline); border-radius: 28px;
    padding: 28px; display: grid; gap: 16px; justify-items: start;
}
.block-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile {
    width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px;
    background: var(--accent-tint); color: var(--accent-text); font-size: 2.1rem; line-height: 1;
}
.tile.sun { background: var(--sun); color: #23252B; box-shadow: 0 8px 18px -8px rgba(244, 185, 66, .7); }
.sym { color: var(--muted); font-weight: 700; font-size: 1.3rem; width: 16px; text-align: center; }

/* === Path === */
.path { background: var(--band); }
.stages { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; counter-reset: none; }
.stages li {
    display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center;
    background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 14px 18px;
}
.stages .n {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    font-weight: 700; font-size: 1.15rem; background: var(--paper); color: var(--ink); border: 1px solid var(--hairline);
}
.stages li:nth-child(4n+1) .n { background: var(--seal); color: #FFFFFF; border-color: transparent; }
.stages li:nth-child(4n+2) .n { background: var(--sun); color: #23252B; border-color: transparent; }
.stages li:nth-child(4n+3) .n { background: var(--accent); color: #FFFFFF; border-color: transparent; }
.stages li:nth-child(4n+4) .n { background: var(--leaf); color: #FFFFFF; border-color: transparent; }
.stages h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.stages p { font-size: .95rem; color: var(--muted-text); line-height: 1.4; }
.chip {
    font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
    border: 1px solid var(--hairline); color: var(--muted-text); background: var(--card);
}
.chip.solid { background: var(--accent-tint); color: var(--accent-text); border-color: transparent; }

/* === Features === */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
    background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 26px;
}
.feature h3 { font-size: 1.22rem; font-weight: 600; margin: 16px 0 8px; letter-spacing: -.01em; }
.feature p { color: var(--muted-text); font-size: 1rem; text-wrap: pretty; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }
.ico.blue { background: var(--accent-tint); color: var(--accent-text); }
.ico.red { background: var(--seal-tint); color: var(--seal-text); }
.ico.sun { background: var(--sun-tint); color: var(--sun-text); }
.ico.leaf { background: var(--leaf-tint); color: var(--leaf-text); }

.habit {
    margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
    background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 26px 30px;
}
.habit h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 6px; }
.habit p { color: var(--muted-text); max-width: 34em; }
.seals { display: flex; gap: 10px; }
.seal {
    width: 50px; height: 50px; border-radius: 14px; background: var(--seal); color: #FFFFFF;
    display: grid; place-items: center; font-size: 1.35rem; position: relative; margin-bottom: 24px;
}
.seal small {
    position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
    font: 600 .78rem/1 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif; color: var(--muted-text);
}
.seal.today { background: transparent; border: 2px dashed var(--seal); }
.seal.today i { width: 10px; height: 10px; border-radius: 50%; background: var(--seal); }
.seal.today small { color: var(--seal-text); }

/* === Screens === */
.screens { padding-top: 24px; }
.gallery-wrap { position: relative; }
.gallery {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 4px 20px; scrollbar-width: thin; scrollbar-color: var(--hairline) transparent;
}
.shot { flex: 0 0 248px; scroll-snap-align: start; }
.shot img {
    width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--hairline);
    box-shadow: var(--shadow); background: var(--card);
}
.scroll-btn {
    position: absolute; top: 44%; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; background: var(--card); border: 1px solid var(--hairline);
    box-shadow: var(--shadow); transition: opacity .2s;
}
.scroll-btn.prev { left: -20px; }
.scroll-btn.next { right: -20px; }
.scroll-btn[disabled] { opacity: 0; pointer-events: none; }

/* === Languages + privacy === */
.twin { background: var(--band); }
.twin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--hairline); border-radius: 28px; padding: 34px; }
.panel h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.panel > p:not(.section-tag) { color: var(--muted-text); margin-bottom: 20px; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; }
.langs li {
    padding: 10px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--hairline);
    font-weight: 600; font-size: .98rem;
}
.checks { display: grid; gap: 14px; margin: 6px 0 22px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted-text); }
.checks li b { color: var(--ink); font-weight: 700; }
.checks li::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px;
    background: var(--leaf-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232FA36B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.text-link { font-weight: 700; color: var(--accent-text); display: inline-flex; min-height: 44px; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* === Premium === */
.compare {
    max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--hairline);
    border-radius: var(--radius-card); overflow: hidden;
}
.compare-head, .compare tr { display: grid; grid-template-columns: 1fr 120px 120px; align-items: center; }
.compare-head { padding: 16px 22px; border-bottom: 1px solid var(--hairline); font: 600 .95rem 'Outfit', sans-serif; }
.compare-head span { text-align: center; }
.compare-head span:last-child { color: var(--accent-text); }
.compare table { width: 100%; border-collapse: collapse; display: block; }
.compare tbody { display: block; }
.compare tr { padding: 13px 22px; border-bottom: 1px solid var(--hairline); }
.compare tr:last-child { border-bottom: 0; }
.compare th { text-align: left; font-weight: 600; font-size: 1rem; }
.compare td { text-align: center; font-size: .9rem; }
.yes, .no, .part { display: inline-flex; align-items: center; justify-content: center; }
.yes, .no { font-size: 0; }
.yes::before, .no::before { content: ''; width: 26px; height: 26px; border-radius: 50%; }
.yes::before {
    background: var(--leaf-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232FA36B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.no::before {
    width: 14px; height: 2px; border-radius: 2px; background: var(--muted);
}
.part { font-weight: 700; color: var(--sun-text); background: var(--sun-tint); padding: 3px 10px; border-radius: 999px; font-size: .8rem; white-space: nowrap; }
.plans { max-width: 640px; margin: 22px auto 0; text-align: center; color: var(--muted-text); font-size: .98rem; text-wrap: pretty; }

/* === CTA === */
.cta { background: #3B6CF6; color: #FFFFFF; text-align: center; position: relative; overflow: hidden; }
.cta::before {
    content: '가'; position: absolute; left: -2%; bottom: -30%;
    font: 800 min(60vw, 520px)/1 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif; color: #FFFFFF; opacity: .07;
}
.cta .wrap { position: relative; }
.cta-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .35); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.025em; line-height: 1.12; margin-bottom: 12px; text-wrap: balance; }
.cta p { font-size: 1.12rem; max-width: 34em; margin: 0 auto 28px; color: #FFFFFF; }
.cta-row { display: flex; justify-content: center; }

/* === Footer === */
footer { padding: 40px 0; border-top: 1px solid var(--hairline); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font: 700 1rem 'Outfit', sans-serif; }
.footer-logo img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px var(--hairline); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { color: var(--muted-text); font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { width: 100%; color: var(--muted-text); font-size: .88rem; }
.footer-copy a { text-decoration: underline; }

/* === Reveal === */
@media (prefers-reduced-motion: no-preference) {
    .js [data-animate] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
    .js [data-animate].visible { opacity: 1; transform: none; }
}

/* === Responsive === */
@media (max-width: 1000px) {
    .numbers-grid { grid-template-columns: repeat(3, 1fr); }
    .numbers-grid li:nth-child(4) { border-left: 0; }
    .numbers-grid li:nth-child(n+4) { border-top: 1px solid var(--hairline); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .habit { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav-links {
        position: absolute; top: 68px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px;
        background: color-mix(in srgb, var(--card) 92%, transparent);
        -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
        border: 1px solid var(--hairline); border-radius: 20px; padding: 8px; box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
    }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { padding: 12px 14px; font-size: 1.02rem; }
    .nav-links .nav-cta { margin: 6px 0 0; justify-content: center; }
    .mobile-toggle { display: block; }
    #navbar:has(.nav-links.open) { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

    .hero { padding: 108px 0 56px; }
    .hero-grid, .hangul-grid, .twin-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 48px; }
    .hero-art { width: min(78%, 300px); }
    .float-block { left: -18%; bottom: 72px; }
    .float-seal { right: -14%; }
    .hangul-grid { gap: 32px; }
    section { padding: 72px 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .hero h1 { font-size: 2.45rem; }
    .hero-sub { font-size: 1.08rem; }
    .hero-cta-row { gap: 12px; }
    .cta-note { width: 100%; }
    .hero-art { width: 66%; }
    .float-block { left: -22%; bottom: 48px; padding: 8px 10px; gap: 5px; border-radius: 16px; }
    .float-block .jamo, .float-block .syll { width: 38px; height: 38px; font-size: 1.35rem; border-radius: 10px; }
    .float-seal { width: 68px; height: 68px; font-size: 2.3rem; border-radius: 18px; right: -18%; top: 40px; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .numbers-grid li { border-left: 0; border-top: 1px solid var(--hairline); padding: 22px 12px 18px; }
    .numbers-grid li:nth-child(-n+2) { border-top: 0; }
    .numbers-grid li:nth-child(even) { border-left: 1px solid var(--hairline); }
    .numbers b { font-size: 1.7rem; }
    .blocks { padding: 20px; gap: 12px; }
    .tile { width: 52px; height: 52px; font-size: 1.7rem; border-radius: 14px; }
    .block-row { gap: 6px; }
    .stages li { grid-template-columns: 40px 1fr; gap: 6px 14px; padding: 14px; }
    .stages .n { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; grid-row: span 2; align-self: start; }
    .stages .chip { grid-column: 2; justify-self: start; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature, .habit { padding: 22px; }
    .seals { gap: 5px; }
    .seal { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; flex: none; }
    .shot { flex-basis: 70%; }
    .scroll-btn { display: none; }
    .panel { padding: 24px; border-radius: 22px; }
    .compare-head, .compare tr { grid-template-columns: 1fr 72px 80px; }
    .compare-head, .compare tr { padding-left: 16px; padding-right: 12px; }
    .compare th { font-size: .94rem; }
    .part { font-size: .72rem; padding: 3px 8px; white-space: normal; text-align: center; }
    .section-head { margin-bottom: 36px; }
}
