@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --cream: #FFF8EC;
  --peach: #FFE4CF;
  --ink: #4A3426;
  --ink-soft: #7A6152;
  --accent: #BF4E26;
  --accent-dark: #9C3D1C;
  --line: #EBD3BC;
  --card: #FFFFFF;
  --radius: 22px;
  --shadow: 0 4px 0 var(--line);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 236, .92); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--peach); color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 16px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--peach); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--peach) 0%, var(--cream) 100%); padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.eyebrow { display: inline-block; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 700; color: var(--accent); }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.25; letter-spacing: -.02em; margin: 18px 0 16px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; max-width: 30em; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.2; }
.store-badge span { line-height: 1.25; }
.store-note { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }
.hero-art { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-art::before { content: ""; position: absolute; inset: 8% 4% 2%; background: #fff; border: 2px solid var(--line); border-radius: 50%; }
.hero-art img { position: relative; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

/* Sections */
section.block { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.35; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; }
.section-title p { margin: 0; color: var(--ink-soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; }
.feature img { width: 64px; height: 64px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.feature p { margin: 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; }

.story { background: var(--peach); }
.story-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; background: var(--cream); border: 2px solid var(--line); border-radius: 28px; padding: 28px 32px; box-shadow: var(--shadow); }
.story-row + .story-row { margin-top: 20px; }
.story-row:nth-child(even) { grid-template-columns: 1fr 220px; }
.story-row:nth-child(even) img { order: 2; }
.story-row h3 { font-size: 22px; margin: 0 0 8px; font-weight: 800; }
.story-row p { margin: 0; color: var(--ink-soft); }

.cta { text-align: center; }
.cta-card { background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: 40px 24px; box-shadow: var(--shadow); }
.cta-card h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; }
.cta-card p { margin: 0 0 24px; color: var(--ink-soft); }
.cta-card .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Document pages */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; line-height: 1.3; }
.doc .meta { color: var(--ink-soft); font-size: 15px; margin: 0 0 32px; }
.doc .paper { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.doc h2 { font-size: 21px; margin: 40px 0 12px; padding-top: 4px; font-weight: 800; scroll-margin-top: 80px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17.5px; margin: 24px 0 8px; font-weight: 700; }
.doc p, .doc li { font-size: 16.5px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc .toc { background: var(--cream); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 20px 16px 40px; margin: 0 0 8px; }
.doc .toc li { font-size: 15.5px; }
.doc .note { background: var(--cream); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 16px 0; font-size: 15.5px; }
.table-scroll { overflow-x: auto; margin: 12px 0 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.doc th, .doc td { border: 1.5px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.55; }
.doc th { background: var(--cream); font-weight: 700; }
.blank { background: #FFF1C2; padding: 0 4px; border-radius: 4px; }

/* Support */
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 0 20px; margin-bottom: 12px; box-shadow: 0 3px 0 var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ol, .faq details ul { margin: 0 0 18px; color: var(--ink-soft); font-size: 16px; }
.contact-card { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); margin-bottom: 40px; }
.contact-card h2 { margin: 0 0 6px; font-size: 21px; }
.contact-card p { margin: 0 0 4px; color: var(--ink-soft); }
.contact-card .mail { font-size: 19px; font-weight: 700; }

/* Footer */
.site-foot { border-top: 1.5px solid var(--line); background: var(--peach); padding: 36px 0 44px; font-size: 14px; color: var(--ink-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-foot nav a.strong { color: var(--accent); }
.site-foot p { margin: 2px 0; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .store-row { justify-content: center; }
  .hero-art { width: min(300px, 80%); grid-row: 1; }
  .features { grid-template-columns: 1fr 1fr; }
  .story-row, .story-row:nth-child(even) { grid-template-columns: 1fr; text-align: center; }
  .story-row img, .story-row:nth-child(even) img { order: 0; width: 180px; margin-inline: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-nav a { padding: 6px 8px; font-size: 14px; }
  .site-nav .hide-sm { display: none; }
  .features { grid-template-columns: 1fr; }
  section.block { padding: 52px 0; }
  .contact-card { grid-template-columns: 1fr; text-align: center; }
  .contact-card img { margin-inline: auto; width: 100px; }
}
