:root {
  --bg: #F7F5EE;
  --cream: #FEFDF7;
  --ink: #1F2430;
  --ink-2: #4A5160;
  --ink-3: #7A8090;
  --line: #E6E1D3;
  --blue: #3F6EA6;
  --blue-d: #31588A;
  --seal: #9EBFE3;
  --seal-soft: #E4EEF8;
  --spot: #7489A6;
  --hi: #FFD84D;
  --hi-soft: #FFF3C2;
  --green: #1E9E62;
  --green-soft: #E7F5EC;
  --red: #D9534F;
  --red-soft: #FCECEB;
  --orange: #F2A21E;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(31,36,48,.05), 0 12px 32px -12px rgba(31,36,48,.18);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hl { background: linear-gradient(transparent 58%, var(--hi) 58%, var(--hi) 92%, transparent 92%); padding: 0 .08em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--blue); background: var(--seal-soft); padding: 6px 12px; border-radius: 999px; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.18; margin: 0; }
h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 850; }
h3 { font-size: 21px; font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { margin: 16px 0 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(247,245,238,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; font-size: 19px; text-decoration: none; letter-spacing: -0.03em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.lang { font-size: 14px; color: var(--ink-3); }
@media (max-width: 820px) { .nav-links .hide-m { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; font-weight: 750; text-decoration: none; cursor: pointer; border: 0; font-family: inherit; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--blue); color: #fff; padding: 15px 24px; font-size: 17px; box-shadow: 0 6px 0 var(--blue-d); }
.btn-primary:hover { background: #4678B3; }
.btn-primary:active { box-shadow: 0 2px 0 var(--blue-d); transform: translateY(4px); }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 12px; box-shadow: 0 4px 0 var(--blue-d); }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 11px 20px 11px 16px; border-radius: 14px; text-decoration: none; min-width: 168px; transition: transform .15s, background .15s; }
.store:hover { background: #000; transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .78; line-height: 1.1; }
.store b { display: block; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { padding: 40px 0 40px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 7vw, 74px); font-weight: 900; margin: 20px 0 20px; letter-spacing: -0.045em; line-height: 1.1; }
.hero .lead { max-width: 520px; margin: 0 0 30px; }
.micro { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.micro span::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 900; }
.qr-card { display: none; align-items: center; gap: 14px; margin-top: 26px; padding: 12px 16px 12px 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; width: fit-content; }
.qr-card img { width: 84px; height: 84px; border-radius: 8px; }
.qr-card p { margin: 0; text-align: left; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.qr-card b { color: var(--ink); }
@media (min-width: 900px) and (hover: hover) { .qr-card { display: flex; } }

.stage { position: relative; display: flex; justify-content: center; min-height: 560px; }
.stage::before { content: ""; position: absolute; inset: 6% 2% 4%; background: radial-gradient(closest-side, var(--seal) 0%, rgba(158,191,227,.35) 55%, transparent 75%); filter: blur(4px); z-index: 0; }
.phone { position: relative; z-index: 1; width: 280px; aspect-ratio: 1206/2622; border-radius: 46px; background: #11141B; padding: 10px; box-shadow: 0 30px 60px -20px rgba(31,36,48,.45), inset 0 0 0 2px #2A2F3A; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone.tilt-l { transform: rotate(-4deg); }
.phone.tilt-r { transform: rotate(4deg); }
.stage .phone.back { position: absolute; width: 230px; left: 4%; top: 70px; opacity: .96; transform: rotate(-8deg); z-index: 0; }
.stage .ace { position: absolute; z-index: 3; width: 190px; right: -6px; bottom: -10px; filter: drop-shadow(0 12px 18px rgba(49,88,138,.25)); animation: bob 3.4s ease-in-out infinite; }
.bubble { position: absolute; z-index: 4; right: 150px; bottom: 170px; background: #fff; border-radius: 18px 18px 4px 18px; padding: 10px 14px; font-weight: 800; font-size: 15px; box-shadow: var(--shadow); white-space: nowrap; animation: pop .5s .6s both cubic-bezier(.3,1.6,.5,1); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .stores, .micro { justify-content: center; }
  .stage { min-height: 480px; margin-top: 8px; }
  .phone { width: 236px; }
  .stage .phone.back { display: none; }
  .stage .ace { width: 140px; right: 2%; }
  .bubble { right: 30%; bottom: 120px; font-size: 14px; }
}

/* chips strip */
.strip { padding: 28px 0 8px; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.fact { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 20px; text-align: center; }
.fact b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -0.03em; color: var(--blue); }
.fact span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* demo quiz */
.demo { background: var(--ink); color: #fff; border-radius: 36px; margin: 0 12px; }
.demo .section-head h2 { color: #fff; }
.demo .lead { color: #B9C0CE; }
.demo .hl { background: linear-gradient(transparent 58%, #5B83B4 58%, #5B83B4 92%, transparent 92%); }
.quiz-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 28px; max-width: 820px; margin: 0 auto; align-items: center; }
.quiz { background: var(--cream); color: var(--ink); border-radius: 30px; padding: 26px; border: 3px solid transparent; transition: border-color .25s; }
.quiz.ok { border-color: #7FD1A6; }
.quiz.no { border-color: #F2A7A5; }
.qbar { display: flex; gap: 6px; margin-bottom: 18px; }
.qbar i { flex: 1; height: 8px; border-radius: 8px; background: var(--line); transition: background .3s; }
.qbar i.done { background: var(--green); }
.qbar i.miss { background: var(--orange); }
.qtop { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.qword { font-size: clamp(40px, 6vw, 54px); font-weight: 900; text-align: center; margin: 22px 0 6px; letter-spacing: -0.04em; }
.qex { text-align: center; color: var(--ink-2); font-size: 16px; min-height: 52px; }
.qex small { display: block; color: var(--ink-3); font-size: 14px; }
.opts { display: grid; gap: 10px; margin-top: 18px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #F4F5F7; border: 2px solid #ECEDF0; border-radius: 16px; padding: 13px 16px; font: inherit; font-weight: 700; font-size: 17px; color: var(--ink); cursor: pointer; transition: transform .1s, background .15s, border-color .15s; }
.opt:hover:not(:disabled) { border-color: var(--seal); background: #fff; }
.opt:disabled { cursor: default; }
.opt .n { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 13px; color: var(--ink-3); border: 1px solid var(--line); flex: none; }
.opt.correct { background: var(--green-soft); border-color: var(--green); color: #12663F; }
.opt.correct .n { background: var(--green); color: #fff; border-color: var(--green); }
.opt.wrong { background: var(--red-soft); border-color: var(--red); color: #9B2C2A; animation: shake .35s; }
.opt.dim { opacity: .5; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.hook { margin-top: 14px; background: var(--hi-soft); border-radius: 14px; padding: 12px 14px; font-size: 15px; color: var(--ink-2); display: none; }
.hook.show { display: block; animation: pop .35s both; }
.hook b { color: var(--ink); }
.qnext { margin-top: 16px; width: 100%; display: none; }
.qnext.show { display: inline-flex; }
.quiz-side { text-align: center; }
.quiz-side img { width: 220px; margin: 0 auto; transition: transform .3s; }
.quiz-side .say { font-weight: 800; font-size: 19px; margin-top: 6px; min-height: 30px; }
.quiz-side .xp { display: inline-block; margin-top: 10px; background: var(--orange); color: #fff; font-weight: 900; padding: 6px 14px; border-radius: 999px; font-size: 15px; }
.quiz-end { text-align: center; display: none; padding: 10px 0; }
.quiz-end.show { display: block; animation: pop .4s both; }
.quiz-end h3 { font-size: 28px; margin: 6px 0 8px; }
.quiz-end p { color: var(--ink-2); margin: 0 0 20px; }
@media (max-width: 760px) {
  .quiz-wrap { grid-template-columns: 1fr; }
  .quiz-side { order: -1; display: flex; align-items: center; justify-content: center; gap: 12px; }
  .quiz-side img { width: 96px; margin: 0; }
  .quiz-side .say { margin: 0; font-size: 17px; text-align: left; }
  .quiz-side .xp { margin: 0; }
  .demo { margin: 0 6px; border-radius: 28px; }
  .quiz { padding: 20px; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--cream); border: 1px solid var(--line); border-radius: 28px; padding: 26px 24px 0; overflow: hidden; display: flex; flex-direction: column; }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--hi); font-weight: 900; display: grid; place-items: center; margin-bottom: 14px; }
.step p { color: var(--ink-2); margin: 8px 0 20px; font-size: 16px; }
.step .shot { margin-top: auto; height: 300px; overflow: hidden; display: flex; justify-content: center; }
.step .shot .phone { width: 230px; border-radius: 38px; padding: 8px; box-shadow: 0 10px 30px -10px rgba(31,36,48,.35); }
.step .shot .phone img { border-radius: 31px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 36px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature.rev .f-media { order: 2; }
.feature h3 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 850; margin: 12px 0 14px; }
.feature p { color: var(--ink-2); margin: 0 0 14px; }
.feature ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.feature li { padding-left: 28px; position: relative; color: var(--ink-2); font-weight: 600; font-size: 16px; }
.feature li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--seal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%233F6EA6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.f-media { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.f-media::before { content: ""; position: absolute; inset: 0 8%; border-radius: 40px; background: var(--seal-soft); z-index: 0; }
.f-media.yellow::before { background: var(--hi-soft); }
.f-media.green::before { background: var(--green-soft); }
.f-media .phone { width: 250px; }
.f-media .ace-s { position: absolute; z-index: 2; width: 130px; bottom: 6px; right: 10%; filter: drop-shadow(0 8px 12px rgba(49,88,138,.2)); }
.tag { display: inline-block; font-size: 13px; font-weight: 800; color: var(--blue); background: var(--seal-soft); padding: 4px 10px; border-radius: 8px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .feature.rev .f-media { order: 0; }
  .f-media .phone { width: 220px; }
}

/* calm */
.calm { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 32px; padding: 36px 40px; max-width: 900px; margin: 0 auto; }
.calm img { width: 200px; }
.calm h2 { font-size: clamp(26px, 3.6vw, 36px); }
.calm p { color: var(--ink-2); margin: 12px 0 0; }
@media (max-width: 760px) { .calm { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; } .calm img { margin: 0 auto; width: 150px; } }

/* table */
.table-wrap { overflow-x: auto; background: var(--cream); border: 1px solid var(--line); border-radius: 24px; max-width: 920px; margin: 0 auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 620px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 14px; color: var(--ink-3); font-weight: 700; background: #FBFAF4; }
thead th.us { color: var(--blue); }
tbody th { font-weight: 700; color: var(--ink); width: 26%; }
td.us { background: rgba(228,238,248,.55); font-weight: 700; color: var(--ink); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.note { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 14px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--cream); border: 1px solid var(--line); border-radius: 28px; padding: 30px; }
.plan.pro { border: 2px solid var(--blue); position: relative; }
.plan .price { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; margin: 8px 0 4px; }
.plan .sub { color: var(--ink-3); font-size: 15px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; color: var(--ink-2); font-size: 16px; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 900; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 30px 20px 0; font-weight: 750; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 26px; font-weight: 500; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* final cta */
.final { text-align: center; background: linear-gradient(180deg, var(--seal-soft), var(--bg)); border-radius: 40px; padding: 64px 24px 56px; margin: 0 12px; }
.final > img { width: 170px; margin: 0 auto 8px; animation: bob 3.4s ease-in-out infinite; }
.final h2 { margin-bottom: 14px; }
.final .stores { justify-content: center; margin-top: 28px; }

/* footer */
footer { padding: 56px 0 120px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: grid; gap: 14px; }
footer a { color: var(--ink-2); }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer p { margin: 0; }

/* sticky mobile cta */
.sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; align-items: center; gap: 12px; background: rgba(31,36,48,.94); color: #fff; padding: 10px 10px 10px 12px; border-radius: 20px; box-shadow: 0 12px 30px rgba(0,0,0,.25); transform: translateY(140%); transition: transform .3s ease; backdrop-filter: blur(10px); }
.sticky.show { transform: none; }
.sticky img { width: 40px; height: 40px; border-radius: 10px; }
.sticky div { flex: 1; line-height: 1.25; }
.sticky b { font-size: 15px; display: block; }
.sticky span { font-size: 12px; opacity: .75; }
.sticky .btn { padding: 11px 16px; font-size: 15px; box-shadow: none; }
@media (max-width: 760px) { .sticky { display: flex; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* research */
.research { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; max-width: 860px; margin: -16px auto 48px; background: var(--cream); border: 1px solid var(--line); border-radius: 24px; padding: 22px 26px; }
.research p { margin: 0; color: var(--ink-2); font-size: 16px; }
.research p b { color: var(--ink); }
.research small { color: var(--ink-3); font-size: 13px; }
.bars { display: flex; gap: 18px; align-items: flex-end; height: 130px; justify-content: center; }
.bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; width: 64px; position: relative; }
.bars span { width: 44px; background: #D5D9E0; border-radius: 10px 10px 4px 4px; order: 2; }
.bars .us span { background: var(--blue); }
.bars b { font-size: 17px; font-weight: 900; order: 1; margin-bottom: 4px; }
.bars .us b { color: var(--blue); }
.bars small { order: 3; font-size: 12px; margin-top: 6px; white-space: nowrap; color: var(--ink-3); font-weight: 600; }
@media (max-width: 680px) { .research { grid-template-columns: 1fr; text-align: left; } .bars { height: 120px; } }

/* mascot images: always keep 1:1, never stretch */
img[src*="/assets/ace/"] { aspect-ratio: 1 / 1; height: auto !important; object-fit: contain; }
