/* ───────── 수학패드 소개 — coachnote.co.kr/mathpad/ ─────────
   코치노트와 같은 골격(헤더 60 · wrap 1080 · Pretendard · 사업자 푸터), 색은 앱 것(Theme.swift).
   학생 강조 = 주황. 흰 글자는 큰 단추에만(주황 위 흰 글자 3.08:1).
   이 파일만 이 페이지가 읽는다 — /style.css 는 건드리지 않고 불러오지도 않는다. */
:root {
  --ink: #0E3A33;
  --ink-2: #3D6159;
  --paper: #FBF9F5;
  --paper-2: #F4EFE5;
  --card: #ffffff;
  --flame: #F2683C;
  --flame-dark: #C24A24;
  --flame-pale: #FDE8E0;
  --read: #E4F3EC;
  --alert: #B3352B;
  --line: #E3DDD0;
  --rule: #D9E6E0;
  --navy: #1B2A55;
  --r-lg: 20px;
  --r-md: 14px;
  --edge: 2.5px solid var(--ink);
  --lift: 4px 4px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--paper); color: var(--ink); line-height: 1.6; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 850; letter-spacing: -.025em; line-height: 1.3; }
h2 em, h1 em { font-style: normal; color: var(--flame-dark); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: clamp(15px, 1.8vw, 17px); }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--flame-dark); margin-bottom: 10px; }

/* ── FRISAT 띠 ── */
.sister { background: var(--ink); color: #dfe9e5; font-size: 13px; }
.sister .wrap { display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; }
.sister a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.sister a:hover { border-color: #fff; }

/* ── 헤더 ── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 245, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 850; text-decoration: none; letter-spacing: -.02em; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.top-r { display: flex; align-items: center; gap: 22px; }
.top-nav { display: flex; gap: 20px; }
.top-nav a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); }
.top-cta { background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 999px; transition: background .2s; }
.top-cta:hover { background: #082722; }
@media (max-width: 720px) { .top-nav { display: none; } }
@media (max-width: 520px) { .top-cta { padding: 8px 13px; font-size: 13px; } }

/* ── 단추 ── */
.btn-store {
  display: inline-flex; align-items: center; gap: 11px; height: 60px; padding: 0 24px; border-radius: var(--r-md);
  background: #101820; color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(16, 24, 32, .22);
  transition: transform .1s, box-shadow .2s;
}
.btn-store:hover { box-shadow: 0 12px 28px rgba(16, 24, 32, .3); }
.btn-store:active { transform: scale(.98); }
.btn-store b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.btn-store i { display: block; font-size: 11.5px; font-style: normal; opacity: .75; }
.apple {
  width: 24px; height: 26px; flex: none; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.2 1.8-3.3 1.9-3.4-1-1.5-2.6-1.7-3.2-1.7-1.4-.1-2.7.8-3.3.8-.7 0-1.7-.8-2.8-.8-1.5 0-2.8.8-3.6 2.1-1.5 2.6-.4 6.5 1.1 8.7.7 1 1.6 2.2 2.7 2.2 1.1 0 1.5-.7 2.8-.7s1.6.7 2.8.7c1.2 0 1.9-1.1 2.6-2.1.8-1.2 1.1-2.4 1.2-2.4-.1 0-2.2-.9-2.2-3.4zM14.2 5.9c.6-.7 1-1.7.9-2.7-.9 0-2 .6-2.6 1.3-.6.6-1.1 1.7-.9 2.6 1 .1 2-.5 2.6-1.2z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.2 1.8-3.3 1.9-3.4-1-1.5-2.6-1.7-3.2-1.7-1.4-.1-2.7.8-3.3.8-.7 0-1.7-.8-2.8-.8-1.5 0-2.8.8-3.6 2.1-1.5 2.6-.4 6.5 1.1 8.7.7 1 1.6 2.2 2.7 2.2 1.1 0 1.5-.7 2.8-.7s1.6.7 2.8.7c1.2 0 1.9-1.1 2.6-2.1.8-1.2 1.1-2.4 1.2-2.4-.1 0-2.2-.9-2.2-3.4zM14.2 5.9c.6-.7 1-1.7.9-2.7-.9 0-2 .6-2.6 1.3-.6.6-1.1 1.7-.9 2.6 1 .1 2-.5 2.6-1.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn-line {
  display: inline-flex; align-items: center; height: 60px; padding: 0 22px; border-radius: var(--r-md);
  border: var(--edge); background: #fff; color: var(--ink); font-weight: 800; font-size: 16px; text-decoration: none;
  box-shadow: var(--lift); transition: transform .1s, box-shadow .1s;
}
.btn-line:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-line:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* ── 히어로 ── */
.hero { position: relative; overflow: hidden; padding: 64px 0 88px; background:
  radial-gradient(900px 480px at 88% 18%, #FDE3D6 0%, rgba(253,227,214,0) 60%),
  linear-gradient(180deg, #FBF6EE 0%, var(--paper) 100%); }
.hero::after { /* 공책 괘선 — 앱의 풀기 칸 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: repeating-linear-gradient(180deg, transparent 0 55px, rgba(14,58,51,.06) 55px 56px);
  -webkit-mask: linear-gradient(90deg, #000 0%, transparent 55%); mask: linear-gradient(90deg, #000 0%, transparent 55%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--flame); }
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 900; line-height: 1.16; letter-spacing: -.035em; }
.hero h1 em { position: relative; color: var(--ink); white-space: nowrap; }
.hero h1 em::after { /* 펜으로 그은 밑줄 */
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .32em; z-index: -1;
  background: var(--flame); opacity: .9; border-radius: 6px 12px 8px 14px; transform: rotate(-1.2deg);
}
.hero-sub { margin: 22px 0 30px; font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.hero-note b { color: var(--ink); }
.hero-note .dot { margin: 0 6px; opacity: .5; }

/* ── 아이패드 목업 (히어로) — 실제 풀기 화면(ipad/02)의 틀을 옮김 ── */
.mock-wrap { display: flex; justify-content: center; }
.ipad { width: min(100%, 470px); aspect-ratio: 3 / 3.9; border-radius: 34px; background: #111a19; padding: 13px; box-shadow: 0 30px 70px rgba(14, 58, 51, .28); transform: rotate(-2deg); }
.scr { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: #E9F1EE; display: flex; flex-direction: column; font-size: 11px; }
.scr-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px 8px; border-bottom: 2px solid var(--ink); background: #F2F6F4; }
.scr-who { border: 1.5px solid var(--ink); border-radius: 7px; padding: 1px 7px; font-weight: 700; font-size: 10px; }
.scr-tabs { display: flex; gap: 2px; background: #E0EAE6; border-radius: 8px; padding: 2px; margin: 0 auto; }
.scr-tabs span { padding: 2px 7px; border-radius: 6px; font-size: 9.5px; color: var(--ink-2); font-weight: 600; }
.scr-tabs span.on { background: var(--flame); color: #fff; }
.scr-body { flex: 1; display: grid; grid-template-columns: 1fr .52fr; grid-template-rows: auto 1fr auto; gap: 9px; padding: 10px; min-height: 0; }
.card { background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.q { padding: 9px 11px 10px; display: flex; justify-content: space-between; gap: 8px; }
.q small { display: inline-block; font-size: 8.5px; font-weight: 700; color: var(--ink-2); }
.q small b { background: var(--flame-pale); color: var(--flame-dark); border-radius: 4px; padding: 0 5px; margin-right: 5px; }
.q .expr { font-family: "Times New Roman", "Noto Serif KR", serif; font-weight: 700; font-size: clamp(19px, 2.3vw, 25px); letter-spacing: .01em; margin-top: 2px; white-space: nowrap; }
.coach { flex: none; align-self: start; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--flame-pale); padding: 4px 8px; font-size: 8.5px; line-height: 1.35; max-width: 82px; }
.coach b { color: var(--flame-dark); display: block; font-size: 9px; }
.msg { padding: 9px 10px; background: #F7F6F3; position: relative; }
.msg p { font-size: 8.5px; color: var(--ink-2); }
.msg .m-wrong, .msg .m-idle { position: absolute; inset: 9px 10px; }
.scr-foot span { white-space: nowrap; }
.msg .m-wrong b { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ink); }
.msg .m-wrong b::before { content: "↺"; color: var(--flame-dark); font-weight: 900; }
.pad { position: relative; background: #fff; overflow: hidden; }
.reads { background: #F7F6F3; overflow: hidden; }
.pad, .reads { display: grid; grid-template-rows: repeat(5, 1fr); }
.row { position: relative; border-bottom: 1.5px solid var(--rule); }
.reads .row { border-bottom-color: #E5E3DE; }
.hand { position: absolute; left: 7%; bottom: 10%; font-family: "Nanum Pen Script", "Gaegu", cursive; font-size: clamp(34px, 4.6vw, 48px); line-height: 1; white-space: nowrap; color: #1A2422; clip-path: inset(0 100% 0 0); }
.cell { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; padding: 0 9px; font-family: "Times New Roman", serif; font-weight: 700; font-size: 12.5px; opacity: 0; }
.cell i { width: 15px; height: 15px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center; font-style: normal; font-family: Pretendard, sans-serif; font-size: 9px; color: #fff; }
.cell .eye { background: transparent; }
.cell .eye::before { content: ""; width: 12px; height: 7px; border: 1.6px solid var(--ink-2); border-radius: 50% / 60%; }
.cell .eye::after { content: ""; position: absolute; width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--ink-2); }
.cell .ok, .cell .no { position: absolute; left: 9px; opacity: 0; }
.cell .ok { background: var(--ink); }
.cell .ok::before { content: "✓"; font-weight: 900; }
.cell .no { background: var(--alert); }
.cell .no::before { content: "?"; font-weight: 900; }
.cell .bgw { position: absolute; inset: 0; z-index: -1; opacity: 0; }
.scr-foot { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; }
.scr-foot span { border: 1.5px solid var(--ink); border-radius: 7px; padding: 3px 8px; font-size: 9px; font-weight: 700; background: #fff; }
.scr-foot .grade { flex: 0 0 34%; text-align: center; background: var(--flame); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.mock-cap { text-align: center; font-size: 12.5px; color: var(--ink-2); margin-top: 18px; }

/* 14초 한 바퀴: 쓰기 → 읽힘 → 채점하기 → 셋째 줄 짚음 → 고쳐 씀 → 맞음 */
.play .hand, .play .cell, .play .cell i, .play .cell .bgw, .play .m-wrong, .play .m-idle, .play .grade { animation-duration: 14s; animation-iteration-count: infinite; animation-timing-function: linear; animation-fill-mode: both; }
.paused .hand, .paused .cell, .paused .cell i, .paused .cell .bgw, .paused .m-wrong, .paused .m-idle, .paused .grade { animation-play-state: paused; }
.h1 { animation-name: w1; } .h2 { animation-name: w2; } .h3 { animation-name: w3; } .h4 { animation-name: w4; }
@keyframes w1 { 0%{clip-path:inset(0 100% 0 0);opacity:1} 9%{clip-path:inset(0 0 0 0)} 90%{opacity:1;clip-path:inset(0 0 0 0)} 96%,100%{opacity:0;clip-path:inset(0 0 0 0)} }
@keyframes w2 { 0%,12%{clip-path:inset(0 100% 0 0);opacity:1} 22%{clip-path:inset(0 0 0 0)} 90%{opacity:1;clip-path:inset(0 0 0 0)} 96%,100%{opacity:0;clip-path:inset(0 0 0 0)} }
@keyframes w3 { 0%,25%{clip-path:inset(0 100% 0 0);opacity:1} 31%{clip-path:inset(0 0 0 0);opacity:1} 54%{opacity:1;clip-path:inset(0 0 0 0)} 57%,100%{opacity:0;clip-path:inset(0 0 0 0)} }
@keyframes w4 { 0%,59%{clip-path:inset(0 100% 0 0);opacity:1} 64%{clip-path:inset(0 0 0 0)} 90%{opacity:1;clip-path:inset(0 0 0 0)} 96%,100%{opacity:0;clip-path:inset(0 0 0 0)} }
.c1 { animation-name: c1; } .c2 { animation-name: c2; } .c3 { animation-name: c3; } .c4 { animation-name: c4; }
@keyframes c1 { 0%,10%{opacity:0} 12%,90%{opacity:1} 96%,100%{opacity:0} }
@keyframes c2 { 0%,23%{opacity:0} 25%,90%{opacity:1} 96%,100%{opacity:0} }
@keyframes c3 { 0%,32%{opacity:0} 34%,54%{opacity:1} 57%,100%{opacity:0} }
@keyframes c4 { 0%,65%{opacity:0} 67%,90%{opacity:1} 96%,100%{opacity:0} }
/* 눈 → 판정 아이콘 */
.c1 .eye, .c2 .eye, .c3 .eye { animation-name: eyeA; }
.c4 .eye { animation-name: eyeB; }
@keyframes eyeA { 0%,38%{opacity:1} 40%,100%{opacity:0} }
@keyframes eyeB { 0%,72%{opacity:1} 74%,100%{opacity:0} }
.c1 .ok, .c2 .ok { animation-name: judgeA; }
.c3 .no { animation-name: judgeA; }
.c4 .ok { animation-name: judgeB; }
@keyframes judgeA { 0%,38%{opacity:0;transform:scale(.4)} 41%{opacity:1;transform:scale(1.2)} 43%,100%{opacity:1;transform:scale(1)} }
@keyframes judgeB { 0%,72%{opacity:0;transform:scale(.4)} 75%{opacity:1;transform:scale(1.2)} 77%,100%{opacity:1;transform:scale(1)} }
.c3 .bgw { background: var(--flame-pale); animation-name: bgA; }
.c1 .bgw, .c2 .bgw { background: var(--read); animation-name: bgA; }
.c4 .bgw { background: var(--read); animation-name: bgB; }
@keyframes bgA { 0%,39%{opacity:0} 41%,100%{opacity:1} }
@keyframes bgB { 0%,73%{opacity:0} 75%,100%{opacity:1} }
.m-wrong { animation-name: mw; }
.m-idle { animation-name: mi; }
@keyframes mw { 0%,40%{opacity:0;transform:translateY(4px)} 43%,70%{opacity:1;transform:none} 73%,100%{opacity:0} }
@keyframes mi { 0%,39%{opacity:1} 41%,73%{opacity:0} 76%,100%{opacity:1} }
.grade { animation-name: press; }
@keyframes press { 0%,36%,40%,70%,74%,100%{transform:none;box-shadow:2px 2px 0 var(--ink)} 38%,72%{transform:translate(2px,2px);box-shadow:0 0 0 var(--ink);background:var(--flame-dark)} }

/* ── 공감 ── */
.pain { padding: 88px 0 80px; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; }
.pain-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--flame-pale); color: var(--flame-dark); margin-bottom: 18px; }
.pain-card h3 { font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; margin-bottom: 10px; }
.pain-card p { font-size: 15px; color: var(--ink-2); }
.pain-turn { text-align: center; margin-top: 44px; font-size: clamp(19px, 2.6vw, 24px); font-weight: 800; letter-spacing: -.02em; }
.pain-turn em { font-style: normal; color: var(--flame-dark); }

/* ── 기능 줄 ── */
.feat { padding: 40px 0 100px; }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.feat-row + .feat-row { border-top: 1px dashed var(--line); }
.feat-row.rev .feat-copy { order: 2; }
.feat-tag { display: inline-block; font-size: 13px; font-weight: 800; color: var(--flame-dark); background: var(--flame-pale); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.feat-copy h3 { font-size: clamp(25px, 3.3vw, 34px); font-weight: 850; line-height: 1.3; letter-spacing: -.03em; margin-bottom: 16px; }
.feat-copy p { font-size: 16.5px; color: var(--ink-2); }
.feat-copy p + p { margin-top: 12px; }
.feat-copy strong { color: var(--ink); }
.feat-list { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.feat-list li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink-2); }
.feat-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--flame); border-bottom: 2.5px solid var(--flame); transform: rotate(-45deg); }
.feat-vis { display: flex; justify-content: center; }

.mcard { width: min(100%, 440px); background: #fff; border: var(--edge); border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--ink); padding: 22px; }
.mcard-note { font-size: 13px; color: var(--ink-2); margin-top: 14px; }

.steps { margin-top: 18px; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: var(--ink-2); }
.step b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 13px; }
.step strong { color: var(--ink); }

/* 02 엔진 둘 — 같으면 확정, 갈리면 되묻기 */
.eyes { display: grid; gap: 10px; }
.hw { font-family: "Nanum Pen Script", cursive; font-size: 38px; line-height: 1.1; text-align: center; padding: 6px 0 12px; border-bottom: 1.5px solid var(--rule); margin-bottom: 4px; }
.eye-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; font-size: 14px; }
.eye-row span { font-weight: 800; font-size: 12.5px; color: var(--ink-2); }
.eye-row code { position: relative; font-family: "Times New Roman", serif; font-weight: 700; font-size: 18px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 9px; padding: 4px 12px; height: 38px; display: block; }
.eye-row code i { position: absolute; left: 12px; top: 5px; font-style: normal; }
.verdict { position: relative; height: 46px; margin-top: 6px; }
.verdict > div { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 800; font-size: 15px; }
.v-ok { background: var(--read); color: var(--ink); }
.v-ask { background: var(--flame-pale); color: var(--flame-dark); border: 1.5px dashed var(--flame); }
.play2 .va, .play2 .vb, .play2 .v-ok, .play2 .v-ask, .play2 .hw-a, .play2 .hw-b { animation: 10s linear infinite both; }
.paused .va, .paused .vb, .paused .v-ok, .paused .v-ask, .paused .hw-a, .paused .hw-b { animation-play-state: paused; }
.hw { position: relative; height: 60px; }
.hw-a, .hw-b { position: absolute; left: 0; right: 0; top: 4px; }
.hw-a, .va, .v-ok { animation-name: phaseA !important; }
.hw-b, .vb, .v-ask { animation-name: phaseB !important; }
@keyframes phaseA { 0%{opacity:0} 4%,44%{opacity:1} 50%,100%{opacity:0} }
@keyframes phaseB { 0%,50%{opacity:0} 54%,94%{opacity:1} 100%{opacity:0} }
.v-ok, .v-ask { animation-delay: 0s; }
.eye-row .vb { color: var(--flame-dark); }
.fix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fix span { font-size: 13px; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 9px; padding: 5px 10px; background: #fff; }

/* 03 학년 */
.grades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.grade-c { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.grade-c b { display: inline-block; font-size: 13px; font-weight: 800; background: var(--ink); color: #fff; border-radius: 6px; padding: 0 7px; margin-bottom: 4px; }
.grade-c span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.45; }

/* 기기 틀 (실제 스크린샷) */
.dev { position: relative; background: #111a19; box-shadow: 0 24px 56px rgba(14, 58, 51, .22); }
.dev img { width: 100%; height: auto; background: #fff; }
.dev.pad-dev { width: min(100%, 420px); border-radius: 26px; padding: 11px; }
.dev.pad-dev img { border-radius: 16px; }
.dev.phone-dev { width: min(100%, 250px); border-radius: 38px; padding: 9px; }
.dev.phone-dev img { border-radius: 30px; }
.duo { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.duo .phone-dev { position: absolute; right: 0; bottom: -24px; width: min(42%, 200px); }
.duo .pad-dev { margin-right: 60px; }
.timer-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 12px; font-weight: 800; font-size: 14px; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.timer-chip em { font-style: normal; color: var(--flame-dark); }

/* ── 믿음 띠 (잉크) ── */
.trust { background: var(--ink); color: #E8F0ED; padding: 96px 0; position: relative; overflow: hidden; }
.trust::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 55px, rgba(255,255,255,.04) 55px 56px); }
.trust .wrap { position: relative; }
.trust h2 { color: #fff; }
.trust h2 em { color: #FF9A74; }
.trust .sec-head p { color: #B9CCC6; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 26px 24px; }
.t-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(242, 104, 60, .16); color: #FF9A74; margin-bottom: 16px; }
.t-card h3 { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.t-card p { font-size: 14.5px; color: #B9CCC6; }

/* ── 실제 화면 ── */
.shots { padding: 96px 0 40px; }
.shot-rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 24px 30px; max-width: 1180px; margin: 0 auto; scrollbar-width: thin; }
.shot { flex: none; scroll-snap-align: center; margin: 0; }
.shot .dev { margin: 0 auto; }
.shot.p .dev { width: 300px; }
.shot.i .dev { width: 190px; }
.shot figcaption { text-align: center; font-weight: 800; font-size: 15px; margin-top: 16px; letter-spacing: -.01em; }
.shot figcaption small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-2); }
.shots-note { text-align: center; font-size: 13px; color: var(--ink-2); }

/* ── 값 ── */
.price { padding: 88px 0 90px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 0 auto; }
.p-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 30px 30px 28px; position: relative; }
.p-card.hot { border: var(--edge); box-shadow: 6px 6px 0 var(--ink); }
.p-flag { display: inline-block; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 3px 11px; background: var(--read); color: var(--ink); }
.p-card.hot .p-flag { background: var(--flame-pale); color: var(--flame-dark); }
.p-card h3 { font-size: 18px; font-weight: 800; margin-top: 14px; }
.p-num { font-size: clamp(32px, 4vw, 40px); font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.25; margin: 4px 0 16px; }
.p-num small { font-size: 16px; font-weight: 700; color: var(--ink-2); margin-left: 4px; }
.p-card ul { list-style: none; display: grid; gap: 9px; }
.p-card li { position: relative; padding-left: 24px; font-size: 15px; color: var(--ink-2); }
.p-card li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2.5px solid var(--flame); border-bottom: 2.5px solid var(--flame); transform: rotate(-45deg); }
.p-card li strong { color: var(--ink); }
.p-foot { max-width: 860px; margin: 26px auto 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.p-foot strong { color: var(--ink); }

/* ── FAQ ── */
.faq { padding: 40px 0 90px; }
.faq .wrap { max-width: 820px; }
.faq details { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 750; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--flame-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; font-size: 15px; color: var(--ink-2); }
.faq details p a { color: var(--flame-dark); font-weight: 700; }

/* ── 받기 ── */
.get { padding: 30px 0 96px; }
.get-box { position: relative; overflow: hidden; background: var(--flame-pale); border: var(--edge); box-shadow: 8px 8px 0 var(--ink); border-radius: 28px; padding: 56px 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.get-box img.icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 14px 30px rgba(27, 42, 85, .3); }
.get-box h2 { font-size: clamp(24px, 3.2vw, 32px); }
.get-box p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }

/* ── FRISAT 다른 제품 ── */
.family { padding: 0 0 90px; }
.fam { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fam a { display: flex; gap: 16px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; text-decoration: none; transition: border-color .2s, transform .2s; }
.fam a:hover { border-color: var(--ink); transform: translateY(-2px); }
.fam .mk { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.fam .mk.cn { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'><rect width='1024' height='1024' fill='%232456d6'/><rect x='220' y='150' width='590' height='710' rx='118' fill='%23e9eefb'/><path d='M430 150h172v452l-86-80-86 80z' fill='%232456d6'/><rect x='310' y='716' width='410' height='44' rx='22' fill='%239db4e8'/></svg>") center/cover; }
.fam .mk.globe { display: grid; place-items: center; background: var(--flame-pale); color: var(--flame-dark); }
.fam b { display: block; font-size: 16.5px; }
.fam span { font-size: 14px; color: var(--ink-2); }
.fam .arrow { margin-left: auto; font-weight: 800; color: var(--ink-2); }

/* ── 푸터 (코치노트와 같은 틀) ── */
.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 13.5px; color: var(--ink-2); background: var(--paper-2); }
.foot-logo { display: flex; align-items: center; gap: 8px; font-weight: 850; font-size: 17px; color: var(--ink); margin-bottom: 12px; }
.foot-logo img { width: 22px; height: 22px; border-radius: 6px; }
.foot p + p { margin-top: 10px; }
.foot a { color: var(--ink); }
.foot .sep { margin: 0 6px; opacity: .5; }
.foot-biz { font-size: 12.5px; line-height: 1.75; }

/* ── 진입 ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .play .hand, .play .cell, .play .cell i, .play .cell .bgw, .play .m-wrong, .play .m-idle, .play .grade,
  .play2 .va, .play2 .vb, .play2 .v-ok, .play2 .v-ask, .play2 .hw-a, .play2 .hw-b { animation-play-state: paused; }
}

/* ── 반응형 ── */
@media (max-width: 920px) {
  .hero { padding: 44px 0 64px; }
  .hero-in { grid-template-columns: 1fr; gap: 44px; }
  .ipad { transform: none; }
  .feat-row { grid-template-columns: 1fr; gap: 36px; padding: 44px 0; }
  .feat-row.rev .feat-copy { order: 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .get-box { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 44px 24px; }
}
@media (max-width: 620px) {
  .trust-grid, .price-grid, .fam { grid-template-columns: 1fr; }
  .hero-cta .btn-store, .hero-cta .btn-line { flex: 1 1 100%; justify-content: center; }
  .duo .pad-dev { margin-right: 44px; }
  .sister .wrap { font-size: 12px; }
  .scr { font-size: 10px; }
  .scr-tabs span { padding: 2px 4px; font-size: 8px; }
  /* 좁은 화면: 문제·안내 칸을 위로 한 줄씩, 풀기·읽힘 칸은 아래 두 칸 */
  .scr-body { grid-template-columns: 1fr .5fr; grid-template-rows: auto 52px 1fr auto; gap: 7px; padding: 8px; }
  .q, .msg { grid-column: 1 / -1; }
  .msg .m-wrong, .msg .m-idle { inset: 7px 9px; }
  .scr-foot { gap: 4px; }
  .scr-foot span { white-space: nowrap; padding: 3px 5px; font-size: 8.5px; }
  .scr-foot .grade { flex: 1 1 auto; }
  .ipad { aspect-ratio: 3 / 4.5; padding: 10px; border-radius: 28px; }
  .hand { font-size: 28px; bottom: 6%; }
  .cell { font-size: 11px; padding: 0 6px; gap: 4px; }
  .cell .ok, .cell .no { left: 6px; }
  .shot.p .dev { width: 250px; }
  .shot.i .dev { width: 160px; }
}

/* ═════════ 0913 2판 — 우선순위 다섯 절(하루 적정량 → 풀이 → 틀리면 → 원리 → 게임) ═════════ */
.paused, .paused * { animation-play-state: paused !important; }

/* 히어로 핵심 셋 */
.hero-3 { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.hero-3 li { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 13px 5px 6px; font-size: 14px; font-weight: 700; }
.hero-3 b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--flame); color: #fff; font-size: 11.5px; }

/* 다섯 가지 차례 */
.pillars-index { padding: 56px 0 24px; }
.px { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: none; }
.px a { display: block; height: 100%; text-decoration: none; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 16px 16px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.px a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.px b { display: block; font-size: 13px; font-weight: 900; color: var(--flame-dark); letter-spacing: .04em; }
.px strong { display: block; font-size: 17px; font-weight: 850; line-height: 1.32; letter-spacing: -.02em; margin: 6px 0 8px; }
.px span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* 절 */
.pillar { padding: 88px 0 40px; }
.pillar.alt { background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%); }
.pillar-head { text-align: center; max-width: 760px; margin: 0 auto 8px; }
.pillar-no { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: var(--edge); box-shadow: 3px 3px 0 var(--ink); background: #fff; font-weight: 900; font-size: 15px; margin-bottom: 16px; }
.pillar-head h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; line-height: 1.22; letter-spacing: -.035em; }
.pillar .feat-row:first-of-type { border-top: 0; }
.pillar .feat-row + .feat-row { border-top: 1px dashed var(--line); }

/* 인용 */
.quote { margin: 26px auto 0; max-width: 640px; position: relative; padding: 18px 24px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; }
.quote::before { content: "\201C"; position: absolute; left: 16px; top: -22px; font: 900 64px/1 Georgia, "Times New Roman", serif; color: var(--flame); }
.quote blockquote { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(17px, 2vw, 20px); line-height: 1.45; color: var(--ink); }
.quote .q-ko { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.quote figcaption { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.quote figcaption b { color: var(--ink); font-weight: 800; }

/* 01 하루 목표 목업 */
.daymock { position: relative; overflow: hidden; }
.dm-chip { display: inline-flex; gap: 8px; align-items: center; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 12px; font-weight: 800; font-size: 14px; }
.dm-chip em { font-style: normal; color: var(--flame-dark); position: relative; }
.dm-chip em i { font-style: normal; }
.dm-chip em i.dm-b, .dm-chip em i.dm-c { position: absolute; left: 0; top: 0; }
.dm-bar { height: 12px; border-radius: 99px; background: #EFEAE0; margin: 14px 0 16px; overflow: hidden; border: 1.5px solid var(--ink); }
.dm-bar i { display: block; height: 100%; width: 20%; background: var(--flame); }
.dm-coach { border: 1.5px solid var(--ink); border-radius: 10px; background: var(--flame-pale); padding: 8px 12px; font-size: 13.5px; }
.dm-coach b { color: var(--flame-dark); margin-right: 8px; }
.dm-flow { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; align-items: end; height: 70px; margin-top: 18px; border-bottom: 1.5px solid var(--line); padding-bottom: 2px; }
.dm-flow span { height: var(--h); background: #E8C9BA; border-radius: 4px 4px 1px 1px; }
.dm-flow span.off { height: 3px; background: transparent; border-bottom: 2px dotted #CFC6B6; border-radius: 0; }
.dm-flow span.today { height: 40%; background: var(--flame); }
.dm-flow-cap { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.dm-done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; background: rgba(251, 249, 245, .9); opacity: 0; }
.dm-done b { font-size: 44px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.dm-done span { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.play2 .dm-bar i, .play2 .dm-a, .play2 .dm-b, .play2 .dm-c, .play2 .dm-done, .play2 .dm-flow span.today { animation: 10s linear infinite both; }
.dm-bar i { animation-name: dmBar !important; }
.dm-a { animation-name: dmA !important; } .dm-b { animation-name: dmB !important; } .dm-c { animation-name: dmC !important; }
.dm-done { animation-name: dmDone !important; }
.dm-flow span.today { animation-name: dmToday !important; }
@keyframes dmBar { 0%{width:4%} 25%{width:20%} 55%{width:60%} 70%,100%{width:100%} }
@keyframes dmA { 0%,24%{opacity:1} 25%,100%{opacity:0} }
@keyframes dmB { 0%,24%{opacity:0} 25%,54%{opacity:1} 55%,100%{opacity:0} }
@keyframes dmC { 0%,54%{opacity:0} 55%,100%{opacity:1} }
@keyframes dmDone { 0%,72%{opacity:0;transform:scale(1.04)} 76%,95%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes dmToday { 0%{height:6%} 25%{height:20%} 55%{height:55%} 70%,100%{height:88%} }

/* 03 SOS 목업 */
.sm-q { font-family: "Times New Roman", serif; font-weight: 700; font-size: 26px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.sm-lines { margin-top: 4px; }
.sm-row { height: 50px; border-bottom: 1.5px solid var(--rule); display: flex; align-items: flex-end; padding: 0 6px 6px; }
.sm-t { font-family: "Nanum Pen Script", cursive; font-size: 34px; line-height: 1; white-space: nowrap; opacity: 0; }
.sm-hi { color: var(--flame-dark); }
.sm-mv { display: inline-block; }
.sm-ans { display: flex; align-items: center; gap: 10px; margin-top: 12px; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 10px; }
.sm-ans span { background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; border-radius: 5px; padding: 1px 6px; }
.sm-ans b { font-family: "Nanum Pen Script", cursive; font-size: 30px; line-height: 1; opacity: 0; font-weight: 400; }
.sm-end { margin-top: 12px; font-weight: 800; font-size: 15px; color: var(--flame-dark); opacity: 0; }
.play2 .sm-t, .play2 .sm-mv, .play2 .s5, .play2 .s6 { animation: 12s linear infinite both; }
.s1 { animation-name: sm1 !important; } .s2 { animation-name: sm2 !important; } .s3 { animation-name: sm3 !important; } .s4 { animation-name: sm4 !important; }
.s5 { animation-name: sm5 !important; } .s6 { animation-name: sm6 !important; }
.sm-mv { animation-name: smMv !important; }
@keyframes sm1 { 0%{opacity:0} 3%,94%{opacity:1} 100%{opacity:0} }
@keyframes smMv { 0%,10%{color:inherit;transform:none} 14%,22%{color:var(--flame-dark);transform:translateY(-4px)} 26%,100%{color:inherit;transform:none} }
@keyframes sm2 { 0%,22%{opacity:0;transform:translateX(-8px)} 26%,94%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes sm3 { 0%,40%{opacity:0;transform:translateX(-8px)} 44%,94%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes sm4 { 0%,58%{opacity:0;transform:translateX(-8px)} 62%,94%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes sm5 { 0%,68%{opacity:0;transform:scale(.6)} 72%{opacity:1;transform:scale(1.2)} 74%,94%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes sm6 { 0%,76%{opacity:0} 80%,94%{opacity:1} 100%{opacity:0} }

/* 03 시험 뒤 틀린 것만 */
.rv-h { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.rv-s { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.rv-card { border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); padding: 14px; background: #fff; }
.rv-p { font-family: "Times New Roman", serif; font-weight: 700; font-size: 22px; }
.rv-block { display: flex; gap: 10px; align-items: center; margin: 10px 0; background: var(--read); border-radius: 9px; padding: 6px 10px; }
.rv-block span, .rv-lab, .rv-pr span { font-size: 11.5px; font-weight: 800; color: var(--ink-2); }
.rv-block b { font-family: "Times New Roman", serif; font-size: 18px; }
.rv-steps { margin: 4px 0 10px 20px; font-family: "Times New Roman", serif; font-size: 16px; font-weight: 700; }
.rv-steps li::marker { font-family: Pretendard, sans-serif; font-size: 11px; color: var(--ink-2); }
.rv-pr { display: flex; gap: 10px; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 9px; }
.rv-pr p { font-size: 13.5px; }

/* 04 개념 카드 한 문장 */
.ideas { margin-top: 18px; display: grid; gap: 8px; }
.ideas-h { font-size: 12.5px; font-weight: 800; color: var(--flame-dark); }
.ideas blockquote { background: #fff; border: 1.5px solid var(--line); border-left: 4px solid var(--flame); border-radius: 10px; padding: 9px 13px; font-size: 14.5px; font-weight: 600; }

@media (max-width: 920px) {
  .px { grid-template-columns: repeat(2, 1fr); }
  .px li:last-child { grid-column: 1 / -1; }
  .pillar { padding: 64px 0 24px; }
  .top-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .play2 *, .play * { animation-play-state: paused !important; }
  .dm-a, .dm-b { opacity: 0 !important; } .dm-c { opacity: 1 !important; }
  .sm-t, .s5, .s6 { opacity: 1 !important; }
}

/* ═════════ 0913 3판 — App Store 단추는 심사 전 hidden · FRISAT ═════════ */
[hidden] { display: none !important; }
.btn-ink { display: inline-flex; align-items: center; height: 60px; padding: 0 26px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-weight: 800; font-size: 16.5px; text-decoration: none; box-shadow: 0 10px 24px rgba(14, 58, 51, .22); transition: background .2s, transform .1s; }
.btn-ink:hover { background: #082722; }
.btn-ink:active { transform: scale(.98); }
.top-alt { display: none; }
@media (max-width: 920px) { .top-alt { display: inline-block; } }
.get-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fam-h { font-size: 20px; text-align: left; margin-bottom: 16px; }
.fam-all { margin-top: 14px; font-size: 14.5px; }
.fam-all a { color: var(--flame-dark); font-weight: 800; text-decoration: none; }
.fam .mk.fm { background: #fff; border: 1.5px solid var(--line); padding: 4px; }
@media (max-width: 620px) { .hero-cta .btn-ink { flex: 1 1 100%; justify-content: center; } }
