/* English Coach: one stylesheet for the four public pages. Light and dark follow the system. */
:root {
  color-scheme: light dark;
  --bg: #f6f8fc;
  --surface: #fff;
  --surface-2: #eef2fa;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2453e6;
  --brand-soft: #e7eeff;
  --accent: #0e9f6e;
  --accent-soft: #e2f6ee;
  --btn: #2453e6;
  --shadow: 0 1px 2px rgb(15 23 42 / 5%), 0 12px 32px rgb(15 23 42 / 7%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e17;
    --surface: #111827;
    --surface-2: #19223a;
    --ink: #eef2f9;
    --ink-2: #c7d0de;
    --muted: #8b97ab;
    --line: #233049;
    --brand: #84abff;
    --brand-soft: #1a2850;
    --accent: #45d39f;
    --accent-soft: #0f2b21;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 20px; }
.narrow { width: min(760px, 100%); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header and footer */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 560px) { .top nav .opt { display: none; } }
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--ink-2); text-decoration: none; }

/* Buttons, chips, cards */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px;
  background: var(--btn); color: #fff;
  font-size: 16px; font-weight: 650; text-decoration: none;
  box-shadow: 0 6px 18px rgb(36 83 230 / 28%);
}
.btn:hover { background: #1d3fd8; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 14px; font-weight: 650;
}
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 16px; }
.chip small { margin-left: 6px; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips + ul { margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid.c2, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) { .grid.c4 { grid-template-columns: repeat(4, 1fr); } }

/* Landing sections */
section { padding: 72px 0; scroll-margin-top: 60px; }
@media (max-width: 560px) { section { padding: 52px 0; } }
.sec-head { max-width: 660px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(1.6rem, 4.6vw, 2.25rem); }
.sec-head p { margin-top: 12px; color: var(--ink-2); }

.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.hero h1 { margin-top: 18px; font-size: clamp(2.15rem, 7vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.22; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-top: 18px; max-width: 32em; color: var(--ink-2); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.facts span::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* A lesson in progress, drawn with real Day 3 content */
.session {
  justify-self: center; width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 20px; box-shadow: var(--shadow);
}
.session-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 650; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.pills span { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.pills .done { background: var(--accent-soft); color: var(--accent); }
.pills .now { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.talk { display: grid; gap: 10px; }
.talk p { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.55; }
.talk .coach { background: var(--surface-2); border-bottom-left-radius: 6px; }
.talk .me { justify-self: end; background: var(--btn); color: #fff; border-bottom-right-radius: 6px; }
.wave { display: flex; justify-content: center; align-items: center; gap: 5px; height: 40px; margin-top: 14px; }
.wave i { width: 5px; height: 28px; border-radius: 3px; background: var(--brand); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -0.35s; }
.wave i:nth-child(3n) { animation-delay: -0.7s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* The 25 minutes */
.bar { display: flex; gap: 3px; height: 14px; margin-bottom: 8px; border-radius: 999px; overflow: hidden; }
.bar span { background: var(--brand); opacity: 0.75; }
.bar .key { background: var(--accent); opacity: 1; }
.bar-legend { display: flex; justify-content: space-between; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.flow { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(2, 1fr); } }
.flow li { display: grid; grid-template-columns: 3.2em 1fr; align-content: start; gap: 2px 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.flow .min { grid-row: span 2; color: var(--brand); font-weight: 750; font-variant-numeric: tabular-nums; }
.flow .key .min { color: var(--accent); }
.flow p { color: var(--ink-2); font-size: 15px; }
.note { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* Course map */
.level h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 24px; }
.level h3 small { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.level .sub { margin-top: 4px; color: var(--brand); font-size: 15px; font-weight: 650; }
.level ol { margin: 14px 0 0; padding-left: 1.4em; color: var(--ink-2); font-size: 15px; line-height: 1.95; }

.track b, .method h3 { display: block; margin-bottom: 6px; font-size: 18px; }
.track p, .method p { color: var(--ink-2); font-size: 15px; }
.method .num { display: block; margin-bottom: 10px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; }

/* Progress */
.week { display: flex; gap: 8px; margin: 16px 0 4px; }
.week span { flex: 1; color: var(--muted); font-size: 13px; text-align: center; }
.week i { display: block; height: 38px; margin-bottom: 6px; border-radius: 10px; background: var(--surface-2); }
.week .on { color: var(--ink-2); }
.week .on i { background: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badges span { padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 650; }
.said { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--ink-2); font-size: 15px; }
.card h3 { font-size: 19px; }
.card h3 + p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* What is kept */
.keep ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.keep li { position: relative; padding-left: 28px; color: var(--ink-2); }
.keep li::before { position: absolute; left: 2px; font-weight: 800; }
.keep .yes li::before { content: "✓"; color: var(--accent); }
.keep .no li::before { content: "✕"; color: var(--muted); }

.band { padding: 44px 28px; border-radius: 28px; background: linear-gradient(135deg, #4f8bff, #1d3fd8); color: #fff; text-align: center; }
.band h2 { color: #fff; font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
.band p { margin-top: 10px; opacity: 0.92; }
.band .btn { margin-top: 24px; background: #fff; color: #1d3fd8; box-shadow: none; }
.en { padding-bottom: 56px; color: var(--muted); font-size: 14px; }

/* Support, privacy, terms */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 5.6vw, 2.6rem); }
.page-head .lead { margin-top: 12px; color: var(--ink-2); }
.date { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.doc { padding: 8px 0 72px; }
.doc h2 { margin: 44px 0 12px; font-size: 21px; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { margin: 0; padding-left: 1.25em; }
.doc li + li { margin-top: 8px; }
.doc li b, .doc p b { color: var(--ink); }
.toc { margin: 28px 0 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.toc b { color: var(--muted); font-size: 14px; }
.toc ol { margin: 8px 0 0; padding-left: 1.4em; columns: 2; column-gap: 28px; font-size: 15px; line-height: 1.9; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.en-doc { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.en-doc h1 { font-size: 28px; }

.doc .steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 18px 18px 18px 62px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; counter-increment: step; }
.steps li + li { margin-top: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 17px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 15px; font-weight: 800;
}
details { padding: 2px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
details + details { margin-top: 10px; }
summary { padding: 14px 0; color: var(--ink); font-weight: 650; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 16px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i { animation: none; }
}
