:root {
  --bg: #f4faf5;
  --bg-soft: #edf5ef;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --surface-tint: #eaf3ec;
  --primary: #6baa7b;
  --primary-strong: #3f7253;
  --primary-soft: #a7d1b0;
  --accent: #d7eadb;
  --text: #333b36;
  --text-soft: #69746d;
  --line: rgba(73, 100, 82, 0.16);
  --shadow: 0 22px 60px rgba(73, 100, 82, 0.12);
  --shadow-soft: 0 10px 32px rgba(73, 100, 82, 0.08);
  --hero-a: #e9f4ec;
  --hero-b: #f8fbf8;
  --glow: rgba(126, 177, 139, 0.2);
  --danger: #b85f67;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  --sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --max: 1180px;
}

html[data-theme="night"] {
  --bg: #fff4ed;
  --bg-soft: #fcebe5;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --surface-tint: #fff0ea;
  --primary: #e99682;
  --primary-strong: #a95855;
  --primary-soft: #f5c0b5;
  --accent: #f8dbd2;
  --text: #4d4040;
  --text-soft: #806d6c;
  --line: rgba(139, 91, 86, 0.16);
  --shadow: 0 22px 60px rgba(151, 91, 83, 0.12);
  --shadow-soft: 0 10px 32px rgba(151, 91, 83, 0.08);
  --hero-a: #fde7df;
  --hero-b: #fff8f3;
  --glow: rgba(233, 150, 130, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 5% 0%, var(--glow), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, #fff 48%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  letter-spacing: -0.02em;
  transition: background .65s ease, color .65s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 9999;
  background: var(--text); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 104px 0; }
.section.compact { padding: 72px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary-strong); font-size: 14px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
}
.section-label::before { content: ""; width: 24px; height: 1px; background: var(--primary); }
.section-head { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 40px; align-items: end; margin-bottom: 44px; }
.section-head h2, .page-hero h1, .hero-copy h1 {
  font-family: var(--serif); line-height: 1.25; letter-spacing: -0.055em; font-weight: 700;
}
.section-head h2 { margin: 12px 0 0; font-size: clamp(34px, 4vw, 56px); }
.section-head p { margin: 0; color: var(--text-soft); font-size: 17px; }
.muted { color: var(--text-soft); }
.eyebrow { color: var(--primary-strong); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  transition: background .65s ease;
}
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 46px; height: 46px; position: relative; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg, var(--primary-soft), var(--primary)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 10px 24px var(--glow); }
.brand-mark::before { content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: rgba(255,255,255,.9); left: 14px; top: 13px; box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.brand-mark::after { content: ""; position: absolute; width: 64px; height: 28px; border-radius: 50% 50% 0 0; background: var(--primary-strong); left: -13px; bottom: -12px; transform: rotate(-7deg); box-shadow: 18px -5px 0 color-mix(in srgb, var(--primary) 75%, white); }
html[data-theme="night"] .brand-mark::before { width: 17px; height: 17px; left: 10px; top: 11px; background: rgba(255,255,255,.95); box-shadow: 7px -4px 0 0 var(--primary-soft); }
html[data-theme="night"] .brand-mark::after { height: 24px; bottom: -14px; background: color-mix(in srgb, var(--primary-strong) 70%, #d07a74); box-shadow: 20px -6px 0 color-mix(in srgb, var(--primary) 70%, white); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -0.055em; }
.brand-sub { display: block; margin-top: -3px; color: var(--text-soft); font-size: 11px; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav a { position: relative; color: var(--text-soft); font-size: 15px; font-weight: 700; padding: 10px 1px; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-switcher { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--surface); box-shadow: var(--shadow-soft); }
.theme-switcher button { border: 0; background: transparent; color: var(--text-soft); padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.theme-switcher button.is-active { background: var(--primary); color: #fff; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .4s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary-strong); color: #fff; box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { box-shadow: 0 16px 34px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn-secondary { background: var(--surface-solid); border-color: var(--line); color: var(--text); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-small { min-height: 40px; padding: 0 15px; font-size: 14px; }
.btn-icon { width: 19px; height: 19px; }

.hero { padding: 74px 0 86px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 68px; align-items: center; }
.hero-copy h1 { margin: 18px 0 22px; font-size: clamp(46px, 6.2vw, 80px); }
.hero-copy .lead { color: var(--text-soft); font-size: clamp(17px, 2vw, 21px); max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: var(--text-soft); font-size: 13px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.hero-visual { position: relative; min-height: 590px; }
.orbit-bg { position: absolute; inset: 20px 0 0; border-radius: 48% 52% 46% 54%; background: linear-gradient(145deg, var(--hero-a), var(--hero-b)); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.72); }
.orbit-bg::before, .orbit-bg::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.orbit-bg::before { width: 340px; height: 340px; right: 35px; top: 65px; }
.orbit-bg::after { width: 235px; height: 235px; right: 87px; top: 118px; }
.celestial { position: absolute; right: 128px; top: 155px; width: 155px; height: 155px; border-radius: 50%; background: linear-gradient(145deg, color-mix(in srgb, var(--primary-soft) 80%, white), var(--primary)); box-shadow: 0 30px 70px var(--glow), inset 0 0 0 1px rgba(255,255,255,.7); }
.celestial::before { content: ""; position: absolute; width: 42px; height: 42px; border-radius: 50%; left: 57px; top: 46px; background: rgba(255,255,255,.92); box-shadow: 0 0 0 11px rgba(255,255,255,.1); }
.celestial::after { content: ""; position: absolute; width: 205px; height: 80px; left: -25px; bottom: -24px; border-radius: 50% 50% 0 0; background: var(--primary-strong); transform: rotate(-6deg); box-shadow: 66px -20px 0 color-mix(in srgb, var(--primary) 78%, white); }
html[data-theme="night"] .celestial::before { left: 45px; top: 39px; box-shadow: 18px -9px 0 0 color-mix(in srgb, var(--primary-soft) 86%, white); }
.star { position: absolute; width: 12px; height: 12px; color: rgba(255,255,255,.9); }
.star::before, .star::after { content: ""; position: absolute; background: currentColor; border-radius: 999px; }
.star::before { width: 2px; height: 12px; left: 5px; }
.star::after { width: 12px; height: 2px; top: 5px; }
.star.one { right: 110px; top: 112px; transform: scale(1.2); }
.star.two { right: 255px; top: 230px; transform: scale(.7); }
.preview-card { position: absolute; z-index: 2; background: var(--surface); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.preview-card.main { left: 20px; bottom: 28px; width: min(390px, 78%); border-radius: 28px; padding: 26px; }
.preview-card.side { right: -12px; bottom: 62px; width: 230px; border-radius: 22px; padding: 22px; }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview-label { font-weight: 800; }
.score { font-family: var(--serif); font-size: 68px; line-height: 1; color: var(--primary-strong); letter-spacing: -.07em; margin: 20px 0 12px; }
.score small { font-family: var(--sans); font-size: 13px; color: var(--text-soft); letter-spacing: 0; }
.meter { height: 8px; border-radius: 999px; background: var(--accent); overflow: hidden; margin: 16px 0 14px; }
.meter > span { display: block; width: 78%; height: 100%; background: linear-gradient(90deg, var(--primary-soft), var(--primary-strong)); border-radius: inherit; }
.preview-list { display: grid; gap: 10px; margin-top: 18px; }
.preview-list div { display: flex; justify-content: space-between; gap: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.preview-list strong { color: var(--primary-strong); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: var(--surface-tint); color: var(--primary-strong); font-size: 12px; font-weight: 800; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card, .feature-card, .price-card, .article-card, .info-card, .form-card, .result-card {
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); transition: transform .25s ease, box-shadow .25s ease, border-color .3s ease;
}
.quick-card:hover, .feature-card:hover, .article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 38%, var(--line)); }
.quick-card { border-radius: 22px; padding: 24px; min-height: 190px; }
.quick-icon, .feature-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-tint); color: var(--primary-strong); margin-bottom: 34px; }
.quick-card h3, .feature-card h3 { margin: 0 0 8px; font-size: 19px; }
.quick-card p, .feature-card p { margin: 0; color: var(--text-soft); font-size: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { border-radius: 26px; padding: 29px; min-height: 310px; display: flex; flex-direction: column; }
.feature-card .number { font-family: var(--serif); color: color-mix(in srgb, var(--primary) 42%, transparent); font-size: 54px; line-height: 1; margin-bottom: auto; }
.feature-card h3 { font-size: 23px; margin-top: 28px; }
.feature-card a { margin-top: 25px; color: var(--primary-strong); font-weight: 800; font-size: 14px; }

.rhythm-section { position: relative; overflow: hidden; }
.rhythm-panel { border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--hero-a), var(--surface-solid)); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 50px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; }
.rhythm-orbit { aspect-ratio: 1; border-radius: 50%; max-width: 370px; margin: 0 auto; position: relative; border: 1px solid var(--line); }
.rhythm-orbit::before, .rhythm-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent); }
.rhythm-orbit::before { inset: 12%; }
.rhythm-orbit::after { inset: 27%; }
.rhythm-core { position: absolute; inset: 36%; border-radius: 50%; background: var(--primary); box-shadow: 0 0 60px var(--glow); }
.rhythm-item { position: absolute; width: 88px; height: 88px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-soft); display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 800; color: var(--primary-strong); border: 1px solid var(--line); }
.rhythm-item:nth-child(2) { top: -10px; left: calc(50% - 44px); }
.rhythm-item:nth-child(3) { right: -10px; top: calc(50% - 44px); }
.rhythm-item:nth-child(4) { bottom: -10px; left: calc(50% - 44px); }
.rhythm-item:nth-child(5) { left: -10px; top: calc(50% - 44px); }
.check-list { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 30px 1fr; gap: 13px; align-items: start; }
.check-list i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-tint); color: var(--primary-strong); font-style: normal; font-weight: 900; font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; color: var(--primary); font-family: var(--serif); font-size: 32px; margin-bottom: 24px; }
.step h3 { margin: 0 0 7px; }
.step p { margin: 0; color: var(--text-soft); font-size: 14px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card { position: relative; border-radius: 26px; padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border-color: color-mix(in srgb, var(--primary) 60%, transparent); box-shadow: var(--shadow); transform: translateY(-10px); }
.price-badge { position: absolute; right: 20px; top: 18px; color: #fff; background: var(--primary-strong); padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.price-card h3 { margin: 0; font-size: 20px; }
.price { font-family: var(--serif); font-size: 38px; letter-spacing: -.05em; margin: 18px 0 5px; }
.price small { font-family: var(--sans); font-size: 13px; color: var(--text-soft); }
.price-card ul { list-style: none; padding: 0; margin: 23px 0 28px; display: grid; gap: 11px; color: var(--text-soft); font-size: 14px; }
.price-card li::before { content: "•"; color: var(--primary); margin-right: 8px; }
.price-card .btn { margin-top: auto; }

.article-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 18px; }
.article-card { border-radius: 24px; padding: 28px; min-height: 260px; display: flex; flex-direction: column; }
.article-card:first-child { min-height: 360px; background: linear-gradient(145deg, var(--surface), var(--surface-tint)); }
.article-card .tag { color: var(--primary-strong); font-size: 12px; font-weight: 800; }
.article-card h3 { margin: 15px 0 10px; font-family: var(--serif); font-size: 25px; line-height: 1.45; }
.article-card p { margin: 0; color: var(--text-soft); font-size: 14px; }
.article-card a { margin-top: auto; padding-top: 20px; color: var(--primary-strong); font-weight: 800; font-size: 14px; }

.cta-panel { border-radius: 34px; padding: 58px; text-align: center; background: linear-gradient(135deg, var(--primary-strong), color-mix(in srgb, var(--primary) 80%, #2d4f3a)); color: #fff; box-shadow: var(--shadow); }
html[data-theme="night"] .cta-panel { background: linear-gradient(135deg, var(--primary-strong), #c87468); }
.cta-panel h2 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); letter-spacing: -.05em; }
.cta-panel p { margin: 0 auto 28px; max-width: 650px; color: rgba(255,255,255,.78); }
.cta-panel .btn-secondary { border-color: rgba(255,255,255,.3); }

.site-footer { padding: 58px 0 34px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 62%, #fff); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; gap: 36px; }
.footer-brand p { color: var(--text-soft); max-width: 390px; font-size: 14px; }
.footer-title { font-size: 13px; font-weight: 900; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; color: var(--text-soft); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-top: 30px; margin-top: 35px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 12px; }

.page-hero { padding: 72px 0 58px; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.page-hero h1 { margin: 14px 0 18px; font-size: clamp(42px, 5.5vw, 68px); }
.page-hero p { margin: 0; color: var(--text-soft); font-size: 18px; max-width: 720px; }
.page-visual { min-height: 330px; border-radius: 30px; background: linear-gradient(145deg, var(--hero-a), var(--surface-solid)); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.page-visual .mini-orbit { position: absolute; width: 230px; height: 230px; border-radius: 50%; right: 45px; top: 45px; border: 1px solid var(--line); }
.page-visual .mini-orbit::before { content: ""; position: absolute; inset: 27%; border-radius: 50%; background: var(--primary); box-shadow: 0 0 45px var(--glow); }
.page-visual .floating-note { position: absolute; left: 28px; bottom: 28px; right: 120px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.sticky-card { position: sticky; top: 105px; }
.form-card, .result-card, .info-card { border-radius: 28px; padding: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 800; color: var(--text); }
.field small { color: var(--text-soft); font-size: 11px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); color: var(--text); padding: 13px 14px; outline: none; transition: border .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 115px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--glow); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { display: inline-flex; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); background: var(--surface-solid); cursor: pointer; }
.choice input:checked + label { color: #fff; background: var(--primary-strong); border-color: var(--primary-strong); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.notice { margin-top: 17px; padding: 14px 16px; border-radius: 14px; background: var(--surface-tint); color: var(--text-soft); font-size: 12px; }

.saju-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
.pillar { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-align: center; }
.pillar-head { padding: 9px; background: var(--surface-tint); color: var(--primary-strong); font-size: 12px; font-weight: 900; }
.pillar-char { padding: 13px 5px; font-family: var(--serif); font-size: 31px; border-bottom: 1px solid var(--line); }
.pillar-char:last-child { border-bottom: 0; }
.five-elements { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 20px 0; }
.element { border-radius: 14px; padding: 12px 5px; text-align: center; background: var(--surface-tint); font-size: 12px; font-weight: 900; }
.element span { display: block; font-size: 22px; margin-bottom: 3px; }
.progress-list { display: grid; gap: 14px; }
.progress-row { display: grid; grid-template-columns: 78px 1fr 42px; gap: 12px; align-items: center; font-size: 13px; }
.progress-track { height: 8px; border-radius: 999px; background: var(--accent); overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab-btn { border: 1px solid var(--line); background: var(--surface-solid); color: var(--text-soft); padding: 9px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.tab-btn.active { background: var(--primary-strong); color: #fff; border-color: var(--primary-strong); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.relation-preview { display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; align-items: center; margin: 28px 0; }
.person-card { text-align: center; padding: 22px; border-radius: 22px; background: var(--surface-tint); }
.avatar { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 25px; background: linear-gradient(145deg, var(--primary-soft), var(--primary-strong)); }
.match-score { width: 95px; height: 95px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); border: 7px solid var(--accent); box-shadow: inset 0 0 0 5px var(--primary); font-family: var(--serif); font-size: 28px; color: var(--primary-strong); }
.comparison-grid { display: grid; gap: 13px; }
.comparison-row { display: grid; grid-template-columns: 95px 1fr 42px; gap: 12px; align-items: center; font-size: 13px; }

.knowledge-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.knowledge-nav { position: sticky; top: 105px; display: grid; gap: 7px; padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.knowledge-nav a { padding: 10px 12px; border-radius: 12px; color: var(--text-soft); font-size: 14px; font-weight: 700; }
.knowledge-nav a:hover { color: var(--text); background: var(--surface-tint); }
.knowledge-article { display: grid; gap: 22px; }
.knowledge-block { scroll-margin-top: 105px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); padding: 34px; box-shadow: var(--shadow-soft); }
.knowledge-block h2 { margin: 8px 0 14px; font-family: var(--serif); font-size: 32px; letter-spacing: -.04em; }
.knowledge-block h3 { margin: 28px 0 10px; font-size: 19px; }
.knowledge-block p { color: var(--text-soft); }
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 22px; }
.glossary div { padding: 18px; border-radius: 16px; background: var(--surface-tint); }
.glossary strong { display: block; margin-bottom: 6px; color: var(--primary-strong); }

.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.faq-button { width: 100%; border: 0; background: transparent; color: var(--text); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; font-weight: 800; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer > div { padding: 0 22px 20px; color: var(--text-soft); font-size: 14px; }
.faq-item.open .faq-answer { max-height: 280px; }
.faq-item.open .faq-button span:last-child { transform: rotate(45deg); }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 3000; transform: translate(-50%, 140%); opacity: 0; padding: 13px 18px; border-radius: 999px; background: var(--text); color: #fff; box-shadow: var(--shadow); font-size: 13px; transition: transform .35s ease, opacity .35s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .main-nav { position: fixed; inset: 78px 18px auto; display: none; padding: 18px; border-radius: 22px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .menu-toggle { display: grid; place-items: center; }
  .header-actions .btn { display: none; }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 540px; max-width: 680px; width: 100%; margin: 0 auto; }
  .quick-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .rhythm-panel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-card:first-child { grid-column: 1 / -1; }
  .content-grid { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 26px), var(--max)); }
  .section { padding: 72px 0; }
  .header-inner { height: 70px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 20px; }
  .brand-sub { display: none; }
  .theme-switcher button { padding: 6px 8px; }
  .theme-switcher button span { display: none; }
  .hero { padding: 48px 0 65px; }
  .hero-copy h1 { font-size: 47px; }
  .hero-copy .lead { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 9px 16px; }
  .hero-visual { min-height: 480px; }
  .orbit-bg { inset: 14px 0 0; border-radius: 32px; }
  .orbit-bg::before { width: 250px; height: 250px; right: 12px; top: 62px; }
  .orbit-bg::after { width: 170px; height: 170px; right: 52px; top: 102px; }
  .celestial { right: 77px; top: 130px; width: 128px; height: 128px; }
  .celestial::after { width: 175px; }
  .preview-card.main { left: 13px; bottom: 18px; width: calc(100% - 26px); }
  .preview-card.side { display: none; }
  .quick-grid, .feature-grid, .pricing-grid, .steps, .article-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 260px; }
  .section-head { grid-template-columns: 1fr; gap: 15px; }
  .section-head h2 { font-size: 37px; }
  .rhythm-panel { padding: 29px 20px; }
  .rhythm-orbit { max-width: 285px; }
  .rhythm-item { width: 68px; height: 68px; font-size: 10px; }
  .rhythm-item:nth-child(2) { left: calc(50% - 34px); }
  .rhythm-item:nth-child(3) { top: calc(50% - 34px); }
  .rhythm-item:nth-child(4) { left: calc(50% - 34px); }
  .rhythm-item:nth-child(5) { top: calc(50% - 34px); }
  .price-card.featured { transform: none; }
  .cta-panel { padding: 42px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .page-hero { padding: 46px 0 40px; }
  .page-hero h1 { font-size: 43px; }
  .page-visual { min-height: 280px; }
  .page-visual .mini-orbit { width: 190px; height: 190px; right: 22px; top: 35px; }
  .page-visual .floating-note { right: 20px; left: 20px; bottom: 20px; }
  .form-card, .result-card, .info-card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .saju-pillars { gap: 6px; }
  .pillar-char { font-size: 24px; }
  .five-elements { gap: 5px; }
  .relation-preview { grid-template-columns: 1fr; }
  .match-score { margin: 0 auto; }
  .knowledge-layout { grid-template-columns: 1fr; }
  .knowledge-nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .knowledge-block { padding: 24px; }
  .glossary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
