:root {
  --cloud-white: #fbfcf8;
  --paper-warm: #f4f3ea;
  --sky-celadon: #cfe5e8;
  --sky-deep: #6f9da5;
  --ink-night: #17323d;
  --ink-soft: #526b70;
  --brass: #b18a4a;
  --brass-light: #ddc99b;
  --seal-red: #b94a3d;
  --line-ink: rgba(23, 50, 61, .16);
  --shadow-ink: 0 24px 70px rgba(19, 47, 58, .13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.brand-shell {
  margin: 0;
  color: var(--ink-night);
  font-family: "Gowun Batang", "Noto Serif KR", Batang, serif;
  background:
    radial-gradient(circle at 18% 4%, rgba(255,255,255,.95) 0 15%, transparent 34%),
    linear-gradient(180deg, #dfeef0 0, #f4f6f1 420px, var(--paper-warm) 100%);
  overflow-x: hidden;
}

body.brand-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(7deg, rgba(32,54,56,.12) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(97deg, rgba(255,255,255,.8) 0 1px, transparent 1px 7px);
  background-size: 240px 240px, 180px 180px;
}

body.brand-shell button,
body.brand-shell input,
body.brand-shell select {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
}

body.brand-shell a:focus-visible,
body.brand-shell button:focus-visible,
body.brand-shell input:focus-visible,
body.brand-shell select:focus-visible,
body.brand-shell summary:focus-visible {
  outline: 3px solid rgba(185, 74, 61, .42);
  outline-offset: 3px;
}

.sitebar {
  position: relative;
  z-index: 20;
  width: min(1160px, calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-ink);
}

.sitebar .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-night);
  text-decoration: none;
  white-space: nowrap;
}

.sitebar .brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--seal-red);
  color: var(--seal-red);
  font-family: "Song Myung", serif;
  font-size: 14px;
  line-height: 1;
  transform: rotate(-3deg);
}

.sitebar .brand-name {
  font-family: "Song Myung", serif;
  font-size: 19px;
  letter-spacing: .12em;
}

.sitebar nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sitebar nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font: 500 12px/1.2 "Noto Sans KR", sans-serif;
  letter-spacing: .08em;
}

.sitebar nav a:last-child {
  padding: 10px 16px;
  border: 1px solid var(--ink-night);
  color: var(--ink-night);
}

.sitebar nav a:hover { color: var(--seal-red); }

.compass-art {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(27, 53, 58, .16));
}

/* ───────── Landing ───────── */
body.page-landing { background: var(--paper-warm); }

body.page-landing .hero {
  min-height: 760px;
  padding: 0 0 90px;
  text-align: left;
  background:
    radial-gradient(circle at 75% 20%, rgba(255,255,255,.9) 0 9%, transparent 32%),
    linear-gradient(145deg, #d8ebed 0%, #edf3ee 52%, #f4f3ea 100%);
  border-bottom: 1px solid var(--line-ink);
}

body.page-landing .hero .sitebar { margin-bottom: 32px; }

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr);
  align-items: center;
  gap: clamp(30px, 5vw, 82px);
}

.hero-copy { padding: 70px 0 30px; }

.hero-copy .eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--brass);
  font: 600 11px/1.2 "Noto Sans KR", sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.hero-copy .eyebrow::before,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

body.page-landing .greet {
  margin: 0 0 18px;
  color: var(--ink-night);
  font-family: "Nanum Brush Script", cursive;
  font-size: clamp(50px, 7vw, 82px);
  line-height: .92;
}

body.page-landing .greet .inseal {
  padding: 6px;
  margin-left: 12px;
  border-radius: 0;
  background: var(--seal-red);
  font-size: 12px;
  vertical-align: 25px;
}

body.page-landing .hero h1 {
  max-width: 600px;
  margin: 0 0 22px;
  color: var(--ink-night);
  font-family: "Song Myung", serif;
  font-size: clamp(36px, 4.5vw, 61px);
  font-weight: 400;
  line-height: 1.26;
  letter-spacing: -.025em;
  word-break: keep-all;
}

body.page-landing .hero h1 b {
  color: var(--seal-red);
  font-weight: 400;
  box-shadow: inset 0 -.16em 0 rgba(185, 74, 61, .12);
}

body.page-landing .hero .say {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 25px;
}

body.page-landing .hero .desc {
  max-width: 560px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

body.brand-shell .cta,
body.brand-shell .dl,
body.brand-shell .go {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--ink-night);
  box-shadow: 8px 8px 0 rgba(111, 157, 165, .34);
  color: #fff;
  font-family: "Song Myung", serif;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

body.brand-shell .cta:hover,
body.brand-shell .dl:hover,
body.brand-shell .go:hover {
  background: #244956;
  transform: translate(-2px, -2px);
  box-shadow: 11px 11px 0 rgba(111, 157, 165, .34);
}

body.page-landing .hero .cta {
  width: auto;
  min-width: 250px;
  margin: 0;
  padding: 17px 24px;
}

body.page-landing .hero .free {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 500 12px/1.7 "Noto Sans KR", sans-serif;
}

body.page-landing .hero .seal,
body.brand-shell .seal {
  border-radius: 0;
  background: var(--seal-red);
}

.hero-oracle {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.hero-oracle .compass-wrap {
  position: absolute;
  width: min(590px, 100%);
  aspect-ratio: 1;
  animation: compass-breathe 9s ease-in-out infinite;
}

.hero-oracle .compass-wrap::after {
  content: "";
  position: absolute;
  inset: 19%;
  border-radius: 50%;
  box-shadow: inset 0 0 45px rgba(255,255,255,.85);
}

.hero-oracle .hero-img {
  z-index: 2;
  width: min(57%, 320px);
  margin: 38px 0 0;
  mask-image: radial-gradient(ellipse 69% 72% at 50% 48%, #000 58%, transparent 99%);
  filter: drop-shadow(0 18px 24px rgba(34, 62, 66, .20));
  animation: oracle-float 7s ease-in-out infinite;
}

.hero-oracle .hero-video {
  aspect-ratio: 1;
  object-fit: cover;
  pointer-events: none;
}

.oracle-note {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 50px;
  width: 188px;
  padding: 14px 14px 13px 18px;
  border-left: 2px solid var(--seal-red);
  background: rgba(251,252,248,.86);
  backdrop-filter: blur(8px);
  color: var(--ink-soft);
  font: 500 11px/1.75 "Noto Sans KR", sans-serif;
}

.oracle-note b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-night);
  font-family: "Song Myung", serif;
  font-size: 15px;
  letter-spacing: .08em;
}

@keyframes compass-breathe {
  0%,100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.015); }
}

@keyframes oracle-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

body.page-landing .cloudball { display: none; }

/* 계산 근거를 먼저 보여주는 권위 필름 */
body.page-landing .authority-reel {
  padding: 0;
  border-top: 1px solid rgba(221,201,155,.28);
  border-bottom: 1px solid rgba(221,201,155,.28);
  background: var(--ink-night);
  color: #edf0ea;
}

.authority-grid {
  width: min(1180px, 100%);
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(350px, .83fr) minmax(520px, 1.17fr);
}

.authority-copy {
  align-self: center;
  padding: clamp(58px, 8vw, 96px) clamp(28px, 5vw, 64px);
}

.authority-copy .section-kicker { color: var(--brass-light); }

body.page-landing .authority-copy h2 {
  margin: 0 0 24px;
  color: #f7f5ea;
  text-align: left;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.32;
  letter-spacing: -.015em;
  word-break: keep-all;
}

.authority-copy h2 em {
  color: var(--brass-light);
  font-style: normal;
  font-weight: 400;
}

.authority-lead {
  max-width: 470px;
  margin-bottom: 30px;
  color: #b6c4c4;
  font-size: 14px;
  line-height: 1.9;
  word-break: keep-all;
}

.authority-proof {
  margin: 0 0 32px;
  border-top: 1px solid rgba(221,201,155,.28);
}

.authority-proof > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(221,201,155,.20);
}

.authority-proof dt {
  color: #f1eee3;
  font-family: "Song Myung", serif;
  font-size: 16px;
  letter-spacing: .04em;
}

.authority-proof dt span {
  display: inline-grid;
  width: 25px;
  height: 25px;
  margin-right: 9px;
  place-items: center;
  border: 1px solid var(--brass);
  color: var(--brass-light);
  font-size: 12px;
}

.authority-proof dd {
  margin: 0;
  color: #9fb2b3;
  font-size: 12px;
  line-height: 1.75;
  word-break: keep-all;
}

.authority-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--brass-light);
  color: #f6f1df;
  font: 400 17px/1.4 "Song Myung", serif;
  text-decoration: none;
}

.authority-link span { color: var(--brass-light); transition: transform .2s ease; }
.authority-link:hover span { transform: translateX(5px); }

.authority-film {
  position: relative;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid rgba(221,201,155,.28);
  background: #0d1f25 url('/media/authority-compass-poster.webp') center/cover no-repeat;
  isolation: isolate;
}

.authority-film::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,23,29,.08) 36%, rgba(8,23,29,.84) 100%),
    linear-gradient(90deg, rgba(8,23,29,.32), transparent 35%);
  pointer-events: none;
}

.authority-film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.04);
}

.film-mark {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 28px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(239,217,168,.74);
  color: #efdaa9;
  font-family: "Song Myung", serif;
  letter-spacing: .12em;
}

.film-mark span { font-size: 18px; }
.film-mark small { margin-top: -15px; font-size: 9px; letter-spacing: .2em; }

.authority-film figcaption {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 5vw, 58px);
  bottom: clamp(25px, 5vw, 54px);
  left: clamp(24px, 5vw, 58px);
  padding-left: 20px;
  border-left: 2px solid var(--seal-red);
  color: #fff;
}

.authority-film figcaption span,
.authority-film figcaption small {
  display: block;
  color: #c5ceca;
  font-size: 11px;
  letter-spacing: .08em;
}

.authority-film figcaption strong {
  display: block;
  margin: 7px 0;
  font: 400 clamp(23px, 3vw, 34px)/1.35 "Song Myung", serif;
}

body.page-landing section.wrap {
  max-width: 1120px;
  padding: 96px 18px;
}

body.page-landing h2 {
  margin-bottom: 12px;
  color: var(--ink-night);
  font-family: "Song Myung", serif;
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: .04em;
}

body.page-landing h2 .hj {
  margin-bottom: 10px;
  color: var(--brass);
  font: 600 11px/1.2 "Noto Sans KR", sans-serif;
}

body.page-landing .sub {
  margin-bottom: 42px;
  color: var(--ink-soft);
}

body.page-landing .scrolls {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

body.page-landing .scroll {
  grid-column: span 2;
  min-height: 225px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line-ink);
  border-radius: 0;
  background: rgba(251,252,248,.78);
  box-shadow: none;
}

body.page-landing .scroll:nth-child(1),
body.page-landing .scroll:nth-child(2) { grid-column: span 3; }

body.page-landing .scroll:hover {
  border-color: var(--brass);
  background: #fff;
  box-shadow: 0 18px 40px rgba(24,49,58,.08);
}

body.page-landing .scroll .ic {
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink-night);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-night);
  font-size: 22px;
}

body.page-landing .scroll h3 {
  color: var(--ink-night);
  font-size: 21px;
}

body.page-landing .scroll h3 small { color: var(--brass); }
body.page-landing .scroll p { color: var(--ink-soft); }

body.page-landing .reviews {
  padding: 74px 0;
  border-color: var(--line-ink);
  background: var(--ink-night);
}

body.page-landing .reviews h2 { color: #f7f5ea; }
body.page-landing .reviews .sub { color: #9fb5b8; }

body.page-landing .marquee { gap: 14px; }

body.page-landing .rv {
  width: 310px;
  padding: 22px;
  border: 1px solid rgba(221,201,155,.28);
  border-radius: 0;
  background: rgba(255,255,255,.045);
}

body.page-landing .rv .st { color: var(--brass-light); }
body.page-landing .rv .tx { color: #e7ece8; }
body.page-landing .rv .who { color: #90a7aa; }

body.page-landing .steps {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-ink);
}

body.page-landing .step {
  min-height: 190px;
  padding: 28px;
  gap: 18px;
  background: var(--paper-warm);
}

body.page-landing .step .n {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--seal-red);
  font-size: 25px;
}

body.page-landing .step h4 { font-size: 18px; }
body.page-landing .step p { color: var(--ink-soft); }

body.page-landing .faq {
  max-width: 820px;
  margin-bottom: 34px;
}

body.page-landing .faq details {
  padding: 19px 4px;
  border-width: 0 0 1px;
  border-color: var(--line-ink);
  border-radius: 0;
  background: transparent;
}

body.page-landing .faq summary {
  font-family: "Song Myung", serif;
  font-size: 18px;
}

body.page-landing .faq p { color: var(--ink-soft); }

body.page-landing footer {
  padding: 52px 20px;
  background: #112a33;
  color: #9bb0b3;
}

body.brand-shell .adbox .tag,
body.brand-shell .adbox .t { color: #95a7a8; }

/* ───────── Start ───────── */
body.page-start { min-height: 100vh; }

body.page-start .sitebar,
body.page-type .sitebar { margin-bottom: 22px; }

body.page-start .wrap {
  max-width: 1040px;
  padding: 32px 18px 90px;
}

.start-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
  margin-bottom: 22px;
  text-align: left;
}

.start-copy { position: relative; z-index: 2; }

body.page-start .greet {
  margin: 0 0 14px;
  color: var(--ink-night);
  font-size: clamp(45px, 6vw, 68px);
}

body.page-start h1 {
  margin: 0 0 12px;
  color: var(--ink-night);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
}

body.page-start .tag { color: var(--ink-soft); }

.start-oracle {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center;
}

.start-oracle .compass-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .68;
}

body.page-start .sansin {
  position: relative;
  z-index: 2;
  width: min(52%, 230px);
  filter: drop-shadow(0 16px 20px rgba(23,50,61,.17));
}

body.page-start .adbox { grid-column: 1 / -1; }

body.page-start .menu {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0 32px;
}

body.page-start .menu a {
  min-height: 220px;
  padding: 28px 16px 22px;
  border: 1px solid var(--line-ink);
  border-radius: 0;
  background: rgba(251,252,248,.82);
  box-shadow: none;
}

body.page-start .menu a:hover {
  border-color: var(--brass);
  box-shadow: 0 18px 36px rgba(23,50,61,.09);
}

body.page-start .menu .ic {
  width: 50px;
  height: 50px;
  line-height: 48px;
  border: 1px solid var(--ink-night);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-night);
}

body.page-start .menu small { color: var(--brass); }
body.page-start .menu span { color: var(--ink-soft); }

.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.page-start .qa {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line-ink);
  border-radius: 0;
  background: rgba(251,252,248,.75);
  box-shadow: none;
}

body.page-start .qa .say { color: var(--seal-red); }
body.page-start .qa p { color: var(--ink-soft); }

body.page-start .sum {
  padding: 34px 38px;
  border-radius: 0;
  background: var(--ink-night);
  color: #d7e1df;
  column-count: 2;
  column-gap: 42px;
}

body.page-start .sum h3 {
  column-span: all;
  color: var(--brass-light);
}

body.page-start .sum li::before { color: var(--brass-light); }

body.page-start .dl {
  max-width: 390px;
  border-radius: 0;
}

body.page-start .home,
body.page-type .home { color: var(--ink-soft); }

/* ───────── Type ───────── */
body.page-type .wrap {
  max-width: 980px;
  padding: 40px 18px 80px;
}

.type-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  min-height: 570px;
}

.type-copy { position: relative; text-align: left; }

.type-copy::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  top: -62px;
  left: -92px;
  z-index: -1;
  opacity: .2;
  background: url('/img/baegun-compass.svg') center/contain no-repeat;
}

body.page-type .greet {
  color: var(--ink-night);
  font-size: clamp(48px, 6vw, 68px);
}

body.page-type .sansin {
  width: min(48vw, 210px);
  filter: drop-shadow(0 16px 18px rgba(23,50,61,.16));
}

body.page-type h1 {
  margin-top: 18px;
  color: var(--ink-night);
  font-size: 29px;
  font-weight: 400;
}

body.page-type .tag { color: var(--ink-soft); }

body.page-type .formcard {
  margin: 0;
  padding: 34px;
  border: 1px solid var(--line-ink);
  border-radius: 0;
  background: rgba(251,252,248,.88);
  box-shadow: var(--shadow-ink);
  text-align: left;
}

body.page-type select {
  border-color: var(--line-ink);
  border-radius: 0;
  background: #fff;
}

body.page-type .cal { border-color: var(--line-ink); border-radius: 0; }
body.page-type .cal button.on { background: var(--ink-night); }
body.page-type .go { margin-top: 6px; }

body.page-type #result { max-width: 520px; margin: 0 auto; }
body.page-type #cardCanvas { border-radius: 0; box-shadow: var(--shadow-ink); }
body.page-type .btns button { border-radius: 0; border-color: var(--line-ink); }
body.page-type .btns button.hot { background: var(--seal-red); border-color: var(--seal-red); }
body.page-type .next {
  border: 1px solid var(--line-ink);
  border-radius: 0;
  background: rgba(251,252,248,.86);
  box-shadow: none;
}
body.page-type .next .brush { color: var(--seal-red); }
body.page-type .next a { border-radius: 0; background: var(--ink-night); box-shadow: none; }

/* ───────── App ───────── */
body.page-app {
  --paper: #f4f3ea;
  --paper2: rgba(251,252,248,.92);
  --ink: var(--ink-night);
  --ink2: var(--ink-soft);
  --line: var(--line-ink);
  --accent: var(--seal-red);
  --gold: var(--brass);
  background:
    radial-gradient(circle at 50% -120px, rgba(255,255,255,.95) 0 15%, transparent 46%),
    linear-gradient(180deg, #d8eaec 0, #f4f3ea 460px);
}

body.page-app .sitebar { width: min(1120px, calc(100% - 28px)); }

body.page-app .wrap {
  max-width: 980px;
  padding: 26px 14px 80px;
}

body.page-app header {
  position: relative;
  min-height: 280px;
  display: grid;
  align-content: center;
  margin-bottom: 18px;
  padding: 38px 250px 38px 38px;
  border: 1px solid var(--line-ink);
  background: rgba(251,252,248,.62);
  text-align: left;
  overflow: hidden;
}

body.page-app header::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -28px;
  top: -24px;
  background: url('/img/baegun-compass.svg') center/contain no-repeat;
  opacity: .78;
}

body.page-app header .sansin-mini {
  position: absolute;
  z-index: 2;
  right: 94px;
  bottom: 32px;
  width: 118px;
  height: 118px;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(23,50,61,.16);
}

body.page-app header .bub {
  color: var(--seal-red);
  font-size: clamp(31px, 5vw, 46px);
}

body.page-app header h1 {
  color: var(--ink-night);
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 400;
  letter-spacing: .08em;
}

body.page-app header h1 .stamp { border-radius: 0; background: var(--seal-red); }
body.page-app header p { max-width: 540px; color: var(--ink-soft); line-height: 1.7; }

body.page-app .tabs {
  position: sticky;
  top: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--line-ink);
  background: rgba(244,243,234,.92);
  backdrop-filter: blur(12px);
}

body.page-app .tabs button {
  padding: 12px 8px;
  border: 0;
  border-right: 1px solid var(--line-ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft);
}

body.page-app .tabs button:last-child { border-right: 0; }
body.page-app .tabs button.on { background: var(--ink-night); color: #fff; box-shadow: none; }

body.page-app .card {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line-ink);
  border-radius: 0;
  background: rgba(251,252,248,.9);
  box-shadow: 0 12px 36px rgba(23,50,61,.055);
}

body.page-app .card h2 {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-ink);
  color: var(--ink-night);
  font-size: 19px;
  font-weight: 400;
}

body.page-app input,
body.page-app select {
  border-color: var(--line-ink);
  border-radius: 0;
  background: #fff;
}

body.page-app .seg { border-color: var(--line-ink); border-radius: 0; }
body.page-app .seg button.on { background: var(--ink-night); }
body.page-app .go.gold { background: var(--brass); box-shadow: 8px 8px 0 rgba(177,138,74,.22); }

body.page-app .pillar,
body.page-app .dw,
body.page-app .person,
body.page-app .animal-grid button,
body.page-app .advice,
body.page-app .tface { border-radius: 0; }

body.page-app .pillar.me .plabel { background: var(--seal-red); }
body.page-app .animal-grid button.on { border-color: var(--seal-red); background: #f8eee9; color: var(--seal-red); }
body.page-app .total-circle { border-radius: 50%; background: conic-gradient(var(--seal-red) calc(var(--p)*1%), #d6d6c9 0); }
body.page-app .total-circle b { color: var(--seal-red); }

body.page-app footer a { color: var(--brass) !important; }

/* ───────── Report ───────── */
body.page-report {
  --paper: #edece3;
  --paper2: #fbfcf8;
  --ink: var(--ink-night);
  --ink2: var(--ink-soft);
  --line: var(--line-ink);
  --accent: var(--seal-red);
  --gold: var(--brass);
  --dark: var(--ink-night);
  background:
    radial-gradient(circle at 50% -120px, #fff 0, transparent 36%),
    var(--paper-warm);
}

body.page-report .wrap { max-width: 840px; padding-top: 16px; }

body.page-report .toolbar {
  top: 10px;
  padding: 10px;
  border: 1px solid var(--line-ink);
  background: rgba(244,243,234,.9);
  box-shadow: 0 8px 24px rgba(23,50,61,.07);
  backdrop-filter: blur(14px);
}

body.page-report .toolbar button {
  border-color: var(--line-ink);
  border-radius: 0;
  background: #fff;
}

body.page-report .toolbar button.hot { background: var(--ink-night); border-color: var(--ink-night); }

body.page-report .cover {
  min-height: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 34px;
  border: 1px solid var(--line-ink);
  border-radius: 0;
  background:
    linear-gradient(rgba(244,243,234,.74), rgba(244,243,234,.92)),
    url('/img/baegun-compass.svg') center 42% / min(680px, 96%) no-repeat,
    #f4f3ea;
  box-shadow: var(--shadow-ink);
}

body.page-report .cover::before,
body.page-report .cover::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(23,50,61,.30);
  pointer-events: none;
}

body.page-report .cover::after { inset: 25px; border-color: rgba(177,138,74,.55); }

body.page-report .cover .sansin {
  width: 180px;
  height: 180px;
  border: 0;
  box-shadow: 0 18px 40px rgba(23,50,61,.16);
}

body.page-report .cover .brush { color: var(--seal-red); font-size: 32px; }

body.page-report .cover h1 {
  color: var(--ink-night);
  font-size: clamp(42px, 7vw, 61px);
  font-weight: 400;
  letter-spacing: .18em;
}

body.page-report .cover .sub { color: var(--brass); }
body.page-report .cover .who { color: var(--ink-soft); }

body.page-report .cover .badge {
  border-color: var(--brass);
  border-radius: 0;
  background: rgba(251,252,248,.8);
  color: #8d692f;
}

body.page-report .toc,
body.page-report .page {
  border: 1px solid var(--line-ink);
  border-radius: 0;
  background: rgba(251,252,248,.94);
}

body.page-report .toc { padding: 36px; }
body.page-report .toc h2 { color: var(--ink-night); font-size: 24px; font-weight: 400; }
body.page-report .toc .row { border-color: var(--line-ink); }
body.page-report .toc .row:hover { color: var(--seal-red); }

body.page-report .page {
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 9px 26px rgba(23,50,61,.045);
}

body.page-report .page .part { color: var(--brass); }
body.page-report .page h3 { color: var(--ink-night); font-size: 21px; font-weight: 400; }
body.page-report .page p { color: #344f55; }

body.page-report .part-divider { color: var(--ink-night); font-size: 23px; }
body.page-report .part-divider::before,
body.page-report .part-divider::after { background: var(--brass); }

body.page-report .part-intro {
  border-color: rgba(177,138,74,.45);
  border-radius: 0;
  background: rgba(251,252,248,.58);
}

body.page-report .advice,
body.page-report .caution,
body.page-report .easy,
body.page-report .vpil,
body.page-report .vseason,
body.page-report .vtl-item,
body.page-report .vstar,
body.page-report .vchip { border-radius: 0; }

body.page-report .morebar button,
body.page-report #unlock .open { border-radius: 0; background: var(--ink-night); box-shadow: 8px 8px 0 rgba(111,157,165,.32); }

body.page-report #unlock,
body.page-report #cardModal { background: rgba(12,32,39,.95); }

body.page-report #unlock .box,
body.page-report #cardModal .box,
body.page-report #cardModal canvas,
body.page-report #cardModal .btns button { border-radius: 0; }

@media (max-width: 860px) {
  .sitebar nav a:not(:last-child) { display: none; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-copy { padding: 45px 0 0; text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  body.page-landing .hero .desc { margin-left: auto; margin-right: auto; }
  .hero-oracle { min-height: 500px; }
  .hero-oracle .compass-wrap { width: min(540px, 92vw); }
  .oracle-note { right: 4%; }
  .authority-grid { grid-template-columns: 1fr; }
  .authority-copy { padding: 72px clamp(24px, 8vw, 72px); }
  .authority-film { min-height: 520px; border-top: 1px solid rgba(221,201,155,.28); border-left: 0; }
  body.page-start .menu { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: 1fr; }
  .type-copy { text-align: center; }
  .type-copy::before { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .sitebar { min-height: 62px; width: calc(100% - 28px); }
  .sitebar .brand-name { font-size: 16px; }
  .sitebar nav { gap: 10px; }
  .sitebar nav a:last-child { padding: 8px 11px; font-size: 11px; }
  body.page-landing .hero { min-height: auto; padding-bottom: 48px; }
  body.page-landing .hero .sitebar { margin-bottom: 0; }
  .hero-shell { width: calc(100% - 28px); gap: 0; }
  .hero-copy { padding-top: 40px; }
  body.page-landing .hero h1 { font-size: 38px; }
  body.page-landing .hero .say { font-size: 22px; }
  body.page-landing .hero .desc br { display: none; }
  .hero-actions { flex-direction: column; gap: 14px; }
  body.page-landing .hero .cta { width: 100%; }
  .hero-oracle { min-height: 390px; }
  .hero-oracle .hero-img { width: 49%; margin-top: 15px; }
  .oracle-note { right: 0; bottom: 28px; width: 160px; font-size: 10px; }
  .authority-copy { padding: 58px 22px 54px; }
  body.page-landing .authority-copy h2 { font-size: 34px; }
  .authority-proof > div { grid-template-columns: 1fr; gap: 7px; }
  .authority-proof dd { padding-left: 35px; }
  .authority-link { font-size: 16px; }
  .authority-film { min-height: 440px; }
  .film-mark { top: 18px; right: 18px; width: 58px; height: 58px; }
  .authority-film figcaption { right: 20px; bottom: 24px; left: 20px; }
  .authority-film figcaption strong { font-size: 23px; }
  body.page-landing section.wrap { padding: 68px 16px; }
  body.page-landing .scrolls { display: flex; }
  body.page-landing .scroll { min-height: 0; padding: 23px; flex-direction: row; }
  body.page-landing .steps { grid-template-columns: 1fr; }
  body.page-landing .step { min-height: 0; }
  .start-lead { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .start-oracle { min-height: 300px; }
  body.page-start .menu { grid-template-columns: 1fr 1fr; }
  body.page-start .menu a { min-height: 210px; padding: 22px 10px; }
  .qa-grid { grid-template-columns: 1fr; }
  body.page-start .sum { column-count: 1; padding: 28px 22px; }
  body.page-type .wrap { padding-top: 24px; }
  .type-grid { min-height: 0; gap: 26px; }
  body.page-type .formcard { padding: 24px 18px; }
  body.page-type .row { gap: 6px; }
  body.page-type select { min-width: 0; padding: 11px 4px; font-size: 14px; }
  body.page-app header { min-height: 310px; padding: 30px 18px 150px; text-align: center; }
  body.page-app header::after { width: 220px; height: 220px; right: 50%; top: auto; bottom: -55px; transform: translateX(50%); }
  body.page-app header .sansin-mini { right: 50%; bottom: 18px; width: 92px; height: 92px; transform: translateX(50%); }
  body.page-app .tabs { padding: 5px; }
  body.page-app .tabs button { padding: 11px 2px; font-size: 12.5px; letter-spacing: 0; }
  body.page-app .grid { gap: 9px; }
  body.page-app .field { min-width: 74px; }
  body.page-app input[type=number] { width: 78px; }
  body.page-app .pillars { gap: 5px; }
  body.page-report .wrap { padding-left: 10px; padding-right: 10px; }
  body.page-report .toolbar { top: 6px; gap: 5px; }
  body.page-report .toolbar button { padding: 7px 8px; font-size: 11.5px; }
  body.page-report .toolbar .prog { width: 100%; margin: 2px 0 0; text-align: right; }
  body.page-report .cover { min-height: 690px; padding: 52px 24px; }
  body.page-report .cover h1 { letter-spacing: .11em; }
  body.page-report .cover .pillars { font-size: 20px; }
  body.page-report .toc { padding: 26px 20px; }
  body.page-report .page { padding: 25px 20px; }
  body.page-report .vpillars { gap: 4px; }
  body.page-report .vbar-row .lb { width: 76px; font-size: 12px; }
}

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

@media print {
  body.page-report::before { display: none; }
  body.page-report .cover,
  body.page-report .toc,
  body.page-report .page { box-shadow: none; }
}
