/* Roadmap Drill landing — 0그릇 tokens (active) */
@import url("../design/zero/catalog/tokens.css");
@import url("override.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --max: 520px;
  --wide: 960px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-strong);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

.btn, .nav a, .logo { text-decoration: none; }
.btn:hover, .nav a:hover, .logo:hover { text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.logo span { color: var(--drill-brand); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 13px;
  font-weight: 500;
}

.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
}

.section--splash {
  background: var(--teal);
  padding: clamp(3rem, 8vw, 5rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  border-bottom: 2px solid var(--brutal);
}

.section--band {
  background: var(--yellow);
  border-top: 2px solid var(--brutal);
  border-bottom: 2px solid var(--brutal);
}

.section--split {
  border-bottom: 1px solid var(--line);
}

/* 7일 흐름 + 무료·유료 — 한 덩어리 배경 */
.section--tint-block {
  background: color-mix(in srgb, var(--sky) 12%, var(--canvas));
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__inner--wide {
  max-width: var(--wide);
}

.section--splash .section__inner {
  max-width: 36rem;
}

.splash-label {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 8px 18px;
  background: var(--yellow);
  border: 2px solid var(--brutal);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

h1, h2 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(1.85rem, 6vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.65rem); }
h3 { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 700; }

.lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.section--splash .lead {
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

@media (min-width: 480px) {
  .btn-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  .section:not(.section--splash) .btn-row {
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn--primary {
  background: var(--sky);
  color: var(--ink);
  border: 2px solid var(--brutal);
  box-shadow: -5px 5px 0 var(--brutal);
}

.btn--primary:hover {
  background: var(--sky-hover);
  transform: translate(-2px, 2px);
  box-shadow: -3px 3px 0 var(--brutal);
}

.btn--splash {
  background: var(--sky);
  border: 2px solid var(--brutal);
  box-shadow: -5px 5px 0 var(--brutal);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border: 2px solid var(--brutal);
}

.btn--secondary:hover {
  background: var(--surface);
}

.paper {
  background: var(--surface);
  border: 2px solid var(--brutal);
  border-radius: 2px;
  padding: 1.5rem 1.25rem;
  box-shadow: 4px 4px 0 var(--brutal);
  margin-bottom: 0.85rem;
}

.paper:last-child { margin-bottom: 0; }

.card-grid {
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
}

@media (min-width: 700px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.card-grid .paper { margin-bottom: 0; height: 100%; }

.paper--flow-a {
  background: color-mix(in srgb, var(--sky) 20%, var(--surface));
}

.paper--flow-b {
  background: color-mix(in srgb, var(--drill-brand) 20%, var(--surface));
}

/* 세 가지 이름 — 카드 호버 미리보기 (P0-3 실촬 후 img로 교체) */
.name-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.name-card:focus-within,
.name-card:hover {
  box-shadow: 6px 6px 0 var(--brutal);
}

.name-card--drill {
  background: color-mix(in srgb, var(--sky) 20%, var(--surface));
}

.name-card--demok {
  background: color-mix(in srgb, var(--drill-brand) 20%, var(--surface));
}

.name-card--zero {
  background: color-mix(in srgb, var(--yellow) 20%, var(--surface));
}

.name-card--drill .name-card__preview {
  background: color-mix(in srgb, var(--sky) 12%, var(--surface-dim));
}

.name-card--demok .name-card__preview {
  background: color-mix(in srgb, var(--drill-brand) 12%, var(--surface-dim));
}

.name-card--zero .name-card__preview {
  background: color-mix(in srgb, var(--yellow) 12%, var(--surface-dim));
}

.name-card__preview {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-dim);
}

.name-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.25rem 1.35rem;
}

.name-card__body h3 { margin-top: 0; }

.name-card__body p:last-child { margin-bottom: 0; }

.name-card__body .mock-note { margin-top: 0.35rem; margin-bottom: 0; }

.name-card__btn {
  display: flex;
  width: 100%;
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 14px;
  min-height: 44px;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 10px;
}

.name-card__btn:hover { text-decoration: none; }

.name-card__img {
  display: block;
  width: 100%;
  height: 5.25rem;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 700px) {
  .name-card:hover .name-card__img,
  .name-card:focus-within .name-card__img {
    height: 9rem;
  }
}

/* 모바일: 썸네일 상시 */
.name-card__preview {
  max-height: 5.5rem;
  opacity: 1;
}

@media (min-width: 700px) {
  .name-card__preview {
    max-height: 0;
    opacity: 0;
    border-bottom-width: 0;
    transition: max-height 0.28s ease, opacity 0.22s ease;
  }

  .name-card:hover .name-card__preview,
  .name-card:focus-within .name-card__preview {
    max-height: 9.5rem;
    opacity: 1;
    border-bottom-width: 1px;
  }

  .name-card--demok:hover .name-card__preview,
  .name-card--demok:focus-within .name-card__preview,
  .name-card--zero:hover .name-card__preview,
  .name-card--zero:focus-within .name-card__preview {
    max-height: 9.25rem;
  }
}

.preview-mock {
  padding: 0.75rem 1rem 0.85rem;
  min-height: 5.25rem;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.preview-mock__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* 로드맵 드릴 — md 목록 */
.preview-mock--drill {
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--surface-dim) 100%);
}

.preview-mock__lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-mock__lines li {
  padding: 0.2rem 0.45rem;
  margin-bottom: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--ink);
}

.preview-mock__lines li:nth-child(1) { border-left: 3px solid var(--drill-brand); }
.preview-mock__lines li:nth-child(2) { border-left: 3px solid var(--yellow-border); }

.name-card--demok .name-card__img { object-position: top left; }

.name-card--zero .name-card__img { object-position: top center; }

@media (prefers-reduced-motion: reduce) {
  .name-card__preview { transition: none; }
}

.splash-card-mini {
  margin: 1.5rem auto 0;
  max-width: 300px;
  text-align: left;
  padding: 1rem;
  background: var(--surface);
  border: 2px solid var(--brutal);
  box-shadow: 4px 4px 0 var(--brutal);
  font-size: 14px;
  color: var(--text);
}

.splash-card-mini strong {
  display: block;
  font-size: 13px;
  margin-bottom: 0.35rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 2px solid var(--brutal);
  box-shadow: 4px 4px 0 var(--brutal);
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  border-left: 1px solid var(--line);
}

.compare-table thead th {
  border-bottom: 2px solid var(--brutal);
}

.compare-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface-dim);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; width: 26%; }

.quote-block {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--sky-soft);
  border-left: 3px solid var(--link);
  font-size: 15px;
  line-height: 1.6;
}

.quote-block p:last-child { margin-bottom: 0; }

.steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0.85rem 2rem;
  font-size: 15px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 2px;
  background: var(--yellow);
  border: 1px solid var(--brutal);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.flow-label {
  margin: 1rem 0 0.45rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.flow-label:first-of-type {
  margin-top: 0.75rem;
}

.flow-tabs--days {
  margin-top: 0;
}

.flow-tab {
  font-size: 11px;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-border);
  border-radius: var(--r-full);
}

.flow-tab--day {
  font-size: 11px;
  font-weight: 600;
  background: var(--surface);
  border-color: var(--line);
}

.waitlist-panel {
  margin-top: 1rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.waitlist-form label {
  font-size: 13px;
  font-weight: 600;
}

.waitlist-form input[type="email"] {
  padding: 0.75rem 1rem;
  border: 2px solid var(--brutal);
  border-radius: 2px;
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
}

.waitlist-form input:focus {
  outline: 2px solid var(--primary-focus);
}

.waitlist-form .btn { width: 100%; }

.mock-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.65rem;
}

code {
  font-size: 0.88em;
  background: var(--surface-dim);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.site-footer {
  padding: 2.5rem 1.25rem;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--canvas);
  border-top: 1px solid var(--line);
}

.site-footer a { color: var(--muted); }
.dev-links { margin-top: 1rem; font-size: 12px; }
.dev-links a { color: var(--muted-soft); }

.locale-strip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  font-weight: 600;
  margin-left: auto;
}

.locale-strip a {
  color: var(--muted);
  text-decoration: none;
}

.locale-strip a[aria-current="true"] {
  color: var(--ink);
}

.locale-strip span {
  color: var(--muted-soft);
}

.review-nav {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  background: var(--canvas);
}

.review-nav a { color: var(--link); }

ul.clean-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 15px;
}

ul.clean-list li { margin-bottom: 0.3rem; }
