:root {
  --bg: #f5f1e8;
  --paper: #fffdf8;
  --ink: #27251f;
  --muted: #69645b;
  --line: #ded6c8;
  --accent: #183f38;
  --accent-soft: #e3eee9;
  --research: #8b5d18;
  --research-soft: #fff0ce;
  --held: #6f5967;
  --held-soft: #eee8ec;
  --danger: #9e2e2e;
  --shadow: 0 16px 45px rgba(50, 43, 30, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fbf7ed 0, var(--bg) 48%, #eee8da 100%);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.65;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.brand { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.04em; }
.beta-mark { color: var(--muted); font-size: 0.9rem; }
.page-shell { flex: 1 0 auto; width: min(1040px, calc(100% - 28px)); margin: 0 auto 80px; }
.hero { padding: 72px 10px 38px; }
.eyebrow { color: var(--accent); font-weight: 800; margin: 0 0 10px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, h4, h5, h6 { word-break: keep-all; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.13; letter-spacing: -0.055em; max-width: 820px; margin-bottom: 20px; }
h2 { margin: 8px 0 0; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -0.035em; }
h3 { letter-spacing: -0.025em; }
.hero > p:last-child { max-width: 760px; color: var(--muted); font-size: 1.05rem; }

.panel {
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 38px);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.section-heading > p { color: var(--muted); max-width: 430px; text-align: right; }
.status-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.status-badge.confirmed { background: var(--accent-soft); color: var(--accent); }
.status-badge.research { background: var(--research-soft); color: var(--research); }
.status-badge.held { background: var(--held-soft); color: var(--held); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
label > span, legend { display: block; font-weight: 750; margin-bottom: 8px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type="date"], input[type="time"], textarea {
  width: 100%;
  border: 1px solid #cfc6b6;
  border-radius: 14px;
  background: white;
  padding: 13px 14px;
  color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 3px solid rgba(24, 63, 56, 0.15); border-color: var(--accent); }
.choice { display: inline-flex; align-items: center; gap: 7px; margin: 5px 16px 5px 0; font-weight: 500; }
.field-note { font-size: 0.86rem; color: var(--muted); margin: 8px 0 0; }
.boundary-box, .notice-box { margin-top: 24px; padding: 18px; border-radius: 16px; background: #f7f2e8; border: 1px solid var(--line); }
.notice-box strong { display: block; margin-bottom: 6px; }
.notice-box p { margin-bottom: 0; color: var(--muted); }
.primary-button { border: 0; border-radius: 15px; padding: 15px 22px; color: white; background: linear-gradient(135deg, #6b35a6, #4a237c); box-shadow: 0 10px 24px rgba(76, 35, 126, 0.22); font-weight: 800; margin-top: 24px; min-width: 200px; }
.primary-button:hover { filter: brightness(1.08); }
.form-error { color: var(--danger); margin: 12px 0 0; min-height: 1.5em; font-weight: 700; }
.loading { display: flex; align-items: center; gap: 14px; }
.loading p { margin: 0; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillar-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px 12px; text-align: center; background: white; }
.pillar-card .location { color: var(--muted); font-size: 0.82rem; }
.pillar-card strong { display: block; font-size: 1.7rem; margin: 6px 0 2px; }
.pillar-card small { color: var(--muted); }
.result-summary { margin: 22px 0 0; padding: 16px 18px; background: var(--accent-soft); border-radius: 16px; }

.timeline { display: grid; gap: 14px; }
.timeline-card { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: white; }
.timeline-card.current { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.timeline-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.year-label { font-size: 1.25rem; font-weight: 850; }
.cycle-label { color: var(--muted); font-size: 0.9rem; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.topic-chip { padding: 6px 10px; border-radius: 999px; background: #f3eee4; font-size: 0.85rem; }
.timeline-note { color: var(--muted); margin: 0; }
.pressure-note { margin-top: 14px; padding: 13px 14px; border-radius: 14px; background: var(--research-soft); border: 1px solid #efd392; }
.pressure-note strong { color: var(--research); }
.pressure-note p { margin: 4px 0 0; }
.daewoon-note { font-size: 0.86rem; color: var(--muted); margin-top: 10px; }

.role-summary { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.role-theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 15px; }
.role-theme { padding: 16px; border-radius: 16px; background: #f6f1e7; }
.role-theme h3 { margin-bottom: 8px; }
.role-theme ul { margin: 0; padding-left: 20px; }
.occupation-box { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--accent-soft); }
.occupation-box ul { columns: 2; padding-left: 20px; }
.held-message { padding: 18px; background: var(--held-soft); border-radius: 16px; }
.disclosure ul { margin-bottom: 0; }

.survey-panel fieldset, .survey-panel > form > label { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
.survey-questions { display: grid; gap: 0; }
.score-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.score-row p { font-weight: 750; margin-bottom: 9px; }
.score-options { display: flex; flex-wrap: wrap; gap: 8px; }
.score-options label { padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-grid label { padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; }
.survey-message { margin-top: 13px; font-weight: 750; }
.export-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.export-links a { color: var(--accent); font-weight: 750; }

@media (max-width: 720px) {
  .topbar { padding: 0 16px; }
  .beta-mark { font-size: 0.74rem; }
  .hero { padding-top: 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > p { text-align: left; margin-top: 10px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-head { align-items: flex-start; flex-direction: column; }
  .occupation-box ul { columns: 1; }
}

/* V4.28: HTML hidden must override component display rules. */
[hidden] { display: none !important; }

.status-badge.current { background: #dceee9; color: #104e43; }
.current-focus { border-color: #b6d4cd; }
.current-title { margin-bottom: 20px; }
.current-title > span { color: var(--accent); font-weight: 850; }
.current-title h3 { font-size: 1.55rem; margin: 8px 0 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-section { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.detail-section h4 { margin: 0 0 8px; font-size: 1rem; }
.detail-section p { margin: 0; line-height: 1.72; color: #514b42; }
.coverage-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.coverage-summary > div { padding: 16px; border-radius: 16px; background: #f6f1e7; }
.coverage-summary strong, .coverage-summary span { display: block; }
.coverage-summary span { color: var(--muted); margin-top: 5px; }
.lifetime-bands { display: grid; gap: 12px; }
.life-band { border: 1px solid var(--line); border-radius: 20px; background: white; overflow: clip; }
.life-band > summary { list-style: none; cursor: pointer; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.life-band > summary::-webkit-details-marker { display: none; }
.life-band > summary > div { display: grid; gap: 5px; }
.life-band > summary strong { font-size: 1.12rem; }
.life-band > summary small { color: var(--muted); }
.age-label { color: var(--accent); font-weight: 900; }
.band-state { flex: 0 0 auto; font-size: 0.8rem; font-weight: 850; border-radius: 999px; padding: 7px 10px; }
.band-state.ready { color: var(--accent); background: var(--accent-soft); }
.band-state.locked { color: var(--held); background: var(--held-soft); }
.life-band[open] > summary { border-bottom: 1px solid var(--line); background: #fbf8f1; }
.band-body { padding: 22px; }
.band-body > h3 { font-size: 1.4rem; margin-bottom: 18px; }
.life-band.locked { opacity: 0.86; }
.locked-box { padding: 18px; border-radius: 16px; background: var(--held-soft); border: 1px solid #ded7d0; }
.locked-box p { margin-bottom: 8px; }
.year-details, .evidence-details { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: #faf7f0; }
.year-details > summary, .evidence-details > summary { cursor: pointer; padding: 14px 16px; font-weight: 850; }
.annual-list { display: grid; gap: 10px; padding: 0 14px 14px; }
.annual-item { padding: 16px; border-radius: 14px; background: white; border: 1px solid var(--line); }
.annual-item h5 { margin: 10px 0 6px; font-size: 1rem; }
.annual-item p { color: var(--muted); line-height: 1.65; margin-bottom: 8px; }
.annual-item small { color: var(--muted); }
.annual-head { display: flex; justify-content: space-between; gap: 12px; }
.annual-head span { color: var(--muted); }
.evidence-details pre { white-space: pre-wrap; word-break: break-word; font-size: 0.78rem; line-height: 1.5; margin: 0; padding: 0 16px 16px; }

@media (max-width: 720px) {
  .detail-grid, .coverage-summary { grid-template-columns: 1fr; }
  .life-band > summary { align-items: flex-start; }
  .annual-head { flex-direction: column; }
}

/* V4.30: easy-reading career, money and relationship story cards. */
.story-heading {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef6f2, #fbf6e9);
  border: 1px solid #cddfd8;
  margin-bottom: 16px;
}
.story-heading > span { color: var(--accent); font-size: 0.82rem; font-weight: 850; }
.story-heading h3 { margin: 8px 0 8px; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.32; }
.story-heading p { margin: 0; color: #4f4a42; line-height: 1.7; }
.current-story { background: linear-gradient(135deg, #e7f4ef, #fff8e7); }
.story-opening {
  margin: 0 0 18px;
  padding: 0 4px;
  font-size: 1.03rem;
  line-height: 1.82;
  color: #4e483f;
}
.fortune-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fortune-section { position: relative; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: white; overflow: hidden; }
.fortune-section::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #c6d9d3; }
.fortune-section.money::before { background: #d3b165; }
.fortune-section.relationship::before { background: #bca7ce; }
.fortune-section.pressure::before { background: #cc8a75; }
.fortune-section.opportunity::before { background: #7ea889; }
.fortune-section h4 { margin: 0 0 10px; font-size: 1.02rem; }
.fortune-section p { margin: 0; line-height: 1.76; color: #4f4941; }
.fortune-section.opportunity { grid-column: 1 / -1; background: #f3f7ef; }
.year-details-note { margin: 0; padding: 0 16px 14px; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.annual-item { padding: 20px; }
.annual-head > div { display: grid; gap: 5px; }
.annual-head strong { font-size: 1.08rem; }
.annual-head small { color: var(--muted); }
.transition-chip { align-self: flex-start; padding: 6px 9px; border-radius: 999px; background: #f5e6bd; color: #7b5715 !important; font-size: 0.78rem; font-weight: 850; }
.annual-item h5 { font-size: 1.15rem; margin: 16px 0 7px; }
.annual-one-line { margin: 0 0 14px !important; color: #39352f !important; font-weight: 650; }
.annual-fortune-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.annual-fortune-grid section { padding: 14px; border-radius: 14px; background: #f8f5ef; }
.annual-fortune-grid h6 { margin: 0 0 7px; font-size: 0.9rem; }
.annual-fortune-grid p { margin: 0; line-height: 1.65; color: #565047; }
.annual-tip { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); }
.annual-tip strong { display: block; margin-bottom: 5px; color: var(--accent); }
.annual-tip p { margin: 0; color: #3f4d47; }
.annual-evidence { margin-top: 10px; }
.annual-evidence > summary { cursor: pointer; color: var(--muted); font-size: 0.82rem; }
.annual-evidence p { margin: 7px 0 0; color: var(--muted); font-size: 0.8rem; }
.evidence-list { padding: 0 16px 16px; display: grid; gap: 8px; }
.evidence-list > div { display: grid; grid-template-columns: 145px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e5ded2; }
.evidence-list strong { font-size: 0.88rem; }
.evidence-list span { color: var(--muted); line-height: 1.55; }
.evidence-list p { margin: 5px 0 0; color: var(--muted); line-height: 1.65; }
.role-summary > .story-heading { margin-bottom: 14px; }
.role-theme { background: #f8f4ea; border: 1px solid var(--line); }
.role-theme > p { color: #514b42; line-height: 1.65; }
.field-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.field-chip-grid span { padding: 8px 11px; border-radius: 999px; background: white; border: 1px solid #c8d9d3; font-size: 0.88rem; }
.pressure-note small { display: block; margin-top: 7px; color: #7b633b; }

@media (max-width: 720px) {
  .fortune-grid, .annual-fortune-grid { grid-template-columns: 1fr; }
  .fortune-section.opportunity { grid-column: auto; }
  .evidence-list > div { grid-template-columns: 1fr; gap: 4px; }
}


.inline-feedback { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; }
.inline-feedback > strong { display: inline-block; margin-bottom: 4px; color: var(--ink); }
.inline-feedback > p { margin: 0 0 10px; color: var(--muted); }
.inline-feedback-options { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-feedback-options button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 12px; cursor: pointer; font: inherit; }
.inline-feedback-options button:hover, .inline-feedback-options button.selected { border-color: var(--accent); background: var(--accent-soft); }
.inline-feedback-status { display: block; min-height: 1.25em; margin-top: 8px; color: var(--accent); }

/* V4.39: varied fortune chapters and story-first annual cards. */
.fortune-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fortune-chip-row span { padding: 7px 11px; border: 1px solid #c9d9d3; border-radius: 999px; background: rgba(255,255,255,0.78); color: var(--accent); font-size: 0.84rem; font-weight: 800; }
.fortune-chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.fortune-chapter { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: #fff; overflow: hidden; }
.fortune-chapter::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #7aa494; }
.fortune-tone-1::before { background: #d0a758; }
.fortune-tone-2::before { background: #a992bd; }
.fortune-tone-3::before { background: #c67f6c; }
.fortune-tone-4::before { background: #7e9bb6; }
.fortune-label { display: inline-block; margin-bottom: 9px; color: var(--accent); font-size: 0.82rem; font-weight: 900; }
.fortune-chapter h4 { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.45; }
.fortune-chapter p { margin: 0; color: #514b42; line-height: 1.78; }
.annual-story-opening { margin: 8px 0 16px !important; color: #48423a !important; line-height: 1.75 !important; }
.annual-focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.annual-focus-grid section { padding: 15px; border-radius: 15px; background: #f8f5ef; }
.annual-focus-grid span { display: block; margin-bottom: 7px; color: var(--accent); font-size: 0.78rem; font-weight: 850; }
.annual-focus-grid h6 { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.45; }
.annual-focus-grid p { margin: 0; color: #575047; line-height: 1.65; }
#display-name + .field-note { display: block; margin-top: 7px; }

@media (max-width: 820px) {
  .fortune-chapter-grid, .annual-focus-grid { grid-template-columns: 1fr; }
}

/* V4.39: explain why fortunes change and distinguish core/supporting themes. */
input[type="text"] {
  width: 100%;
  border: 1px solid #cfc6b6;
  border-radius: 14px;
  background: white;
  padding: 13px 14px;
  color: var(--ink);
}

.flow-guide-panel { border-color: #c9dcd6; }
.flow-layer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flow-layer-grid article { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fbf8f1; }
.flow-layer-grid article > span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: white; font-weight: 900; margin-bottom: 12px; }
.flow-layer-grid strong { display: block; margin-bottom: 8px; }
.flow-layer-grid p { margin: 0; color: var(--muted); line-height: 1.68; }
.flow-guide-note { margin: 16px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); line-height: 1.72; }

.fortune-chip-row span.core { background: var(--accent); color: white; border-color: var(--accent); }
.fortune-chip-row span.supporting { background: white; }
.fortune-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.core-badge, .support-badge { font-size: 0.72rem; font-weight: 850; border-radius: 999px; padding: 4px 8px; }
.core-badge { background: var(--accent); color: white; }
.support-badge { background: #f1ece2; color: var(--muted); }
.fortune-chapter.core-fortune { border-width: 2px; border-color: #8eb7ac; background: #f9fcfb; }

.flow-reason-box { margin: 16px 0; padding: 18px; border: 1px solid #cbded8; border-radius: 18px; background: #f7fbf9; }
.flow-reason-box > h4 { margin: 0 0 14px; font-size: 1.08rem; }
.flow-reason-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.flow-reason-grid > div { padding: 14px; border-radius: 14px; background: white; border: 1px solid #dbe6e2; }
.flow-reason-grid strong { display: block; margin-bottom: 6px; color: var(--accent); }
.flow-reason-grid p { margin: 0; color: #555047; line-height: 1.65; }
.flow-change-chips { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.flow-change-chips > div { padding: 12px 14px; border-radius: 14px; background: #f5f0e6; }
.flow-change-chips strong, .flow-change-chips span { display: block; }
.flow-change-chips span { margin-top: 5px; color: var(--muted); }

.phase-story { margin: 16px 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fffdf8; }
.phase-title span { color: var(--accent); font-size: 0.8rem; font-weight: 850; }
.phase-title h4 { margin: 5px 0 14px; }
.phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.phase-grid article { padding: 15px; border-radius: 15px; background: #f7f2e8; }
.phase-grid article > span { display: inline-block; color: var(--accent); font-weight: 900; margin-right: 7px; }
.phase-grid article > strong { font-size: 0.86rem; }
.phase-grid p { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }

.phase-chip { align-self: flex-start; border-radius: 999px; padding: 6px 9px; background: #f2ede4; color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.annual-why { margin: 10px 0 13px; padding: 13px 14px; border-radius: 14px; background: #eef6f2; border-left: 4px solid var(--accent); }
.annual-why strong { display: block; margin-bottom: 4px; }
.annual-why p { margin: 0; color: #555047; }
.annual-focus-grid section.core { border: 2px solid #91b8ae; background: #f8fcfa; }
.annual-focus-grid section > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.annual-focus-grid section b { font-size: 0.7rem; border-radius: 999px; padding: 3px 7px; background: var(--accent); color: white; }

@media (max-width: 720px) {
  .flow-layer-grid, .flow-reason-grid, .flow-change-chips, .phase-grid { grid-template-columns: 1fr; }
}


/* V4.41 public beta shell. */
.brand a { color: inherit; text-decoration: none; }
.service-nav { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; margin: 0 20px; }
.service-nav-link { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 800; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.service-nav-link:hover, .service-nav-link:focus-visible { background: #f1ece2; color: var(--ink); }
.service-nav-link.active { background: var(--accent); color: #fff; }
.public-footer { width: min(1040px, calc(100% - 28px)); margin: -40px auto 48px; color: var(--muted); text-align: center; font-size: 0.88rem; }
.public-footer p { margin: 0; }
@media (max-width: 820px) {
  .topbar { position: static; flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .service-nav { order: 3; flex-basis: 100%; margin: 0; justify-content: flex-start; overflow-x: auto; }
  .beta-mark { margin-left: auto; }
}

/* V4.43: free result boundary and lifetime-map conversion preview. */
.free-current {
  border: 2px solid #8fb8ac;
  box-shadow: 0 18px 44px rgba(24, 63, 56, 0.09);
}
.free-current > summary {
  background: linear-gradient(135deg, #f4fbf8 0%, #fff9ed 100%);
}
.free-current > summary .band-state.ready {
  background: #183f38;
  color: #fff;
}
.roadmap-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 36px 0 16px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.roadmap-heading > div > span {
  color: #6b35a6;
  font-size: 0.82rem;
  font-weight: 900;
}
.roadmap-heading h3 {
  margin: 7px 0 0;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}
.roadmap-heading > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}
.lifetime-roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.life-band-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 92px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}
.life-band-preview.current {
  border-color: #8fb8ac;
  background: #f2faf7;
  box-shadow: inset 4px 0 0 #183f38;
}
.life-band-preview.paid-preview {
  position: relative;
  background: linear-gradient(135deg, #fffdf9 0%, #f8f4fb 100%);
}
.life-band-preview.paid-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.24));
}
.band-preview-copy {
  display: grid;
  gap: 4px;
}
.band-preview-copy strong {
  line-height: 1.45;
}
.preview-access {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.75rem;
  font-weight: 900;
}
.preview-access.free {
  color: #fff;
  background: #183f38;
}
.preview-access.locked {
  color: #5b2e91;
  background: #eee5f7;
}
.preview-access.locked::before {
  content: "🔒 ";
  font-size: 0.72rem;
}
.role-free-preview {
  position: relative;
  overflow: hidden;
}
.role-preview-lock {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed #b69dce;
  border-radius: 16px;
  background: linear-gradient(135deg, #faf7fd, #f3edf8);
}
.role-preview-lock > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
}
.role-preview-lock strong,
.role-preview-lock p {
  display: block;
  margin: 0;
}
.role-preview-lock p {
  margin-top: 4px;
  color: var(--muted);
}
.lifetime-product-panel {
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,0.16), transparent 26%),
    linear-gradient(135deg, #24143f 0%, #4c247d 58%, #6b35a6 100%);
  box-shadow: 0 24px 60px rgba(54, 27, 91, 0.24);
}
.product-preview-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 28px;
}
.product-preview-head h2 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.product-preview-head p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  line-height: 1.76;
}
.product-preview-head p strong {
  color: #fff1b6;
}
.product-badge {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff2c3;
  background: rgba(255,255,255,0.1);
  font-size: 0.78rem;
  font-weight: 900;
}
.product-count {
  display: grid;
  place-items: center;
  min-width: 126px;
  min-height: 126px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 28px;
  background: rgba(255,255,255,0.1);
  text-align: center;
}
.product-count strong {
  font-size: 2.7rem;
  line-height: 1;
}
.product-count span {
  margin-top: -10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}
.locked-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.locked-feature-grid article {
  min-height: 154px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
}
.locked-feature-grid article > span {
  display: inline-block;
  margin-bottom: 15px;
  color: #d9c3f0;
  font-size: 0.78rem;
  font-weight: 900;
}
.locked-feature-grid strong {
  display: block;
  color: #fff;
}
.locked-feature-grid p {
  margin: 7px 0 0;
  color: rgba(255,255,255,0.67);
  line-height: 1.6;
}
.product-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(8, 4, 18, 0.24);
}
.product-action-row > div {
  display: grid;
  gap: 3px;
}
.product-action-row > div span {
  color: rgba(255,255,255,0.62);
  font-size: 0.78rem;
}
.product-action-row > div strong {
  color: #fff;
}
.product-cta {
  border: 0;
  border-radius: 14px;
  padding: 15px 22px;
  color: #3c1d62;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}
.product-cta:hover {
  transform: translateY(-1px);
}
.product-safety-note {
  margin: 13px 2px 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.8rem;
}
.payment-preview-dialog {
  width: min(520px, calc(100% - 32px));
  border: 0;
  border-radius: 26px;
  padding: 30px;
  color: #27251f;
  background: #fffaf5;
  box-shadow: 0 32px 90px rgba(24, 12, 43, 0.35);
}
.payment-preview-dialog::backdrop {
  background: rgba(25, 14, 40, 0.55);
  backdrop-filter: blur(5px);
}
.payment-preview-dialog .product-badge {
  color: #5b2e91;
  border-color: #dccbea;
  background: #f3ecf9;
}
.payment-preview-dialog h2 {
  margin: 14px 0 10px;
}
.payment-preview-dialog > p {
  color: var(--muted);
}
.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #5b2e91;
  background: #f1e9f7;
  font-size: 1.35rem;
}
.dialog-check-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.dialog-check-list span {
  padding: 11px 13px;
  border-radius: 12px;
  background: #f7f2fa;
}
.secondary-button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  color: #fff;
  background: #5b2e91;
  font-weight: 850;
}

@media (max-width: 820px) {
  .roadmap-heading,
  .product-action-row {
    align-items: stretch;
    flex-direction: column;
  }
  .roadmap-heading {
    display: block;
  }
  .roadmap-heading > p {
    margin-top: 10px;
    max-width: none;
    text-align: left;
  }
  .lifetime-roadmap,
  .locked-feature-grid {
    grid-template-columns: 1fr;
  }
  .product-preview-head {
    grid-template-columns: 1fr;
  }
  .product-count {
    grid-template-columns: auto 1fr;
    place-items: center start;
    gap: 10px;
    min-width: 0;
    min-height: auto;
    padding: 16px 18px;
  }
  .product-count strong {
    font-size: 2rem;
  }
  .product-count span {
    margin: 0;
  }
  .product-action-row {
    display: grid;
  }
  .product-cta {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .life-band-preview {
    align-items: flex-start;
    min-height: 0;
  }
  .preview-access {
    font-size: 0;
    padding: 7px;
  }
  .preview-access.free::after {
    content: "공개";
    font-size: 0.7rem;
  }
  .preview-access.locked::before {
    content: "🔒";
    font-size: 0.8rem;
  }
  .locked-feature-grid article {
    min-height: 0;
  }
  .payment-preview-dialog {
    padding: 26px 20px 20px;
  }
}
