:root {
  --ink: #171a18;
  --muted: #68716b;
  --line: #d9dfdb;
  --paper: #f5f7f5;
  --white: #ffffff;
  --green: #176b4d;
  --green-soft: #dfeee6;
  --coral: #d95d45;
  --coral-soft: #fae7e2;
  --yellow: #f1c84b;
  --yellow-soft: #fff4c7;
  --blue: #315f8f;
  --shadow: 0 18px 60px rgba(26, 40, 32, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif; font-size: 16px; line-height: 1.65; letter-spacing: 0; }
button, input, textarea, select { color: inherit; font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
.is-hidden { display: none !important; }
.topbar { height: 68px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; font-weight: 800; font-size: 18px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--green); border-radius: 6px; font-size: 15px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.text-button, .back-button { border: 0; background: none; padding: 8px; font-size: 14px; color: var(--muted); }
.text-button:hover, .back-button:hover { color: var(--ink); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); border-radius: 6px; font-size: 21px; }
.screen { display: none; min-height: calc(100vh - 68px); }
.screen.is-active { display: block; }
.compose-screen { padding: 72px 32px 88px; background: linear-gradient(90deg, #f5f7f5 0 64%, #edf2ee 64%); }
.compose-layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 480px); gap: 84px; align-items: center; min-height: 570px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.intro-copy h1 { max-width: 660px; margin: 0; font-size: 52px; line-height: 1.17; letter-spacing: 0; word-break: keep-all; }
.lede { max-width: 610px; margin: 24px 0 28px; color: var(--muted); font-size: 19px; word-break: keep-all; }
.promise-list { display: flex; flex-wrap: wrap; gap: 8px; }
.promise-list span, .condition-chips span { padding: 7px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.72); border-radius: 4px; font-size: 13px; }
.decision-form { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
label, .field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 750; }
input, textarea, select { width: 100%; border: 1px solid #bdc7c0; background: var(--white); border-radius: 6px; outline: none; }
input { height: 50px; padding: 0 14px; }
textarea { padding: 14px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,77,.12); }
#concernInput { min-height: 172px; font-size: 17px; }
.example-row { display: flex; gap: 7px; margin: 12px 0 20px; }
.example-row button { padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--muted); font-size: 13px; }
.primary-button, .secondary-button { min-height: 50px; border-radius: 6px; font-weight: 800; }
.primary-button { width: 100%; padding: 0 20px; border: 1px solid var(--green); color: #fff; background: var(--green); }
.primary-button:hover { background: #10583f; }
.primary-button:disabled { cursor: wait; opacity: .55; }
.primary-button span { margin-left: 8px; }
.secondary-button { padding: 0 16px; border: 1px solid var(--line); background: var(--white); }
.form-note, .modal-footnote { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.narrow-shell { width: min(840px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 90px; }
.confirm-screen { background: var(--white); }
.back-button { margin: 0 0 42px -8px; }
.confirm-screen h2, .section-heading h2 { margin: 0; font-size: 34px; line-height: 1.28; }
.interpretation { margin: 15px 0 30px; color: var(--muted); font-size: 17px; }
.confirm-form { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 16px; }
.choice-editor { padding: 22px; border: 2px solid var(--line); border-radius: 8px; }
.choice-a { border-top-color: var(--green); }
.choice-b { border-top-color: var(--coral); }
.choice-editor label { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.choice-editor input { height: auto; min-height: 64px; padding: 10px 0; border: 0; font-weight: 800; font-size: 19px; line-height: 1.4; }
.choice-editor input:focus { box-shadow: none; }
.choice-divider { display: grid; place-items: center; color: #8b938e; font-size: 12px; font-weight: 800; }
.condition-block { grid-column: 1 / -1; padding: 24px 0 8px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.condition-chips { display: flex; flex-wrap: wrap; gap: 7px; min-height: 34px; }
.condition-chips .empty { color: var(--muted); border-style: dashed; }
.condition-block label span { color: var(--muted); font-weight: 500; }
#contextInput { min-height: 84px; }
.confirm-form > .primary-button { grid-column: 1 / -1; margin-top: 8px; }
.loading-screen.is-active { display: grid; place-items: center; align-content: center; padding: 30px; text-align: center; background: var(--ink); color: #fff; }
.loading-screen .eyebrow { margin-top: 30px; color: #8ac9ae; }
.loading-screen h2 { margin: 0; max-width: 660px; font-size: 34px; }
.loading-screen p:last-child { color: #aeb8b1; }
.loading-orbit { width: 70px; height: 70px; border: 1px solid #475049; border-radius: 50%; position: relative; animation: spin 1.8s linear infinite; }
.loading-orbit span { width: 13px; height: 13px; border-radius: 50%; background: var(--yellow); position: absolute; top: -6px; left: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-screen { background: var(--paper); }
.result-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 100px; }
.result-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.result-concern { max-width: 720px; margin: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.direction-panel { padding: 34px 38px; background: var(--ink); color: #fff; border-radius: 8px; display: grid; grid-template-columns: 160px 1fr; gap: 30px; }
.direction-kicker { color: #9ca8a0; font-size: 13px; }
.direction-choice { display: block; margin-top: 8px; color: #9be0bf; font-size: 21px; font-weight: 850; word-break: keep-all; }
.confidence { display: inline-block; margin-top: 16px; padding: 5px 8px; color: var(--ink); background: var(--yellow); border-radius: 3px; font-size: 12px; font-weight: 800; }
.direction-panel h1 { margin: 0; font-size: 34px; line-height: 1.3; word-break: keep-all; }
.core-reason { margin: 14px 0 0; color: #bec7c1; font-size: 17px; }
.basis-section { display: grid; grid-template-columns: 1.2fr .8fr; border: 1px solid var(--line); border-top: 0; background: var(--white); }
.basis-section > div { padding: 28px 34px; }
.basis-section > div + div { border-left: 1px solid var(--line); }
.basis-section h3 { margin: 0 0 14px; font-size: 16px; }
.number-list { list-style: none; padding: 0; margin: 0; counter-reset: reason; }
.number-list li { counter-increment: reason; display: grid; grid-template-columns: 26px 1fr; gap: 8px; margin: 10px 0; }
.number-list li::before { content: counter(reason); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }
.assumption-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.locked-inline { color: var(--muted); font-size: 13px; }
.future-section { margin-top: 72px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 22px; }
.section-heading > p { max-width: 300px; margin: 0; color: var(--muted); text-align: right; }
.future-list { display: grid; gap: 18px; }
.future-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.future-card.is-recommended { border-color: var(--green); box-shadow: 0 8px 30px rgba(23,107,77,.09); }
.future-header { padding: 24px 28px; display: grid; grid-template-columns: 116px 1fr auto; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.future-number { color: var(--muted); font-size: 12px; font-weight: 800; }
.future-number strong { display: block; color: var(--ink); font-size: 28px; line-height: 1.1; }
.future-label { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.future-header h3 { margin: 0; font-size: 22px; line-height: 1.35; word-break: keep-all; }
.recommended-badge { padding: 6px 9px; background: var(--green-soft); color: var(--green); border-radius: 4px; font-size: 12px; font-weight: 800; }
.future-body { padding: 30px 28px 34px; }
.future-headline { max-width: 800px; margin: 0 0 14px; font-size: 25px; font-weight: 850; line-height: 1.4; word-break: keep-all; }
.day-in-life { max-width: 840px; margin: 0; color: #48504b; font-size: 17px; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 28px 0; background: var(--line); border: 1px solid var(--line); }
.timeline article { padding: 20px; background: var(--paper); }
.timeline time { color: var(--green); font-size: 12px; font-weight: 800; }
.timeline p { margin: 7px 0 0; font-size: 14px; line-height: 1.55; }
.emotion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.emotion-grid article { padding: 18px; border-left: 3px solid var(--line); background: #fafbfa; }
.emotion-grid article:nth-child(1) { border-color: var(--yellow); }
.emotion-grid article:nth-child(2) { border-color: var(--coral); }
.emotion-grid article:nth-child(3) { border-color: var(--blue); }
.emotion-grid h4 { margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.emotion-grid p { margin: 0; font-size: 14px; }
.gain-loss { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.gain-loss > div { padding: 18px 20px; background: var(--green-soft); }
.gain-loss > div:last-child { background: var(--coral-soft); }
.gain-loss h4 { margin: 0 0 8px; font-size: 13px; }
.gain-loss ul { margin: 0; padding-left: 18px; font-size: 14px; }
.turning-condition { margin: 20px 0 0; padding: 14px 16px; border: 1px dashed #aab6ae; color: var(--muted); font-size: 14px; }
.future-card.is-locked .future-header { border: 0; }
.future-card.is-locked { position: relative; background: #f0f2f0; }
.future-card.is-locked .future-header { min-height: 152px; padding-right: 160px; }
.lock-action { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); padding: 10px 14px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.what-if-section { margin-top: 72px; padding: 38px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: 8px; }
.what-if-head { display: flex; justify-content: space-between; gap: 30px; }
.what-if-head h2 { margin: 0; font-size: 34px; line-height: 1.25; }
.what-if-head h2 em, .modal h2 em { color: var(--coral); font-style: normal; }
.what-if-head > p { max-width: 390px; margin: 4px 0 0; color: var(--muted); }
.what-if-locked { margin-top: 28px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--yellow-soft); }
.what-if-locked p { margin: 0; }
.what-if-locked button { flex: 0 0 auto; }
.what-if-form { display: grid; grid-template-columns: 210px 1fr auto; gap: 10px; margin-top: 30px; }
.what-if-form select { height: 52px; padding: 0 12px; }
.what-if-form input { height: 52px; }
.what-if-form .primary-button { width: auto; min-width: 140px; }
.what-if-count { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.what-if-results { display: grid; gap: 16px; margin-top: 28px; }
.what-if-result { border-top: 1px solid var(--line); padding-top: 24px; }
.what-if-result h3 { margin: 0 0 5px; font-size: 20px; }
.what-if-verdict { margin: 0 0 18px; color: var(--green); font-weight: 750; }
.delta-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.delta-table th, .delta-table td { padding: 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.delta-table th { background: var(--paper); font-size: 12px; }
.causal-chain { display: flex; align-items: stretch; gap: 8px; margin-top: 16px; }
.causal-chain span { flex: 1; padding: 13px; background: var(--paper); font-size: 13px; }
.causal-chain b { align-self: center; color: var(--coral); }
.closing-section { margin-top: 40px; padding: 30px; background: var(--ink); color: #fff; text-align: center; }
.closing-section p { max-width: 760px; margin: 0 auto; font-size: 21px; font-weight: 750; }
.status-screen.is-active { display: grid; place-items: center; align-content: center; padding: 40px 20px; text-align: center; background: var(--white); }
.status-symbol { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 900; }
.status-screen h1 { margin: 0; font-size: 34px; }
.status-screen > p:not(.eyebrow) { color: var(--muted); }
.status-screen .primary-button { width: auto; margin-top: 15px; }
.legal-screen { background: var(--white); }
.legal-copy h1 { margin: 0 0 30px; }
.legal-copy h2 { margin-top: 32px; font-size: 20px; }
.legal-copy p, .legal-copy li { color: #49514c; }
.legal-copy .back-button { margin-bottom: 30px; }
footer { padding: 34px 32px; display: grid; grid-template-columns: 1fr auto; gap: 10px 30px; background: #e9edea; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer strong { margin-right: 10px; color: var(--ink); }
footer nav { display: flex; gap: 16px; }
footer p { grid-column: 1 / -1; margin: 0; }
.modal { width: min(520px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 36px; border: 0; border-radius: 8px; box-shadow: 0 24px 90px rgba(0,0,0,.28); overflow-y: auto; }
.modal::backdrop { background: rgba(14,18,15,.68); }
.modal-close { position: absolute; right: 18px; top: 14px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 29px; line-height: 1; }
.modal h2 { margin: 0; font-size: 31px; line-height: 1.3; }
.modal-copy { color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 9px; margin: 24px 0 18px; }
.price-row strong { font-size: 30px; }
.price-row span { color: var(--muted); font-size: 13px; }
.modal form { display: grid; gap: 10px; }
.modal form label:not(:first-child) { margin-top: 5px; }
.turnstile-box { min-height: 65px; margin: 6px 0; }
.form-error { min-height: 20px; margin: 0; color: #b53224; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); padding: 10px 16px; color: #fff; background: var(--ink); border-radius: 5px; opacity: 0; pointer-events: none; transition: .2s ease; font-size: 14px; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 820px) {
  .topbar { padding: 0 18px; }
  .compose-screen { padding: 42px 20px 64px; background: var(--paper); }
  .compose-layout { grid-template-columns: 1fr; gap: 34px; min-height: 0; }
  .intro-copy h1 { font-size: 38px; }
  .lede { font-size: 17px; }
  .decision-form { padding: 22px; }
  .confirm-form { grid-template-columns: 1fr; }
  .choice-divider { height: 24px; }
  .condition-block, .confirm-form > .primary-button { grid-column: 1; }
  .direction-panel { grid-template-columns: 1fr; gap: 14px; padding: 28px 24px; }
  .direction-panel h1 { font-size: 27px; }
  .basis-section { grid-template-columns: 1fr; }
  .basis-section > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section-heading, .what-if-head { display: block; }
  .section-heading > p { margin-top: 10px; text-align: left; }
  .future-header { grid-template-columns: 72px 1fr; padding: 20px; }
  .recommended-badge { grid-column: 2; justify-self: start; }
  .future-body { padding: 24px 20px; }
  .timeline, .emotion-grid { grid-template-columns: 1fr; }
  .future-card.is-locked .future-header { min-height: 190px; padding: 20px 20px 72px; }
  .lock-action { left: 20px; right: auto; top: auto; bottom: 18px; transform: none; }
  .what-if-section { padding: 28px 20px; }
  .what-if-locked { display: block; }
  .what-if-locked button { margin-top: 14px; }
  .what-if-form { grid-template-columns: 1fr; }
  .causal-chain { flex-direction: column; }
  .causal-chain b { transform: rotate(90deg); }
  footer { grid-template-columns: 1fr; padding: 28px 20px; }
  footer nav, footer p { grid-column: 1; }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .topbar { height: 60px; }
  .top-actions .text-button { font-size: 12px; padding: 6px 0; }
  .screen { min-height: calc(100vh - 60px); }
  .intro-copy h1 { font-size: 33px; }
  .promise-list span { font-size: 12px; }
  .example-row { flex-wrap: wrap; }
  .narrow-shell, .result-shell { width: min(100% - 28px, 1080px); }
  .confirm-screen h2, .section-heading h2, .what-if-head h2 { font-size: 27px; }
  .result-topline { display: block; }
  .result-topline .secondary-button { margin-top: 14px; }
  .basis-section > div { padding: 24px 20px; }
  .future-number strong { font-size: 22px; }
  .future-header h3 { font-size: 18px; }
  .future-headline { font-size: 21px; }
  .gain-loss { grid-template-columns: 1fr; }
  .what-if-section { margin-top: 52px; }
  .delta-table { font-size: 12px; }
  .delta-table th, .delta-table td { padding: 7px; }
  .modal { padding: 30px 20px 24px; }
  .modal h2 { font-size: 27px; }
}
