/*
 * Lumera English — 공개 소개 페이지(정적 SEO) 공용 스타일
 *
 * 이 CSS는 React 앱 번들과 완전히 분리된 순수 정적 페이지 전용이다.
 * - 색상은 tailwind.config.js 의 확립된 토큰값을 CSS 변수로 옮겨 적은 것 (새 색 계열 추가 금지).
 * - 폰트는 앱과 동일한 우선순위를 선언하되 웹폰트를 외부에서 받지 않는다(요청 0 → LCP 우위).
 *   Inter·Pretendard 미설치 기기는 OS 기본 한글 서체로 폴백된다.
 * - ⚠️ /assets/* 에는 1년 immutable 캐시가 걸려 있으므로(vercel.json) 이 파일을 그쪽으로 옮기지 말 것.
 */

:root {
  /* oat — 본문 배경 계열 */
  --oat-50: #FAF9F5;
  --oat-100: #F5F2EA;
  --oat-200: #EDE8DA;
  --oat-300: #D9D2BE;

  /* ink — 텍스트 계열 */
  --ink: #2D2A22;
  --ink-soft: #4B4639;
  --ink-muted: #7A7466;

  /* 브랜드 그라데이션 (BrandWordmark 와 동일 조형) */
  --brand-1: #4f46e5;
  --brand-2: #7c3aed;
  --brand-3: #06b6d4;

  /* 다크 히어로 */
  --navy-900: #0f172a;
  --navy-800: #1e1b4b;

  --clay-500: #C96442;
  --sage-500: #697F4E;
  --dusk-500: #4F5872;
  --plum-500: #684E62;
  --ochre-500: #947124;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(45, 42, 34, .04), 0 8px 24px rgba(45, 42, 34, .06);
  --shadow-lift: 0 2px 4px rgba(45, 42, 34, .05), 0 16px 40px rgba(45, 42, 34, .10);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--oat-50);
  color: var(--ink);
  font-family: Inter, 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* iOS 노치·홈바 대응 */
  padding-bottom: env(safe-area-inset-bottom);
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-1); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--brand-3);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 키보드 사용자용 본문 바로가기 */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--ink); padding: 12px 18px; z-index: 100;
  border-radius: 0 0 12px 0; font-weight: 700;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ───────── 헤더 ───────── */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 245, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--oat-200);
}
.hdr-in {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px;
}
/*
 * 로고도 탭 대상이므로 터치 타깃 44px 를 확보한다.
 * ⚠️ min-height + align-items 변경이나 flex-wrap 으로 풀지 말 것 —
 *    "Lumera" 와 "ENGLISH" 의 baseline 정렬이 깨지거나 좁은 화면에서 줄바꿈된다.
 *    baseline 을 유지한 채 높이만 키우는 상하 패딩이 정답.
 */
.brand {
  display: inline-flex; align-items: baseline; font-weight: 900; letter-spacing: -0.03em; font-size: 22px;
  padding: 10px 0; line-height: 1.1;
}
.brand-mark {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { margin-left: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.brand:hover { text-decoration: none; }

.nav { display: none; margin-left: auto; gap: 4px; align-items: center; }
.nav a {
  color: var(--ink-soft); font-size: 15px; font-weight: 600;
  padding: 10px 12px; border-radius: 10px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--oat-100); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-1); background: var(--oat-100); }

.hdr .btn-cta { margin-left: auto; }
.nav ~ .btn-cta { margin-left: 8px; }

@media (min-width: 860px) {
  .nav { display: flex; }
  .hdr .btn-cta { margin-left: 8px; }
}

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-cta {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .28);
}
.btn-cta:hover { box-shadow: 0 10px 26px rgba(79, 70, 229, .36); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--oat-300); }
.btn-ghost:hover { background: var(--oat-100); }
.btn-on-dark { background: rgba(255, 255, 255, .10); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .18); }

/* ───────── 히어로 ───────── */
.hero {
  background: radial-gradient(1200px 520px at 15% -10%, #312e81 0%, transparent 60%),
              linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff; padding: 72px 0 76px;
}
.hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #a5b4fc;
  background: rgba(165, 180, 252, .12); border: 1px solid rgba(165, 180, 252, .24);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(30px, 6.2vw, 52px); line-height: 1.22;
  letter-spacing: -0.035em; font-weight: 800;
}
.hero .grad {
  background: linear-gradient(90deg, #a5b4fc, #c4b5fd, #67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  margin: 0 0 30px; font-size: clamp(16px, 2.4vw, 19px); line-height: 1.75;
  color: #cbd5e1; max-width: 62ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 히어로 하단 지표 */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  margin-top: 44px; padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.stats .v { font-size: clamp(22px, 4.4vw, 30px); font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1.25; }
.stats .l { font-size: 13px; color: #94a3b8; line-height: 1.5; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* ───────── 섹션 ───────── */
section { padding: 64px 0; }
section.alt { background: #fff; border-top: 1px solid var(--oat-200); border-bottom: 1px solid var(--oat-200); }

.sec-head { max-width: 68ch; margin-bottom: 36px; }
.sec-head .kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 10px;
}
h2 { margin: 0 0 14px; font-size: clamp(24px, 4.2vw, 34px); line-height: 1.35; letter-spacing: -0.03em; font-weight: 800; }
h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.45; letter-spacing: -0.02em; font-weight: 700; }
.sec-head p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* ───────── 카드 그리드 ───────── */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .grid.g2, .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: #fff; border: 1px solid var(--oat-200); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); text-decoration: none; }
a.card { color: inherit; display: block; }
a.card h3 { color: var(--ink); }

.card .tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 12px;
}
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14.5px; color: var(--brand-1); }

/* 모듈 액센트 (카드 상단 라인) */
.card.acc { border-top: 3px solid var(--brand-1); }
.card.acc-vocab { border-top-color: var(--sage-500); }
.card.acc-vocab .tag { color: var(--sage-500); }
.card.acc-writing { border-top-color: var(--clay-500); }
.card.acc-writing .tag { color: var(--clay-500); }
.card.acc-reading { border-top-color: var(--dusk-500); }
.card.acc-reading .tag { color: var(--dusk-500); }
.card.acc-listening { border-top-color: var(--plum-500); }
.card.acc-listening .tag { color: var(--plum-500); }
.card.acc-exam { border-top-color: var(--ochre-500); }
.card.acc-exam .tag { color: var(--ochre-500); }

/* ───────── 리스트 ───────── */
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li {
  position: relative; padding-left: 30px; margin-bottom: 14px;
  color: var(--ink-soft); font-size: 16px; line-height: 1.7;
}
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 18px; height: 10px; border-left: 2.5px solid var(--brand-2);
  border-bottom: 2.5px solid var(--brand-2); transform: rotate(-45deg);
}
ul.checks li strong { color: var(--ink); font-weight: 700; }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
ol.steps li {
  counter-increment: s; position: relative; padding-left: 56px; margin-bottom: 26px;
}
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
ol.steps li h3 { margin: 4px 0 6px; }
ol.steps li p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ───────── 표 ───────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15.5px; min-width: 480px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--oat-200); }
th { background: var(--oat-100); font-weight: 700; color: var(--ink); white-space: nowrap; }
td { color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: 0; }

/* ───────── FAQ ───────── */
details.faq {
  background: #fff; border: 1px solid var(--oat-200); border-radius: var(--radius);
  padding: 0; margin-bottom: 12px; box-shadow: var(--shadow-card);
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 20px 22px;
  font-weight: 700; font-size: 16.5px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 44px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--brand-2); flex: none; line-height: 1;
}
details.faq[open] summary::after { content: "−"; }
details.faq .a { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.75; }
details.faq .a p { margin: 0 0 10px; }
details.faq .a p:last-child { margin-bottom: 0; }

/* ───────── 문의 CTA 밴드 ───────── */
.band {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff; border-radius: var(--radius-lg); padding: 44px 30px; text-align: center;
}
.band h2 { color: #fff; }
.band p { color: #cbd5e1; margin: 0 auto 26px; max-width: 56ch; }
.band .hero-actions { justify-content: center; }
.band a.mail { color: #a5b4fc; font-weight: 700; }

/* ───────── 푸터 ───────── */
footer {
  background: #fff; border-top: 1px solid var(--oat-200);
  padding: 48px 0 40px; font-size: 14.5px; color: var(--ink-muted);
}
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 30px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.foot-grid h4 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 0; }
/*
 * 푸터 링크는 세로로 촘촘히 놓이므로 터치 타깃을 반드시 키운다.
 * 텍스트 높이만 두면 18px 로 잡혀 WCAG 최소 기준(24px)에도 미달하고 모바일 오터치가 난다.
 * 링크를 블록으로 만들고 상하 패딩으로 44px 를 확보한다(간격은 margin 대신 이 패딩이 담당).
 */
.foot-grid a {
  color: var(--ink-soft);
  display: flex; align-items: center;
  min-height: 44px; padding: 4px 0;
}
.foot-grid a:hover { color: var(--brand-1); }
.foot-bot { border-top: 1px solid var(--oat-200); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; align-items: center; }
/* 한 줄 안의 인라인 링크라 블록으로 만들 수 없다 — 상하 패딩으로 터치 영역을 넓힌다. */
.foot-bot a { display: inline-block; padding: 10px 0; }

/* 인쇄 시 내비·CTA 숨김 */
@media print {
  .hdr, .band, footer, .hero-actions { display: none !important; }
  body { background: #fff; }
}

/* 모션 최소화 선호 존중 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
