/* 배움브릿지 홈페이지. 색·둥글기는 assets/tokens.css(learning-platform packages/design-tokens에서 복사). */
:root {
  --brand-teal: #17605a;     /* 로고 청록 (brand-20261111) */
  --brand-apricot: #ee9a5c;  /* 로고 살구 */
  --kakao-yellow: #fee500;
  --kakao-ink: #191919;
  --slot-ink: #8a4b12;
  --slot-bg: #fff4e3;
  --slot-line: #e39a4f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--deep-ink);
  background: var(--warm-ivory);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 10px 14px; background: var(--deep-ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { width: min(calc(100% - 48px), var(--content-width)); margin: 0 auto; }
:focus-visible { outline: 3px solid var(--brand-apricot); outline-offset: 3px; border-radius: 6px; }

/* ── 검토용 표시 ─────────────────────────────── */
.draft-banner { display: none; }
[data-draft] .draft-banner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
  padding: 9px 16px; background: var(--slot-bg); border-bottom: 1px dashed var(--slot-line);
  color: var(--slot-ink); font-size: 0.86rem; text-align: center;
}
.slot { color: var(--muted-ink); }
[data-draft] .slot {
  display: inline-block; padding: 1px 8px; border: 1.5px dashed var(--slot-line); border-radius: 8px;
  background: var(--slot-bg); color: var(--slot-ink);
}
[data-draft] .slot::before {
  content: "빈칸"; margin-right: 6px; padding: 0 6px; border-radius: 999px;
  background: var(--slot-line); color: #fff; font-size: 0.72em; font-weight: 800; vertical-align: 1px;
}
[data-draft] .button[data-slot], [data-draft] a[data-slot]:not(.button) { outline: 2px dashed var(--slot-line); outline-offset: 3px; border-radius: 999px; }
.draft-only { display: none !important; }
[data-draft] .draft-only { display: grid !important; }

/* ── 머리 ───────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 238, 0.92); border-bottom: 1px solid transparent; backdrop-filter: blur(16px); transition: border-color 180ms ease, box-shadow 180ms ease; }
.site-header.is-scrolled { border-bottom-color: rgba(31, 111, 104, 0.12); box-shadow: 0 8px 24px rgba(36, 51, 49, 0.05); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: inline-flex; }
.brand img { width: 196px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 0.95rem; font-weight: 650; }
.site-nav a { color: var(--muted-ink); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--baeum-teal-dark); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.menu-button > span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 4px 0; border-radius: 999px; background: var(--deep-ink); }

/* ── 단추 ───────────────────────────────────── */
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 750; font-size: 1rem; white-space: nowrap; transition: background 150ms ease, transform 150ms ease; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--brand-teal); color: #fff; box-shadow: 0 12px 28px rgba(23, 96, 90, 0.22); }
.button-primary:hover { background: var(--baeum-teal-dark); }
.button-kakao { background: var(--kakao-yellow); color: var(--kakao-ink); }
.button-kakao:hover { background: #f5dc00; }
.button-light { background: #fff; color: var(--deep-ink); }
.button-small { min-height: 42px; padding: 0 16px; font-size: 0.92rem; }
.button-large { min-height: 60px; padding: 0 28px; font-size: 1.06rem; }
.button-sub { font-size: 0.8rem; font-weight: 600; color: var(--muted-ink); }
.kakao-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.header-login { padding: 8px 12px; color: var(--deep-ink); font-size: 0.95rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ask-login { justify-self: center; color: rgba(255, 255, 255, 0.86); font-size: 0.92rem; font-weight: 650; text-underline-offset: 4px; }
a[aria-disabled="true"] { cursor: not-allowed; }
a.button[aria-disabled="true"], .header-login[aria-disabled="true"], .ask-login[aria-disabled="true"] { opacity: 0.72; }

/* ── 공통 글 ────────────────────────────────── */
.eyebrow { margin: 0 0 14px; color: var(--brand-teal); font-size: 0.9rem; font-weight: 800; letter-spacing: 0.02em; }
h1 { margin-bottom: 22px; font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.05em; }
h2 { margin-bottom: 0; font-size: clamp(1.85rem, 3.4vw, 2.7rem); font-weight: 750; line-height: 1.25; letter-spacing: -0.045em; }
h3 { margin-bottom: 8px; font-size: 1.22rem; font-weight: 750; letter-spacing: -0.03em; }
.section { padding: 104px 0; }
.section-tint { background: var(--surface); border-block: 1px solid rgba(31, 111, 104, 0.08); }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-lead { margin: 18px 0 0; color: var(--muted-ink); font-size: 1.08rem; }

/* ── 첫 화면 ────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 111, 104, 0.09), rgba(31, 111, 104, 0) 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: 56px; }
.hero-lead { max-width: 520px; margin-bottom: 32px; color: var(--muted-ink); font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 40px 0 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; flex-direction: column; padding: 0 22px; border-left: 1px solid var(--line); }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts strong { font-size: 1.02rem; }
.hero-facts span { color: var(--muted-ink); font-size: 0.88rem; }

/* 태블릿 틀 안의 실제 화면 */
.device { margin: 0; }
.device-frame { padding: 12px; border-radius: 26px; background: #22302e; box-shadow: 0 30px 70px rgba(36, 51, 49, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.device-frame img { width: 100%; border-radius: 15px; }
.device figcaption { margin-top: 14px; color: var(--muted-ink); font-size: 0.93rem; }
.hero-device { transform: rotate(-1.2deg); }
.hero-device figcaption { transform: rotate(1.2deg); text-align: center; }
.tag { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px; background: var(--baeum-teal-soft); color: var(--baeum-teal-dark); font-size: 0.8rem; font-weight: 800; }

/* ── 무엇이 다른가 ──────────────────────────── */
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.reason-card { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-strong); }
.reason-number { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 22px; border-radius: 12px; background: var(--brand-teal); color: #fff; font-weight: 800; }
.reason-card p { margin: 0; color: var(--muted-ink); }
.dots { color: var(--brand-teal); letter-spacing: 0.1em; }

/* ── 실제 화면 ──────────────────────────────── */
.screen-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.screen-pair figcaption { font-size: 1rem; color: var(--deep-ink); }
.screen-pair figcaption b { color: var(--brand-teal); }
.step-label { display: block; margin-bottom: 2px; color: var(--brand-teal); font-weight: 800; }

/* ── 하루 공부 ──────────────────────────────── */
.day-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.day-flow li { position: relative; padding: 0 22px 0 0; }
.day-flow li::after { content: ""; position: absolute; top: 23px; left: 56px; right: 10px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.day-flow li:last-child::after { display: none; }
.day-step { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; background: var(--surface-strong); border: 2px solid var(--brand-teal); color: var(--brand-teal); font-size: 1.1rem; font-weight: 800; }
.day-flow strong { display: block; margin-bottom: 6px; font-size: 1.2rem; }
.day-flow p { margin: 0; color: var(--muted-ink); }
.day-end .day-step { background: var(--brand-apricot); border-color: var(--brand-apricot); color: #fff; }

/* ── 보호자 ─────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.report-sample { position: relative; padding: 30px 30px 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-strong); box-shadow: var(--shadow-soft); }
.sample-tag { position: absolute; top: -12px; right: 22px; padding: 2px 12px; border-radius: 999px; background: var(--deep-ink); color: #fff; font-size: 0.8rem; font-weight: 800; }
.sample-day { margin-bottom: 8px; color: var(--brand-teal); font-size: 0.9rem; font-weight: 800; }
.sample-line { margin-bottom: 16px; font-size: 1.15rem; font-weight: 700; line-height: 1.55; }
.sample-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--baeum-teal-soft); }
.sample-dots { color: var(--brand-teal); letter-spacing: 0.14em; }
.sample-hint { margin: 0; color: var(--muted-ink); font-size: 0.95rem; }

/* ── 요금 ───────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.price-card { padding: 34px; border: 2px solid var(--brand-teal); border-radius: var(--radius-lg); background: var(--surface-strong); }
.price-name { margin-bottom: 8px; font-weight: 800; color: var(--brand-teal); }
.price-amount { margin-bottom: 22px; font-size: 1.15rem; font-weight: 700; }
.check-list { margin: 0 0 24px; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 2.5px solid var(--brand-teal); border-bottom: 2.5px solid var(--brand-teal); transform: rotate(-45deg); }
.price-refund { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.timeline { margin: 0; padding: 4px 0 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 30px 34px; border-left: 2px solid var(--line); margin-left: 9px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -11px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-strong); border: 3px solid var(--brand-apricot); }
.timeline li:last-child::before { background: var(--brand-apricot); }
.timeline strong { display: block; font-size: 1.12rem; }
.timeline span { color: var(--muted-ink); }

/* ── 자주 묻는 질문 ─────────────────────────── */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface-strong); }
.faq summary { position: relative; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--brand-teal); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted-ink); }
.faq details a { color: var(--brand-teal); font-weight: 700; }

/* ── 묻기·시작하기 ──────────────────────────── */
.ask { padding: 96px 0; }
.ask-panel { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; padding: 56px; border-radius: var(--radius-lg); background: var(--brand-teal); color: #fff; box-shadow: 0 26px 70px rgba(23, 79, 74, 0.2); }
.ask-panel .eyebrow { color: #ffd2ad; }
.ask-lead { margin: 18px 0 12px; color: rgba(255, 255, 255, 0.86); font-size: 1.08rem; }
.ask-note { margin: 0; color: rgba(255, 255, 255, 0.68); font-size: 0.92rem; }
.ask-actions { display: grid; gap: 14px; }
.ask-actions .button { width: 100%; }
.ask-actions .button-light { flex-direction: column; gap: 0; line-height: 1.3; }

/* ── 바닥 ───────────────────────────────────── */
.site-footer { padding: 52px 0 40px; background: var(--deep-ink); color: rgba(255, 255, 255, 0.86); font-size: 0.92rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-top img { width: 176px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links .slot { color: rgba(255, 255, 255, 0.6); }
.company-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 40px; margin: 26px 0; }
.company-info > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
.company-info dt { color: rgba(255, 255, 255, 0.56); }
.company-info dd { margin: 0; }
.site-footer .slot { color: rgba(255, 255, 255, 0.6); }
[data-draft] .site-footer .slot { color: var(--slot-ink); }
.footer-copy { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }

/* ── 좁은 화면 ──────────────────────────────── */
@media (max-width: 1080px) {
  .site-nav { gap: 18px; font-size: 0.9rem; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .price-grid, .faq-layout, .ask-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .hero-device { transform: none; }
  .hero-device figcaption { transform: none; }
  .reason-grid { grid-template-columns: 1fr; }
  .day-flow { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .day-flow li:nth-child(2)::after { display: none; }
  .split { gap: 40px; }
  .faq-layout { gap: 0; }
  .company-info { grid-template-columns: 1fr; }
  /* 메뉴를 접는다 */
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: 72px 16px auto; display: none; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-strong); box-shadow: var(--shadow-soft); font-size: 1rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 12px; border-radius: 10px; color: var(--deep-ink); }
  .site-nav a:hover { background: var(--warm-ivory); }
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 32px), var(--content-width)); }
  .header-inner { min-height: 64px; gap: 12px; }
  .site-nav { inset: 64px 12px auto; }
  .brand img { width: 150px; }
  .header-actions .button-small { min-height: 38px; padding: 0 12px; font-size: 0.85rem; }
  .header-actions .button-small .kakao-icon { width: 17px; height: 17px; }
  .header-actions .button-small span { display: none; }
  .header-actions .button-small::after { content: "묻기"; }
  .header-login { padding: 8px 6px; font-size: 0.88rem; }
  .hero { padding: 40px 0 64px; }
  h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .hero-lead { margin-bottom: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); margin-top: 30px; }
  .hero-facts li { padding: 0 10px; }
  .hero-facts strong { font-size: 0.92rem; }
  .hero-facts span { font-size: 0.78rem; line-height: 1.45; }
  .device-frame { padding: 7px; border-radius: 16px; }
  .device-frame img { border-radius: 10px; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 30px; }
  .br-wide { display: none; }
  .screen-pair { grid-template-columns: 1fr; gap: 32px; }
  .reason-grid { gap: 12px; }
  .reason-card { display: grid; grid-template-columns: 38px 1fr; column-gap: 16px; padding: 22px 20px; }
  .reason-number { grid-row: span 2; margin: 2px 0 0; }
  .reason-card h3 { margin-bottom: 4px; }
  .day-flow { grid-template-columns: 1fr; gap: 0; }
  .day-flow li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 0 0 26px; }
  .day-flow li::after { display: block !important; top: 52px; bottom: 4px; left: 23px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 11px); }
  .day-flow li:last-child::after { display: none !important; }
  .day-step { margin: 0; }
  .report-sample { padding: 26px 22px 22px; }
  .price-card { padding: 26px 22px; border-radius: var(--radius-md); }
  .faq summary { padding: 18px 50px 18px 20px; font-size: 1rem; }
  .faq details p { padding: 0 20px 20px; }
  .ask { padding: 64px 0; }
  .ask-panel { gap: 30px; padding: 34px 22px; border-radius: var(--radius-md); }
  .company-info > div { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── 없는 쪽(404) ───────────────────────────── */
.not-found { min-height: 100vh; display: grid; align-items: center; padding: 64px 0; }
.not-found .brand { margin-bottom: 48px; }
.not-found h1 { font-size: clamp(2rem, 5vw, 3rem); }
.not-found .section-lead { max-width: 560px; margin-bottom: 28px; }
