/* 설명형 긴 페이지 (Projects · Folios) — toss.im/business/tosspay 의 흐름 참고, 흰 바탕 (2026-10-28 원장님)
   배치만 참고하고 글 · 사진은 쓰지 않는다. 고정(sticky) 요소는 쓰지 않는다.
   - 큰 제목 → 짧은 설명 → 회색 둥근 판 위 앱 화면
   - '보통은 / iBEX HYPER는' 비교 카드, 큰 숫자, 단계 목록 */

:root {
  --st-panel: #f2f4f6;           /* 둥근 판 바탕 */
  --st-ink: #191f28;             /* 진한 카드 */
  --st-sub: #4e5968;             /* 본문 회색 */
  --st-faint: #8b95a1;           /* 작은 글씨 회색 */
  --st-accent: #c7801a;          /* 점 · 강조 — 오커 앰버 (2026-10-28 원장님) */
  --st-radius: 28px;
}

.st {
  color: var(--st-ink);
}

.st-wrap {
  width: min(100% - 2 * var(--gutter), 1040px);
  margin-inline: auto;
}

/* 맨 위 소개 — 왼쪽 작은 이름, 오른쪽 큰 제목 */
.st-intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 8fr);
  gap: var(--space-6);
  padding-block: var(--space-8) var(--space-9);
}

.st-intro__name {
  padding-top: 0.6em;
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--st-sub);
}

.st-intro__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: var(--weight-bold);
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-align: start;
  word-break: keep-all;
}

.st-intro__text {
  margin-top: var(--space-6);
  max-width: 40em;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--st-sub);
  text-align: start;
  word-break: keep-all;
}

@media (max-width: 760px) {
  .st-intro { grid-template-columns: 1fr; gap: var(--space-3); padding-top: var(--space-6); }
}

/* 장 */
.st-chapter {
  padding-block: var(--space-9);
}

.st-chapter + .st-chapter {
  border-top: 1px solid #e5e8eb;
}

.st-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: var(--weight-bold);
  color: var(--st-sub);
}

.st-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--st-accent);
}

.st-title {
  margin-top: var(--space-4);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  font-weight: var(--weight-bold);
  line-height: 1.35;
  letter-spacing: -0.03em;
  text-align: start;
  word-break: keep-all;
}

.st-text {
  margin-top: var(--space-5);
  max-width: 42em;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--st-sub);
  text-align: start;
  word-break: keep-all;
}

.st-text + .st-text {
  margin-top: var(--space-3);
}

.st-text strong {
  color: var(--st-ink);
  font-weight: var(--weight-bold);
}

/* 비교 카드 — 보통은 / iBEX HYPER는 */
.st-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.st-compare__card {
  padding: var(--space-7) var(--space-6);
  border-radius: var(--st-radius);
  background: var(--st-panel);
}

.st-compare__card--ours {
  background: var(--st-ink);
  color: #fff;
}

.st-compare__label {
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--st-faint);
}

.st-compare__card--ours .st-compare__label {
  color: #f0c27a;
}

.st-compare__title {
  margin-top: var(--space-3);
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  text-align: start;
  word-break: keep-all;
}

.st-compare__list {
  margin-top: var(--space-5);
}

.st-compare__list li {
  position: relative;
  padding-left: 1.25em;
  line-height: 1.7;
  text-align: start;
  word-break: keep-all;
  color: var(--st-sub);
}

.st-compare__card--ours .st-compare__list li {
  color: rgba(255, 255, 255, 0.82);
}

.st-compare__list li + li {
  margin-top: var(--space-2);
}

.st-compare__list li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

@media (max-width: 760px) {
  .st-compare { grid-template-columns: 1fr; }
}

/* 단계 — 글 + 회색 판 위 폰 화면 (좌우 번갈아) */
.st-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-9);
}

.st-stage:nth-of-type(even) .st-stage__text {
  order: 2;
}

.st-stage__step {
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--st-accent);
}

.st-stage__title {
  margin-top: var(--space-2);
  font-size: 1.625rem;
  font-weight: var(--weight-bold);
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: start;
  word-break: keep-all;
}

.st-stage__desc {
  margin-top: var(--space-4);
  line-height: 1.85;
  color: var(--st-sub);
  text-align: start;
  word-break: keep-all;
}

.st-points {
  margin-top: var(--space-5);
  border-top: 1px solid #e5e8eb;
}

.st-points li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid #e5e8eb;
  font-size: 0.9375rem;
  line-height: 1.7;
  text-align: start;
  word-break: keep-all;
}

.st-points b {
  font-weight: var(--weight-bold);
}

.st-points span {
  color: var(--st-sub);
}

.st-panel {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-7) var(--space-5);
  border-radius: var(--st-radius);
  background: var(--st-panel);
}

.st-phone {
  width: min(100%, 250px);
  margin: 0;
}

.st-phone img {
  display: block;
  width: 100%;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(25, 31, 40, 0.12);
}

.st-phone figcaption {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--st-faint);
  text-align: center;
}

.st-panel--two .st-phone {
  width: min(48%, 230px);
}

@media (max-width: 860px) {
  .st-stage { grid-template-columns: 1fr; gap: var(--space-6); }
  .st-stage:nth-of-type(even) .st-stage__text { order: 0; }
  .st-points li { grid-template-columns: 1fr; gap: 0; }
}

/* 큰 숫자 */
.st-stats {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.st-stat {
  padding: var(--space-6);
  border-radius: var(--st-radius);
  background: var(--st-panel);
}

.st-stat__label {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--st-sub);
  text-align: start;
  word-break: keep-all;
}

.st-stat__num {
  margin-top: var(--space-6);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
}

@media (max-width: 760px) {
  .st-stats { grid-template-columns: 1fr; }
}

/* 단계 줄 (밀림 안내처럼 사진 없는 단계) */
.st-steps {
  margin-top: var(--space-8);
  border-top: 2px solid var(--st-ink);
}

.st-steps li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid #e5e8eb;
}

.st-steps b {
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
}

.st-steps p {
  line-height: 1.8;
  color: var(--st-sub);
  text-align: start;
  word-break: keep-all;
}

.st-steps p strong {
  color: var(--st-ink);
}

@media (max-width: 600px) {
  .st-steps li { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* 작은 카드 묶음 */
.st-cards {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.st-card {
  padding: var(--space-6);
  border-radius: 20px;
  background: var(--st-panel);
}

.st-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: var(--space-4);
}

.st-card h3 {
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  text-align: start;
}

.st-card p {
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--st-sub);
  text-align: start;
  word-break: keep-all;
}

@media (max-width: 960px) {
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .st-cards { grid-template-columns: 1fr; }
}

/* 알림 상자 */
.st-note {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-radius: 16px;
  background: #fbf1e1;
  color: #8a520c;
  font-size: 0.9375rem;
  line-height: 1.75;
  text-align: start;
  word-break: keep-all;
}

.st-caption {
  margin-top: var(--space-6);
  font-size: 0.8125rem;
  color: var(--st-faint);
}

/* 끝 — 상담 */
.st-end {
  padding-block: var(--space-9) var(--section-gap);
  text-align: center;
}

.st-end .st-title,
.st-end .st-text {
  margin-inline: auto;
  text-align: center;
}

.st-end .btn-row {
  justify-content: center;
  margin-top: var(--space-6);
}

/* 스크롤하면 아래에서 살짝 올라온다 */
.st-motion .st-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.st-motion .st-up.is-in {
  opacity: 1;
  transform: none;
}

/* 회색 판 위 사진 두 장 (앱 화면이 아닌 현장 사진) */
.st-panel--photos .st-phone {
  width: min(48%, 320px);
}

/* ───────── 모의고사 페이지 전용 (Folio · Project 와 다른 표현) ───────── */
/* 시험장의 변수 — 둥근 글자 띠 */
.mt-vars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.mt-vars li {
  padding: var(--space-3) var(--space-5);
  border: 1px solid #d1d6db;
  border-radius: 999px;
  font-weight: var(--weight-medium);
}

/* 공부 → 시험 — 큰 글자 대비 */
.mt-shift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-9);
  padding-block: var(--space-8);
  border-top: 1px solid #e5e8eb;
  border-bottom: 1px solid #e5e8eb;
}

.mt-shift__word {
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: var(--weight-heavy);
  line-height: 1;
  letter-spacing: -0.04em;
}

.mt-shift__from .mt-shift__word {
  color: #c5cbd3;
}

.mt-shift__to .mt-shift__word {
  color: var(--st-accent);
}

.mt-shift__desc {
  margin-top: var(--space-4);
  line-height: 1.75;
  color: var(--st-sub);
  text-align: start;
  word-break: keep-all;
}

.mt-shift__arrow {
  font-size: 2.5rem;
  color: var(--st-faint);
}

@media (max-width: 760px) {
  .mt-shift { grid-template-columns: 1fr; gap: var(--space-4); }
  .mt-shift__arrow { transform: rotate(90deg); justify-self: start; }
}

/* 큰 번호 세 칸 */
.mt-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-7);
  margin-top: var(--space-8);
}

.mt-three li {
  padding-top: var(--space-5);
  border-top: 2px solid var(--st-ink);
}

.mt-three__num {
  display: block;
  font-size: 2.25rem;
  font-weight: var(--weight-bold);
  color: var(--st-accent);
  letter-spacing: -0.02em;
}

.mt-three h3 {
  margin-top: var(--space-4);
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  text-align: start;
}

.mt-three p {
  margin-top: var(--space-2);
  line-height: 1.75;
  color: var(--st-sub);
  text-align: start;
  word-break: keep-all;
}

@media (max-width: 760px) {
  .mt-three { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* 서바이벌 사진 — 지점별 2장씩, 크게 */
.mt-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.mt-photos figure {
  margin: 0;
}

.mt-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
}

.mt-photos figcaption {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--st-faint);
}

@media (max-width: 600px) {
  .mt-photos { grid-template-columns: 1fr; }
}

/* ───────── 윈터스쿨 — 주차별 과정 (실제 순서가 있는 과정이라 세로 시간선) ───────── */
.wk {
  margin-top: var(--space-8);
  border-top: 2px solid var(--st-ink);
}

.wk > li {
  position: relative;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid #e5e8eb;
}

.wk__week {
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}

.wk__week small {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  color: var(--st-faint);
}

.wk__body h3 {
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  text-align: start;
}

.wk__body p {
  margin-top: var(--space-2);
  line-height: 1.75;
  color: var(--st-sub);
  text-align: start;
  word-break: keep-all;
}

.wk__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.wk__tags span {
  padding: 2px var(--space-3);
  border-radius: 999px;
  background: var(--st-panel);
  font-size: 0.8125rem;
  color: var(--st-sub);
}

/* 모의고사가 있는 주 — 강조 */
.wk > li.is-exam .wk__week {
  color: var(--st-accent);
}

.wk > li.is-exam .wk__tags span:first-child {
  background: #fbf1e1;
  color: #8a520c;
}

@media (max-width: 600px) {
  .wk > li { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* 하루 — 08:00 → 22:00 막대 */
.day-bar {
  margin-top: var(--space-8);
}

.day-bar__track {
  position: relative;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(to right, #f2f4f6, #fbf1e1);
  overflow: hidden;
}

.day-bar__meal {
  position: absolute;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  background: rgba(25, 31, 40, 0.06);
  font-size: 0.75rem;
  color: var(--st-sub);
  white-space: nowrap;
}

.day-bar__label {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}

.day-bar__label span:last-child {
  color: var(--st-accent);
}
