:root {
  --bg: #171009;
  --bg-soft: #20160d;
  --card: #251a10;
  --ink: #f6e9dc;
  --muted: #b99a7c;
  --faint: #8a6f57;
  --accent: #e8a75c;
  --accent-strong: #c56a3c;
  --line: rgba(246, 233, 220, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(23, 16, 9, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent-strong);
  margin-right: 9px;
  border-radius: 2px;
}
.pro-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #171009;
  background: var(--accent);
  border-radius: 4px;
  padding: 2px 6px;
  vertical-align: 3px;
  letter-spacing: 1px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
}
.site-nav a:hover { color: var(--ink); }

main { max-width: 880px; margin: 0 auto; padding: 0 22px; }
.hero { padding: 56px 0 30px; text-align: center; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 14px;
}
.hero-sub { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto; }

.tool-wrap { padding: 10px 0 30px; }
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.field { display: block; margin-bottom: 16px; }
.field span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
textarea, select, input[type="text"] {
  width: 100%;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
}
textarea:focus, select:focus, input:focus { outline: 2px solid var(--accent-strong); border-color: transparent; }
.row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-primary, .btn-outline {
  border: 0;
  border-radius: 9px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #b95a30; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--accent-strong); }
.btn-outline.disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline.disabled:hover { border-color: var(--line); }
.btn-outline.active { color: var(--accent); border-color: var(--accent-strong); cursor: default; }
.btn-outline.active:hover { border-color: var(--accent-strong); }
.limit-msg { color: var(--accent); font-size: 13px; }
.pay-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.pay-note a { color: var(--accent); }

.history { padding: 34px 0 10px; }
.history.hidden { display: none; }
.history h2, .contact h2 { font-family: Georgia, "Times New Roman", serif; text-align: center; margin-bottom: 18px; }
.history #historyList { list-style: none; padding: 0; margin: 16px 0 0; }
.history #historyList li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.history #historyList .h-date { color: var(--faint); font-size: 12px; white-space: nowrap; }
.history .btn-outline { font-size: 13px; padding: 8px 14px; }

.contact { padding: 20px 0 10px; text-align: center; }
.contact p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }
.contact-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.outputs { margin-top: 22px; display: grid; gap: 16px; }
.outputs.hidden { display: none; }
.out-card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 14px;
  overflow: hidden;
}
.out-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.out-label { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.4px; }
.out-copy {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.out-copy:hover { border-color: var(--accent-strong); }
.out-text { white-space: pre-wrap; margin: 0 0 10px; color: var(--ink); font-size: 15px; }
.out-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sig-toggle { font-size: 12px; color: var(--faint); cursor: pointer; user-select: none; }
.wm {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.13;
  pointer-events: none;
  transform: rotate(-8deg);
  letter-spacing: 0.5px;
}

.pricing { padding: 44px 0 10px; }
.pricing h2, .faq h2 { font-family: Georgia, "Times New Roman", serif; text-align: center; margin-bottom: 26px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.plan.featured { border-color: var(--accent-strong); }
.plan h3 { margin: 0 0 4px; font-size: 17px; }
.plan .price { font-size: 26px; font-weight: 700; margin: 4px 0 12px; }
.plan .price span { font-size: 13px; color: var(--faint); font-weight: 400; }
.plan ul { margin: 0 0 16px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.plan li { margin-bottom: 6px; }
.soon { font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 20px; padding: 2px 8px; vertical-align: 2px; }

.faq { padding: 34px 0 20px; max-width: 680px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); font-size: 15px; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 26px 28px 40px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}
.site-footer p { margin: 6px 0; }
.site-footer strong { color: var(--muted); }

.blog-article { max-width: 720px; margin: 0 auto; padding: 44px 22px 20px; }
.blog-article h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 4vw, 38px); line-height: 1.2; }
.blog-article h2 { font-family: Georgia, "Times New Roman", serif; margin-top: 34px; }
.blog-article p, .blog-article li { color: var(--muted); font-size: 16px; }
.blog-article a { color: var(--accent); }
.blog-article blockquote {
  border-left: 3px solid var(--accent-strong);
  margin: 18px 0;
  padding: 8px 16px;
  background: var(--card);
  border-radius: 0 8px 8px 0;
}
.back-link { display: inline-block; margin: 20px 0 0; color: var(--accent); text-decoration: none; }
