:root {
  --bg-deep: #0c0a1f;
  --bg-mid: #1f1440;
  --bg-soft: rgba(91, 33, 182, 0.14);
  --surface-dark: rgba(23, 12, 46, 0.86);
  --surface-darker: rgba(14, 7, 31, 0.92);
  --surface-glass: rgba(255, 255, 255, 0.08);
  --surface-light: #fbf5ff;
  --surface-light-2: #f5ebff;
  --surface-paper: #fffaf4;
  --border-soft: rgba(167, 139, 250, 0.22);
  --border-strong: rgba(167, 139, 250, 0.38);
  --text-strong: #281249;
  --text-body: #3b1a68;
  --text-soft: #65408e;
  --text-on-dark: #f4ecff;
  --text-on-dark-soft: #d9c9f3;
  --brand: #7c3aed;
  --brand-strong: #4c1d95;
  --brand-soft: #a78bfa;
  --cyan: #00cfe7;
  --amber: #ffb74d;
  --good: #149a74;
  --warn: #c65f52;
  --shadow-soft: 0 16px 36px rgba(7, 4, 18, 0.25);
  --shadow-card: 0 26px 60px rgba(8, 5, 20, 0.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-body);
  font-family: "Pretendard Variable", "SUIT Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.72;
  background:
    radial-gradient(circle at 18% 18%, rgba(124, 58, 237, 0.36), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(0, 207, 231, 0.18), transparent 22%),
    radial-gradient(circle at 72% 44%, rgba(124, 58, 237, 0.18), transparent 24%),
    linear-gradient(180deg, #171133 0%, var(--bg-deep) 28%, #120b26 60%, #0b0916 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.8), transparent 45%),
    radial-gradient(1px 1px at 80px 120px, rgba(255, 255, 255, 0.58), transparent 45%),
    radial-gradient(2px 2px at 140px 70px, rgba(255, 255, 255, 0.45), transparent 50%),
    radial-gradient(1px 1px at 210px 160px, rgba(255, 255, 255, 0.55), transparent 45%);
  background-size: 260px 220px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65rem;
  line-height: 1.22;
  font-family: "Pretendard Variable", "Pretendard", "SUIT Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

p {
  margin: 0 0 0.95rem;
}

ul,
ol {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.46rem;
}

a {
  color: inherit;
}

code {
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--brand-strong);
  font-family: "Cascadia Code", "D2Coding", "Consolas", monospace;
  font-size: 0.92em;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--brand);
  background: #ffffff;
  color: var(--brand-strong);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.2rem 0 9rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: 3rem;
  left: 12%;
  background: rgba(124, 58, 237, 0.35);
}

.hero::after {
  width: 320px;
  height: 320px;
  right: 10%;
  bottom: 2rem;
  background: rgba(0, 207, 231, 0.18);
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.26);
  color: #d9caf6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: none;
  margin: 0 auto 1.25rem;
  font-size: clamp(1.9rem, 5vw, 4.9rem);
  color: var(--text-on-dark);
  text-shadow: 0 0 22px rgba(124, 58, 237, 0.25);
}

.hero-title-line {
  display: block;
}

.hero-title-main {
  white-space: nowrap;
}

.hero-title-sub {
  display: inline-block;
  background: linear-gradient(90deg, #f8f1ff 0%, #d9c5ff 48%, #fbf7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  max-width: 64ch;
  margin: 0 auto;
  color: var(--text-on-dark-soft);
  font-size: 1.08rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.44rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #f6efff;
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.legal-disclaimer {
  max-width: 760px;
  margin: 1.6rem auto 0;
  padding: 1rem 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-soft);
  color: #eadfff;
}

.toc {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-top: 0.9rem;
}

.toc-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.65rem 0.75rem;
  border-radius: 999px;
  background: rgba(17, 10, 36, 0.78);
  border: 1px solid rgba(167, 139, 250, 0.18);
  box-shadow: 0 18px 36px rgba(4, 3, 10, 0.2);
  backdrop-filter: blur(18px);
}

.toc a {
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: #e6d8ff;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.toc a:hover,
.toc a:focus-visible {
  background: rgba(124, 58, 237, 0.2);
  color: #ffffff;
  outline: none;
}

.toc a[href="#flowchart"] {
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.28);
}

.chapter-stack {
  display: grid;
  gap: 1rem;
}

.page-shell {
  position: relative;
  z-index: 1;
  margin-top: -5.5rem;
  padding-bottom: 2rem;
}

.section {
  margin-top: 0;
}

.accordion-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1.05rem 1.2rem;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 35%),
    linear-gradient(160deg, rgba(24, 13, 49, 0.88) 0%, rgba(14, 7, 31, 0.92) 100%);
  box-shadow: 0 18px 36px rgba(7, 4, 18, 0.2);
  color: var(--text-on-dark);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.accordion-label {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  font-family: "Pretendard Variable", "Pretendard", "SUIT Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.62rem);
  line-height: 1.3;
  text-shadow: 0 0 18px rgba(124, 58, 237, 0.16);
}

.accordion-toggle {
  flex: none;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  color: var(--text-on-dark);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.accordion-toggle:hover,
.accordion-toggle:focus-visible {
  border-color: rgba(167, 139, 250, 0.36);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 28px rgba(10, 6, 24, 0.22);
  outline: none;
}

.accordion-icon {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
}

.accordion-icon::before {
  content: "+";
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

.accordion-item.is-open .accordion-heading {
  border-color: rgba(167, 139, 250, 0.4);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.28), transparent 35%),
    linear-gradient(135deg, rgba(109, 40, 217, 0.96) 0%, rgba(76, 29, 149, 0.96) 100%);
  box-shadow: 0 24px 54px rgba(18, 9, 42, 0.36);
}

.accordion-item.is-open .accordion-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.accordion-item.is-open .accordion-icon::before {
  content: "−";
}

.accordion-panel {
  margin-top: 0.85rem;
}

.accordion-panel[hidden] {
  display: none !important;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.95fr);
  gap: 1.25rem;
}

.overview-main-card {
  padding: 1.35rem;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 249, 242, 0.98) 0%, rgba(248, 236, 255, 0.98) 100%);
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow:
    0 10px 0 -5px rgba(229, 220, 195, 0.75),
    0 20px 0 -10px rgba(211, 201, 173, 0.55),
    var(--shadow-card);
}

.overview-main-card .panel {
  padding: 1rem 1rem 1.15rem;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
}

.overview-main-card h3,
.overview-main-card p,
.overview-main-card li {
  color: var(--text-body);
}

.overview-main-card h3 {
  color: var(--brand-strong);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel,
.comparison-card,
.note-block,
.callout-card,
.table-wrap,
.calculator-card,
details,
.flow-frame {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.panel {
  padding: 1.15rem 1.15rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 249, 253, 0.96) 0%, rgba(246, 235, 255, 0.96) 100%);
  color: var(--text-body);
}

.panel h3 {
  color: var(--brand-strong);
  font-size: 1.1rem;
}

.panel p,
.panel li {
  color: var(--text-body);
}

.source-panel,
.overview-source-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.22), transparent 34%),
    linear-gradient(160deg, rgba(25, 12, 52, 0.98) 0%, rgba(14, 7, 31, 0.98) 100%);
  border: 1px solid rgba(167, 139, 250, 0.18);
}

.source-panel::before,
.overview-source-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -24px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.1);
  filter: blur(6px);
}

.source-panel h3,
.overview-source-card h3 {
  position: relative;
  color: var(--text-on-dark);
}

.source-links {
  position: relative;
  display: grid;
  gap: 0.7rem;
}

.download-link {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.85rem 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.download-link:hover,
.download-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.38);
  box-shadow: 0 14px 30px rgba(40, 18, 73, 0.14);
  outline: none;
}

.source-panel .download-link,
.overview-source-card .download-link,
.footer-source-links .download-link {
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.source-panel .download-link:hover,
.overview-source-card .download-link:hover,
.footer-source-links .download-link:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(124, 58, 237, 0.2);
}

.source-name {
  font-weight: 800;
  color: var(--brand-strong);
  word-break: keep-all;
}

.source-meta {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.source-panel .source-name,
.source-panel .source-meta,
.overview-source-card .source-name,
.overview-source-card .source-meta,
.footer-source-links .source-name,
.footer-source-links .source-meta {
  color: var(--text-on-dark);
}

.step-list {
  padding-left: 1.15rem;
}

.step-list li {
  color: var(--text-body);
}

.map-section .table-wrap,
.faq-section .table-wrap {
  overflow: hidden;
}

.map-section .table-wrap {
  background:
    linear-gradient(180deg, rgba(25, 12, 52, 0.92) 0%, rgba(14, 7, 31, 0.94) 100%);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 1rem;
  text-align: left;
  vertical-align: top;
}

.map-section thead th {
  background: rgba(255, 255, 255, 0.04);
  color: #dac8f8;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-section tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 150ms ease;
}

.map-section tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.map-section tbody td:first-child {
  color: var(--text-on-dark);
  font-weight: 800;
}

.map-section tbody td:nth-child(2) {
  color: #bea5ff;
  font-weight: 700;
}

.map-section tbody td:nth-child(3) {
  color: #efe5ff;
}

.retirement-section .table-wrap.compact {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(25, 12, 52, 0.92) 0%, rgba(14, 7, 31, 0.94) 100%);
}

.retirement-section .table-wrap.compact thead th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.retirement-section .table-wrap.compact tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.retirement-section .table-wrap.compact td {
  color: #ffffff;
}

.retirement-section .table-wrap.compact tbody td:first-child {
  color: #ffffff;
  font-weight: 800;
}

.faq-section .table-wrap {
  background: linear-gradient(180deg, rgba(255, 247, 252, 0.96) 0%, rgba(246, 237, 255, 0.96) 100%);
}

.faq-section thead th,
.faq-section td {
  color: var(--text-body);
}

.faq-section thead th {
  background: rgba(124, 58, 237, 0.1);
}

.comparison-card {
  margin-top: 1rem;
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(255, 249, 243, 0.98) 0%, rgba(249, 239, 255, 0.98) 100%);
}

.comparison-card h3,
.comparison-item h4,
.callout-card h3,
.note-block h3 {
  color: var(--brand-strong);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.9rem;
}

.comparison-item {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 58, 237, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

.comparison-item p {
  color: var(--text-body);
}

.comparison-item.good {
  background: rgba(0, 207, 231, 0.08);
  border-color: rgba(0, 207, 231, 0.32);
}

.comparison-item.warn {
  background: rgba(255, 183, 77, 0.12);
  border-color: rgba(255, 183, 77, 0.34);
}

.journal-entry {
  margin: 0;
  padding: 0.9rem 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(76, 29, 149, 0.08);
  color: var(--brand-strong);
  font-family: "Cascadia Code", "D2Coding", "Consolas", monospace;
  font-size: 0.93rem;
}

.comparison-note {
  margin-top: 0.85rem;
  color: var(--text-soft);
  font-weight: 700;
}

.note-block,
.callout-card {
  padding: 1.05rem 1.15rem;
  background: linear-gradient(180deg, rgba(255, 248, 250, 0.98) 0%, rgba(244, 237, 255, 0.98) 100%);
}

.note-block p,
.note-block li,
.callout-card p,
.callout-card li {
  color: var(--text-body);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.calculator-card {
  margin-top: 1.2rem;
  padding: 1.45rem;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.3), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0, 207, 231, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(26, 12, 53, 0.98) 0%, rgba(13, 8, 28, 0.98) 100%);
  border: 1px solid rgba(167, 139, 250, 0.22);
}

.calculator-intro {
  max-width: 48rem;
  margin-bottom: 1.1rem;
}

.calculator-card h3 {
  color: var(--text-on-dark);
  font-size: 1.5rem;
}

.calculator-card .helper {
  color: #dac8f8;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.calc-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.14);
}

.calc-form fieldset {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.calc-form legend,
.calc-form label {
  font-weight: 700;
  color: var(--text-on-dark);
}

.calc-form fieldset label {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  color: #efe5ff;
}

.calc-form input[type="radio"] {
  accent-color: var(--brand-soft);
}

.calc-form input[type="text"],
.calc-form input[type="date"] {
  width: 100%;
  margin-top: 0.28rem;
  padding: 0.78rem 0.88rem;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  font: inherit;
}

.calc-form input::placeholder {
  color: rgba(233, 221, 255, 0.72);
}

.calc-form input:focus-visible,
.accordion-toggle:focus-visible,
button:focus-visible,
details summary:focus-visible,
.download-link:focus-visible {
  outline: 3px solid rgba(167, 139, 250, 0.42);
  outline-offset: 2px;
}

.row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.button-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 16px;
  padding: 0.8rem 1.1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, background-color 150ms ease;
}

button:hover {
  filter: brightness(1.05);
}

button:active {
  transform: translateY(1px);
}

button[type="submit"] {
  color: #ffffff;
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
  box-shadow: 0 16px 30px rgba(76, 29, 149, 0.35);
}

button.secondary {
  color: #efe5ff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.calc-result {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(0, 207, 231, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(0, 207, 231, 0.22);
}

.calc-result h4 {
  color: #dac8f8;
  font-size: 0.98rem;
}

.result-limit {
  margin-top: 0.5rem;
  color: var(--text-on-dark);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  text-shadow: 0 0 24px rgba(0, 207, 231, 0.18);
}

.result-basis {
  color: #8befff;
  font-weight: 700;
}

.meta-list,
.warning-list {
  margin-top: 0.65rem;
  color: #f0e6ff;
}

.warning-list {
  color: #ffd6a4;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

details {
  overflow: hidden;
  background: rgba(21, 10, 42, 0.82);
  border: 1px solid rgba(167, 139, 250, 0.18);
  box-shadow: var(--shadow-soft);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  color: #f5edff;
  font-weight: 800;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  padding: 0 1.15rem 1rem;
  color: #e4d4fb;
}

.flow-frame {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(21, 10, 42, 0.84) 0%, rgba(13, 8, 28, 0.92) 100%);
}

.flow-heading {
  padding: 1.25rem 1.2rem 0;
  text-align: center;
}

.flow-heading h2 {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text-on-dark);
}

.flow-heading .helper {
  color: #d6c5f4;
}

.flow-wrap {
  margin-top: 1rem;
  overflow: auto;
  padding: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 249, 245, 0.98) 0%, rgba(243, 235, 255, 0.98) 100%);
}

.flow-wrap svg {
  display: block;
  width: 100%;
  min-width: 940px;
  height: auto;
}

.flow-node {
  fill: rgba(255, 255, 255, 0.94);
  stroke: #6d28d9;
  stroke-width: 2;
}

.flow-node.good {
  fill: #effff8;
  stroke: var(--good);
}

.flow-node.warn {
  fill: #fff4f4;
  stroke: var(--warn);
}

.flow-line {
  stroke: #6d28d9;
  stroke-width: 3;
  fill: none;
}

.flow-line.danger {
  stroke: var(--warn);
}

.flow-text {
  fill: var(--brand-strong);
  font-size: 18px;
  font-family: "Pretendard Variable", "SUIT Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.flow-title {
  font-weight: 800;
}

.flow-small {
  fill: #7b3db6;
  font-size: 14px;
  font-family: "Pretendard Variable", "SUIT Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.footer {
  margin-top: 2.8rem;
  padding: 1.6rem 0 2rem;
  background: rgba(7, 5, 16, 0.88);
  border-top: 1px solid rgba(167, 139, 250, 0.12);
  color: #cdb9ef;
}

.footer p {
  margin: 0.35rem 0;
}

.footer-source-links {
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.72, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

@media (max-width: 980px) {
  .overview-layout,
  .calculator-layout,
  .comparison-grid,
  .info-grid,
  .footer-source-links {
    grid-template-columns: 1fr;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    margin-top: -4rem;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1180px, calc(100% - 1.25rem));
  }

  .hero {
    padding-top: 4.4rem;
    padding-bottom: 6.6rem;
  }

  .accordion-heading {
    padding: 0.95rem 1rem;
    border-radius: 24px;
  }

  .accordion-toggle {
    width: 2.55rem;
    height: 2.55rem;
  }

  .accordion-label {
    font-size: 1rem;
  }

  .row-2 {
    grid-template-columns: 1fr;
  }

  .overview-main-card,
  .panel,
  .table-wrap,
  .comparison-card,
  .note-block,
  .callout-card,
  .calculator-card,
  .flow-frame,
  details {
    border-radius: 24px;
  }
}

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

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
