/* ==========================================================================
   블루밍영어학원 · 신입생 온보딩
   css/style.css — 3개 페이지 공통 스타일 (모바일 우선 / max-width 720px)
   ========================================================================== */

/* ---------- 1. 디자인 토큰 ---------- */
:root {
  /* 브랜드: 노란색 계열 */
  --brand: #ffc531;
  --brand-600: #f2ae12;
  --brand-700: #a8730a;
  --brand-tint: #fff6d8;
  --brand-tint-2: #fffbee;

  /* 잉크 / 표면 */
  --ink: #191a1d;
  --ink-2: #3d4048;
  --muted: #71737c;
  --line: #efeadd;
  --line-strong: #ddd7c6;
  --surface: #ffffff;
  --bg: #fdfbf3;

  /* 보조 */
  --green: #1e7a4b;
  --green-tint: #eaf6ee;
  --danger: #d33a32;
  --danger-tint: #fdeeec;

  /* 형태 */
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(25, 26, 29, 0.05), 0 4px 14px rgba(25, 26, 29, 0.05);
  --shadow-md: 0 2px 6px rgba(25, 26, 29, 0.06), 0 16px 36px rgba(25, 26, 29, 0.09);
  --shadow-brand: 0 10px 22px rgba(242, 174, 18, 0.28);

  /* 레이아웃 */
  --wrap: 720px;
  --pad: 18px;
}

/* ---------- 2. 기본 리셋 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", "Malgun Gothic", "맑은 고딕", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.66;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 상단 은은한 노란 기운 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(880px 420px at 50% -160px, rgba(255, 197, 49, 0.34), rgba(255, 197, 49, 0) 70%),
    radial-gradient(620px 320px at 100% 0%, rgba(255, 197, 49, 0.14), rgba(255, 197, 49, 0) 72%);
}

h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: 800; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(242, 174, 18, 0.9);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 레이아웃 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.page { padding-bottom: 44px; }

.site-header { padding: 20px 0 4px; }

.site-footer {
  padding: 26px 0 34px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.site-footer strong { color: var(--ink-2); font-weight: 700; }

/* ---------- 4. 브랜드 로고 ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
}

.brand__logo {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 11px;
  background: #fff;
  padding: 2px;
  box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgba(25, 26, 29, 0.06);
  flex: none;
}

.brand__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  background: var(--brand);
  color: #3a2b00;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  flex: none;
}

.brand__name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.brand__sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- 5. 진행률 바 (sticky) ---------- */
.progress {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 251, 243, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.progress__inner {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 11px var(--pad);
}

.progress__label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.progress__track {
  flex: 1 1 auto;
  height: 10px;
  border-radius: 99px;
  background: #ece6d6;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(25, 26, 29, 0.07);
}

.progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-600));
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress__value {
  min-width: 42px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}

/* ---------- 6. 히어로 / 섹션 헤딩 ---------- */
.hero { padding: 26px 0 10px; text-align: center; }

.hero__logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.hero__kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--brand-tint);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(242, 174, 18, 0.28);
}

.hero__title {
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.34;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, rgba(255, 197, 49, 0.72) 62%);
  padding: 0 2px;
}

.hero__desc {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
}

.section { margin-top: 34px; }

.section__head { margin-bottom: 14px; }
.section__title {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.section__desc {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 7. 강점 배지 ---------- */
.badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.badge {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 13px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.badge__icon {
  font-size: 20px;
  line-height: 1;
}
.badge__text {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- 8. 진입 선택 카드 ---------- */
.choices { display: grid; gap: 13px; }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 96px;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.choice:hover { transform: translateY(-2px); border-color: var(--brand-600); box-shadow: var(--shadow-md); }
.choice:active { transform: translateY(0) scale(0.995); }

.choice--primary {
  border-color: rgba(242, 174, 18, 0.55);
  background: linear-gradient(180deg, #fffdf5, var(--surface) 62%);
}

.choice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  flex: none;
  border-radius: 16px;
  background: var(--brand-tint);
  font-size: 25px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(242, 174, 18, 0.22);
}
.choice--calm .choice__icon {
  background: #f2f3f5;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.choice__body { flex: 1 1 auto; min-width: 0; }
.choice__title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.choice__desc {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.choice__arrow {
  flex: none;
  font-size: 18px;
  color: var(--brand-700);
  font-weight: 900;
}

/* ---------- 9. 이용 순서 ---------- */
.steps {
  display: grid;
  gap: 0;
  padding: 4px 0;
}

.step {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 0 20px;
}
.step:last-child { padding-bottom: 0; }

.step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(180deg, var(--line-strong), rgba(221, 215, 198, 0.2));
}
.step:last-child::before { display: none; }

.step__num {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #3a2b00;
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(242, 174, 18, 0.34);
}
.step__body { padding-top: 3px; }
.step__title {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.step__desc {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 10. 폼 카드 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 17px 6px;
  margin-bottom: 14px;
}
.card--tight { padding-bottom: 18px; }
.card--calm { box-shadow: 0 1px 2px rgba(25, 26, 29, 0.04); }

.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.card__num {
  flex: none;
  width: 27px; height: 27px;
  border-radius: 9px;
  background: var(--brand);
  color: #3a2b00;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card--calm .card__num {
  background: #eff0f2;
  color: var(--ink-2);
}
.card__title {
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.card__note {
  margin: -10px 0 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 11. 폼 필드 ---------- */
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 16px; }

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.label__req {
  color: var(--danger);
  margin-left: 2px;
}
.label__opt {
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  background: #f4f2ec;
  border-radius: 6px;
  padding: 2px 6px;
  vertical-align: 2px;
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #b3b0a6; }
.input:hover, .select:hover { border-color: #c9c2ae; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(255, 197, 49, 0.28);
}

.select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%2371737c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px 9px;
}
.select:invalid, .select option[value=""] { color: var(--ink); }

.hint {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--danger);
  line-height: 1.5;
}
.field__error::before {
  content: "!";
  flex: none;
  width: 15px; height: 15px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 오류 상태 */
.is-invalid .input,
.is-invalid .select,
.input.is-invalid,
.select.is-invalid {
  border-color: var(--danger);
  background: #fffbfa;
}
.is-invalid .input:focus,
.input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(211, 58, 50, 0.16);
}
.is-invalid .chips { border: 0; }
.is-invalid .opt { border-color: rgba(211, 58, 50, 0.75); }
.is-invalid .check__box { border-color: var(--danger); }

/* ---------- 12. 빠른 선택 칩 ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip {
  min-height: 44px;
  padding: 9px 15px;
  border: 1.5px dashed rgba(242, 174, 18, 0.85);
  border-radius: 99px;
  background: var(--brand-tint-2);
  color: #7a5600;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, border-style 0.15s ease;
}
.chip:hover { background: var(--brand-tint); border-style: solid; }
.chip:active { transform: scale(0.97); }

/* ---------- 13. 카드형 라디오 ---------- */
.opts { display: grid; gap: 9px; }

.opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 56px;
  padding: 14px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.opt:hover { border-color: #cdbf95; background: #fffdf7; }

.opt__input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}

.opt__mark {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.opt__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--brand-600);
  transform: scale(0);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.opt__text {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  padding-top: 1px;
}

.opt__input:checked ~ .opt__mark {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(255, 197, 49, 0.3);
}
.opt__input:checked ~ .opt__mark::after { transform: scale(1); }
.opt__input:focus-visible ~ .opt__mark {
  outline: 3px solid rgba(242, 174, 18, 0.85);
  outline-offset: 3px;
}
.opt:has(.opt__input:checked),
.opt.is-checked {
  border-color: var(--brand-600);
  background: var(--brand-tint-2);
  box-shadow: 0 2px 10px rgba(242, 174, 18, 0.16);
}

/* ---------- 14. 체크박스 ---------- */
.checks { display: grid; gap: 4px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 48px;
  padding: 10px 2px;
  cursor: pointer;
}
.check__input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}
.check__box {
  flex: none;
  width: 23px; height: 23px;
  margin-top: 1px;
  border: 2px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.check__box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 7px; height: 12px;
  border: 2.4px solid #3a2b00;
  border-top: 0;
  border-left: 0;
  transform: rotate(42deg) scale(0);
  transform-origin: center;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.check__input:checked ~ .check__box {
  background: var(--brand);
  border-color: var(--brand-600);
}
.check__input:checked ~ .check__box::after { transform: rotate(42deg) scale(1); }
.check__input:focus-visible ~ .check__box {
  outline: 3px solid rgba(242, 174, 18, 0.85);
  outline-offset: 3px;
}
.check.is-checked .check__box {
  background: var(--brand);
  border-color: var(--brand-600);
}
.check.is-checked .check__box::after { transform: rotate(42deg) scale(1); }

.check__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.check__text strong { font-weight: 800; }

/* ---------- 15. 강조 박스 (규칙 다짐) ---------- */
.pledge {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--brand-tint), #fffdf4 70%);
  border: 1.5px solid rgba(242, 174, 18, 0.55);
  box-shadow: 0 6px 18px rgba(242, 174, 18, 0.14);
}
.pledge .check__text { font-weight: 800; font-size: 14.5px; line-height: 1.6; }
.pledge__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #3a2b00;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

/* ---------- 16. 안내 콜아웃 ---------- */
.callout {
  padding: 14px 15px;
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 4px solid var(--brand-600);
  background: var(--brand-tint-2);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.callout + .callout { margin-top: 10px; }
.callout strong { color: var(--ink); }
.callout--calm {
  border-left-color: #b9bcc4;
  background: #f7f8f9;
}
.callout__title {
  display: block;
  margin-bottom: 5px;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.callout--highlight {
  border: 1.5px solid rgba(242, 174, 18, 0.6);
  border-left: 4px solid var(--brand-600);
  border-radius: 14px;
  background: linear-gradient(150deg, #fff4cd, #fffdf3 76%);
  box-shadow: 0 6px 20px rgba(242, 174, 18, 0.16);
  padding: 16px;
}
.callout__badge {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--brand);
  color: #3a2b00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.bullets { display: grid; gap: 7px; margin-top: 2px; }
.bullets > li {
  position: relative;
  padding-left: 13px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.bullets > li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-600);
}
.bullets > li strong { color: var(--ink); }

/* ---------- 17. 안내 표 ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
table.price {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  min-width: 320px;
}
table.price caption {
  caption-side: top;
  text-align: left;
  padding: 12px 13px 9px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
table.price th,
table.price td {
  padding: 12px 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.price thead th {
  background: #fbf8ef;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
table.price tbody tr:last-child td { border-bottom: 0; }
table.price tbody tr:nth-child(even) { background: #fdfcf7; }
table.price td.price__amount {
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
table.price td.price__stage { font-weight: 700; color: var(--ink-2); }
table.price tbody tr.is-elite td { background: #fffdf2; }

/* ---------- 18. 접이식 (details) ---------- */
.acc {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
  margin-top: 10px;
}
.acc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc__icon {
  flex: none;
  width: 18px; height: 18px;
  position: relative;
  transition: transform 0.2s ease;
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  background: var(--brand-700);
  border-radius: 2px;
  top: 50%; left: 50%;
}
.acc__icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.acc__icon::after { width: 2px; height: 12px; transform: translate(-50%, -50%); transition: opacity 0.2s ease; }
.acc[open] .acc__icon::after { opacity: 0; }
.acc[open] > summary { color: var(--ink); }
.acc__body {
  padding: 2px 0 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.acc__body p + p { margin-top: 8px; }
.acc__body ol { display: grid; gap: 6px; counter-reset: acc; margin-top: 6px; }
.acc__body ol li { position: relative; padding-left: 21px; }
.acc__body ol li::before {
  counter-increment: acc;
  content: counter(acc);
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-700);
  font-size: 10.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fine-print {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 19. 전체 동의 스위치 ---------- */
.agree-all {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 13px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--brand-tint), #fffdf5);
  border: 1.5px solid rgba(242, 174, 18, 0.5);
  cursor: pointer;
}
.agree-all__text {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.agree-all__text span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-700);
  margin-top: 1px;
}
.switch {
  position: relative;
  flex: none;
  width: 52px;
  height: 31px;
}
.switch__input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.switch__track {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #ddd8c9;
  box-shadow: inset 0 1px 3px rgba(25, 26, 29, 0.14);
  transition: background 0.2s ease;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 25px; height: 25px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(25, 26, 29, 0.22);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.switch__input:checked ~ .switch__track { background: var(--brand-600); }
.switch__input:checked ~ .switch__track::after { transform: translateX(21px); }
.switch__input:focus-visible ~ .switch__track {
  outline: 3px solid rgba(242, 174, 18, 0.85);
  outline-offset: 3px;
}

/* ---------- 20. 버튼 / 제출 ---------- */
.form-actions { margin-top: 20px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 56px;
  padding: 15px 22px;
  border: 0;
  border-radius: 16px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.16s ease, filter 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: linear-gradient(180deg, #ffd35a, var(--brand) 55%, var(--brand-600));
  color: #3a2b00;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { filter: brightness(1.03); }
.btn--primary:active { transform: translateY(1px) scale(0.995); box-shadow: 0 5px 14px rgba(242, 174, 18, 0.3); }

.btn--calm {
  background: linear-gradient(180deg, #2f3238, #1c1e22);
  color: #fff;
  box-shadow: 0 10px 22px rgba(25, 26, 29, 0.2);
}
.btn--calm:hover { filter: brightness(1.12); }
.btn--calm:active { transform: translateY(1px) scale(0.995); }

.btn[disabled],
.btn.is-loading {
  cursor: default;
  opacity: 0.92;
  box-shadow: none;
  filter: saturate(0.9);
}

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.4px solid rgba(58, 43, 0, 0.25);
  border-top-color: #3a2b00;
  animation: spin 0.72s linear infinite;
}
.btn--calm .btn__spinner {
  border-color: rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
}
.btn.is-loading .btn__spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

.btn-note {
  margin-top: 11px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.link-back:hover { color: var(--ink); }

/* ---------- 21. 완료 화면 ---------- */
.done {
  padding: 42px 22px 34px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.done__icon {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffe9a3, var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(242, 174, 18, 0.34);
  animation: pop 0.5s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}
@keyframes pop {
  from { transform: scale(0.6); }
  to { transform: scale(1); }
}
.done__icon svg { width: 38px; height: 38px; }

.done__title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.done__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}
.done__panel {
  margin-top: 20px;
  padding: 15px;
  border-radius: var(--radius);
  background: var(--brand-tint-2);
  border: 1px solid rgba(242, 174, 18, 0.3);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  text-align: left;
}
.done__panel strong { color: var(--ink); }
.done__actions { margin-top: 22px; display: grid; gap: 9px; }

.btn--ghost {
  background: #fff;
  color: var(--ink-2);
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
  min-height: 50px;
  font-size: 14.5px;
  text-decoration: none;
}
.btn--ghost:hover { border-color: var(--brand-600); color: var(--ink); }

/* ---------- 22. 토스트 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, calc(100vw - 28px));
  padding: 13px 17px;
  border-radius: 14px;
  background: #24262b;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, 160%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, visibility 0.24s;
  pointer-events: none;
}
.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.toast__icon { flex: none; font-size: 15px; line-height: 1; }
.toast--error { background: #a82c25; }
.toast--info { background: #2f3238; }
.toast--success { background: #1d6b45; }

/* 요일 구분 제목 (금/토 보강 시간표) */
.times__group-title {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 900;
  color: var(--brand-700);
  letter-spacing: -0.01em;
}
.times__group-title + .checks { margin-top: 2px; }

/* ---------- 23. 유틸 ---------- */
.mt-16 { margin-top: 16px; }
.stack-sm > * + * { margin-top: 10px; }

/* ---------- 24. 반응형 (태블릿 이상) ---------- */
@media (min-width: 560px) {
  :root { --pad: 26px; }
  body { font-size: 16px; }
  .badges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .badge { padding: 16px 12px; }
  .badge__text { font-size: 12.5px; }
  .card { padding: 24px 22px 8px; }
  .card--tight { padding-bottom: 22px; }
  .card__title { font-size: 17.5px; }
  .hero { padding: 36px 0 14px; }
  .hero__logo { width: 120px; height: 120px; }
  .choice { padding: 22px 22px; }
  .choice__title { font-size: 18px; }
  .choice__desc { font-size: 13.5px; }
  .opts { gap: 10px; }
  .done { padding: 52px 34px 40px; }
  .done__actions { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .site-header { padding: 26px 0 6px; }
  .progress__inner { padding: 12px var(--pad); }
}

/* ---------- 25. 접근성: 모션 최소화 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
