:root {
  --ink: #18211d;
  --muted: #66706a;
  --paper: #f6f2ea;
  --cream: #ede6d7;
  --acid: #d9ff57;
  --orange: #ff6b35;
  --line: #cfc8ba;
  --white: #fffef9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header { max-width: 1180px; margin: auto; height: 82px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font: 700 26px "Noto Serif KR", Batang, Georgia, serif; letter-spacing: -2px; }
.brand span { background: var(--ink); color: var(--paper); padding: 2px 5px; margin-right: 2px; }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.nav-cta { border: 1px solid var(--ink); padding: 9px 15px; }

.hero { max-width: 1180px; margin: auto; min-height: 610px; padding: 80px 24px 70px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .17em; }
h1, h2 { font-family: "Noto Serif KR", Batang, Georgia, serif; font-weight: 700; letter-spacing: -.055em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(54px, 7vw, 88px); }
h1 em { font-style: normal; position: relative; z-index: 0; }
h1 em::after { content: ""; position: absolute; left: -2px; right: -5px; bottom: 7px; height: 16px; background: var(--acid); z-index: -1; transform: rotate(-1deg); }
h2 { font-size: clamp(38px, 5vw, 60px); }
.lede { max-width: 600px; font-size: 18px; color: var(--muted); margin: 30px 0; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 32px; padding: 15px 22px; background: var(--ink); color: white; font-weight: 700; border: 1px solid var(--ink); box-shadow: 5px 5px 0 var(--orange); transition: .2s ease; }
.primary-button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--orange); }
.microcopy { color: var(--muted); font-size: 12px; margin: 16px 0 0; }
.hero-card { height: 390px; position: relative; background-color: var(--cream); background-image: radial-gradient(var(--line) .8px, transparent .8px); background-size: 18px 18px; border: 1px solid var(--line); }
.paper-note { position: absolute; padding: 22px; background: var(--white); border: 1px solid var(--ink); box-shadow: 8px 8px 0 rgba(24,33,29,.15); font-size: 14px; }
.paper-note strong { display: block; margin-top: 10px; font-family: "Noto Serif KR", Batang, Georgia, serif; font-size: 30px; }
.note-one { left: 40px; top: 45px; transform: rotate(-4deg); }
.note-two { right: 35px; bottom: 58px; transform: rotate(3deg); background: var(--acid); }
.scribble { position: absolute; font: 700 80px "Noto Serif KR", Batang, Georgia, serif; left: 46%; top: 39%; transform: rotate(-8deg); }
.stamp { position: absolute; right: 22px; top: 24px; color: var(--orange); border: 3px solid var(--orange); padding: 8px; font-weight: 800; font-size: 13px; line-height: 1.1; transform: rotate(9deg); }

.calculator-section { background: var(--ink); color: white; padding: 90px 24px 110px; }
.section-heading { max-width: 780px; margin: 0 auto 50px; text-align: center; }
.section-heading > p:last-child { color: #aeb6b1; }
.section-heading.left { text-align: left; margin-left: 0; }
.calculator-shell { max-width: 1100px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #49524d; }
.input-panel { padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; background: #202a25; }
label > span:first-child { display: block; font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.input-wrap { display: flex; align-items: center; background: #111713; border: 1px solid #49524d; }
.input-wrap:focus-within { border-color: var(--acid); }
.input-wrap input { width: 100%; padding: 13px 10px 13px 14px; color: white; border: 0; outline: 0; background: transparent; font-weight: 700; }
.input-wrap b { padding-right: 13px; color: #aeb6b1; font-size: 13px; white-space: nowrap; }
label small { display: block; margin-top: 7px; color: #8e9992; font-size: 11px; }
.result-panel { background: var(--acid); color: var(--ink); padding: 42px; }
.result-kicker { margin: 0; font-size: 13px; font-weight: 800; }
.main-result { display: flex; align-items: baseline; gap: 8px; padding: 14px 0 26px; border-bottom: 2px solid var(--ink); }
.main-result span { font: 700 clamp(39px, 5vw, 58px) "Noto Serif KR", Batang, Georgia, serif; letter-spacing: -.06em; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 25px 0; }
.result-grid div { display: flex; flex-direction: column; }
.result-grid span { font-size: 12px; }
.result-grid strong { font-size: 18px; margin-top: 4px; }
.result-note { display: flex; gap: 12px; background: rgba(255,255,255,.65); padding: 15px; font-size: 12px; }
.result-note p { margin: 0; }
.secondary-button { width: 100%; margin-top: 18px; padding: 13px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 700; }
.secondary-button:hover { background: var(--ink); color: white; }

.guide { max-width: 1180px; margin: auto; padding: 110px 24px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.guide-grid article { padding: 28px 28px 20px 0; border-right: 1px solid var(--line); }
.guide-grid article + article { padding-left: 28px; }
.guide-grid article:last-child { border-right: 0; }
.guide-grid article > span { color: var(--orange); font-weight: 800; font-size: 12px; }
.guide h3 { margin: 20px 0 10px; font: 700 27px "Noto Serif KR", Batang, Georgia, serif; }
.guide article p { color: var(--muted); font-size: 14px; }
.tool-link-row { margin: 34px 0 0; text-align: right; }
.text-link { display: inline-block; border-bottom: 2px solid var(--orange); font-weight: 800; }

.tool-intro { max-width: 1180px; margin: auto; padding: 90px 24px 75px; }
.tool-intro .lede { max-width: 720px; }
.tool-calculator { padding-top: 75px; }
.tool-explainer { max-width: 1080px; margin: auto; padding: 100px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.tool-explainer p { color: var(--muted); }
.tool-explainer strong { color: var(--ink); }
.compact-pack { padding-top: 55px; padding-bottom: 55px; }

.pack { max-width: 1180px; margin: 0 auto 110px; padding: 70px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; background: #e6ddd0; border: 1px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.pack-copy > p:not(.eyebrow) { color: var(--muted); max-width: 600px; }
.pack ul { list-style: none; padding: 0; margin-top: 28px; }
.pack li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pack li::before { content: "✓"; color: var(--orange); font-weight: 800; margin-right: 10px; }
.product-card { background: var(--white); border: 1px solid var(--ink); padding: 26px; }
.product-label { font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.folder-art { height: 190px; margin: 25px 0; background: var(--orange); border: 1px solid var(--ink); padding: 28px; display: flex; align-items: flex-end; justify-content: space-between; color: var(--ink); clip-path: polygon(0 16%, 36% 16%, 42% 0, 100% 0, 100% 100%, 0 100%); }
.folder-art span { font: 700 72px "Noto Serif KR", Batang, Georgia, serif; line-height: 1; }
.folder-art small { font-weight: 700; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); }
.price-row strong { font-size: 26px; }
.full { display: flex; }
.product-card > small { display: block; text-align: center; margin-top: 13px; color: var(--muted); }
.product-detail-link { display: block; margin-top: 16px; text-align: center; text-decoration: underline; font-size: 13px; font-weight: 700; }

.product-page-hero { max-width: 1180px; margin: auto; padding: 85px 24px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.product-page-hero h1 { font-size: clamp(48px, 6vw, 76px); }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.product-cover-frame { margin: 0; padding: 14px; background: var(--white); border: 1px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); transform: rotate(1deg); }
.product-cover-frame img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.product-proof { max-width: 1180px; margin: 0 auto 100px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.product-proof div { padding: 25px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; }
.product-proof div:last-child { border-right: 0; }
.product-proof strong { font: 700 27px "Noto Serif KR", Batang, Georgia, serif; }
.product-proof span { color: var(--muted); font-size: 12px; }
.product-contents { max-width: 1180px; margin: auto; padding: 0 24px 110px; }
.contents-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.contents-grid article { min-height: 210px; padding: 28px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.contents-grid article > span { color: var(--orange); font-weight: 800; font-size: 12px; }
.contents-grid h3 { margin: 25px 0 10px; font: 700 24px "Noto Serif KR", Batang, Georgia, serif; }
.contents-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.contents-grid .format-card { background: var(--acid); }
.buy-box { margin-top: 40px; padding: 30px; background: var(--ink); color: white; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; }
.buy-box > div:first-child { display: flex; flex-direction: column; }
.buy-box strong { font: 700 46px "Noto Serif KR", Batang, Georgia, serif; }
.buy-box small { color: #aeb6b1; }
.buy-box .primary-button { background: var(--acid); color: var(--ink); }
.buy-box > div:last-child > small { display: block; text-align: center; margin-top: 12px; }
.preview-section { background: #e6ddd0; padding: 100px max(24px, calc((100% - 1132px) / 2)); }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.preview-grid blockquote { margin: 0; min-height: 190px; padding: 28px; background: var(--white); border: 1px solid var(--ink); }
.preview-grid span { color: var(--orange); font-size: 12px; font-weight: 800; }
.preview-grid p { font: 700 20px "Noto Serif KR", Batang, Georgia, serif; }
.fit-section { max-width: 1080px; margin: auto; padding: 110px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.fit-section ul { list-style: none; margin: 0; padding: 0; }
.fit-section li { padding: 17px 0; border-bottom: 1px solid var(--line); }
.fit-section li::before { content: "✓"; color: var(--orange); margin-right: 10px; font-weight: 800; }
.purchase-faq { max-width: 840px; margin: auto; padding: 0 24px 110px; }
.purchase-faq details { border-top: 1px solid var(--ink); padding: 22px 4px; }
.purchase-faq details:last-child { border-bottom: 1px solid var(--ink); }
.purchase-faq summary { cursor: pointer; font-weight: 700; }
.purchase-faq details p { color: var(--muted); }

.faq { max-width: 840px; margin: 0 auto; padding: 20px 24px 110px; }
.faq details { border-top: 1px solid var(--ink); padding: 22px 4px; }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); font-size: 14px; }
footer { padding: 55px 24px; text-align: center; background: var(--ink); color: white; }
footer p { color: #aeb6b1; }
footer div { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin: 30px 0; font-size: 13px; }
footer > small { color: #7c8981; }
#toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); padding: 12px 18px; background: var(--orange); color: var(--ink); border: 1px solid var(--ink); font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.article-page { max-width: 780px; margin: auto; padding: 75px 24px 120px; }
.article-page .article-label { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.article-page h1 { font-size: clamp(46px, 7vw, 70px); margin: 12px 0 24px; }
.article-page .article-lede { font-size: 20px; color: var(--muted); border-bottom: 1px solid var(--ink); padding-bottom: 35px; }
.article-page h2 { font-size: 34px; margin: 58px 0 18px; letter-spacing: -.035em; }
.article-page h3 { font: 700 24px "Noto Serif KR", Batang, Georgia, serif; margin-top: 34px; }
.article-page p, .article-page li { color: #46504a; }
.article-page li { margin: 8px 0; }
.article-page .formula { background: var(--ink); color: white; padding: 28px; margin: 30px 0; font: 700 21px "Noto Serif KR", Batang, Georgia, serif; text-align: center; }
.article-page .example { background: #e8e0d3; border-left: 5px solid var(--orange); padding: 20px 24px; margin: 26px 0; }
.article-page .example p { margin: 6px 0; }
.article-page .article-cta { margin-top: 65px; padding: 38px; background: var(--acid); border: 1px solid var(--ink); text-align: center; }
.article-page .article-cta h2 { margin: 0 0 12px; }
.article-page .article-cta p { color: var(--ink); }
.article-meta { color: var(--muted); font-size: 13px; }
.wide-article { max-width: 980px; }
.table-scroll { overflow-x: auto; margin: 28px 0 12px; border: 1px solid var(--ink); }
.rate-table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--white); font-size: 14px; }
.rate-table th, .rate-table td { padding: 17px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.rate-table thead th { background: var(--ink); color: white; font-size: 12px; }
.rate-table th:first-child { text-align: left; }
.rate-table tr:last-child th, .rate-table tr:last-child td { border-bottom: 0; }
.rate-table th:last-child, .rate-table td:last-child { border-right: 0; }
.rate-table .highlight-row { background: var(--acid); }
.table-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.dual-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 30px 0; }
.secondary-link { border-bottom: 2px solid var(--ink); font-weight: 800; }
.message-sample { margin: 28px 0 10px; padding: 26px 28px; background: var(--white); border: 1px solid var(--ink); box-shadow: 7px 7px 0 var(--acid); }
.message-sample p { margin: 0 0 14px; }
.message-sample p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-card { height: 330px; }
  .calculator-shell, .pack, .product-page-hero, .fit-section { grid-template-columns: 1fr; }
  .product-proof { grid-template-columns: 1fr 1fr; margin-left: 24px; margin-right: 24px; }
  .product-proof div:nth-child(2) { border-right: 0; }
  .product-proof div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .contents-grid, .preview-grid { grid-template-columns: 1fr; }
  .buy-box { grid-template-columns: 1fr; gap: 24px; }
  .tool-explainer { grid-template-columns: 1fr; gap: 24px; }
  .input-panel { grid-template-columns: 1fr; padding: 25px; }
  .result-panel { padding: 28px 24px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid article, .guide-grid article + article { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .pack { margin-left: 16px; margin-right: 27px; padding: 35px 24px; gap: 38px; }
  .article-page .article-cta { padding: 30px 20px; }
  .tool-link-row { text-align: left; }
}

@media (max-width: 440px) {
  h1 { font-size: 49px; }
  .hero-card { height: 290px; }
  .note-one { left: 18px; top: 35px; }
  .note-two { right: 16px; bottom: 35px; }
  .main-result span { font-size: 37px; }
  .result-grid { grid-template-columns: 1fr; gap: 13px; }
  .product-proof { grid-template-columns: 1fr; }
  .product-proof div { border-right: 0; border-bottom: 1px solid var(--ink); }
  .product-proof div:last-child { border-bottom: 0; }
}
