/* =========================================================
   Book Adventure Lab — shared site styles
   - Shared base/theme/components used across pages
   - Page-specific overrides live in assets/css/pages/
========================================================= */

/* ---------------------------------------------------------
   0) Reset / Base
--------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(195, 90, 42, 0.35);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ---------------------------------------------------------
   1) Theme Tokens (Paper System)
--------------------------------------------------------- */
:root{
  /* Paper surfaces */
  --bg: #fbf6ea;          /* base paper */
  --bg-alt: #fffaf0;      /* lighter sheet */
  --sheet: #fffdf6;       /* card/panel */
  --sheet-2: #fff8e8;     /* warm tint */
  --ink: #1f1a14;         /* warm black */
  --ink-2: #3a332c;       /* paragraph */
  --ink-3: #6b6258;       /* muted */
  --line: rgba(31,26,20,.14);

  /* Brand accents */
  --brand: #2f5d50;       /* moss */
  --brand-2: #1f4b40;     /* deep moss */
  --stamp: #c35a2a;       /* terracotta */
  --stamp-2: #9b3e18;

  /* Status */
  --ok: #2f5d50;
  --bad: #c35a2a;

  /* Radius & shadows */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 22px;

  /* ✅ 알파값 소수 정상 */
  --shadow-1: 0 10px 28px rgba(31,26,20,.10);
  --shadow-2: 0 18px 55px rgba(31,26,20,.12);
  --shadow-3: 0 30px 110px rgba(31,26,20,.22);

  /* Layout widths */
  --w: 1080px;
  --w-narrow: 860px;

  /* Spacing */
  --s-1: 6px;
  --s-2: 10px;
  --s-3: 14px;
  --s-4: 18px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
          Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* ✅ 타이틀 폰트 변수 통합 */
  --font-title: "Noto Serif KR", serif;
}

/* ---------------------------------------------------------
   2) Body Paper Grain + Vignette
--------------------------------------------------------- */
body{
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* grain */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .08;
  background-image: radial-gradient(rgba(0,0,0,.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mix-blend-mode: multiply;
}

/* vignette */
body::after{
  content:"";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background: radial-gradient(60% 40% at 50% 8%, rgba(0,0,0,.06), transparent 60%);
}

/* ensure content over texture */
body > *{
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------
   3) Layout Utilities
--------------------------------------------------------- */
.container{
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto;
}

.section{
  padding: var(--s-9) 0;
}

@media (max-width: 900px){
  .section{ padding: 76px 0; }
}

@media (max-width: 560px){
  .container{ width: min(var(--w), calc(100% - 28px)); }
  .section{ padding: 64px 0; }
}

/* Centering in your page */
.content{
  text-align: center;
}

.content h1,
.content h2,
.content h3,
.content p,
.content blockquote,
.content .tip,
.content .pull.card{
  margin-left: auto;
  margin-right: auto;
}

/* readability exceptions */
.content .timeline,
.content .timeline .item,
.content ol,
.content ul,
.content details,
.content details p,
.content details summary,
.content .note{
  text-align: left;
}

#contact .content ul{
  text-align: left;
}

/* ---------------------------------------------------------
   4) Typography
--------------------------------------------------------- */
h1, h2, h3{
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-title);
}

h1{
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2{
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

h3{
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  margin-top: 26px;
}

p{
  margin: 10px 0 18px;
  color: var(--ink-2);
}

.content > p + p{
  margin-top: 16px;
}

.lead{
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink);
  margin-top: 12px;
}

.tight{
  margin-top: 8px;
  margin-bottom: 8px;
}

.muted{
  color: var(--ink-3);
}

.badge{
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-3);
}

.mt{
  margin-top: 40px;
}

/* highlights */
.highlight{
  background: linear-gradient(transparent 70%, rgba(195,90,42,.18) 0);
  display: inline;
}

.h-underline{
  background: linear-gradient(transparent 72%, rgba(47,93,80,.14) 0);
  display: inline;
}

/* ---------------------------------------------------------
   5) Nav & Progress
--------------------------------------------------------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 246, 234, 0.78);
  backdrop-filter: saturate(130%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.nav a:hover{
  opacity: 0.92;
}

.nav-menu{
  display: none;
  gap: 18px;
  color: var(--ink-2);
  font-size: 14px;
}

.nav-cta-sm{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 900px){
  .nav-menu{ display: flex; }
  .nav-cta-sm{ display: none; }
}

.progress{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--brand), var(--stamp));
}

/* ---------------------------------------------------------
   6) Hero / Prologue
--------------------------------------------------------- */
.hero{
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.hero .container{
  padding-top: 46px;
  padding-bottom: 18px;
}

.kv{
  border: 1px solid rgba(31,26,20,.16);
  border-radius: var(--r-lg);
  padding: 26px;
  background: linear-gradient(180deg, #fffdf6, #f6eedc);
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}

/* notebook lines on kv */
.kv::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(31,26,20,.06),
      rgba(31,26,20,.06) 1px,
      transparent 1px,
      transparent 30px
    );
  opacity: .30;
  pointer-events:none;
}

/* left margin binding */
.kv::after{
  content:"";
  position:absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(195,90,42,.28);
  box-shadow: 12px 0 0 rgba(195,90,42,.10);
  opacity: .7;
  pointer-events:none;
}

@media (max-width: 560px){
  .kv{ padding: 20px; }
  .kv::after{ left: 18px; }
}

/* ---------------------------------------------------------
   7) Dividers & Pullquotes
--------------------------------------------------------- */
.divider{
  height: 1px;
  background: var(--line);
  margin: 56px auto;
  width: min(100%, var(--w-narrow));
}

.divider-decor{
  height: 1px;
  margin: 46px auto;
  width: min(100%, var(--w-narrow));
  background: linear-gradient(
    90deg,
    rgba(31,26,20,.10),
    transparent 40%,
    transparent 60%,
    rgba(31,26,20,.10)
  );
  opacity: .95;
}

.pull{
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.55;
  color: var(--ink);
}

.pull.card{
  background: var(--sheet);
  border: 1px solid rgba(31,26,20,.14);
  border-left: 8px solid rgba(195,90,42,.55);
  border-radius: var(--r);
  padding: 18px 20px;
  margin: 24px 0;
  box-shadow: var(--shadow-1);
}

/* ---------------------------------------------------------
   8) Cards / Tip / Notes
--------------------------------------------------------- */
.tip{
  background: var(--sheet);
  border: 1px solid rgba(31,26,20,.14);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-top: 18px;
  font-size: 15px;
  box-shadow: var(--shadow-1);
}

.note{
  background: rgba(255,255,255,.35);
  border: 1px dashed rgba(31,26,20,.20);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-top: 18px;
}

/* ---------------------------------------------------------
   9) Chips / Labels
--------------------------------------------------------- */
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(195,90,42,.12);
  color: var(--stamp-2);
  border: 1px dashed rgba(195,90,42,.40);
  font-size: 13px;
  font-weight: 700;
}

/* ---------------------------------------------------------
   10) Buttons
--------------------------------------------------------- */
.btn-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 30px rgba(47,93,80,.16);
  font-weight: 800;
  font-size: 15px;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
  cursor: pointer;
}

.btn:hover{
  opacity: .95;
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(47,93,80,.14);
}

.btn-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--sheet);
  color: var(--ink);
  border: 1px dashed rgba(31,26,20,.22);
  box-shadow: 0 10px 24px rgba(31,26,20,.06);
  font-weight: 800;
  font-size: 15px;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
  cursor: pointer;
}

.btn-outline:hover{
  background: #fff7e6;
  transform: translateY(-1px);
  opacity: .98;
}

.btn-sm{
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
}

/* ---------------------------------------------------------
   11) Hero Visual (if exists)
--------------------------------------------------------- */
.hero-visual{
  margin-top: 18px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(31,26,20,.14);
  background: linear-gradient(135deg, #fffdf6, #f3e8d0);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
}

.hero-visual::after{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(50% 40% at 30% 20%, rgba(47,93,80,.12), transparent 60%),
    radial-gradient(60% 40% at 80% 80%, rgba(195,90,42,.10), transparent 60%);
  opacity: .9;
}

/* ---------------------------------------------------------
   12) Sections with gentle paper glow (optional helper)
--------------------------------------------------------- */
.bg-fade{
  position: relative;
}

.bg-fade::before{
  content:"";
  position: absolute;
  inset: -40px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 20% 10%, rgba(47,93,80,.10) 0, transparent 60%),
    radial-gradient(60% 40% at 80% 90%, rgba(195,90,42,.10) 0, transparent 60%);
  opacity: .85;
}

/* ---------------------------------------------------------
   13) Timeline (Vertical)
--------------------------------------------------------- */
.timeline{
  counter-reset: step;
  position: relative;
  margin: 22px auto;
  max-width: 560px;
  padding-left: 6px;
}

.timeline::before{
  content:"";
  position:absolute;
  left: 22px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(31,26,20,.14);
}

.timeline .item{
  counter-increment: step;
  position: relative;
  margin: 14px 0;
  padding: 16px 16px 16px 72px;
  background: #fffdf6;
  border: 1px solid rgba(31,26,20,.12);
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(31,26,20,.07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.timeline .item h3{
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.timeline .item p{
  margin: 0;
  color: var(--ink-2);
  line-height: 1.6;
}

.timeline .dot{
  position:absolute;
  left: 10px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fffaf0;
  border: 1px solid rgba(31,26,20,.18);
  box-shadow: 0 8px 22px rgba(31,26,20,.08);
  display: grid;
  place-items: center;
}

.timeline .dot::before{
  content: counter(step);
  font-weight: 800;
  font-size: 13px;
  color: var(--stamp-2);
}

.timeline .icon{
  display:none;
}

@media (hover:hover){
  .timeline .item:hover{
    transform: translateY(-1px);
    box-shadow: 0 18px 48px rgba(31,26,20,.10);
  }
}

/* ---------------------------------------------------------
   14) Details / Accordion
--------------------------------------------------------- */
details{
  width: min(100%, var(--w-narrow));
  margin: 14px auto;
  background: var(--sheet);
  border: 1px solid rgba(31,26,20,.14);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

details summary{
  list-style: none;
  cursor: pointer;
  padding: 16px 16px;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

details summary::-webkit-details-marker{ display:none; }
details summary::marker{ content:""; }

.tip-summary, .research-summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  gap:10px;
}

.caret{
  transition: transform .2s ease;
}

details[open] > summary .caret{
  transform: rotate(180deg);
}



details summary::after{
  content: none !important;
}




details .details-body{
  padding: 0 16px 16px;
}

details p{
  margin: 10px 0 12px;
}

/* ---------------------------------------------------------
   15) Fit Section
--------------------------------------------------------- */
.fit-section{
  padding: 64px 0;
  background: linear-gradient(180deg, #fff9ec, #f6eedc);
  border-top: 1px solid rgba(31,26,20,.10);
  border-bottom: 1px solid rgba(31,26,20,.10);
}

.fit-section h2{
  margin-bottom: 18px;
}

.fit-section ul{
  list-style: none;
  padding: 0;
  margin: 20px auto;
  width: min(100%, var(--w-narrow));
}

.fit-section li{
  padding: 14px 18px;
  margin: 10px 0;
  background: var(--sheet);
  border: 1px solid rgba(31,26,20,.12);
  border-radius: var(--r-sm);
  box-shadow: 0 10px 24px rgba(31,26,20,.05);
  position: relative;
  padding-left: 40px;
}

.fit-section li::before{
  content: "✓";
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--ok);
  font-weight: 900;
  font-size: 18px;
}

.fit-section li.mt::before{
  content: "✗";
  color: var(--stamp);
}

/* ---------------------------------------------------------
   16) Soft CTA Section
--------------------------------------------------------- */
.soft-cta{
  padding: 52px 0;
  text-align: center;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(47,93,80,.10), transparent 55%),
    radial-gradient(60% 50% at 80% 90%, rgba(195,90,42,.10), transparent 55%),
    linear-gradient(180deg, #fff9ec, var(--bg));
  border-top: 1px solid rgba(31,26,20,.08);
}

.soft-cta p{
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  margin-bottom: 20px;
  color: var(--ink);
}

.cta-link{
  display: inline-block;
  font-size: 17px;
  font-weight: 900;
  color: var(--brand);
  border-bottom: 2px solid rgba(47,93,80,.55);
  padding-bottom: 2px;
  transition: all 0.25s;
}

.cta-link:hover{
  color: var(--brand-2);
  border-bottom-color: rgba(31,75,64,.75);
}

/* ---------------------------------------------------------
   17) Contact Form
--------------------------------------------------------- */
.contact-form{
  margin-top: 32px;
  width: min(100%, 680px);
}

.contact-form label{
  display: block;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--ink-2);
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid rgba(31,26,20,.16);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--sheet);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.contact-form textarea{
  min-height: 120px;
  resize: vertical;
}

.contact-form button{
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 12px 30px rgba(47,93,80,.16);
  transition: transform .18s ease, opacity .18s ease;
}

.contact-form button:hover{
  opacity: 0.95;
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   18) Contact Call CTA (TEL button)
--------------------------------------------------------- */
.contact-call{
  margin-top: 24px;
  text-align: center;
}

.call-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(47,93,80,.16);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.call-btn:hover{
  opacity: 0.95;
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   19) Contact Actions (SMS/Copy etc.)
--------------------------------------------------------- */
.contact-actions{
  margin-top: 14px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.contact-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 15px;
  background: var(--sheet);
  border: 1px dashed rgba(31,26,20,.22);
  box-shadow: 0 10px 24px rgba(31,26,20,.06);
  transition: transform .18s ease, background .18s ease;
}

.contact-btn:hover{
  background: #fff7e6;
  transform: translateY(-1px);
}

.contact-hint{
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------------------------------------------------------
   20) Floating CTA (Mobile)
--------------------------------------------------------- */
.floating-cta{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sheet);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid rgba(31,26,20,.14);
  box-shadow: 0 16px 50px rgba(31,26,20,.16);
}

.floating-cta::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--stamp);
  box-shadow: 0 0 0 4px rgba(195,90,42,.18);
}

@media (min-width: 920px){
  .floating-cta{ display: none; }
}

/* show/hide */
.floating-cta{
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.floating-cta.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------------------------------------------------------
   21) SMS Modal (PC 안내)
--------------------------------------------------------- */
.sms-modal{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.sms-modal.is-open{
  display: block;
}

.sms-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(31,26,20,.48);
  backdrop-filter: blur(3px);
}

.sms-modal__panel{
  position: relative;
  width: min(520px, calc(100% - 32px));
  margin: 10vh auto 0;
  background: var(--sheet);
  border: 1px solid rgba(31,26,20,.14);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

.sms-modal__panel::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(31,26,20,.06),
      rgba(31,26,20,.06) 1px,
      transparent 1px,
      transparent 26px
    );
  opacity: .22;
  pointer-events:none;
}

.sms-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.sms-modal__title{
  font-weight: 900;
  color: var(--ink);
}

.sms-modal__close{
  border: 1px solid rgba(31,26,20,.16);
  background: rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 900;
}

.sms-modal__textarea{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 180px;
  margin-top: 12px;
  border: 1px solid rgba(31,26,20,.14);
  border-radius: 14px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: none;
  background: #fffaf0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.sms-modal__actions{
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.sms-modal__btn{
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(31,26,20,.16);
  background: rgba(255,255,255,.55);
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.sms-modal__btn:hover{
  transform: translateY(-1px);
  opacity: .98;
  background: #fff7e6;
}

.sms-modal__btn.primary{
  border: none;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(47,93,80,.16);
}

.sms-modal__toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: rgba(31,26,20,.90);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  display: none;
  z-index: 140;
}

/* ---------------------------------------------------------
   22) Shared Modal
--------------------------------------------------------- */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 1000;
}

.modal.is-open{
  display: grid;
}

.modal__dim{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.48);
}

.modal__panel{
  position: relative;
  width: min(680px, calc(100% - 28px));
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  overflow: hidden;
}

.modal__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 12px;
}

.modal__title{
  margin: 0;
  font-size: 16px;
}

.modal__close{
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.modal__body{
  padding: 0 16px 14px;
  white-space: pre-wrap;
  line-height: 1.7;
}

.modal__actions{
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal__btn{
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
}

.modal__btn.primary{
  border-color: rgba(0,0,0,.22);
  font-weight: 700;
}

/* ---------------------------------------------------------
   23) Animations
--------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    opacity: 0;
    transform: translateY(10px);
    animation: reveal .6s ease forwards;
  }
  .reveal-2{ animation-delay: .08s; }
  .reveal-3{ animation-delay: .16s; }
}

@keyframes reveal{
  to{
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------
   23) Small helpers (if your HTML uses them)
--------------------------------------------------------- */
.list{
  width: min(100%, var(--w-narrow));
  margin: 0 auto;
  padding-left: 18px;
}

hr{
  border: none;
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}

.small{
  font-size: 13px;
  color: var(--ink-3);
}

.center{
  text-align: center;
}

.left{
  text-align: left;
}

/* ---------------------------------------------------------
   24) Footer
--------------------------------------------------------- */
footer{
  padding: 40px 0;
  border-top: 1px solid rgba(31,26,20,.12);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.20));
}

footer .muted{
  color: var(--ink-3);
}

/* ---------------------------------------------------------
   25) Responsive polish
--------------------------------------------------------- */
@media (max-width: 700px){
  .btn-row{ justify-content: flex-start; }
  .chips{ justify-content: flex-start; }
  .pull.card{ padding: 16px 16px; }
}

@media (max-width: 420px){
  .btn, .btn-outline{ width: 100%; }
  .contact-actions{
  justify-items: stretch;
}

.contact-actions a{
  text-align: center;
}

  .contact-btn{ width: 100%; }
}

/* ---------------------------------------------------------
   26) Print (optional)
--------------------------------------------------------- */
@media print{
  .nav, .progress, .floating-cta, .sms-modal{ display: none !important; }
  body::before, body::after{ display: none !important; }
  body{ background: #fff; color: #000; }
  .kv, .tip, details, .pull.card{ box-shadow: none !important; }
}

/* ---------------------------------------------------------
   END
--------------------------------------------------------- */

/* =========================================================
   Process List — Footnote Style Patch
========================================================= */

/* 1) 프로세스 리스트 기본 설정 */
.process{
  counter-reset: step; /* ✅ 이거 없으면 숫자 카운터가 안 도는 경우 생김 */
  max-width: var(--w-narrow);
  margin: 0 auto;
}

/* 2) 리스트 아이템 구조 정리 */
.process li{
  position: relative;
  padding-left: 0;
  margin-bottom: 22px;
}

/* 3) 기존 체크/아이콘 완전 제거 */
.process li svg,
.process li i,
.process li .icon,
.process li .check{
  display: none !important;
}

/* 4) 제목(굵은 텍스트)에 주석 번호 붙이기 */
.process li strong{
  position: relative;
  font-weight: 900;
  color: var(--ink);
  padding-left: 18px;
  display: inline-block;
}

/* 주석 번호 */
.process li strong::before{
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  vertical-align: super;
}

/* 5) 설명 문단 톤 다운 (교재 느낌) */
.process li p{
  margin: 6px 0 0 18px;
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 15px;
}

/* ===== Chapter 4 3-step stamps ===== */
.three-steps{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin: 18px auto 8px;
}

.step-card{
  background: #fffdf6;
  border: 1px solid rgba(31,26,20,.14);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  padding: 14px 12px;
  text-align: center;
}

.step-stamp{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(195,90,42,.10);
  border: 1px dashed rgba(195,90,42,.45);
  color: #9b3e18;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.step-title{
  margin-top: 10px;
  font-weight: 900;
  color: var(--ink);
}

.step-desc{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}

.three-caption{
  text-align: center;
  font-size: 12px;
  margin: 6px auto 18px;
}

@media (max-width: 560px){
  .three-steps{
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .step-card{
    text-align: left;
  }
  .step-desc{
    margin-left: 2px;
  }
}
/* Chapter 4 SVG 다이어그램 숨김(카드만 사용) */
#parent .diagram{ display:none; }

/* 스탬프 카드가 SVG 아래에서 자연스럽게 보이도록 */
.three-steps{ margin: 12px auto 6px; }
.step-card{ text-align: left; }       /* ✅ 항상 왼쪽 정렬(가독성↑) */
.step-desc{ margin-left: 0; }         /* ✅ 모바일용 보정 필요 없어짐 */

/* ✅ 상담 버튼 영역: 기본부터 가운데 정렬 */
.contact-actions{
  display: grid;
  gap: 10px;
  justify-items: center;   /* 핵심 */
}

/* ✅ 버튼 폭/정렬 안정화 */
.contact-actions .contact-btn{
  width: min(520px, 100%);
  text-align: center;
}

/* ✅ 전화 버튼(초록) - contact-btn가 흰색으로 덮는 문제 해결 */
.contact-btn.btn{
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
}

/* ✅ details 기본 화살표(마커) 제거 */
.research-toggle summary::-webkit-details-marker{ display:none; }
.research-toggle summary::marker{ content:""; }

/* ✅ [관련 연구 자료] 옆 📎 */
.research-label::before{
  content: "📎 ";
}

/* ✅ 더보기/닫기 토글 로직 (중복 방지 핵심) */
.when-open{ display:none; }
details[open] .when-open{ display:inline; }
details[open] .when-closed{ display:none; }

/* ✅ 토글 박스 기본 */
.research-toggle{
  margin-top: 10px;
  border-radius: 14px;
  background: var(--sheet);
  padding: 10px 12px;
  border: 1px solid rgba(31,26,20,.10);
}

.research-toggle summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  gap: 10px;
}

/* ✅ 펼친 내용 */
.research-list{
  margin-top: 12px;
  display:grid;
  gap: 14px;
}

.research-item{
  border: 1px solid rgba(31,26,20,.10);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,.55);
}

.research-item h4{
  font-size: 14px;
  margin: 0 0 6px;
}

.research-item p{
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0 0 8px;
}

.paper-link{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
}

.paper-link:hover{ text-decoration: underline; }

.source{
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-4);
}

/* ✅ 모바일에서 "논문 카드 느낌" 강화 */
@media (max-width: 560px){
  details[open] .research-list{
    gap: 12px;
  }
  details[open] .research-item{
    background: #fffdf6;
    box-shadow: var(--shadow-1);
    padding: 14px 14px;
    border-radius: 16px;
  }
  details[open] .paper-link{
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(31,26,20,.12);
    background: rgba(255,255,255,.75);
  }
}

/* 문단 앞 인라인 숫자 스탬프 */
.inline-stamp{
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;

  border-radius: 999px;
  background: rgba(195,90,42,.10);
  border: 1px dashed rgba(195,90,42,.45);
  color: #9b3e18;

  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}

/* 문단 정렬 안정화 */
.literacy-point{
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.literacy-point .inline-stamp{
  flex-shrink: 0;
  margin-top: 2px;
  margin-left: 12px;   /* ← 이 줄 추가 */
}


.literacy-point{
  display: flex;
  align-items: flex-start;
  gap: 10px;            /* ← 스탬프와 문장 사이 */
  margin: 10px 0;      /* ← 위아래 숨 고르기 */
  padding-right: 20px;  /* ← 오른쪽 여백 */
}

/* BRIDGE */
.bridge{
  background: var(--bg-alt);
  padding: 64px 0;
}

.bridge-inner{
  text-align: center;
  max-width: 52ch;   /* ✅ 시각적 중심 맞추기 */
  margin: 0 auto;    /* ✅ 블록 자체를 가운데로 */
}

.bridge-title{
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 auto 18px;
  max-width: 52ch;   /* ✅ 제목도 같은 폭 안에 */
}

.bridge-p{
  line-height: 1.9;
  margin-left: auto;   /* ✅ 문단도 텍스트 블록 폭 기준으로 */
  margin-right: auto;
}

.bridge-p1{ margin: 14px auto 20px; color: var(--ink-2); }
.bridge-p2{ margin: 20px auto 28px; color: var(--ink-3); }
.bridge-p3{ margin: 8px  auto 28px; color: var(--ink-2); font-weight: 500; }

.bridge-photo{
  text-align: center;
  margin-top: 40px;
}

.bridge-img{
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(31,26,20,.12);
  background: rgba(255,255,255,.55);
  margin: 0 auto 10px;
  transition: transform .3s ease;
}

.bridge-img:hover{
  transform: scale(1.03);
}

.bridge-sign{
  font-style: italic;
  color: var(--ink-4);
  margin-top: 32px;
}

/* 모바일에서 더 자연스럽게 */
@media (max-width: 560px){
  .bridge{ padding: 54px 0; }
  .bridge-inner{ max-width: 34ch; }
  .bridge-img{ width: 170px; height: 170px; }
}

/* TIMELINE WRAPPER */
.timeline{
  list-style: none;
  padding: 0;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;   /* ✅ 전체를 가운데로 */
  gap: 18px;
  max-width: 720px;      /* ✅ 기준 폭 */
}

/* ITEM CARD */
.timeline .item{
  position: relative;
  width: 100%;
  background: #fffdf6;
  border: 1px solid rgba(31,26,20,.12);
  border-radius: 16px;
  padding: 22px 24px 22px 56px; /* ← 스탬프 공간 */
  box-shadow: var(--shadow-1);
}

/* NUMBER STAMP */
.timeline .stamp{
  position: absolute;
  left: 18px;
  top: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(31,26,20,.25);
  color: #8a3f1f;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* TEXT */
.timeline h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.timeline p{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* MOBILE */
@media (max-width: 560px){
  .timeline{
    max-width: 92%;
  }

  .timeline .item{
    padding: 20px 20px 20px 52px;
  }
}

/* FIT CHECK */
.fit-inner{
  text-align: center;
}

.fit-title{
  max-width: 640px;
  margin: 0 auto 18px;
}

.fit-list{
  max-width: 640px;     /* ✅ 가운데 컬럼 폭 */
  margin: 0 auto 40px;  /* ✅ 가운데 정렬 핵심 */
  padding: 0;
}

.fit-list li{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  background: #fffdf6;
  border: 1px solid rgba(31,26,20,.12);
  border-radius: 12px;
  text-align: left;     /* 문장은 읽기 좋게 */
  color: var(--ink-2);
}

/* 아이콘 */
.fit-list.good li::before{
  content: "✓";
  color: #2f7d5a;
  font-weight: 900;
}

.fit-list.bad li::before{
  content: "✕";
  color: #b45309;
  font-weight: 900;
}

/* 반응형 */
@media (max-width: 560px){
  .fit-list{
    max-width: 92%;
  }
}

/* iOS Safari: input/textarea 16px 미만이면 자동 줌 발생 → 레이아웃 깨짐 방지 */
@media (max-width: 920px){
  .sms-modal__textarea{
    font-size: 16px; /* 핵심 */
  }
  .sms-modal__btn{
    font-size: 16px; /* 버튼도 같이 올려두면 안정적 */
  }
}

/* iOS safe-area 대응: 하단 고정 CTA가 바/노치에 안 먹히게 */
.floating-cta{
  bottom: calc(16px + env(safe-area-inset-bottom));
}

/* =========================================================
   Mobile: 체크/엑스 아이콘과 텍스트 겹침 방지 패치
   (fit 섹션 리스트 전용)
========================================================= */

/* 1) 리스트 기본: 아이콘 들어갈 공간 확보 + 줄바꿈 안정화 */
#fit ul li{
  position: relative;
  padding-left: 30px;      /* 아이콘 영역 확보 (겹침 방지 핵심) */
  line-height: 1.45;       /* 줄바꿈 시에도 덜 겹치게 */
  word-break: keep-all;    /* 한국어 줄바꿈 자연스럽게 */
}

/* 2) 아이콘(체크/엑스) 공통 위치/크기 고정 */
#fit ul li::before{
  position: absolute;
  left: 0;
  top: 0.15em;             /* 첫 줄 기준으로 살짝 내려서 정렬 */
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* 3) 모바일에서 더 자주 겹치니 조금 더 넉넉히 */
@media (max-width: 768px){
  #fit ul li{
    padding-left: 34px;
  }
  #fit ul li::before{
    top: 0.18em;
  }
}

/* =========================================================
   FIT 섹션: 체크/엑스 아이콘 세로정렬 깔끔하게 (flex 방식)
========================================================= */

#fit ul li{
  /* 기존 absolute 레이아웃 해제하고 flex로 정렬 */
  display: flex;
  align-items: center;     /* ✅ 아이콘이 박스 가운데에 딱 맞게 */
  gap: 12px;               /* 아이콘-텍스트 간격 */
  padding-left: 16px;      /* 기존 아이콘 공간 패딩 제거 */
}

#fit ul li::before{
  position: static;        /* ✅ absolute 제거 */
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;          /* ✅ 아이콘 폭 고정(줄바꿈 흔들림 방지) */
  transform: translateY(-0.5px); /* 미세 튜닝(필요 없으면 삭제) */
}

/* 문장이 길어서 2줄 이상 될 때도 보기 좋게 */
#fit ul li{
  line-height: 1.45;
}

/* 모바일에서 간격 조금 더 확보 */
@media (max-width: 768px){
  #fit ul li{
    gap: 14px;
  }
}

/* 자격증 이미지 – 보조적이지만 인식되는 수준 */
.certificates{
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 가로 2개 */
  gap: 12px;
  max-width: 550px;        /* 🔥 200 → 400 */
  margin: 24px auto 0;
}

.certificates figure{
  margin: 0;
  background: var(--sheet);
  border: 1px solid rgba(31,26,20,.10);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  overflow: hidden;
}

.certificates img{
  width: 100%;
  display: block;
}

/* 수업 전경 */
.class-scenes{ background: var(--bg); }

/* 슬라이더 프레임 */
.slider{
  position: relative;
  overflow: hidden;
  margin-top: 22px;
}

/* 트랙 */
.slider-track{
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
  transform: translate3d(0,0,0); /* ✅ iOS 가속 */
}

/* PC 기본: 한 페이지(슬라이드)=3장 */
.slide{
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 2px;
}

.slide img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* 버튼 */
.slider-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  cursor: pointer;
  font-size: 22px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.slider-btn.prev{ left: 10px; }
.slider-btn.next{ right: 10px; }

/* 모바일: JS가 1장=1슬라이드로 바꿔줌 */
@media (max-width: 768px){
  .slide{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .slide img{
    aspect-ratio: 16 / 10;
    object-position: center;
  }
  .slider-btn.prev{ left: 8px; }
  .slider-btn.next{ right: 8px; }
}

/* ==========================================================
   상담 신청 폼 (consult-form) — 추가 스타일
   index.html #contact 섹션 전용
========================================================== */

/* 폼 전체 래퍼 */
.consult-form {
  width: min(100%, 600px);
  margin: 28px auto 0;
  text-align: left;
}

/* 각 필드 그룹 */
.consult-form .form-group {
  margin-bottom: 20px;
}

.consult-form .form-group > label {
  display: block;
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-size: 15px;
}

/* 필수 표시 * */
.consult-form .form-group > label span[aria-hidden] {
  color: var(--stamp);
  margin-left: 2px;
}

/* 입력 필드 공통 */
.consult-form input[type="text"],
.consult-form input[type="tel"],
.consult-form select,
.consult-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(31,26,20,.18);
  border-radius: 12px;
  font-size: 16px; /* iOS 줌 방지 */
  font-family: inherit;
  background: var(--sheet);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  transition: border-color .18s ease, box-shadow .18s ease;
  appearance: none;
  -webkit-appearance: none;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47,93,80,.14);
}

/* 유효성 오류 상태 */
.consult-form input.is-error,
.consult-form select.is-error,
.consult-form textarea.is-error {
  border-color: var(--stamp);
  box-shadow: 0 0 0 3px rgba(195,90,42,.14);
}

.consult-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6258' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.consult-form textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* 라디오 그룹 */
.form-radio-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-2);
  padding: 10px 16px;
  border: 1px dashed rgba(31,26,20,.22);
  border-radius: 999px;
  background: var(--sheet);
  transition: background .15s ease, border-color .15s ease;
  user-select: none;
}

.form-radio:has(input:checked) {
  background: rgba(47,93,80,.10);
  border-color: var(--brand);
  color: var(--brand-2);
  font-weight: 800;
}

.form-radio input[type="radio"] {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 체크박스 (개인정보 동의) */
.form-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  accent-color: var(--brand);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-hint {
  margin: 6px 0 0 28px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* 선택 레이블 */
.form-optional {
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-3);
  margin-left: 4px;
}

/* 인라인 에러 메시지 */
.form-error {
  background: rgba(195,90,42,.08);
  border: 1px solid rgba(195,90,42,.28);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--stamp-2);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* 제출 버튼 */
.form-submit-btn {
  width: 100%;
  padding: 15px 24px;
  font-size: 16px;
  margin-top: 4px;
}

/* 버튼-폼 구분선 */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px auto;
  width: min(100%, 600px);
  color: var(--ink-3);
  font-size: 13px;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 제출 중 로딩 상태 */
.form-submit-btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

/* 모바일 폼 정렬 */
@media (max-width: 560px) {
  .form-radio-group {
    flex-direction: column;
    gap: 10px;
  }
  .form-radio {
    width: 100%;
  }
  .consult-form {
    margin-top: 20px;
  }
}

/* ── 탭 (수업 안내 섹션) ── */
.tab-nav {
  justify-content: center;
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(31,26,20,.12);
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

@media (max-width: 560px) {
  .tab-btn { padding: 10px 18px; font-size: 15px; }
}

/* ==========================================================
   ★ 모바일 가독성 · 단락 구분 개선
   ========================================================== */

@media (max-width: 768px) {

  /* ① 줄간격 확대: 텍스트가 덜 붙어 보임 */
  body {
    line-height: 1.85;
  }

  /* ② 단락 아래 여백 넉넉히 */
  p {
    margin-bottom: 26px;
  }

  .content > p + p {
    margin-top: 20px;
  }

  /* ③ lead 단락 위아래 더 여유 */
  .lead {
    margin-top: 20px;
    margin-bottom: 30px;
  }

  /* ④ hero 내 단락 사이 분리선 */
  .hero .content p + p {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(31,26,20,.08);
  }

  /* ⑤ 섹션 경계 강화 */
  .fit-section,
  #guide,
  #bridge,
  #contact {
    border-top: 2px solid rgba(31,26,20,.11);
  }

  /* ⑥ 탭 콘텐츠 내 h3 위 구분선으로 레벨 블록 나누기 */
  .tab-pane h3 {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid rgba(31,26,20,.10);
  }

  /* ⑦ h2 아래 숨표 */
  h2 {
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {

  /* ⑧ 초소형 화면: 단락 여백 추가 확보 */
  p {
    margin-bottom: 30px;
  }

  .hero .content p + p {
    margin-top: 32px;
    padding-top: 28px;
  }

  /* ⑨ 컨테이너 좌우 여백 확보 */
  .container {
    width: min(var(--w), calc(100% - 24px));
  }
}
