/* vantage — bangul page. bangul's own mango (#ffb22e / soft #ffd685) is used only for bangul's brand pieces */
:root { --mango: #ffb22e; --mango-soft: #ffd685; --mango-tint: #fff4dc; }
.kr { font-family: 'Noto Sans KR', var(--f); font-weight: 700; letter-spacing: 0; }
body[data-page="bangul"] main { overflow-x: clip; }

/* hero */
.bg-hero { padding: 40px 0 56px; }
.bg-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .bg-hero-in { grid-template-columns: 1fr; } }
.bg-hero h1 { font-size: clamp(2.75rem, 6.4vw, 4.75rem); margin-top: 14px; }
.mgw { background: var(--mango-soft); padding: 0 .1em; }
.bg-hero .sub { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 520px; margin: 16px 0 0; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* the block builder */
.builder { position: relative; background: var(--ink); color: #fff; border-radius: 28px; padding: 26px 26px 24px; height: 440px; contain: layout; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-lg); overflow: hidden; }
.builder::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.jamo { position: relative; display: flex; gap: 10px; height: 60px; align-items: center; }
.jamo i { font-style: normal; width: 52px; height: 52px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1.5rem; color: #fff; }
.blk { position: relative; width: 150px; height: 150px; border-radius: 28px; background: var(--mango); color: var(--ink); display: grid; place-items: center; margin-top: 18px; box-shadow: 0 24px 40px -18px rgba(255,178,46,.7); }
.syl { font: 700 5.25rem/1 'Noto Sans KR', sans-serif; display: inline-block; }
.blk-cap { position: relative; text-align: center; margin-top: 16px; min-height: 48px; }
.blk-cap b { display: block; font: 700 1.25rem var(--f); }
.blk-cap span { font-size: .875rem; color: rgba(255,255,255,.62); }
.word { position: relative; margin-top: auto; padding-top: 18px; height: 92px; align-content: center; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.word > span { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1.125rem; }
.word em { font-style: normal; color: rgba(255,255,255,.5); }
.word b { font: 600 1rem var(--f); background: var(--hl); color: var(--ink); padding: 6px 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.word b .kr { font-size: 1rem; }
.word small { flex-basis: 100%; text-align: center; font-size: .8125rem; color: rgba(255,255,255,.62); }

/* 1: the break loop — an ink panel (like bangul's day 1 → 1000+ journey) */
.lp { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(28px, 4.5vw, 56px); box-shadow: var(--shadow-lg); overflow: hidden; }
.lp-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.lp-head h2 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -.04em; }
.lp-head .kr { font-size: clamp(1.125rem, 2vw, 1.375rem); color: rgba(255,255,255,.5); }
.lp-grid { display: grid; grid-template-columns: 1fr minmax(280px, 400px); gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: 28px; }
@media (max-width: 900px) { .lp-grid { grid-template-columns: 1fr; } .ring { order: -1; max-width: 340px; margin: 0 auto; } }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-steps li { display: flex; gap: 18px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; cursor: pointer; transition: background .3s, opacity .3s; opacity: .42; }
.lp-steps li:hover { opacity: .75; }
.lp-steps li.on { background: rgba(255,255,255,.07); opacity: 1; }
.lp-steps i { font: 700 .875rem var(--f); font-style: normal; min-width: 40px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.1); flex: none; transition: background .3s, color .3s; }
.lp-steps li.on i { background: var(--hl); color: var(--ink); }
.lp-steps li.mg.on i { background: var(--mango); }
.lp-steps b { display: block; font: 700 1.375rem/1.2 var(--f); letter-spacing: -.02em; }
.lp-steps span { display: block; font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,.68); margin-top: 2px; }

/* the ring: 4 stops at 12, 3, 6 and 9 o'clock; the arc fills as the runner goes round */
.ring { position: relative; width: 100%; aspect-ratio: 1; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.r-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 18; }
.r-fill { fill: none; stroke: var(--hl); stroke-width: 18; stroke-linecap: round; stroke-dasharray: 942.5; stroke-dashoffset: 942.5; opacity: .9; }
.r-dash { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.5; stroke-dasharray: 2 10; }
.node { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 20px; display: grid; place-items: center; font: 700 1.375rem var(--f); background: #26272b; color: rgba(255,255,255,.75); box-shadow: 0 0 0 6px var(--ink); cursor: pointer; transition: background .3s, color .3s, transform .45s var(--spring); }
.node { z-index: 2; } .runner { z-index: 1; }
.node.kr { font-family: 'Noto Sans KR', sans-serif; }
.n0 { left: 50%; top: 12.5%; } .n1 { left: 87.5%; top: 50%; } .n2 { left: 50%; top: 87.5%; } .n3 { left: 12.5%; top: 50%; }
.node.on { background: var(--hl); color: var(--ink); transform: scale(1.14); }
.n2.on { background: var(--mango); }
.node.past { color: #fff; background: #34353a; }
.runner { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(203,233,106,.35), 0 0 18px rgba(203,233,106,.8); left: 50%; top: 12.5%; pointer-events: none; }
.r-mid { position: absolute; inset: 27%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.r-mid small { font: 600 .875rem var(--f); color: rgba(255,255,255,.5); }
.r-mid b { font: 800 clamp(1.5rem, 3.4vw, 2.125rem)/1.05 var(--f); letter-spacing: -.035em; margin-top: 4px; }
.r-mid em { font-style: normal; font-size: .75rem; color: rgba(255,255,255,.45); margin-top: 10px; }

.lp-quote { margin: 32px 0 0; padding: 22px 0 0 26px; border-top: 1px solid rgba(255,255,255,.1); position: relative; font: 500 clamp(1.0625rem, 1.8vw, 1.25rem)/1.55 var(--f); color: rgba(255,255,255,.88); max-width: 760px; }
.lp-quote::before { content: "“"; position: absolute; left: -4px; top: 14px; font: 800 3rem/1 var(--f); color: var(--mango); }
.lp-quote small { display: block; margin-top: 8px; font-size: .8125rem; color: rgba(255,255,255,.5); font-weight: 400; }

.why-side { margin-top: 14px; }
.gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .gains { grid-template-columns: 1fr; } }
.gains div { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 20px; }
.gains span { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--tile); display: grid; place-items: center; font: 600 .8125rem var(--f); }
.gains p { margin: 0; } .gains b { display: block; font: 600 1.0625rem var(--f); } .gains small { font-size: .9375rem; color: var(--ink-2); }

/* 2: features */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.feat { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; transition: transform .45s var(--spring), box-shadow .3s; }
.feat:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.feat b { font: 600 1.125rem var(--f); margin-top: 16px; } .feat small { font-size: .9375rem; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.fv { height: 132px; border-radius: 16px; background: var(--mango-tint); display: grid; place-items: center; padding: 14px; }
.fv-grid { grid-template-columns: repeat(3, 34px); gap: 6px; place-content: center; }
.fv-grid i { font: 700 1.0625rem 'Noto Sans KR', sans-serif; font-style: normal; width: 34px; height: 34px; border-radius: 8px; background: #fff; display: grid; place-items: center; }
.fv-grid i.on { background: var(--ink); color: var(--mango); }
.fv-goals { grid-template-columns: 1fr 1fr; gap: 8px; place-content: center; }
.fv-goals span { font: 600 .875rem var(--f); padding: 8px 14px; border-radius: 999px; background: #fff; text-align: center; }
.fv-goals span.on { background: var(--ink); color: #fff; }
.fv-gram { grid-auto-flow: row; gap: 4px; place-content: center; text-align: center; }
.fv-gram s { font-size: .8125rem; color: var(--ink-3); text-decoration-thickness: 2px; text-decoration-color: transparent; transition: text-decoration-color .4s; }
.fv-gram span { font: 700 1rem var(--f); background: var(--ink); color: var(--mango); padding: 6px 14px; border-radius: 999px; margin-top: 4px; }
.feat.in .fv-gram s { text-decoration-color: var(--bad); }
.feat.in .fv-gram s:nth-child(2) { transition-delay: .15s; } .feat.in .fv-gram s:nth-child(3) { transition-delay: .3s; }
.fv-lvl { display: flex; align-items: flex-end; justify-content: center; gap: 12px; }
.fv-lvl i { width: 28px; height: 0; border-radius: 8px 8px 4px 4px; background: #fff; position: relative; transition: height .8s var(--spring); }
.feat.in .fv-lvl i { height: var(--h); }
.feat.in .fv-lvl i:nth-child(2) { transition-delay: .08s; } .feat.in .fv-lvl i:nth-child(3) { transition-delay: .16s; } .feat.in .fv-lvl i:nth-child(4) { transition-delay: .24s; }
.fv-lvl i.you { background: var(--ink); } .fv-lvl i.up1 { background: var(--mango); }
.fv-lvl em { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font: 600 .6875rem var(--f); font-style: normal; white-space: nowrap; }
.feat .fv-grid i, .feat .fv-goals span { opacity: 0; transform: scale(.7); transition: opacity .3s, transform .45s var(--spring); }
.feat.in .fv-grid i, .feat.in .fv-goals span { opacity: 1; transform: none; }
.feat.in .fv-grid i:nth-child(n+4) { transition-delay: .12s; } .feat.in .fv-grid i:nth-child(n+7) { transition-delay: .28s; }
.feat.in .fv-goals span:nth-child(2) { transition-delay: .08s; } .feat.in .fv-goals span:nth-child(3) { transition-delay: .16s; } .feat.in .fv-goals span:nth-child(4) { transition-delay: .24s; }

/* 3: maths ↔ korean pairs — two cards per row joined by an "=" coin */
.pairs { display: grid; gap: 12px; }
.pr-head, .pr { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: stretch; }
.pr-head { margin-bottom: 4px; }
.pr-head > div { display: flex; align-items: center; gap: 14px; padding: 4px 4px 8px; }
.pr-head > div:last-child { grid-column: 3; }
.pr-head i { font-style: normal; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font: 700 1.375rem var(--f); flex: none; }
.ph-v i { background: var(--ink); color: var(--hl); } .ph-b i { background: var(--mango); color: var(--ink); font-family: 'Noto Sans KR', sans-serif; }
.pr-head b { display: block; font: 700 1.375rem/1.1 var(--f); letter-spacing: -.02em; } .pr-head small { font-size: .875rem; color: var(--ink-3); }
.pc { border-radius: 22px; padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; min-height: 104px; transition: transform .45s var(--spring); }
.pc small { font: 600 .75rem var(--f); color: var(--ink-3); }
.pc b { font: 600 clamp(1.0625rem, 1.8vw, 1.25rem)/1.35 var(--f); letter-spacing: -.01em; margin-top: 6px; }
.pc-v { background: #fff; box-shadow: var(--shadow); }
.pc-b { background: var(--mango-tint); }
.pc .st { background: var(--hl); padding: 0 .15em; } .pc-b .st { background: var(--mango-soft); }
.pr em { align-self: center; justify-self: center; width: 44px; height: 44px; margin: 0 -8px; border-radius: 50%; background: var(--ink); color: var(--hl); display: grid; place-items: center; font: 700 1.25rem var(--f); font-style: normal; z-index: 1; box-shadow: 0 0 0 5px #fff; }
.pr:hover .pc-v { transform: translateX(-4px); } .pr:hover .pc-b { transform: translateX(4px); }
.pr.reveal { opacity: 1; transform: none; }
.pr.reveal .pc-v { opacity: 0; transform: translateX(-24px); transition: opacity .6s, transform .7s var(--spring); }
.pr.reveal .pc-b { opacity: 0; transform: translateX(24px); transition: opacity .6s .08s, transform .7s .08s var(--spring); }
.pr.reveal em { transform: scale(0); transition: transform .5s .2s var(--spring); }
.pr.reveal.in .pc-v, .pr.reveal.in .pc-b { opacity: 1; transform: none; } .pr.reveal.in em { transform: none; }
@media (max-width: 700px) {
  .pr-head { display: none; }
  .pr { grid-template-columns: 1fr; }
  .pr em { margin: -10px auto; }
  .pc-v small::before { content: "maths · "; } .pc-b small::before { content: "korean · "; }
}

/* cta */
.cta { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 44px); }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.cta-tile { width: 96px; height: 96px; border-radius: 26px; background: var(--mango); color: var(--ink); display: grid; place-items: center; font-size: 3rem; }
.cta h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); } .cta p { color: rgba(255,255,255,.7); margin: 6px 0 0; }
.cta-b { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-mango { background: var(--mango); border-color: var(--mango); color: var(--ink); } .btn-mango:hover { background: var(--mango-soft); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); } .btn-ghost:hover { background: rgba(255,255,255,.08); }
