/* =========================================================
   WFM재정연구소 — 정적 사이트 스타일시트
   컬러 컨셉: 로고(WFM 워드마크)의 테라코타 브라운 + 골드 포인트
   ========================================================= */

:root {
  --color-bg: #FAF6F2;
  --color-bg-alt: #F1E8E0;
  --color-surface: #FFFFFF;
  --color-text: #2C2220;
  --color-text-muted: #756257;
  --color-border: #E6D9CC;

  --color-primary: #A9694E;      /* 테라코타 — 로고 배경색 */
  --color-primary-dark: #8A5240;
  --color-secondary: #33241B;    /* 딥 커피브라운 — 헤딩/푸터 */
  --color-secondary-dark: #1F1610;
  --color-accent: #D9A441;       /* 골드 포인트 */

  --gradient-brand: linear-gradient(135deg, #8A5240 0%, #A9694E 55%, #C98B5E 100%);

  --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;

  --header-height: 76px;
  --radius: 16px;
  --shadow-soft: 0 10px 28px rgba(51, 36, 27, 0.10);
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.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;
}

.skip-link {
  position: absolute; top: -60px; left: 0; background: var(--color-secondary);
  color: #fff; padding: 12px 20px; z-index: 1000; transition: top .2s;
}
.skip-link:focus { top: 0; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  background: rgba(250,246,242,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 46px; width: auto; border-radius: 8px; }
.logo-text { font-weight: 800; font-size: 18px; color: var(--color-primary-dark); white-space: nowrap; }

.main-nav ul { display: flex; gap: 32px; }
.nav-link { font-weight: 600; font-size: 15px; color: var(--color-text); }
.nav-link:hover { color: var(--color-primary); }

.hamburger { display: none; }

/* ---- Hero ---- */
.hero {
  background: var(--gradient-brand);
  color: #fff;
  padding: 100px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.14), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .5px;
}
.hero h1 {
  font-size: 48px; font-weight: 900; line-height: 1.25; margin: 26px 0 16px;
}
.hero p.tagline { font-size: 20px; font-weight: 500; opacity: .95; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: #fff; color: var(--color-primary); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.7); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.18); }

/* ---- Section ---- */
.section { padding: 96px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; color: var(--color-accent); font-weight: 800;
  font-size: 14px; letter-spacing: 1.5px; margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; font-weight: 900; color: var(--color-secondary); margin: 0 0 14px; }
.section-head p { color: var(--color-text-muted); font-size: 17px; margin: 0; }

/* ---- About grid ---- */
.about-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.about-grid-4 { grid-template-columns: repeat(4, 1fr); }
.about-card {
  display: block;
  background: var(--color-surface); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-primary);
  transition: transform .15s, box-shadow .15s;
}
a.about-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(51,36,27,0.16); }
.about-card h3 { font-size: 19px; color: var(--color-secondary); margin: 14px 0 10px; line-height: 1.4; }
.about-card h3 small { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.about-card p { font-size: 14.5px; color: var(--color-text-muted); margin: 0 0 16px; line-height: 1.6; }
.about-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--color-border); }
.about-list li {
  font-size: 13px; color: var(--color-text); line-height: 1.5;
  padding-left: 16px; position: relative;
}
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent);
}
.track-tag {
  display: inline-block; font-size: 11.5px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; color: #fff;
}
.track-tag-masterclass { background: linear-gradient(135deg, #7A5A17, #D9A441); }
.track-tag-church      { background: linear-gradient(135deg, #1F3D3A, #5C8A79); }
.track-tag-business    { background: linear-gradient(135deg, #16223F, #4C6491); }

.about-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 18px;
}
.about-icon.ic-seminar     { background: linear-gradient(135deg, #A63F1F 0%, #E0793F 100%); }
.about-icon.ic-masterclass { background: linear-gradient(135deg, #7A5A17 0%, #D9A441 100%); }
.about-icon.ic-church      { background: linear-gradient(135deg, #1F3D3A 0%, #5C8A79 100%); }
.about-icon.ic-business    { background: linear-gradient(135deg, #16223F 0%, #4C6491 100%); }

/* ---- Business division feature card ---- */
.business-feature-card {
  display: flex; align-items: center; gap: 32px;
  background: linear-gradient(135deg, #16223F 0%, #263A63 55%, #4C6491 100%);
  color: #fff; border-radius: var(--radius); padding: 40px 44px;
  box-shadow: var(--shadow-soft); max-width: 820px; margin: 0 auto;
  transition: transform .15s, box-shadow .15s;
}
.business-feature-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(22,34,63,0.35); }
.business-feature-icon {
  width: 72px; height: 72px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.business-feature-icon svg { width: 34px; height: 34px; }
.business-feature-text h3 { font-size: 20px; font-weight: 900; margin: 0 0 8px; }
.business-feature-text h3 small { font-size: 13px; font-weight: 600; opacity: .85; }
.business-feature-text p { font-size: 14.5px; opacity: .92; margin: 0 0 14px; line-height: 1.7; }
.business-feature-cta { font-weight: 800; font-size: 14px; }
.business-feature-card.feature-seminar     { background: linear-gradient(135deg, #A63F1F 0%, #C1502E 45%, #E0793F 100%); }
.business-feature-card.feature-masterclass { background: linear-gradient(135deg, #7A5A17 0%, #9C7723 55%, #D9A441 100%); }
.business-feature-card.feature-church      { background: linear-gradient(135deg, #1F3D3A 0%, #2F5A52 55%, #5C8A79 100%); }
.business-feature-card.feature-business    { background: linear-gradient(135deg, #16223F 0%, #263A63 55%, #4C6491 100%); }
@media (max-width: 640px) {
  .business-feature-card { flex-direction: column; text-align: center; padding: 32px 26px; }
}

/* ---- Founder ---- */
.founder-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center;
}
.founder-photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
}
.founder-name { font-size: 28px; font-weight: 900; color: var(--color-secondary); margin: 0 0 6px; }
.founder-role { color: var(--color-accent); font-weight: 700; font-size: 16px; margin: 0 0 20px; }
.founder-bio-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.founder-bio-list li {
  display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--color-text);
}
.founder-bio-list li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-primary); flex: none; margin-top: 6px;
}
.founder-quote {
  border-left: 3px solid var(--color-accent); padding-left: 18px;
  font-size: 16px; font-style: italic; color: var(--color-text-muted);
}

/* ---- Team / 운영이사진 ---- */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.team-card {
  background: var(--color-surface); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: var(--shadow-soft);
}
.team-photo {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  margin: 0 auto 18px; border: 2px dashed var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-size: 13px; background: var(--color-bg-alt);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 17px; color: var(--color-secondary); margin: 0 0 4px; }
.team-role { font-size: 13px; color: var(--color-text-muted); margin: 0; }

/* ---- Book ---- */
.book-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center;
}
.book-cover { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-soft); }
.book-title { font-size: 30px; font-weight: 900; color: var(--color-secondary); margin: 0 0 6px; }
.book-sub { color: var(--color-text-muted); font-size: 16px; margin: 0 0 22px; }
.book-desc { font-size: 16px; color: var(--color-text); margin: 0 0 26px; line-height: 1.85; }
.mission-note {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 18px 22px; font-size: 15px;
  color: var(--color-secondary); font-weight: 600;
}

/* ---- Masterclass ---- */
.mc-banner {
  background: var(--color-secondary); color: #fff; border-radius: var(--radius);
  padding: 28px 32px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; margin-bottom: 40px;
}
.mc-banner-text .mc-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.mc-banner-text .mc-meta { font-size: 14px; color: #D9C4B5; }
.mc-badge {
  background: var(--color-accent); color: #fff; font-weight: 800;
  padding: 10px 22px; border-radius: 999px; font-size: 14px; white-space: nowrap;
}
.mc-weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mc-week {
  background: var(--color-surface); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}
.mc-week .wk-tag {
  display: inline-block; background: var(--gradient-brand); color: #fff;
  font-size: 13px; font-weight: 800; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.mc-week h4 { font-size: 17px; color: var(--color-secondary); margin: 0 0 10px; line-height: 1.4; }
.mc-week p { font-size: 13.5px; color: var(--color-text-muted); margin: 0; line-height: 1.6; }

/* ---- Giving / Account ---- */
.give-account {
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
  background: var(--color-surface); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 32px; margin-bottom: 28px;
}
.give-qr {
  width: 160px; height: 160px; flex: none; border-radius: 14px;
  border: 2px solid var(--color-border); background: #fff; padding: 10px;
}
.give-qr img { width: 100%; height: 100%; object-fit: contain; }
.give-account-info { display: flex; flex-direction: column; gap: 4px; }
.give-bank { font-size: 14px; font-weight: 700; color: var(--color-accent); }
.give-number { font-size: 26px; font-weight: 900; color: var(--color-secondary); letter-spacing: .5px; }
.give-holder { font-size: 14px; color: var(--color-text-muted); margin-bottom: 12px; }
.btn-copy {
  align-self: flex-start; background: var(--color-bg-alt); color: var(--color-secondary);
  border: 1px solid var(--color-border); border-radius: 999px; padding: 10px 20px;
  font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .15s;
}
.btn-copy:hover { background: var(--color-border); }
.btn-copy.is-copied { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.give-types { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.give-type-card {
  background: var(--color-surface); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-soft);
}
.give-type-card h4 { font-size: 17px; color: var(--color-secondary); margin: 0 0 10px; }
.give-type-card p { font-size: 14px; color: var(--color-text-muted); margin: 0; line-height: 1.7; }
.give-amounts { display: flex; gap: 10px; margin-top: 16px; }
.amount-chip {
  flex: 1; background: var(--color-bg-alt); border: 1.5px solid var(--color-border);
  border-radius: 12px; padding: 12px; font-weight: 800; font-size: 15px;
  color: var(--color-secondary); cursor: pointer; transition: border-color .15s, background .15s;
}
.amount-chip:hover { border-color: var(--color-primary); }
.amount-chip.is-copied { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---- Contact ---- */
.contact-box {
  background: var(--gradient-brand); color: #fff; border-radius: var(--radius);
  padding: 48px; text-align: center;
}
.contact-box h2 { font-size: 28px; font-weight: 900; margin: 0 0 14px; }
.contact-box p { font-size: 16px; opacity: .92; margin: 0 0 26px; }
.contact-info { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; font-size: 15px; font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: var(--color-secondary-dark); color: #D9C4B5; padding: 48px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-weight: 800; color: #fff; font-size: 17px; }
.footer-copy { font-size: 13px; opacity: .8; }

/* ---- Detail pages (services/*) ---- */
.detail-hero { padding: 72px 24px 64px; }

/* 사역별 히어로 색상 테마 */
.hero-seminar     { background: linear-gradient(135deg, #A63F1F 0%, #C1502E 45%, #E0793F 100%); }
.hero-masterclass { background: linear-gradient(135deg, #7A5A17 0%, #9C7723 55%, #D9A441 100%); }
.hero-church      { background: linear-gradient(135deg, #1F3D3A 0%, #2F5A52 55%, #5C8A79 100%); }
.hero-business    { background: linear-gradient(135deg, #16223F 0%, #263A63 55%, #4C6491 100%); }

.detail-icon {
  width: 78px; height: 78px; margin: 0 auto 22px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.detail-icon svg { width: 36px; height: 36px; }
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.detail-back:hover { color: #fff; }
.detail-hero .hero-inner h1 { font-size: 38px; }

.detail-body { padding: 80px 0; }
.detail-block { max-width: 760px; margin: 0 auto 56px; }
.detail-block:last-child { margin-bottom: 0; }
.detail-block h2 {
  font-size: 22px; font-weight: 900; color: var(--color-secondary);
  margin: 0 0 18px;
}
.detail-block > p { font-size: 16px; color: var(--color-text); margin: 0 0 14px; line-height: 1.85; }
.detail-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 0; }
.detail-list li {
  display: flex; gap: 10px; font-size: 15.5px; color: var(--color-text);
  align-items: flex-start; line-height: 1.6;
}
.detail-list li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-primary); flex: none; margin-top: 8px;
}

.next-step {
  max-width: 760px; margin: 0 auto; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 30px 32px; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; flex-wrap: wrap;
}
.next-step-text h3 { font-size: 18px; color: var(--color-secondary); margin: 0 0 6px; }
.next-step-text p { font-size: 14px; color: var(--color-text-muted); margin: 0; }
.next-step .btn-solid {
  background: var(--gradient-brand); color: #fff; white-space: nowrap;
}

.detail-cta { text-align: center; }
.detail-cta .btn { margin: 6px; }
.detail-cta p { color: var(--color-text-muted); font-size: 14.5px; margin: 0 0 18px; }

.next-track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.next-track-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft);
  transition: transform .15s, box-shadow .15s;
}
.next-track-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(51,36,27,0.14); }
.next-track-card strong { font-size: 15.5px; color: var(--color-secondary); }
.next-track-card span:last-child { font-size: 13px; color: var(--color-text-muted); font-weight: 600; }
@media (max-width: 640px) { .next-track-grid { grid-template-columns: 1fr; } }

.other-services { max-width: 760px; margin: 64px auto 0; text-align: center; }
.other-services h3 {
  font-size: 14px; font-weight: 800; letter-spacing: 1px;
  color: var(--color-accent); margin: 0 0 18px; text-transform: uppercase;
}
.other-services ul { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.other-services a {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--color-border); font-size: 14px; font-weight: 600;
  color: var(--color-secondary); background: var(--color-surface);
}
.other-services a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---- Checkup tool (quiz) ---- */
.quiz-wrap { max-width: 720px; margin: 0 auto; }
.quiz-intro {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 32px;
  font-size: 15px; color: var(--color-text-muted); line-height: 1.8;
}
.quiz-category-head {
  font-size: 13px; font-weight: 800; letter-spacing: .5px; color: var(--color-accent);
  margin: 36px 0 14px; text-transform: uppercase;
}
.quiz-category-head:first-of-type { margin-top: 0; }

.category-result-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  max-width: 480px; margin: 0 auto 28px; text-align: left;
}
.category-result-item {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px; padding: 14px 16px;
}
.category-result-item .cat-name { font-size: 12.5px; font-weight: 700; opacity: .9; margin: 0 0 6px; }
.category-result-item .cat-verdict { font-size: 15px; font-weight: 900; margin: 0; }
@media (max-width: 520px) { .category-result-grid { grid-template-columns: 1fr; } }

.quiz-card {
  background: var(--color-surface); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 26px 28px; margin-bottom: 18px;
}
.quiz-q-num {
  display: inline-block; font-size: 12.5px; font-weight: 800;
  color: var(--color-accent); letter-spacing: .5px; margin-bottom: 8px;
}
.quiz-q-text { font-size: 16.5px; font-weight: 700; color: var(--color-secondary); margin: 0 0 18px; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--color-border); border-radius: 12px;
  padding: 13px 16px; cursor: pointer; transition: border-color .15s, background .15s;
  font-size: 14.5px;
}
.quiz-option:hover { border-color: var(--color-primary); }
.quiz-option input { accent-color: var(--color-primary); width: 17px; height: 17px; flex: none; }
.quiz-option.is-checked { border-color: var(--color-primary); background: var(--color-bg-alt); font-weight: 700; }

.quiz-submit-row { text-align: center; margin: 36px 0; }
.quiz-note { text-align: center; font-size: 13px; color: var(--color-text-muted); margin-top: 10px; }

.quiz-result {
  display: none; border-radius: var(--radius); padding: 36px 32px;
  text-align: center; color: #fff; background: var(--gradient-brand);
  box-shadow: var(--shadow-soft);
}
.quiz-result.is-visible { display: block; }
.quiz-result .score { font-size: 46px; font-weight: 900; margin: 0; }
.quiz-result .score span { font-size: 20px; font-weight: 700; opacity: .85; }
.quiz-result .grade { font-size: 22px; font-weight: 800; margin: 10px 0 16px; }
.quiz-result .msg { font-size: 15px; opacity: .95; line-height: 1.8; max-width: 520px; margin: 0 auto 24px; }
.quiz-result .btn { margin: 6px; }

/* ---- Cashflow diagnostic calculator ---- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 13.5px; font-weight: 700; color: var(--color-secondary); }
.calc-field input[type="number"] {
  border: 1.5px solid var(--color-border); border-radius: 10px; padding: 12px 14px;
  font-size: 15px; font-family: inherit; color: var(--color-text); background: var(--color-bg);
  transition: border-color .15s, background .15s;
}
.calc-field input[type="number"]:focus { outline: none; border-color: var(--color-primary); background: #fff; }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-error-box {
  display: none; background: #FBDADA; border: 1.5px solid #E38E8E; color: #7A1F1F;
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 24px; font-size: 14px; line-height: 1.7;
}
.calc-error-box p { margin: 0 0 4px; }
.calc-error-box p:last-child { margin-bottom: 0; }

.calc-result {
  display: none; border-radius: var(--radius); padding: 8px 4px;
}
.calc-result.is-visible { display: block; }

.calc-alert {
  display: none; border-radius: var(--radius); padding: 22px 24px; margin: 0 0 24px;
  font-size: 14.5px; line-height: 1.85; background: #FBDADA; border: 1.5px solid #E38E8E; color: #7A1F1F;
}
.calc-alert.is-visible { display: block; }
.calc-alert strong { display: block; font-size: 15.5px; margin-bottom: 6px; }

.calc-result-grid { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.calc-result-item {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-soft);
}
.calc-result-item .cr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.calc-result-item .cr-label { font-size: 14.5px; font-weight: 800; color: var(--color-secondary); }
.calc-result-item .cr-value { font-size: 21px; font-weight: 900; color: var(--color-primary-dark); }
.calc-result-item .cr-formula { margin: 8px 0 0; font-size: 12.5px; color: var(--color-text-muted); line-height: 1.6; }

.cr-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.cr-badge-good { background: #DCEEE3; color: #1F6B4A; }
.cr-badge-warn { background: #FCEBC9; color: #8A5A00; }
.cr-badge-danger { background: #FBDADA; color: #A32A2A; }
.cr-badge-na { background: var(--color-bg-alt); color: var(--color-text-muted); }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 99;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 2px;
  }
  .nav-link { display: block; padding: 13px 6px; }

  .hamburger {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    padding: 8px; cursor: pointer;
  }
  .hamburger span { width: 22px; height: 2px; background: var(--color-secondary); }
  .hero { padding: 80px 20px 64px; }
  .hero h1 { font-size: 30px; }
  .hero p.tagline { font-size: 16px; }
  .hero-badge { font-size: 12px; padding: 7px 14px; }
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 15px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid-4 { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .founder-grid, .book-grid { grid-template-columns: 1fr; }
  .founder-photo, .book-cover { max-width: 300px; margin: 0 auto; }
  .mc-weeks { grid-template-columns: 1fr 1fr; }
  .give-grid { grid-template-columns: 1fr; }
  .mc-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .mc-weeks { grid-template-columns: 1fr; }
  .about-grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
