/* Public subscriber site. Calculation and MCP glyph styles keep their own owners. */
body.subscriber-site {
  margin: 0;
  --font-primary: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-sans: var(--font-primary);
  --font-display: var(--font-primary);
  --bs-body-font-family: var(--font-primary);
  --page-bg: #faf7ef;
  --surface: #ffffff;
  --surface-alt: #f3f0e9;
  --text-primary: #332d26;
  --text-secondary: #665c4c;
  --text-muted: #776a57;
  --line-soft: #e2d7c6;
  --line-strong: #c9bca6;
  --accent-primary: #f3ca52;
  --accent-secondary: #806134;
  --accent-secondary-rgb: 128, 97, 52;
  --bs-body-color: var(--text-primary);
  --bs-body-bg: var(--page-bg);
  --bs-emphasis-color: var(--text-primary);
  --bs-secondary-color: var(--text-secondary);
  --bs-border-color: var(--line-soft);
  --bs-secondary-bg: var(--surface-alt);
  --bs-tertiary-bg: var(--surface-alt);
  color-scheme: light;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.subscriber-site *, .subscriber-site *::before, .subscriber-site *::after { box-sizing: border-box; }
.subscriber-site button, .subscriber-site input, .subscriber-site select { font: inherit; }
.subscriber-site [hidden] { display: none !important; }
.subscriber-site :focus-visible { outline: 3px solid #806134; outline-offset: 4px; }
.subscriber-site a { color: inherit; text-underline-offset: 4px; }
.site-skip { position: fixed; z-index: 2000; top: 8px; left: 16px; padding: 10px 20px; background: #332d26; color: #fff !important; transform: translateY(-160%); border-radius: 6px; }
.site-skip:focus { transform: none; }
.site-header { display: flex; align-items: center; gap: 44px; width: min(100% - 80px, 1184px); min-height: 84px; margin: auto; border-bottom: 1px solid var(--line-soft); }
.site-brand { display: inline-flex; gap: 8px; align-items: center; flex-shrink: 0; font-size: 21px; font-weight: 800; letter-spacing: -.06em; text-decoration: none; }
.site-brand img { object-fit: contain; }
.site-nav { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.site-nav a, .site-auth a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav a { color: var(--text-secondary); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text-primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.site-auth { flex-shrink: 0; min-width: 68px; text-align: right; }
.site-auth a { justify-content: center; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 8px; }
.site-container { width: min(100% - 80px, 1120px); margin-inline: auto; }
.site-eyebrow { margin: 0 0 18px; color: var(--text-secondary); font-size: 13px; font-weight: 650; letter-spacing: .01em; }
.site-button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 56px; padding: 13px 23px; border: 1px solid var(--text-primary); border-radius: 5px; font-size: 16px; font-weight: 700; text-decoration: none; transition: background .15s; }
.site-button--primary { color: #fff !important; background: #332d26; }
.site-button--primary:hover { background: #5a4630; }
.site-button--secondary { background: transparent; }
.site-button--secondary:hover { background: var(--surface-alt); }
.public-page h1, .public-page h2, .public-page h3 { color: var(--text-primary); font-family: var(--font-primary); letter-spacing: -.055em; word-break: keep-all; }
.public-page p { word-break: keep-all; overflow-wrap: anywhere; }
.public-page .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.landing-hero { display: grid; grid-template-columns: 1fr 1.03fr; align-items: center; gap: 64px; padding: 60px 0 48px; }
.landing-copy h1 { font-size: clamp(44px, 4.8vw, 62px); font-weight: 750; line-height: 1.22; margin: 0 0 26px; }
.landing-lead { margin: 0 0 30px; font-size: 17px; line-height: 1.85; color: var(--text-secondary); }
.landing-note { margin: 13px 0 26px; color: var(--text-muted); font-size: 13px; }
.landing-guide { display: inline-flex; gap: 18px; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.landing-guide:hover { text-decoration: underline; }
.chart-demo { min-width: 0; padding: 21px 26px 14px; border: 1px solid #d6c6aa; border-left: 4px solid #b89250; border-radius: 4px; background: #fffefa; box-shadow: 6px 6px 0 #e9e1d2; }
.chart-demo__header { display: flex; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: 11px; margin-bottom: 20px; }
.chart-demo__header > span:first-child { color: #806134; font-weight: 600; }
.chart-demo__header i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; background: #708562; }
.demo-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; gap: 4px; border-bottom: 1px solid #d6c6aa; margin-bottom: 22px; }
.demo-tabs button { min-height: 44px; padding: 7px 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; border-radius: 0; font-size: 12px; font-weight: 650; color: var(--text-secondary); cursor: pointer; }
.demo-tabs button[aria-selected="true"] { color: var(--text-primary); border-bottom-color: #9f772f; }
.demo-identity { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.demo-identity strong { font-size: 14px; }
.demo-identity > span { color: var(--text-muted); font-size: 11px; }
.demo-pillars { table-layout: fixed; border-collapse: separate; border-spacing: 6px; width: calc(100% + 12px); margin: 0 -6px; }
.demo-pillars th { position: relative; padding: 0 0 7px; text-align: center; color: var(--text-secondary); font-size: 11px; font-weight: 500; }
.demo-pillars th span { margin-left: 4px; padding: 1px 4px; background: #f3ca52; color: #3b341e; border-radius: 3px; font-size: 9px; }
.demo-pillars td { padding: 0; border: 0; }
.demo-glyph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; min-height: 94px; padding: 10px 0; border: 2px solid transparent; border-radius: 8px; cursor: pointer; color: #34362e; }
.demo-glyph strong { font: 42px/1.25 var(--font-serif); }
.demo-glyph > span { font-size: 11px; font-weight: 550; }
.demo-glyph.element-木 { background: #e9f0e0; }
.demo-glyph.element-火 { background: #f9e7de; }
.demo-glyph.element-土 { background: #f5ebc9; }
.demo-glyph.element-金 { background: #ecede9; }
.demo-glyph.element-水 { background: #e4eaf3; }
.demo-glyph[aria-pressed="true"] { border-color: #7a713f; background: #f5df90; }
.demo-glyph:hover { border-color: #8e9882; }
.demo-reading { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 20px; padding: 16px 0 3px; border-top: 1px solid var(--line-soft); min-height: 115px; align-content: start; }
.demo-reading__label { flex-basis: 100%; font-size: 10px; color: var(--text-muted); }
.demo-reading > strong { font-size: 17px; }
.demo-reading > p { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; color: var(--text-secondary); line-height: 1.7; }
.chart-demo__foot { margin: 11px 0 0; text-align: center; font-size: 10px; color: var(--text-muted); }
.demo-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.demo-weekday { text-align: center; font-size: 10px; color: var(--text-muted); padding-bottom: 6px; }
.demo-calendar button { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 44px; border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; color: var(--text-primary); font-size: 11px; line-height: 1.35; }
.demo-calendar small { font-size: 9px; color: var(--text-muted); }
.demo-calendar button:hover { border-color: var(--line-strong); }
.demo-calendar button[aria-pressed="true"] { background: #f5df90; border-color: #7a713f; }
.demo-reading--calendar { min-height: 84px; margin-top: 14px; }
.conversation-preview { min-width: 0; padding: 0; }
.conversation-preview > header { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 5px 12px; }
.conversation-preview h2 { font-size: 14px; margin: 0; font-weight: 700; }
.conversation-preview > header > span { font-size: 10px; color: var(--text-secondary); }
.example-question { padding: 20px 0; margin: 0; font-size: 19px; line-height: 1.7; font-weight: 650; letter-spacing: -.04em; }
.example-calculation { border-block: 1px solid #e2d7c6; padding: 14px 0; }
.example-label { font-size: 11px; color: var(--text-secondary); margin: 0 0 14px; }
.example-periods { display: grid; grid-template-columns: 1fr 1fr; }
.example-periods > div + div { border-left: 1px solid var(--line-soft); padding-left: 24px; }
.example-periods span { display: block; font-size: 11px; color: var(--text-secondary); }
.example-periods strong { font: 34px/1.7 var(--font-serif); }
.example-periods p { font-size: 12px; line-height: 1.7; margin: 0; }
.example-calculation > small { display: block; font-size: 10px; color: var(--text-muted); margin-top: 16px; }
.example-followup { display: flex; gap: 12px; margin: 18px 0; }
.example-followup span { color: #6a775d; }
.example-followup p { margin: 0; font-size: 13px; line-height: 1.85; }
.example-footnote { font-size: 11px; line-height: 1.7; color: var(--text-secondary); margin: 0; }
.landing-membership h2 { margin: 0; font-size: clamp(26px, 3vw, 35px); line-height: 1.45; font-weight: 750; }
.landing-membership { display: flex; justify-content: space-between; gap: 40px; border-top: 1px solid #c9bca6; padding: 38px 0; margin-bottom: 28px; }
.landing-membership p:not(.site-eyebrow, .landing-price) { color: var(--text-secondary); font-size: 14px; line-height: 1.85; margin: 16px 0 0; }
.landing-membership__action { align-self: center; min-width: 240px; }
.landing-price { font-size: 40px; font-weight: 750; letter-spacing: -.045em; margin: 0 0 14px; }
.landing-price span { color: var(--text-secondary); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.landing-membership__action .site-button { width: 100%; }
.landing-membership__action small { display: block; max-width: 260px; margin: 12px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.65; }
.site-footer { display: grid; grid-template-columns: 1fr auto; width: min(100% - 80px, 1120px); margin: 0 auto; padding: 36px 0 24px; border-top: 1px solid var(--line-soft); gap: 24px; }
.site-footer__brand { font-size: 18px; font-weight: 750; text-decoration: none; }
.site-footer__brand span { display: block; font-size: 12px; font-weight: 400; margin-top: 7px; color: var(--text-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: start; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 12px; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer__legal { grid-column: 1 / -1; display: flex; gap: 18px; flex-wrap: wrap; font-size: 11px; color: var(--text-muted); padding-top: 8px; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer__legal > span { margin-left: auto; align-self: center; }
.question-to-copy { background: #f0f1e9; padding: 18px 22px; border-radius: 9px; margin-top: 20px; }
.question-to-copy > p { margin-top: 0; font-size: 14px; }
.question-to-copy button { border: 1px solid #a6ad9c; padding: 9px 14px; min-height: 44px; border-radius: 6px; background: #fff; color: #332d26; font-size: 13px; cursor: pointer; }
.question-copy-status { color: #806134; font-size: 13px !important; }
.guide-source { font-size: 12px !important; color: var(--text-secondary); }
.public-faq { max-width: 760px; margin: 64px auto; }
.public-faq h2 { font-size: 24px; margin: 0 0 22px; }
.public-faq details { border-top: 1px solid var(--line-soft); }
.public-faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.public-faq summary { cursor: pointer; padding: 18px 24px 18px 0; font-size: 15px; font-weight: 600; }
.public-faq details p { color: var(--text-secondary); font-size: 14px; margin: 0 0 18px; line-height: 1.9; }
.guide-layout { display: grid; grid-template-columns: 190px minmax(0, 720px); gap: 68px; padding: 48px 0 72px; }
.guide-nav { align-self: start; position: sticky; top: 24px; padding-top: 8px; }
.guide-nav > strong { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 15px; }
.guide-nav a { display: block; padding: 11px 0; min-height: 44px; font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.guide-nav a[aria-current] { color: var(--text-primary); font-weight: 700; }
.guide-article { min-width: 0; }
.guide-breadcrumb { display: flex; gap: 8px; font-size: 11px; color: var(--text-muted); margin-bottom: 28px; }
.guide-article h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.35; margin: 0 0 22px; font-weight: 800; }
.guide-lead { font-size: 17px; color: var(--text-secondary); line-height: 1.9; }
.guide-article h2 { font-size: 24px; margin: 44px 0 16px; line-height: 1.5; }
.guide-article h3 { font-size: 17px; margin: 24px 0 12px; }
.guide-article p, .guide-article li { font-size: 15px; line-height: 1.95; }
.guide-article p { margin: 14px 0; }
.guide-article ul, .guide-article ol { padding-left: 22px; }
.guide-article li { margin: 8px 0; }
.guide-callout { background: #eeeee5; border-left: 3px solid #79846d; padding: 14px 20px; border-radius: 0 8px 8px 0; margin: 24px 0; }
.guide-callout p { margin: 5px 0; font-size: 14px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 24px 0; }
.guide-table caption { text-align: left; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.guide-table th, .guide-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line-soft); }
.guide-table th { font-weight: 600; background: #eeeee5; }
.guide-table strong[lang] { font: 27px/1.5 var(--font-serif); }
.guide-next { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 36px; }
.guide-next > a:not(.site-button) { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; }
@media (max-width: 1000px) {
  .site-header { gap: 24px; }
  .landing-hero { gap: 36px; }
  .landing-copy h1 { font-size: 52px; }
  .landing-lead { font-size: 15px; }
  .chart-demo { padding-inline: 20px; }
  .guide-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 740px) {
  .site-header, .site-container, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 68px; gap: 16px; }
  .site-brand { font-size: 18px; gap: 5px; }
  .site-brand img { width: 30px; height: 30px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 12px; }
  .site-nav a:first-child, .site-nav a[href="/membership"] { display: none; }
  .site-auth { min-width: 58px; }
  .site-auth a { font-size: 12px; padding-inline: 12px; }
  .landing-hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 40px; }
  .landing-copy h1 { font-size: clamp(42px, 9.8vw, 62px); margin-bottom: 18px; line-height: 1.2; }
  .site-eyebrow { font-size: 11px; margin-bottom: 16px; }
  .landing-lead { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
  .landing-choices .site-button { width: 100%; justify-content: space-between; }
  .landing-note { margin: 10px 0 6px; font-size: 12px; }
  .landing-guide { font-size: 12px; }
  .chart-demo { max-width: 460px; width: 100%; justify-self: center; padding: 18px 20px 14px; }
  .demo-identity > span { font-size: 10px; }
  .demo-glyph { min-height: 87px; }
  .demo-calendar button { min-height: 44px; }
  .conversation-preview { padding: 0; }
  .example-question { font-size: 17px; }
  .example-calculation { padding: 14px 0; }
  .landing-membership h2 { font-size: 27px; }
  .landing-membership { flex-direction: column; padding: 28px 0; gap: 24px; margin-bottom: 20px; }
  .landing-membership__action { align-self: stretch; }
  .landing-price { font-size: 34px; }
  .landing-membership__action small { max-width: none; }
  .site-footer { grid-template-columns: 1fr; padding-top: 25px; gap: 18px; }
  .site-footer nav { gap: 2px 18px; }
  .site-footer__legal { gap: 0 18px; padding: 0; }
  .site-footer__legal > span { flex-basis: 100%; margin: 12px 0 0; font-size: 10px; }
  .public-faq { margin-block: 40px; }
  .guide-layout { display: block; padding-top: 24px; }
  .guide-nav { position: static; display: flex; flex-wrap: wrap; gap: 0 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 24px; }
  .guide-nav > strong { display: none; }
  .guide-nav a { font-size: 12px; }
  .guide-article h1 { font-size: 31px; }
  .guide-lead { font-size: 16px; }
  .guide-article h2 { font-size: 22px; margin-top: 32px; }
  .guide-table th, .guide-table td { font-size: 12px; padding: 9px 5px; }
  .guide-next > .site-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .site-button { transition: none; } }

/* The cat's gold linework and a single paper page are the public brand surface. */
.nyang-signature { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; color: #806134; font-size: 12px; line-height: 1.65; }
.nyang-signature img { object-fit: contain; border-radius: 50%; }
.landing-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.home-postscript { border-top: 1px solid var(--line-soft); padding: 20px 0; color: var(--text-secondary); font-size: 13px; }
.home-postscript p { margin: 0; line-height: 1.9; }
.membership-paper { max-width: 960px; }
.membership-cover { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 64px 0 36px; border-bottom: 1px solid var(--line-strong); align-items: center; }
.membership-cover h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.4; margin: 0 0 20px; font-weight: 750; }
.membership-cover p:not(.site-eyebrow, .landing-price) { color: var(--text-secondary); font-size: 15px; }
.membership-cover__action .site-button { font-size: 15px; width: 100%; gap: 12px; }
.membership-cover__action > p:last-child { font-size: 12px; line-height: 1.8; margin: 12px 0 0; }
.membership-reading { padding-top: 26px; }
.membership-reading h2, .membership-free h2 { font-size: 24px; margin: 0 0 22px; }
.membership-chapters { margin: 0; }
.membership-chapters > div { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.membership-chapters dt { font-size: 16px; font-weight: 650; }
.membership-chapters dd { font-size: 14px; color: var(--text-secondary); line-height: 1.9; margin: 0; }
.membership-free { padding: 32px 0 22px; border-top: 1px solid var(--line-strong); }
.membership-free h2 { margin-bottom: 12px; }
.membership-free > p, .membership-before > p { color: var(--text-secondary); font-size: 14px; }
.membership-before { border-top: 1px solid var(--line-soft); padding-top: 20px; }
.connect-address { padding: 24px 0; margin: 24px 0; border-block: 1px solid var(--line-strong); }
.connect-address label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.connect-address__field { display: flex; border: 1px solid var(--line-strong); border-radius: 4px; background: #fffefa; }
.connect-address__field input { min-width: 0; width: 100%; padding: 12px; border: 0; background: transparent; color: var(--text-primary); font-size: 14px; }
.connect-address__field button { flex-shrink: 0; min-height: 48px; padding: 8px 14px; border: 0; border-left: 1px solid var(--line-strong); background: var(--surface-alt); color: var(--text-primary); font-size: 13px; cursor: pointer; }
.connect-address > .site-button { margin-top: 18px; font-size: 15px; }
.connect-address [role=status] { font-size: 13px; }
.connect-address [role=status]:empty { display: none; }
.connect-notes details { border-bottom: 1px solid var(--line-soft); padding: 8px 0; }
.connect-notes summary { min-height: 44px; align-content: center; cursor: pointer; font-size: 16px; font-weight: 650; }
.connect-notes p { color: var(--text-secondary); }
.guide-next-question { border-top: 1px solid var(--line-soft); padding-top: 20px; }
@media (max-width: 740px) {
  .nyang-signature { margin-bottom: 20px; }
  .nyang-signature img { width: 52px; height: 52px; }
  .home-postscript { padding-block: 18px; font-size: 12px; }
  .membership-cover { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; }
  .membership-chapters > div { grid-template-columns: 1fr; gap: 8px; padding-block: 20px; }
  .membership-cover__action > .landing-price { font-size: 36px; }
  .connect-address > .site-button { width: 100%; }
}
