/* speaking1000.com — 서비스 웹사이트
   방향: 코치 같은 에너지. 깊은 네이비 위에 오렌지 한 점, 크림색 종이 질감.
   앱과 같은 색·같은 마스코트. 한글은 Pretendard, 영어 숫자·구호는 Fredoka(둥근 마스코트 톤). */

:root {
  --navy: #0f2b4c;
  --navy-2: #163b69;
  --navy-deep: #091d36;
  --ink: #14202e;
  --orange: #e8912a;
  --orange-2: #f4ad55;
  --orange-deep: #c9761a;
  --cream: #f7f3ec;
  --paper: #ffffff;
  --muted: #5e6b7a;
  --line: #e6e0d6;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(9, 29, 54, 0.14);
  --font-ko: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "Fredoka", var(--font-ko);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ko);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

/* ── 헤더 ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 43, 76, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header .logo img { height: 30px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { color: rgba(255, 255, 255, 0.82); font-weight: 600; font-size: 15px; transition: color .2s; }
.site-header nav a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(232, 145, 42, 0.35); }
.btn-orange:hover { background: var(--orange-2); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.site-header .btn { padding: 10px 16px; font-size: 14px; }
@media (max-width: 720px) { .site-header nav a:not(.btn) { display: none; } }

/* ── 히어로 ─────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(232, 145, 42, 0.18), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 72px 0 0;
}
.hero::before { /* 종이 결 같은 노이즈 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.hero .ghost {
  position: absolute; right: -2vw; top: -6vw; z-index: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(180px, 34vw, 460px); line-height: 1;
  color: rgba(255, 255, 255, 0.045); letter-spacing: -0.04em; user-select: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: end; }
.hero-copy { padding-bottom: 88px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange-2); font-weight: 600;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); border-radius: 2px; }
.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--orange-2); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .12em;
  background: var(--orange); opacity: .55; border-radius: 3px; z-index: -1;
}
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.8); max-width: 34em; margin: 0 0 32px; }
.store { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; font-weight: 700; font-size: 15px;
}
.store-badge small { display: block; font-weight: 500; font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.store-badge svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.store-badge .soon { margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--orange); font-size: 11px; font-weight: 800; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 380px; }
.hero-art img.mascot { width: min(420px, 90%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }
.hero-art .bubble {
  position: absolute; left: 4%; top: 6%; width: clamp(150px, 42%, 230px);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(-1deg); } }
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { padding-bottom: 12px; }
  .hero-art { min-height: 300px; margin-top: 8px; }
  .hero-art img.mascot { width: min(300px, 78%); }
}

/* ── 숫자 띠 ─────────────────────────────────────────── */
.strip { background: var(--orange); color: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.strip .cell { padding: 26px 20px; text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.strip .cell:first-child { border-left: 0; }
.strip .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; }
.strip .num span { font-size: .55em; font-weight: 600; margin-left: 4px; }
.strip .label { margin-top: 8px; font-size: 14px; font-weight: 600; opacity: .92; }
@media (max-width: 640px) { .strip .wrap { grid-template-columns: 1fr; } .strip .cell { border-left: 0; border-top: 1px solid rgba(255,255,255,.28); padding: 18px; } .strip .cell:first-child { border-top: 0; } }

/* ── 공통 섹션 ─────────────────────────────────────────── */
section.block { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow { color: var(--orange-deep); }
.section-head .eyebrow::before { background: var(--orange-deep); }
.section-head h2 { margin: 14px 0 12px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
@media (max-width: 720px) { section.block { padding: 64px 0; } }

/* 학습 방식 — 세 단계, 번호는 커다랗게 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; background: var(--paper); border-radius: var(--radius); padding: 34px 28px 30px;
  box-shadow: 0 1px 0 var(--line), var(--shadow); overflow: hidden;
  transition: transform .25s ease;
}
.step:hover { transform: translateY(-4px); }
.step .n {
  position: absolute; right: 14px; top: -18px;
  font-family: var(--font-display); font-weight: 700; font-size: 120px; line-height: 1;
  color: var(--cream);
}
.step h3 { position: relative; margin: 0 0 10px; font-size: 21px; letter-spacing: -0.02em; font-weight: 800; }
.step p { position: relative; margin: 0; color: var(--muted); font-size: 15.5px; }
.step .tag { position: relative; display: inline-block; margin-bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(232,145,42,.14); color: var(--orange-deep); font-weight: 800; font-size: 12px; letter-spacing: .04em; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* 기능 — 네 장, 아이콘은 앱과 같은 그림 */
.features { background: var(--navy); color: #fff; }
.features .section-head h2 { color: #fff; }
.features .section-head p { color: rgba(255,255,255,.72); }
.features .eyebrow { color: var(--orange-2); } .features .eyebrow::before { background: var(--orange-2); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 26px 22px 24px; transition: background .2s, transform .25s;
}
.feature:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.feature img { width: 64px; height: 64px; margin-bottom: 18px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.feature p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 14.5px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* 숙제·그룹 — 왼쪽 글, 오른쪽 카드 흉내 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .section-head { margin-bottom: 0; }
.mock {
  background: var(--paper); border-radius: 28px; padding: 26px; box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.mock .row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.mock .row:last-child { border-bottom: 0; }
.mock .row b { font-size: 16px; }
.mock .chip { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.chip.new { background: rgba(232,145,42,.14); color: var(--orange-deep); }
.chip.review { background: rgba(15,43,76,.08); color: var(--navy); }
.mock .bar { height: 10px; border-radius: 999px; background: var(--cream); overflow: hidden; margin-top: 10px; }
.mock .bar i { display: block; height: 100%; width: 31%; background: var(--orange); border-radius: 999px; }
.mock .big { font-family: var(--font-display); font-weight: 700; font-size: 44px; color: var(--navy); line-height: 1; }
.mock .big span { font-size: 18px; color: var(--muted); font-weight: 600; }
.ladder { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ladder span { padding: 6px 12px; border-radius: 999px; background: rgba(15,43,76,.07); color: var(--navy); font-weight: 700; font-size: 13px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .mock { transform: none; } }

/* CTA */
.cta { background: var(--orange); color: #fff; text-align: center; padding: 84px 0; position: relative; overflow: hidden; }
.cta h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; font-weight: 800; }
.cta p { margin: 0 0 28px; font-size: 18px; opacity: .92; }
.cta .btn { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(9,29,54,.25); }
.cta .btn:hover { background: var(--navy-2); }
.cta .mascot-face { position: absolute; right: -20px; bottom: -30px; width: 200px; opacity: .22; transform: rotate(-8deg); }

/* ── 푸터 — 사업자 정보는 법정 표기라 작아도 또렷하게 ── */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 56px 0 40px; font-size: 13.5px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .top img { height: 26px; }
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .links a { color: #fff; font-weight: 700; }
.site-footer .links a:hover { color: var(--orange-2); }
.site-footer .biz { margin: 26px 0 0; line-height: 1.9; }
.site-footer .biz dt { display: inline; color: rgba(255,255,255,.45); }
.site-footer .biz dd { display: inline; margin: 0 14px 0 6px; }
.site-footer .copy { margin-top: 18px; color: rgba(255,255,255,.45); }

/* ── 약관 페이지 ─────────────────────────────────────────── */
.legal-hero { background: var(--navy); color: #fff; padding: 64px 0 48px; }
.legal-hero h1 { margin: 12px 0 8px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; font-weight: 800; }
.legal-hero p { margin: 0; color: rgba(255,255,255,.72); }
.legal { background: var(--paper); }
.legal .wrap { width: min(820px, calc(100% - 40px)); padding: 56px 0 96px; }
.legal h2 { margin: 44px 0 14px; font-size: 21px; letter-spacing: -0.02em; font-weight: 800; color: var(--navy); scroll-margin-top: 90px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 16px; color: #2a3644; }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--cream); font-weight: 800; white-space: nowrap; }
.legal .table-scroll { overflow-x: auto; }
.legal .note { padding: 16px 18px; border-radius: 14px; background: var(--cream); color: var(--muted); font-size: 14.5px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.legal .toc a { padding: 6px 12px; border-radius: 999px; background: var(--cream); font-size: 13px; font-weight: 700; color: var(--navy); }
.legal .toc a:hover { background: rgba(232,145,42,.18); }

/* ── 등장 애니메이션 (한 번, 순서대로) ── */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .08s } .reveal.d2 { animation-delay: .18s } .reveal.d3 { animation-delay: .28s } .reveal.d4 { animation-delay: .4s }
@keyframes reveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .hero-art .bubble { animation: none; }
  * { transition: none !important; }
}
