/* ============================================================
   Safe-Me Landing Page — Styles
   Design tokens: Tone A (신뢰의 네이비) — production default
   ============================================================ */

:root {
  --heroBg: #132A44;
  --heroFg: #F7F5F0;
  --heroFgMuted: #B8C4D6;
  --accent: #D4A24C;
  --accentFg: #1A1A1A;
  --painBg: #F7F5F0;
  --textDark: #132A44;
  --textMuted: #5C6B7E;
  --border: #E5DFCF;
  --alert: #C94A3F;
  --solutionBg: #0F1F33;
  --curriculumBg: #FFFFFF;
  --instructorsBg: #F7F5F0;
  --accessBg: #132A44;
  --finalCtaBg: #0F1F33;

  --boyAccent: #2C5B8E;
  --girlAccent: #A54767;

  --serif: "Noto Serif KR", serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1a1a1a;
  background: #fff;
}

button { font-family: inherit; }
a { -webkit-tap-highlight-color: transparent; }
p { margin: 0; }
h1, h2 { margin: 0; }

/* Desktop containment */
@media (min-width: 768px) {
  body { background: #ececec; }
  #root {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    min-height: 100vh;
  }
}

.section-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* ------------------------------------------------------------
   1. HERO
------------------------------------------------------------ */
.hero {
  background: var(--heroBg);
  color: var(--heroFg);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-deco--tr {
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #D4A24C22 0%, transparent 70%);
}
.hero-deco--bl {
  bottom: -80px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, #D4A24C18 0%, transparent 70%);
}

.hero-inner { position: relative; }

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-badge-text {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-subcopy {
  font-size: 15px;
  line-height: 1.6;
  color: var(--heroFgMuted);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-title .accent-text { color: var(--accent); }

.hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--heroFgMuted);
  margin-bottom: 36px;
  font-weight: 400;
  white-space: pre-line;
}

.media-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #B8C4D644;
  border-radius: 999px;
  margin-bottom: 36px;
  font-size: 13px;
  color: var(--heroFgMuted);
}
.media-badge-live {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.media-badge-divider {
  width: 1px;
  height: 12px;
  background: #B8C4D644;
}

.cta-button {
  display: block;
  width: 100%;
  padding: 20px 24px;
  background: var(--accent);
  color: var(--accentFg);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 24px #D4A24C55;
  transition: transform 0.2s;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
}
.cta-button:hover { transform: translateY(-2px); }

.hero-cta-sub {
  margin-top: 12px;
  font-size: 12px;
  color: var(--heroFgMuted);
  text-align: center;
}

/* ------------------------------------------------------------
   Generic Section
------------------------------------------------------------ */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--textDark);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* ------------------------------------------------------------
   2. PAIN POINT
------------------------------------------------------------ */
.painpoint { background: var(--painBg); }

.painpoint-header { margin-bottom: 44px; }

.tag-alert {
  background: #C94A3F18;
  color: var(--alert);
}

.painpoint-title {
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.painpoint-intro {
  font-size: 15px;
  color: var(--textMuted);
  line-height: 1.7;
}
.painpoint-intro b { color: var(--textDark); }

.data-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.data-card {
  background: #FFFFFF;
  padding: 28px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.data-card-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.data-card-num {
  font-size: 11px;
  color: var(--alert);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.data-card-src {
  font-size: 10px;
  color: var(--textMuted);
}

.data-card-label {
  font-size: 14px;
  color: var(--textDark);
  font-weight: 600;
  margin-bottom: 12px;
}

.data-card-big-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.data-card-big {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--alert);
  letter-spacing: -0.03em;
  line-height: 1;
}
.data-card-unit {
  font-size: 13px;
  color: var(--textMuted);
}

.data-card-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.data-card-bar-fill {
  height: 100%;
  background: var(--alert);
  border-radius: 3px;
}

/* 연도별 추이를 보여주는 꺾은선 그래프 (DATA 01 전용, 나머지 카드의 바 형식과 톤 일관성 유지) */
.data-card-line-chart {
  margin-bottom: 10px;
}
.data-card-line-svg {
  display: block;
  width: 100%;
  height: 74px;
}
.data-card-line-area {
  fill: #C94A3F1A;
  stroke: none;
}
.data-card-line-stroke {
  fill: none;
  stroke: var(--alert);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.data-card-line-dot {
  fill: #FFFFFF;
  stroke: var(--alert);
  stroke-width: 2;
}
.data-card-line-dot--last {
  fill: var(--alert);
  stroke: var(--alert);
}
.data-card-line-label {
  font-size: 9px;
  fill: var(--textMuted);
  font-family: inherit;
}
.data-card-line-label--last {
  fill: var(--alert);
  font-weight: 700;
}

.data-card-detail {
  font-size: 13px;
  color: var(--textMuted);
  line-height: 1.6;
  margin: 0;
}

.bridge-quote {
  margin-top: 40px;
  padding: 28px 24px;
  background: var(--textDark);
  color: #fff;
  border-radius: 12px;
  position: relative;
}
.bridge-quote-mark {
  font-size: 32px;
  font-family: var(--serif);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.bridge-quote-text {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
}
.bridge-quote-text b { color: var(--accent); }

/* ------------------------------------------------------------
   3. SOLUTION — Comparison
------------------------------------------------------------ */
.solution {
  background: var(--solutionBg);
  color: #fff;
  padding: 80px 0;
}

.tag-accent-dark {
  background: #D4A24C22;
  color: var(--accent);
}

.solution-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}

.solution-intro {
  font-size: 15px;
  color: #ffffff99;
  line-height: 1.7;
  margin-bottom: 36px;
}

.compare-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.compare-before-header { text-align: center; }
.compare-before-label {
  font-size: 11px;
  color: #ffffff55;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.compare-before-title {
  font-size: 13px;
  color: #ffffff88;
  font-weight: 600;
}

.compare-after-header {
  text-align: center;
  background: var(--accent);
  color: var(--accentFg);
  padding: 10px 8px;
  border-radius: 8px;
}
.compare-after-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  opacity: 0.7;
}
.compare-after-title {
  font-size: 13px;
  font-weight: 800;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.compare-cell-before {
  background: #ffffff08;
  padding: 20px 16px;
  border-radius: 8px;
  border: 1px solid #ffffff11;
}
.compare-cell-before-key {
  font-size: 11px;
  color: #ffffff55;
  margin-bottom: 8px;
  font-weight: 600;
}
.compare-cell-before-text {
  font-size: 14px;
  color: #ffffff77;
  line-height: 1.6;
  white-space: pre-line;
}

.compare-cell-after {
  background: #ffffff10;
  padding: 20px 16px;
  border-radius: 8px;
  border: 1px solid #D4A24C55;
}
.compare-cell-after-key {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}
.compare-cell-after-text {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
  font-weight: 500;
  white-space: pre-line;
}

/* ------------------------------------------------------------
   4. CURRICULUM
------------------------------------------------------------ */
.curriculum { background: var(--curriculumBg); }

.curriculum-header { margin-bottom: 32px; }

.tag-accent-light {
  background: #D4A24C18;
  color: var(--accent);
}

.curriculum-title {
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.curriculum-intro {
  font-size: 14px;
  color: var(--textMuted);
  line-height: 1.7;
}

.tab-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 14px 12px;
  background: transparent;
  color: var(--textMuted);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.tab-btn.active[data-gender="boy"] { background: var(--boyAccent); color: #fff; }
.tab-btn.active[data-gender="girl"] { background: var(--girlAccent); color: #fff; }

.course-header {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px 20px;
  margin-bottom: 16px;
}
.course-header[data-gender="boy"] { border-left: 4px solid var(--boyAccent); }
.course-header[data-gender="girl"] { border-left: 4px solid var(--girlAccent); }

.course-edition-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.course-header[data-gender="boy"] .course-edition-label { color: var(--boyAccent); }
.course-header[data-gender="girl"] .course-edition-label { color: var(--girlAccent); }

.course-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--textDark);
  margin-bottom: 10px;
  font-family: var(--serif);
}

.course-quote {
  font-size: 14px;
  color: var(--textMuted);
  font-style: italic;
  line-height: 1.6;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lesson-card {
  background: #fff;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lesson-num {
  font-size: 20px;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1;
  min-width: 32px;
  letter-spacing: -0.02em;
}
.lesson-card[data-gender="boy"] .lesson-num { color: var(--boyAccent); }
.lesson-card[data-gender="girl"] .lesson-num { color: var(--girlAccent); }

.lesson-body { flex: 1; }
.lesson-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--textDark);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.lesson-sub {
  font-size: 13px;
  color: var(--textMuted);
  line-height: 1.5;
}

/* hide inactive tab panel */
.curriculum-panel[hidden] { display: none; }

.curriculum-cta-button {
  margin-top: 32px;
}

/* ------------------------------------------------------------
   5. INSTRUCTORS
------------------------------------------------------------ */
.instructors { background: var(--instructorsBg); }

.instructors-header { margin-bottom: 36px; }

.instructors-title {
  font-size: 24px;
  line-height: 1.4;
}
.instructors-title .accent-text { color: var(--accent); }

.instructor-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.instructor-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.instructor-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.instructor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-family: var(--serif);
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.instructor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.instructor-avatar[data-gender="boy"] {
  background: linear-gradient(135deg, #2C5B8E22, #2C5B8E44);
  color: var(--boyAccent);
  border: 2px solid #2C5B8E33;
}
.instructor-avatar[data-gender="girl"] {
  background: linear-gradient(135deg, #A5476722, #A5476744);
  color: var(--girlAccent);
  border: 2px solid #A5476733;
}

.instructor-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.instructor-card[data-gender="boy"] .instructor-role { color: var(--boyAccent); }
.instructor-card[data-gender="girl"] .instructor-role { color: var(--girlAccent); }

.instructor-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--textDark);
  letter-spacing: -0.02em;
  font-family: var(--serif);
}
.instructor-name-suffix {
  font-size: 14px;
  font-weight: 500;
  color: var(--textMuted);
}

.instructor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.instructor-badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--textDark);
  font-weight: 500;
  background: var(--painBg);
}

.instructor-stat {
  background: var(--painBg);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.instructor-card[data-gender="boy"] .instructor-stat { border-left: 3px solid var(--boyAccent); }
.instructor-card[data-gender="girl"] .instructor-stat { border-left: 3px solid var(--girlAccent); }

.instructor-stat-num {
  font-size: 28px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.instructor-card[data-gender="boy"] .instructor-stat-num { color: var(--boyAccent); }
.instructor-card[data-gender="girl"] .instructor-stat-num { color: var(--girlAccent); }

.instructor-stat-label {
  font-size: 13px;
  color: var(--textMuted);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   6. ACCESS FLOW
------------------------------------------------------------ */
.access-flow {
  background: var(--accessBg);
  color: #fff;
  padding: 80px 0;
}

.access-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #fff;
}

.access-strong {
  font-size: 14px;
  color: #ffffff99;
  line-height: 1.7;
  margin-bottom: 12px;
}
.access-strong b { color: var(--accent); }

.access-sub {
  font-size: 13px;
  color: #ffffff77;
  line-height: 1.7;
  margin-bottom: 36px;
}

.steps-wrap { position: relative; }

.steps-line {
  position: absolute;
  left: 27px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, #D4A24C55, #D4A24C22);
  z-index: 0;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.step-item:last-child { margin-bottom: 0; }

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accentFg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px #D4A24C44;
}

.step-content {
  flex: 1;
  background: #ffffff08;
  border: 1px solid #ffffff15;
  padding: 18px 20px;
  border-radius: 10px;
}

.step-label {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 13px;
  color: #ffffffbb;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   7. FINAL CTA
------------------------------------------------------------ */
.final-cta {
  background: var(--finalCtaBg);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.final-cta-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, #D4A24C22 0%, transparent 60%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  text-align: center;
}

.final-cta-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: #fff;
}
.final-cta-title .accent-text { color: var(--accent); }

.final-cta-button {
  padding: 22px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 32px #D4A24C66;
  margin-bottom: 12px;
  font-size: 17px;
}

.final-cta-note {
  font-size: 12px;
  color: #ffffff77;
  margin-top: 12px;
}

/* ------------------------------------------------------------
   8. FAQ
------------------------------------------------------------ */
.faq { background: var(--painBg); }

.faq-header {
  margin-bottom: 32px;
  text-align: center;
}

.faq-title {
  font-size: 22px;
  line-height: 1.4;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  font-family: inherit;
}

.faq-q-mark {
  font-size: 15px;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.5;
  flex-shrink: 0;
}

.faq-q-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--textDark);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.faq-chevron {
  font-size: 16px;
  color: var(--textMuted);
  transition: transform 0.2s;
  flex-shrink: 0;
  transform: rotate(0deg);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 20px 20px 46px;
  font-size: 13px;
  color: var(--textMuted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: -4px;
  display: none;
}
.faq-item.open .faq-answer { display: block; }

.faq-a-mark {
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
.site-footer {
  background: var(--textDark);
  color: #ffffff77;
  padding: 32px 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.footer-logo {
  font-family: var(--serif);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.footer-copyright {
  margin-top: 8px;
  font-size: 11px;
  color: #ffffff44;
}
