/* 소개 페이지 (intro.html) — 시안 docs/24_소개페이지_시안.html 에서 옮김.
   레이아웃: «평가표» — 왼쪽 정렬 본문 + 생기부 표 모양 문서 한 장이 주인공. 색은 앱 본체(style.css)와 같은 파랑.
   CSP(style-src 'self')라 웹 글꼴을 쓰지 않는다 — 기기 글꼴. */
:root {
  color-scheme: light;
  --paper: #f6f7fa;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --ink: #141b2b;
  --muted: #586276;
  --line: #d8dde7;
  --accent: #2557d6;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefc;
  --mark: #ffe680;
  --mark-ink: #3d3200;
  --hl: #ffe680;
  --ok: #1f7a4d;
  --wait-bg: #fff3d6;
  --g-btn: #ffffff;
  --g-btn-line: #747775;
  --g-btn-ink: #1f1f1f;
  --k-btn: #fee500;
  --k-ink: rgba(0, 0, 0, .85);
  --font-display: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-num: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e121a; --surface: #161c27; --surface-2: #1d2432; --ink: #e8ecf3; --muted: #a2acbc;
    --line: #2c3546; --accent: #7da2ff; --accent-ink: #0b1220; --accent-soft: #1b2440;
    --mark: #5c4b10; --mark-ink: #ffe9a6; --hl: #8a6c0c; --ok: #6fd6a0; --wait-bg: #3a2f10;
    --g-btn: #131314; --g-btn-line: #8e918f; --g-btn-ink: #e3e3e3;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.7 var(--font-body); word-break: keep-all; overflow-wrap: anywhere;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.3; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--accent); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 머리 */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); white-space: nowrap; flex: none; }
.brand b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.brand span { font-size: .78rem; color: var(--muted); }
nav.links { display: flex; gap: 20px; margin-left: auto; font-size: .92rem; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--ink); }
@media (max-width: 760px) { nav.links { display: none; } header.top .btn { margin-left: auto; } }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font: 600 .98rem var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-google { background: var(--g-btn); color: var(--g-btn-ink); border-color: var(--g-btn-line); font-weight: 500; }
.btn-kakao { background: var(--k-btn); color: var(--k-ink); font-weight: 500; border-radius: 12px; }
.btn-kakao:hover, .btn-google:hover { filter: brightness(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }

/* 앱 안 브라우저 안내 */
.inapp-bar { background: var(--wait-bg); border-bottom: 1px solid var(--line); }
.inapp-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 12px; font-size: .9rem; }
.inapp-bar p { flex: 1 1 260px; }
.inapp-bar .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.toast { flex-basis: 100%; font-size: .84rem; color: var(--ok); min-height: 1.3em; }
.inapp-note { flex-basis: 100%; font-size: .88rem; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }

/* 첫 화면 */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 88px); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.22; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 58%, var(--hl) 58%); }
.hero .lede { margin-top: 20px; font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cta-row .more { flex-basis: 100%; margin-top: 2px; font-size: .9rem; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 6px; }
.facts li::before { content: "✓"; color: var(--ok); font-weight: 700; }
@media (max-width: 560px) { .cta-row .btn { width: 100%; } .brand span { display: none; } }

/* 생기부 문서 */
.record { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(20, 27, 43, .35); overflow: hidden; margin: 0; }
.record table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.record th, .record td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.record th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: .78rem; white-space: nowrap; width: 1%; }
.record td mark { background: var(--mark); color: var(--mark-ink); padding: 0 2px; border-radius: 2px; }
.record .tag { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; font-size: .74rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.chain { list-style: none; margin: 0; padding: 16px 14px 18px; display: grid; gap: 10px; }
.chain li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: start; }
.chain .who-q { font-size: .74rem; font-weight: 600; color: var(--muted); padding-top: 9px; }
.chain .bubble { background: var(--accent-soft); border-radius: 4px 12px 12px 12px; padding: 8px 12px; font-size: .93rem; }
.chain li.tail .bubble { border-left: 3px solid var(--accent); }
.chain li.d1 .bubble { margin-left: 14px; }
.chain li.d2 .bubble { margin-left: 28px; }
.chain .why { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }

/* 절 공통 */
section.block { border-top: 1px solid var(--line); }
section.block > .wrap { padding-block: clamp(48px, 7vw, 84px); }
.sec-head { display: grid; gap: 12px; max-width: 40em; margin-bottom: 36px; }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.sec-head p { color: var(--muted); }
.example { display: inline-block; font-size: .7rem; font-weight: 600; padding: 1px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }

/* 근거 숫자 */
.evidence { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.evidence div { padding: 22px 20px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.evidence div:first-child { border-left: 0; }
.evidence b { font-family: var(--font-num); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; }
.evidence span { font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) { .evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); } .evidence div:nth-child(3) { border-left: 0; } .evidence div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.source { margin-top: 14px; font-size: .82rem; color: var(--muted); }

/* 순서 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); font-family: var(--font-num); font-size: .85rem; color: var(--accent); }
.steps h3 { font-size: 1.05rem; font-weight: 600; }
.steps p { font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
@media (max-width: 460px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* 10회 과정 */
.course { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .course { grid-template-columns: minmax(0, 1fr); } }
.rounds { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rounds li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.rounds li:first-child { border-top: 0; }
.rounds .r { font-family: var(--font-num); color: var(--accent); font-size: .92rem; padding-top: 2px; white-space: nowrap; }
.rounds b { font-weight: 600; }
.rounds p { font-size: .9rem; color: var(--muted); }
.note { margin-top: 14px; font-size: .88rem; color: var(--muted); }

/* 리포트 예시 */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.report-head b { font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.axis { display: grid; grid-template-columns: 84px minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: .88rem; }
.bars { display: grid; gap: 4px; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.bar > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; }
.bar.first > span, .legend .first { background: var(--line); }
.bar.last > span, .legend .last { background: var(--accent); }
.axis .delta { text-align: right; font-family: var(--font-num); font-size: .82rem; color: var(--ok); }
.report-foot { border-top: 1px solid var(--line); padding-top: 12px; font-size: .8rem; color: var(--muted); }

/* 가격 */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-rows: auto auto 1fr; gap: 14px; }
.plan.best { border: 2px solid var(--accent); padding: 23px; }
.plan .pname { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; }
.badge { font-size: .74rem; font-weight: 600; background: var(--accent); color: var(--accent-ink); padding: 2px 9px; border-radius: 999px; }
.price { font-size: 2rem; line-height: 1.1; }
.price small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); margin-left: 4px; }
.per { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.plan ul { margin: 0; padding-left: 1.1em; font-size: .92rem; color: var(--muted); display: grid; gap: 4px; }
.pay-terms { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: .88rem; color: var(--muted); }
.pay-terms div { border-top: 1px solid var(--line); padding-top: 12px; }
.pay-terms b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 760px) { .pay-terms { grid-template-columns: minmax(0, 1fr); } }

/* 보호자 결제 */
.guardian { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 32px); }
@media (max-width: 860px) { .guardian { grid-template-columns: minmax(0, 1fr); } }
.guardian h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; line-height: 1.35; margin-top: 8px; }
.guardian > div > p:last-child { margin-top: 10px; color: var(--muted); font-size: .94rem; }
.relay { list-style: none; margin: 0; padding: 0; display: grid; }
.relay li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.relay li:first-child { border-top: 0; padding-top: 0; }
.relay .role { font-size: .78rem; font-weight: 600; padding-top: 2px; }
.relay .role.kid { color: var(--accent); }
.relay .role.parent { color: var(--ok); }
.relay b { font-weight: 600; }
.relay p { font-size: .9rem; color: var(--muted); }

/* 개인정보 */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.promises div { padding: 22px; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.promises div:nth-child(-n+2) { border-top: 0; }
.promises div:nth-child(even) { border-left: 1px solid var(--line); }
.promises h3 { font-size: 1rem; font-weight: 600; }
.promises p { font-size: .9rem; color: var(--muted); }
@media (max-width: 700px) { .promises { grid-template-columns: minmax(0, 1fr); } .promises div:nth-child(even) { border-left: 0; } .promises div:nth-child(2) { border-top: 1px solid var(--line); } }

/* 자주 묻는 것 */
.faq { max-width: 760px; display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-num); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); font-size: .95rem; max-width: 62ch; }

footer { border-top: 1px solid var(--line); background: var(--surface); font-size: .82rem; color: var(--muted); }
footer .wrap { padding-block: 32px; display: grid; gap: 8px; }

/* 학원 브랜딩 (docs/35) — 칸 모양은 brand.css, 여기는 소개 페이지 안 자리만 */
.cobrand { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cobrand b { color: var(--ink); }
.hero-academy { margin-top: 26px; display: grid; gap: 8px; max-width: 30em; }
@media (max-width: 760px) { .cobrand { display: none; } }
