/* ==========================================================================
   wonjang.ai.kr — 개원가 원장님을 위한 AI 직원 만들기
   디자인 토큰: 강의 포스터의 네이비/블루/옐로우 팔레트를 그대로 따름
   ========================================================================== */

:root {
  /* 포스터 팔레트 */
  --navy-900: #0b1f4d;
  --navy-800: #0f2a63;
  --navy-700: #12306e;
  --navy-600: #1a3f8a;
  --blue-600: #1d63e6;
  --blue-500: #2b78ff;
  --blue-100: #dbe7fd;
  --blue-050: #eef3fc;
  --yellow: #ffd43b;
  --yellow-dark: #f0b429;

  /* 중립 */
  --ink: #16233d;
  --ink-soft: #4a5a78;
  --ink-faint: #7a8aa8;
  --line: #dfe6f3;
  --surface: #ffffff;
  --canvas: #f5f8ff;

  /* 상태 */
  --ok: #17845a;
  --ok-bg: #e6f6ef;
  --warn: #b4531a;
  --warn-bg: #fdf1e7;
  --error: #c62f3c;
  --error-bg: #fdeced;

  /* 형태 */
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 42, 99, 0.08);
  --shadow: 0 6px 24px rgba(15, 42, 99, 0.1);
  --shadow-lg: 0 18px 48px rgba(15, 42, 99, 0.16);

  --maxw: 1080px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 64px;
}

.section--tight {
  padding-block: 44px;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

.section-head p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.02em;
  font-size: 16px;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-700));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  padding-block: 44px 56px;
  color: #fff;
}

.hero__inner {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.hero__poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero__kicker {
  color: var(--yellow);
  font-weight: 700;
  font-size: clamp(14px, 2vw, 16px);
  margin-bottom: 6px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.hero__sub {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 2.1vw, 17px);
  line-height: 1.6;
}

.hero__meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero__meta div {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 11px 14px;
}

.hero__meta dt {
  font-size: 11.5px;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__meta dd {
  margin: 3px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}

.hero__cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 두 버튼의 글자 수가 달라('등록' vs '등록 확인') 폭이 어긋난다.
   나란히 놓이는 버튼이라 같은 크기여야 정돈되어 보인다. */
.hero__cta .btn {
  flex: 0 0 auto;
  min-width: 168px;
}

.hero__note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--yellow);
  color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(255, 212, 59, 0.28);
}

.btn--primary:hover {
  background: var(--yellow-dark);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn--blue {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 99, 230, 0.24);
}

.btn--blue:hover {
  background: var(--blue-500);
}

.btn--outline {
  background: #fff;
  color: var(--navy-700);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 아직 눌러서는 안 되지만, 눌렀을 때 이유를 안내해야 하는 상태.
   disabled 와 달리 클릭 이벤트가 살아 있다. */
.btn.is-muted {
  opacity: 0.55;
  box-shadow: none;
}

.btn.is-muted:hover {
  transform: none;
}

/* ---------- curriculum ---------- */
.curric {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.curric__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.curric__item:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.curric__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--blue-050);
  color: var(--blue-600);
}

.curric__icon svg {
  width: 21px;
  height: 21px;
}

.curric__body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

.curric__body p {
  margin-top: 5px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* 한글은 기울임꼴이 읽기 나쁘다. 색과 굵기로만 강조한다. */
.curric__body em,
.flow__step em {
  font-style: normal;
  font-weight: 700;
  color: var(--navy-700);
}

.curric__body strong,
.flow__step strong {
  color: var(--navy-800);
}

/* ---------- 진행 방식 타임라인 ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}

.flow__step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.flow__step--main {
  border-color: var(--blue-100);
  background: linear-gradient(180deg, var(--blue-050), var(--surface));
  box-shadow: var(--shadow);
}

.flow__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-050);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.flow__step--main .flow__badge {
  background: var(--blue-600);
  color: #fff;
}

.flow__step h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

.flow__when {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
}

.flow__step p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.flow__note {
  margin-top: 12px;
  background: var(--warn-bg);
  border: 1px solid #f3d4b8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--warn);
  line-height: 1.55;
}

/* 경고가 아니라 '알아두면 좋은 안내'. 테마의 옅은 하늘색을 쓴다. */
.flow__note--info {
  background: var(--blue-050);
  border-color: var(--blue-100);
  color: var(--ink-soft);
}

.flow__note--info strong {
  color: var(--navy-700);
}

/* ---------- 단톡방 안내 ---------- */

.kakao {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-top: 14px;
}

.kakao__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-600);
  color: #fff;
}

.kakao__icon svg {
  width: 23px;
  height: 23px;
}

.kakao h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

.kakao p {
  margin-top: 7px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.kakao p strong {
  color: var(--navy-700);
}

/* ---------- 준비물 ---------- */

.bring {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bring__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.bring__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--blue-050);
  color: var(--blue-600);
}

.bring__icon svg {
  width: 21px;
  height: 21px;
}

.bring__item h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

.bring__item p {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- info panel ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}

.infogrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.infogrid > div {
  background: var(--surface);
  padding: 20px 18px;
  text-align: center;
}

.infogrid dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: 0.02em;
}

.infogrid dd {
  margin: 7px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

.infogrid dd small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-faint);
}

.infogrid__note {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- audience / value strip ---------- */
.strip {
  background: linear-gradient(135deg, var(--blue-600), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.strip h2 {
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.strip h2 em {
  font-style: normal;
  color: var(--yellow);
}

.strip p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

/* ---------- form ---------- */
.formpage {
  padding-block: 44px 72px;
}

.formcard {
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px;
}

.formcard__head {
  text-align: center;
  margin-bottom: 28px;
}

.formcard__head h1 {
  font-size: clamp(22px, 4vw, 27px);
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.03em;
}

.formcard__head p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 7px;
}

.field label .req {
  color: var(--error);
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: #a9b6cd;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(29, 99, 230, 0.13);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--error);
}

.field input[aria-invalid="true"]:focus,
.field select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(198, 47, 60, 0.13);
}

.field__hint {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* 이메일: 아이디 @ 도메인선택 */
.emailrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emailrow input {
  flex: 1 1 40%;
  min-width: 0;
}

.emailrow select {
  flex: 1 1 55%;
  min-width: 0;
}

.emailrow__at {
  flex: none;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-faint);
}

#emailDomainCustom {
  margin-top: 8px;
}

.field__error {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
  display: none;
}

.field__error.is-shown {
  display: block;
}

/* 서다나 네트워크 회원 확인 — 한 줄짜리 항목이라 여백을 최소로 둔다 */
.sedana {
  border: 1.5px solid var(--blue-100);
  border-radius: 11px;
  padding: 11px 14px;
  background: var(--blue-050);
}

/* 이 항목은 .field 안에 들어 있어서 `.field label { display: block }` 이
   .checkline 의 display:flex 를 덮어쓴다. 그러면 정렬이 아예 동작하지 않아
   체크박스와 글자가 어긋나 보인다. 더 구체적인 선택자로 되돌린다.
   (동의 박스들은 .field 밖에 있어 이 문제가 없다) */
.sedana .checkline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 0;
  font-weight: 600;
}

.sedana .checkline input[type="checkbox"] {
  margin: 0;
}

/* 줄 높이를 체크박스 높이와 맞춰 두 요소의 중심선을 일치시킨다 */
.sedana .checkline span {
  line-height: 20px;
}

/* 개인정보 동의 */
.consent {
  margin-top: 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--blue-050);
}

/* 동의 고지는 스크롤로 감추지 않는다.
   법적 고지이기도 하고, 스크롤 박스는 그냥 지나쳐 읽지 않게 된다. */
.consent__terms {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 14px;
}

/* 고지문은 강조 없이 한 덩어리로 읽히게 둔다.
   굵게/색으로 일부만 튀게 하면 나머지를 건너뛰고 읽게 된다. */
.consent__terms strong {
  font-weight: inherit;
  color: inherit;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-800);
  user-select: none;
}

.checkline input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue-600);
  cursor: pointer;
}

.formcard__submit {
  margin-top: 24px;
}

.formcard__foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* ---------- alerts / results ---------- */
.alert {
  border-radius: var(--radius);
  padding: 15px 17px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.alert--error {
  background: var(--error-bg);
  border-color: #f6c9cd;
  color: #8f1f2a;
}

.alert--warn {
  background: var(--warn-bg);
  border-color: #f3d4b8;
  color: var(--warn);
}

.alert--ok {
  background: var(--ok-bg);
  border-color: #bfe6d4;
  color: #0f5f41;
}

.result {
  text-align: center;
}

.result__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.result__icon svg {
  width: 34px;
  height: 34px;
}

.result__icon--ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.result__icon--fail {
  background: var(--warn-bg);
  color: var(--warn);
}

.result h2 {
  font-size: clamp(20px, 3.6vw, 25px);
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.03em;
}

.result__msg {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.result__box {
  margin-top: 22px;
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.result__box strong {
  color: var(--navy-800);
}

.result__actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.summary {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}

.summary__row {
  display: flex;
  gap: 14px;
  padding: 11px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.summary__row:last-child {
  border-bottom: 0;
}

.summary__row dt {
  flex: none;
  width: 96px;
  color: var(--ink-faint);
  font-weight: 600;
}

.summary__row dd {
  margin: 0;
  color: var(--navy-800);
  font-weight: 600;
}

.is-hidden {
  display: none !important;
}

/* 스크린리더 전용 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 로딩 스피너 */
.spinner {
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn--primary .spinner {
  border-color: rgba(11, 31, 77, 0.3);
  border-top-color: var(--navy-900);
}

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

/* ---------- 환불 규정 (하단 고지) ----------
   약관성 고지라 본문 흐름을 방해하지 않게 작고 옅게 둔다.
   다만 읽을 수는 있어야 하므로 대비는 확보한다. */

.terms {
  border-top: 1px solid var(--line);
  padding-block: 26px;
}

.terms h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.terms p {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-faint);
  max-width: 760px;
}

/* ---------- footer ---------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.62);
  padding-block: 34px;
  font-size: 13.5px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer strong {
  color: #fff;
  font-weight: 700;
}

.footer a {
  color: var(--yellow);
}

/* ==========================================================================
   반응형
   ========================================================================== */

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero__poster {
    max-width: 420px;
    margin-inline: auto;
  }

  .hero__text {
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: 44px;
  }

  .hero {
    padding-block: 30px 44px;
  }

  .hero__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .formcard {
    padding: 24px 20px;
  }

  .panel {
    padding: 20px;
  }

  .strip {
    padding: 24px 20px;
  }

  .btn {
    padding: 13px 22px;
    font-size: 15px;
  }

  /* flex-basis 를 0 으로 둬야 두 버튼이 남은 폭을 똑같이 나눠 갖는다.
     auto 로 두면 글자 수에 비례해 폭이 갈려 크기가 어긋난다. */
  .hero__cta .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .topbar__inner {
    height: 54px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .summary__row {
    flex-direction: column;
    gap: 3px;
  }

  .summary__row dt {
    width: auto;
    font-size: 12.5px;
  }

  .flow,
  .bring {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 400px) {
  .wrap {
    padding-inline: 16px;
  }

  .infogrid > div {
    padding: 16px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
