:root {
    font-family: system-ui, -apple-system, sans-serif;
    color: #171d36;
    background: #f6f7fc;
    line-height: 1.65;
    color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #323c9d; }
a:focus-visible, button:focus-visible { outline: 3px solid #4c5be0; outline-offset: 4px; }
.site-head, main, .site-foot, .language-nav { width: min(69rem, calc(100% - 2.5rem)); margin-inline: auto; }
.site-head, .site-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-head { padding-block: 1.1rem; }
.brand { font-weight: 850; letter-spacing: -.025em; text-decoration: none; font-size: 1.25rem; color: #22295a; }
.header-login { font-size: .9rem; font-weight: 700; }
.hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    padding: clamp(1.4rem, 5vw, 4rem);
    background: #e9ecff;
    border: 1px solid #dbe0fc;
    border-radius: 1.5rem;
}
.eyebrow { margin: 0; font-size: .86rem; font-weight: 800; color: #414ba1; }
h1 { margin: .45rem 0 .9rem; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.09; letter-spacing: -.075em; }
.intro { max-width: 30ch; margin: 0 0 1.3rem; color: #333d61; font-size: clamp(1rem, 2vw, 1.16rem); word-break: keep-all; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    border-radius: .7rem;
    border: 1px solid transparent;
    min-height: 2.9rem;
    padding: .6rem 1rem;
    font: inherit;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.primary { background: #3646b6; color: white; }
.primary:hover { background: #293891; }
.secondary { border-color: #aeb7e8; background: #fff; color: #303e9c; }
.secondary:hover { border-color: #5263cd; background: #f3f4ff; }
.button:disabled { cursor: default; background: #f0f2fa; color: #515878; }
.hero-note { margin: .75rem 0 0; color: #474f73; font-size: .88rem; }
.puzzle-sample { width: min(100%, 22rem); justify-self: center; margin: 0; padding: 1.15rem; border-radius: 1.2rem; background: #242b58; color: #f5f6ff; }
.puzzle-top { display: flex; justify-content: space-between; margin-bottom: .65rem; font-size: .8rem; font-weight: 700; }
.puzzle-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.puzzle-grid span { display: grid; place-items: center; position: relative; aspect-ratio: 1; border-radius: .24rem; background: #f9faff; color: #172045; font-size: clamp(.9rem, 2vw, 1.4rem); font-weight: 850; }
.puzzle-grid .dark { background: #414a7a; }
.puzzle-grid .letter { background: #b9d7ff; }
.puzzle-grid sup { position: absolute; top: .15rem; left: .3rem; font-size: .6rem; }
.puzzle-sample figcaption { margin-top: .8rem; font-size: .8rem; font-weight: 800; }
.puzzle-sample figcaption span { margin-inline-start: .4rem; font-weight: 450; }
.benefits { margin: 2.6rem 0 1.4rem; }
.benefits-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .55rem; }
h2 { margin: .2rem 0 .8rem; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.04em; }
.balance { display: inline-block; margin: .75rem 0 0; padding: .25rem .75rem; background: #e5eaff; border-radius: 1rem; font-weight: 750; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .85rem; }
.card { padding: 1.25rem; border: 1px solid #dfe4f3; border-radius: .9rem; background: white; }
.card .amount { margin: 0; color: #3845a7; font-size: 1.85rem; font-weight: 850; }
.amount span { margin-inline-start: .2rem; font-size: .9rem; }
.card h3 { margin: .1rem 0 .35rem; }
.card p { color: #454d68; font-size: .92rem; margin: 0 0 .65rem; word-break: keep-all; }
.status { color: #343e89; font-weight: 650; }
.status:empty { margin: 0; }
.site-foot { padding-block: 1.45rem; margin-top: 1rem; color: #47506c; font-size: .85rem; border-top: 1px solid #e0e3f0; flex-wrap: wrap; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 43rem) {
    .site-head, main, .site-foot, .language-nav { width: calc(100% - 1.5rem); }
    .hero { grid-template-columns: 1fr; gap: 1.3rem; }
    .actions .button { flex: 1 1 12rem; }
    .puzzle-sample { width: min(100%, 17rem); }
}

.language-nav { display: flex; flex-wrap: wrap; gap: .35rem .6rem; margin-block-end: .75rem; }
.language-nav a { padding: .2rem .55rem; border-radius: .5rem; font-size: .87rem; text-decoration: none; }
.language-nav a[aria-current] { background: #e4e8ff; font-weight: 750; }
:root:not(:lang(ko)) h1 { font-size: clamp(2.15rem, 5.2vw, 4.4rem); letter-spacing: -.055em; }
:root:not(:lang(ko)) .intro, :root:not(:lang(ko)) .card p { word-break: normal; }
.theme-jump { display: inline-block; margin: .6rem 0 0; font-size: .89rem; font-weight: 750; }
.daily-themes { margin-block: 1.85rem 2.1rem; scroll-margin-top: 1rem; }
.daily-themes h2 { margin-bottom: .25rem; }
.daily-themes p { margin: 0 0 .85rem; color: #454d68; }
.theme-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.theme-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 3.25rem;
    gap: .4rem;
    padding: .65rem .85rem;
    border: 1px solid #dfe4f3;
    border-radius: .7rem;
    background: white;
    color: #303e9c;
    font-weight: 750;
    text-decoration: none;
}
.theme-links a:hover { border-color: #5263cd; background: #f0f2ff; }
@media (max-width: 43rem) {
    .theme-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .daily-themes { margin-block-start: 1.3rem; }
}
