/* Retone 랜딩 — 에디토리얼/잉크 톤. 브랜드 = 틸 세리프 "Re✦tone" */

:root {
  --ink: #10201e;
  --ink-soft: #3d5350;
  --ink-faint: #6b7f7c;
  --paper: #faf8f3;
  --paper-warm: #f3efe6;
  --teal: #0d7d72;
  --teal-deep: #0a5f57;
  --teal-wash: #e3f0ee;
  --gold: #b98b2f;
  --line: #d9d2c3;
  --radius: 14px;
  --serif: "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

/* 종이 질감 — 미세 노이즈 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ── 헤더 ── */
header {
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  color: var(--teal-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo .star { color: var(--gold); font-style: normal; font-size: 0.75em; vertical-align: 0.15em; }

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  margin-left: 26px;
  font-weight: 500;
}
nav a:hover { color: var(--teal-deep); }

/* ── 히어로 ── */
.hero { padding: 84px 0 60px; position: relative; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(38px, 6.5vw, 64px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 17ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
  position: relative;
  white-space: nowrap;
}
/* 손그림 밑줄 */
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  bottom: 0.02em;
  width: 104%;
  height: 0.28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 Q 50 2 100 8 T 197 6' fill='none' stroke='%23b98b2f' stroke-width='4' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

.hero p.lead {
  margin-top: 26px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 54ch;
}

.cta-row { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--teal-deep);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(10, 95, 87, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(10, 95, 87, 0.6); }
.btn-ghost {
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

.hero .note { margin-top: 16px; font-size: 13.5px; color: var(--ink-faint); }

/* 히어로 데모 — 컴포저 목업 */
.demo {
  margin-top: 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(16, 32, 30, 0.25);
  overflow: hidden;
}
.demo-bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid #eee9dd;
}
.demo-bar span { width: 11px; height: 11px; border-radius: 50%; background: #e4ddcc; }
.demo-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.demo-left { padding: 28px; border-right: 1px solid #eee9dd; }
.demo-left .who { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.demo-left .avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), #6cc4b8); }
.demo-left .draft { font-size: 15.5px; color: var(--ink-soft); }
.demo-left .rebtn {
  margin-top: 18px;
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-wash);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
}
.demo-right { padding: 22px; background: #fdfcf9; }
.tone-card {
  border: 1px solid #e7e1d2;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.tone-card b {
  display: inline-block;
  font-size: 11px;
  color: var(--teal-deep);
  background: var(--teal-wash);
  border-radius: 999px;
  padding: 1px 9px;
  margin-bottom: 6px;
}
.tone-card.pick { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 125, 114, 0.12); }

/* ── 섹션 공통 ── */
section { padding: 72px 0; }
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.section-lead { margin-top: 14px; color: var(--ink-soft); max-width: 58ch; }

/* 특징 3열 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.feature .glyph {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 30px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 14px;
}
.feature h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ── 가격 ── */
.pricing { background: var(--paper-warm); border-block: 1px solid var(--line); text-align: center; }
.pricing .section-lead { margin-inline: auto; }
.pricing .note { text-align: center; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 44px auto 0; max-width: 860px; text-align: left; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
}
.plan.cloud { border: 2px solid var(--teal); box-shadow: 0 24px 48px -24px rgba(10, 95, 87, 0.35); }
.plan .tag {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--teal-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 13px;
}
.plan h3 { font-family: var(--serif); font-size: 21px; }
.plan .price { margin: 14px 0 4px; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-faint); }
.plan .sub { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 20px; }
.plan ul { list-style: none; margin-bottom: 8px; }
.plan li { padding: 7px 0 7px 26px; font-size: 14.5px; color: var(--ink-soft); position: relative; }
.plan li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold); font-size: 12px; }

/* ── 상품 안내 페이지 ── */
.prod-list { display: grid; gap: 18px; }
.prod {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.prod.free { background: var(--paper-warm); }
.prod-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap; margin-bottom: 12px;
}
.prod-tag {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--teal-deep); background: var(--teal-wash);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.prod-head h3 { font-family: var(--serif); font-size: 21px; }
.prod-price { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.prod-price small { font-size: 13.5px; font-weight: 500; color: var(--ink-faint); }
.prod-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.prod-spec { list-style: none; }
.prod-spec li {
  position: relative; padding: 6px 0 6px 20px;
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.65;
}
.prod-spec li::before {
  content: ""; position: absolute; left: 3px; top: 15px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.prod-spec a { color: var(--teal-deep); }

.policy-box {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; margin-top: 18px;
}
.policy-box h3 { font-size: 16.5px; margin: 22px 0 8px; }
.policy-box h3:first-child { margin-top: 0; }
.policy-box p { font-size: 14.5px; color: var(--ink-soft); }
.policy-box a { color: var(--teal-deep); }
.policy-note { margin-top: 22px; font-size: 13.5px; color: var(--ink-faint); }

/* ── 프라이버시 ── */
.privacy-band { text-align: center; }
.privacy-band h2 { max-width: 24ch; margin-inline: auto; }
.privacy-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; text-align: left; }
.pcol { border-top: 3px solid var(--teal); background: #fff; border-radius: 0 0 var(--radius) var(--radius); padding: 22px; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pcol h3 { font-size: 16px; margin-bottom: 8px; }
.pcol p { font-size: 14px; color: var(--ink-soft); }

/* ── FAQ ── */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::after { content: "＋"; color: var(--gold); font-size: 19px; flex-shrink: 0; }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); font-size: 15px; max-width: 70ch; }
.faq .list-head { margin-top: 40px; }

/* ── 푸터 ── */
footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 56px;
  font-size: 13px;
  color: var(--ink-faint);
}
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--teal-deep); }
.biz { margin-top: 18px; line-height: 1.9; }

/* ── 문서 페이지 (약관/개인정보) ── */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 24px 90px; position: relative; z-index: 2; }
.doc h1 { font-family: var(--serif); font-size: 32px; margin-bottom: 6px; }
.doc .updated { color: var(--ink-faint); font-size: 13.5px; margin-bottom: 36px; }
.doc h2 { font-size: 20px; margin: 38px 0 12px; }
.doc h3 { font-size: 16.5px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 15px; color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; color: var(--ink-soft); }
.doc th { background: var(--paper-warm); color: var(--ink); }
.doc .back { display: inline-block; margin-bottom: 28px; color: var(--teal-deep); text-decoration: none; font-weight: 600; font-size: 14px; }

/* 등장 애니메이션 */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .lead, .hero .cta-row, .hero .note { animation: rise 0.7s ease both; }
.hero .lead { animation-delay: 0.12s; }
.hero .cta-row { animation-delay: 0.22s; }
.hero .note { animation-delay: 0.3s; }
.demo { animation: rise 0.8s 0.34s ease both; }

@media (max-width: 800px) {
  .features, .privacy-cols, .plans { grid-template-columns: 1fr; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-left { border-right: none; border-bottom: 1px solid #eee9dd; }
  nav a { margin-left: 16px; }
}
