/* =========================================================================
   Calmora · Components
   토큰 위에 얹는 컴포넌트 오버레이 레이어
   ========================================================================= */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-base);
  color: var(--c-text-2);
  background: var(--c-bg);
  background-image: var(--overlay-hero);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--c-gold); text-decoration: none; }
a:hover { color: var(--c-gold-2); text-decoration: underline; }

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

h1, h2, h3, h4 { color: var(--c-text); line-height: var(--lh-tight); margin: 0 0 var(--sp-4); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-38); }
h2 { font-size: var(--fs-30); }
h3 { font-size: var(--fs-20); }
p  { margin: 0 0 var(--sp-4); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-13); font-weight: 700; letter-spacing: 0.06em;
  color: var(--c-gold); text-transform: none; margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--c-gold); border-radius: 2px; }

.muted { color: var(--c-text-muted); }
.lead  { font-size: var(--fs-18); color: var(--c-text-2); line-height: var(--lh-base); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--c-gold); color: var(--c-on-gold); padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: var(--sp-2); font-weight: 800; font-size: var(--fs-20); color: var(--c-text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--c-gold); }
.brand small { font-size: var(--fs-12); font-weight: 600; color: var(--c-text-muted); letter-spacing: 0.04em; }

.nav-menu { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  color: var(--c-text-2); font-size: var(--fs-14); font-weight: 600;
}
.nav-menu > li > a:hover { color: var(--c-text); background: var(--c-surface-2); text-decoration: none; }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--c-surface-2); border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md); box-shadow: var(--shadow-lift);
  padding: var(--sp-2); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel a {
  display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  color: var(--c-text-2); font-size: var(--fs-14); font-weight: 500;
}
.dropdown-panel a:hover { background: var(--c-surface-3); color: var(--c-text); text-decoration: none; }
.dropdown-panel .group-label { padding: var(--sp-2) var(--sp-3) 2px; font-size: var(--fs-12); color: var(--c-text-faint); font-weight: 700; letter-spacing: 0.04em; }

.nav-call {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  border: 1px solid var(--c-gold-line); color: var(--c-gold);
  font-weight: 700; font-size: var(--fs-14); white-space: nowrap;
}
.nav-call:hover { background: var(--c-gold-soft); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--c-line-strong); color: var(--c-text); border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-15); cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--c-gold), var(--c-gold-2)); color: var(--c-on-gold); box-shadow: var(--ring-gold); }
.btn-ghost { background: transparent; border-color: var(--c-line-strong); color: var(--c-text); }
.btn-ghost:hover { background: var(--c-surface-2); }
.btn-orange {
  background: linear-gradient(180deg, var(--c-orange), var(--c-orange-2));
  color: #fff; border-color: rgba(255,255,255,0.12);
  box-shadow: 0 14px 30px -16px rgba(255,106,26,0.7);
}
.btn-orange:hover { color: #fff; box-shadow: 0 18px 38px -14px rgba(255,106,26,0.85); }

/* ---------- Hero (이미지 우측) ---------- */
.hero { position: relative; padding: var(--sp-8) 0 var(--sp-7); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--overlay-gold); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); align-items: center; }
.hero-copy h1 { font-size: clamp(1.9rem, 4.4vw, var(--fs-48)); margin-bottom: var(--sp-4); }
.hero-copy .lead { max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); list-style: none; padding: 0; }
.hero-chips li { font-size: var(--fs-13); color: var(--c-text-2); padding: 6px 12px; border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-surface); }

.hero-figure { position: relative; }
.hero-figure img, .hero-figure svg {
  width: 100%; height: auto; border-radius: var(--r-xl);
  border: 1px solid var(--c-line-strong); box-shadow: var(--shadow-lift);
}
.hero-figure::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-xl);
  background: var(--overlay-top); pointer-events: none;
}
.hero-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(10,13,18,0.72); border: 1px solid var(--c-gold-line);
  color: var(--c-gold); font-size: var(--fs-13); font-weight: 700; backdrop-filter: blur(6px);
}

/* ---------- Sections ---------- */
.section { padding: var(--sp-8) 0; }
.section-head { max-width: 720px; margin-bottom: var(--sp-6); }
.section.alt { background: var(--c-bg-2); border-block: 1px solid var(--c-line); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-card);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--overlay-top); pointer-events: none; }
.card:hover { border-color: var(--c-line-strong); transform: translateY(-2px); }
.card h3 { font-size: var(--fs-18); margin-bottom: var(--sp-2); }
.card p { font-size: var(--fs-14); color: var(--c-text-muted); margin-bottom: var(--sp-3); }
.card .card-meta { font-size: var(--fs-13); color: var(--c-gold); font-weight: 600; }
.card.feature { background: var(--c-surface-2); }
.card.gold { border-color: var(--c-gold-line); box-shadow: var(--ring-gold); }

.tag { display: inline-block; font-size: var(--fs-12); font-weight: 700; color: var(--c-gold); background: var(--c-gold-soft); border: 1px solid var(--c-gold-line); padding: 2px 10px; border-radius: var(--r-pill); }
.tag.warn { color: var(--c-warn); background: rgba(242,193,78,0.12); border-color: rgba(242,193,78,0.32); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.price-card { position: relative; text-align: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5); }
.price-card.featured { border-color: var(--c-gold-line); box-shadow: var(--ring-gold); }
.price-card .course { font-weight: 700; color: var(--c-text); margin-bottom: var(--sp-3); }
.price-card .amount { font-size: var(--fs-38); font-weight: 800; color: var(--c-text); letter-spacing: -0.02em; }
.price-card.featured .amount { color: var(--c-gold); }
.price-card .amount span { font-size: var(--fs-16); font-weight: 600; color: var(--c-text-muted); }
.price-card .dur { color: var(--c-gold-2); font-weight: 700; font-size: var(--fs-13); margin: var(--sp-2) 0 var(--sp-3); }
.price-card .desc { font-size: var(--fs-14); color: var(--c-text-muted); min-height: 2.6em; }
.price-pick { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, var(--c-gold), var(--c-gold-2)); color: var(--c-on-gold); font-size: var(--fs-12); font-weight: 800; padding: 4px 14px; border-radius: var(--r-pill); }

/* ---------- Content prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--fs-24); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-18); margin-top: var(--sp-5); color: var(--c-gold); }
.prose p, .prose li { font-size: var(--fs-16); color: var(--c-text-2); }
.prose ul { padding-left: 1.2em; margin: 0 0 var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }

.checklist { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.checklist li { position: relative; padding-left: 30px; margin-bottom: var(--sp-3); color: var(--c-text-2); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--c-gold-soft); color: var(--c-gold); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Layout w/ aside ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: var(--sp-7); align-items: start; }
.aside-card { position: sticky; top: 84px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-5); }
.aside-card h4 { font-size: var(--fs-14); color: var(--c-text-faint); letter-spacing: 0.04em; margin-bottom: var(--sp-3); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: var(--sp-2); }
.link-list a { font-size: var(--fs-14); color: var(--c-text-2); display: block; padding: 6px 8px; border-radius: var(--r-sm); }
.link-list a:hover { background: var(--c-surface-3); color: var(--c-gold); text-decoration: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: var(--sp-4) 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: var(--fs-13); color: var(--c-text-muted); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--c-text-faint); }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-gold); }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3); background: var(--c-surface); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--c-text); list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-gold); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: var(--sp-3) 0 0; font-size: var(--fs-15); color: var(--c-text-2); }

/* ---------- Authorship / EEAT ---------- */
.eeat { margin-top: var(--sp-6); padding: var(--sp-5); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-bg-2); }
.eeat h4 { color: var(--c-gold); font-size: var(--fs-14); margin-bottom: var(--sp-2); }
.eeat dl { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--sp-4); margin: 0; font-size: var(--fs-14); }
.eeat dt { color: var(--c-text-faint); font-weight: 700; }
.eeat dd { margin: 0; color: var(--c-text-2); }
.whohowwhy { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); margin-top: var(--sp-4); }
.whohowwhy div { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--sp-4); }
.whohowwhy b { color: var(--c-gold); display: block; margin-bottom: 4px; font-size: var(--fs-13); }
.whohowwhy p { font-size: var(--fs-13); color: var(--c-text-muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--c-line); background: var(--c-bg-2); margin-top: var(--sp-8); padding: var(--sp-8) 0 var(--sp-6); }
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding: var(--sp-6); border: 1px solid var(--c-line-strong); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface)); margin-bottom: var(--sp-7);
}
.footer-cta h3 { margin-bottom: 6px; }
.footer-cta p { margin: 0; font-size: var(--fs-14); color: var(--c-text-muted); }
.footer-cta .btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); }
.footer-brand .brand { font-size: var(--fs-24); }
.footer-brand p { font-size: var(--fs-14); color: var(--c-text-muted); margin-top: var(--sp-3); max-width: 34ch; }
.footer-phone { display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); font-size: var(--fs-18); font-weight: 800; color: var(--c-gold); }
.footer-col h4 { font-size: var(--fs-13); color: var(--c-text-faint); letter-spacing: 0.05em; margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a { font-size: var(--fs-14); color: var(--c-text-muted); }
.footer-col a:hover { color: var(--c-gold); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--c-line); font-size: var(--fs-13); color: var(--c-text-faint); }
.footer-disclaimer { font-size: var(--fs-12); color: var(--c-text-faint); line-height: var(--lh-snug); margin-top: var(--sp-4); max-width: 80ch; }

/* ---------- Notice band ---------- */
.notice { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--c-line); border-left: 3px solid var(--c-gold); border-radius: var(--r-md); background: var(--c-surface); font-size: var(--fs-14); color: var(--c-text-2); }
.notice.warn { border-left-color: var(--c-warn); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .content-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .whohowwhy { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-menu, .nav-call { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-menu { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--c-surface-2); border-bottom: 1px solid var(--c-line-strong); padding: var(--sp-3); gap: 2px; }
  .nav.open .nav-menu .dropdown-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: var(--sp-4); }
  .grid-2, .grid-3, .grid-4, .price-grid, .whohowwhy { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cta { flex-direction: column; align-items: stretch; }
}
