:root {
  color-scheme: light;
  --ink: #202847;
  --muted: #74788a;
  --paper: #f6f4ef;
  --white: #fffefa;
  --line: #e8e5dd;
  --lavender: #b6b7d7;
  --lime: #d7e1b8;
  --coral: #eea27f;
  font-family: 'DM Sans', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 320px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.topbar { height: 68px; padding: 0 max(22px, calc((100vw - 780px) / 2)); display: flex; align-items: center; justify-content: space-between; background: rgba(246,244,239,.93); border-bottom: 1px solid rgba(32,40,71,.07); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.04em; }
.brand-mark { width: 25px; height: 25px; border: 1.6px solid #9c9fc2; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ''; display: block; position: absolute; border: 1px solid #9c9fc2; border-radius: 50%; width: 12px; height: 12px; }
.brand-mark::before { transform: translate(-3px, 0); background: #f6f4ef; }
.brand-mark::after { transform: translate(3px, 0); background: #f6f4ef; }
.brand-mark span:first-child { width: 3px; height: 3px; background: var(--coral); border: 0; z-index: 1; }
.brand-mark span:last-child { display: none; }
.top-note { color: var(--muted); font-size: 12px; letter-spacing: -.01em; }

.page-shell { width: min(100% - 40px, 520px); margin: 0 auto; padding: 30px 0 104px; }
.hero { min-height: 205px; position: relative; display: flex; align-items: center; padding: 24px 22px 28px; overflow: hidden; border-radius: 28px; background: #e9e8f1; }
.hero-copy { position: relative; z-index: 1; max-width: 335px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; color: #85899d; font-size: 10px; font-weight: 700; }
.hero h1 { margin: 0; font-size: clamp(24px, 6vw, 31px); letter-spacing: -.06em; line-height: 1.35; font-weight: 700; }
.hero h1 em { color: #73799d; font-style: normal; }
.hero-description { max-width: 290px; margin: 12px 0 0; color: #666b81; font-size: 12px; line-height: 1.75; }
.hero-orbit { width: 148px; height: 148px; position: absolute; right: -28px; bottom: -39px; border: 1px solid rgba(93,100,144,.23); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { content: ''; position: absolute; inset: 15px; border: 1px solid rgba(93,100,144,.22); border-radius: 50%; }
.hero-orbit::after { inset: 34px; }
.orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 49px; height: 49px; border-radius: 50%; display: grid; place-items: center; background: #d8d9e9; color: #70779d; font-family: serif; font-size: 21px; }
.orbit-dot { position: absolute; z-index: 1; border-radius: 50%; }
.dot-one { width: 7px; height: 7px; background: var(--coral); left: 38px; top: 20px; }
.dot-two { width: 5px; height: 5px; background: #92a885; right: 20px; top: 49px; }
.dot-three { width: 6px; height: 6px; background: #a4a7cd; left: 49px; bottom: 12px; }

.daily-card { margin-top: 17px; padding: 22px 22px 19px; color: #f8f6f2; border-radius: 24px; background: var(--ink); box-shadow: 0 10px 25px rgba(32,40,71,.12); }
.daily-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.eyebrow-light { color: #b8bbd0; margin-bottom: 8px; }
.daily-card h2 { margin: 0; font-size: 19px; letter-spacing: -.04em; }
.daily-badge { flex-shrink: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 11px; color: #e5e2d5; font-size: 11px; }
.daily-message { margin: 15px 0 12px; color: #e4e5ed; font-size: 13px; line-height: 1.75; max-width: 390px; }
.daily-action { display: flex; gap: 9px; padding: 11px 12px; border-radius: 13px; background: rgba(255,255,255,.08); color: #f2ead4; font-size: 11px; line-height: 1.6; }
.sparkle { color: #d9c28e; font-size: 14px; flex-shrink: 0; }
.text-link { display: inline-flex; gap: 8px; margin-top: 15px; color: #d6d7e5; font-size: 11px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: #fff; }

.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 32px 2px 8px; }
.intro-row h2, .reading-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.055em; }
.intro-row .eyebrow, .reading-heading .eyebrow { margin-bottom: 7px; }
.free-pill { border-radius: 999px; padding: 7px 10px; background: #e6ebdb; color: #53634d; font-size: 10px; font-weight: 700; white-space: nowrap; }
.section-intro { margin: 0 2px 15px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.form-card { padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 5px 18px rgba(32,40,71,.035); }
.calendar-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calendar-fieldset legend { padding: 0; margin-bottom: 9px; color: #53596c; font-size: 12px; font-weight: 700; }
.segmented { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #f1f0ec; border-radius: 13px; }
.segment { display: block; cursor: pointer; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span { min-height: 37px; display: grid; place-items: center; border-radius: 10px; color: #74788a; font-size: 12px; font-weight: 600; transition: .18s ease; }
.segment input:checked + span { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(32,40,71,.08); }
.segment input:focus-visible + span { outline: 2px solid #73799d; outline-offset: 2px; }
.date-fields { margin-top: 18px; }
.field-label { display: block; margin-bottom: 8px; color: #53596c; font-size: 12px; font-weight: 700; }
.input { display: block; width: 100%; min-height: 47px; padding: 0 13px; color: var(--ink); border: 1px solid #e3e1dc; border-radius: 12px; background: #fff; outline: none; font-size: 14px; }
.input:focus { border-color: #8d92b4; box-shadow: 0 0 0 3px rgba(141,146,180,.13); }
.lunar-selects { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 7px; }
.select-input { padding: 0 9px; font-size: 12px; }
.field-hint { margin: 7px 0 0; color: #9294a1; font-size: 10px; line-height: 1.6; }
.check-row { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; color: #62677b; font-size: 11px; }
.check-row input { accent-color: #747a9c; width: 15px; height: 15px; }
.field-block { margin-top: 20px; }
.optional { color: #a0a0aa; font-weight: 400; margin-left: 4px; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 15px; padding: 11px 12px; border-radius: 12px; color: #626c5d; background: #f1f4ea; font-size: 10px; line-height: 1.55; }
.privacy-note span { color: #7f9670; }
.form-error { margin: -4px 0 12px; color: #b14141; font-size: 12px; }
.primary-button { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.primary-button:hover { background: #343c62; }
.primary-button:active { transform: scale(.99); }
.primary-button:focus-visible, .quiet-button:focus-visible { outline: 3px solid #a4a8cb; outline-offset: 2px; }

.reading-section { margin-top: 31px; }
.reading-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.quiet-button { padding: 8px 10px; border: 1px solid #dedde5; border-radius: 10px; background: transparent; color: #62677b; font-size: 10px; font-weight: 600; cursor: pointer; }
.reading-date { margin: 8px 0 13px; color: #8a8c99; font-size: 11px; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pillar-card { min-height: 115px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 11px 4px; border: 1px solid #e5e3dc; border-radius: 16px; background: var(--white); }
.pillar-card.is-empty { background: #f0eee9; border-style: dashed; color: #9a9aa2; }
.pillar-label { margin-bottom: 8px; color: #8a8d9c; font-size: 10px; }
.pillar-hanja { color: var(--ink); font-family: 'Noto Serif KR', 'Batang', serif; font-size: 24px; letter-spacing: .08em; }
.pillar-card.is-empty .pillar-hanja { font-size: 13px; letter-spacing: 0; }
.pillar-korean { margin-top: 5px; color: #787d94; font-size: 10px; }
.pillar-elements { margin-top: 6px; color: #a0a1aa; font-size: 9px; }
.fine-note { margin: 10px 1px 0; color: #9294a1; font-size: 10px; line-height: 1.65; }
.interpretation-card, .element-card, .why-card { margin-top: 14px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.interpretation-card { display: grid; grid-template-columns: 40px 1fr; gap: 11px; }
.card-icon { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: #ececf4; color: #747a9c; font-family: serif; font-size: 20px; }
.interpretation-card h3, .element-card h3 { margin: 0; color: var(--ink); font-size: 17px; letter-spacing: -.04em; }
.body-copy { margin: 8px 0 0; color: #666b7c; font-size: 12px; line-height: 1.8; }
.action-box { margin-top: 14px; padding: 12px 13px; border-radius: 13px; background: #f2f3e9; }
.action-label { color: #7b8869; font-size: 10px; font-weight: 700; }
.action-box p { margin: 5px 0 0; color: #4e5a4b; font-size: 11px; line-height: 1.7; }
.element-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.element-caption { color: #85899d; font-size: 10px; white-space: nowrap; }
.element-bars { display: grid; gap: 10px; margin-top: 17px; }
.element-row { display: grid; grid-template-columns: 45px 1fr 19px; gap: 8px; align-items: center; }
.element-name { color: #666b7c; font-size: 10px; }
.element-track { height: 7px; overflow: hidden; border-radius: 999px; background: #f0efeb; }
.element-fill { display: block; height: 100%; border-radius: inherit; min-width: 0; transition: width .25s ease; }
.element-value { text-align: right; color: #9698a2; font-size: 10px; }
.disclaimer { margin: 15px 3px 0; color: #999aa3; font-size: 10px; line-height: 1.7; }
.why-card { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; background: #eeede7; border: 0; }
.why-icon { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: #e0e4d2; color: #758267; }
.why-card h2 { margin: 1px 0 5px; font-size: 13px; }
.why-card p { margin: 0; color: #757a79; font-size: 10px; line-height: 1.7; }
.footer { padding: 25px 0 5px; text-align: center; color: #a0a0a6; font-size: 9px; line-height: 1.7; }
.brand-footer { font-size: 14px; margin-bottom: 6px; }
.brand-footer .brand-mark { width: 20px; height: 20px; transform: scale(.85); }
.footer p { margin: 3px 0; }
.bottom-nav { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
  .topbar { height: 60px; padding: 0 20px; }
  .page-shell { width: min(100% - 32px, 520px); padding-top: 20px; }
  .hero { min-height: 192px; padding: 21px 19px; border-radius: 23px; }
  .hero-copy { max-width: 290px; }
  .hero h1 { font-size: 26px; }
  .hero-description { max-width: 252px; font-size: 11px; }
  .hero-orbit { right: -45px; bottom: -48px; transform: scale(.88); }
  .daily-card { padding: 20px 18px 17px; border-radius: 21px; }
  .intro-row { margin-top: 29px; }
  .form-card { padding: 18px 15px 15px; }
  .pillar-grid { gap: 6px; }
  .pillar-card { min-height: 106px; }
  .pillar-hanja { font-size: 21px; }
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); background: rgba(255,254,250,.95); border-top: 1px solid #e8e5dd; backdrop-filter: blur(14px); }
  .nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #9596a0; text-decoration: none; font-size: 16px; }
  .nav-item small { font-size: 9px; }
  .nav-item.active { color: var(--ink); }
}

.premium-offer { margin-top: 25px; padding: 22px 20px 19px; border-radius: 23px; background: linear-gradient(145deg, #eee9e6, #e9e7f1 70%); border: 1px solid #e2dfe5; }
.premium-topline { display: flex; align-items: center; justify-content: space-between; color: #8d8799; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.premium-badge { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.58); color: #857c8b; font-size: 9px; letter-spacing: 0; }
.premium-kicker { margin: 22px 0 6px; color: #9b8290; font-size: 11px; font-weight: 700; }
.premium-offer h2 { margin: 0; color: #34354b; font-size: 24px; letter-spacing: -.055em; line-height: 1.3; }
.premium-description { margin: 11px 0 0; color: #747181; font-size: 12px; line-height: 1.7; }
.premium-features { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.premium-features span { padding: 7px 9px; border-radius: 999px; background: rgba(255,255,255,.55); color: #777183; font-size: 10px; }
.premium-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 15px; border-top: 1px solid rgba(98,88,111,.13); color: #85808d; font-size: 10px; }
.premium-price div { display: grid; gap: 4px; }
.premium-price strong { color: #39384e; font-size: 21px; letter-spacing: -.04em; }
.premium-price strong small { font-size: 11px; font-weight: 500; color: #807b89; }
.premium-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 15px; border: 0; border-radius: 13px; background: #4e4a65; color: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.premium-button:hover { background: #605b79; }
.premium-button:focus-visible { outline: 3px solid #a4a8cb; outline-offset: 2px; }
.premium-footnote { margin: 10px 0 0; color: #94909a; font-size: 9px; line-height: 1.6; }
.annual-report { margin-top: 22px; }
.report-hero { padding: 22px 19px; border-radius: 22px; color: #f9f7f3; background: #4e4a65; }
.report-hero .eyebrow { color: #d0cadd; }
.report-hero h2 { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: -.045em; }
.annual-theme-title { margin: 16px 0 5px; color: #e6dacb; font-size: 14px; font-weight: 700; }
.annual-theme-text { margin: 0; color: #e3dfe9; font-size: 12px; line-height: 1.75; }
.report-chapters { display: grid; gap: 8px; margin-top: 12px; }
.report-card { margin-top: 12px; padding: 17px 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.report-chapters .report-card { margin-top: 0; }
.report-card h3 { margin: 0; font-size: 14px; letter-spacing: -.03em; }
.report-card > p:not(.eyebrow) { margin: 8px 0 0; color: #727584; font-size: 11px; line-height: 1.8; }
.monthly-readings { margin-top: 10px; }
.month-detail { border-bottom: 1px solid #f0efeb; }
.month-detail:last-child { border-bottom: 0; }
.month-detail summary { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 12px 0; cursor: pointer; color: #55596b; font-size: 11px; font-weight: 600; list-style: none; }
.month-detail summary::-webkit-details-marker { display: none; }
.month-detail summary::after { content: '+'; color: #a5a2b0; }
.month-detail[open] summary::after { content: '−'; }
.month-symbol { margin-left: auto; color: #a19aa7; font-family: serif; font-size: 12px; font-weight: 400; }
.month-detail p { margin: 0 0 12px; color: #7a7d89; font-size: 11px; line-height: 1.7; }
.annual-actions { margin: 10px 0 0; padding-left: 18px; color: #727584; font-size: 11px; line-height: 1.8; }
.annual-actions li + li { margin-top: 6px; }
