/* SignatureKit — site styles (no framework, no build step) */

:root {
  --accent: #4F46E5;
  --accent-dark: #4338CA;
  --ink: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--accent); }

/* ---------- header / hero ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.site-nav { font-size: 14px; }
.site-nav a { margin-left: 14px; text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--accent); }

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 10px;
  text-align: center;
}
.hero h1 { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.5px; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 620px; }
.hero .chips { margin-top: 12px; font-size: 13px; color: var(--accent-dark); }
.hero .chips span {
  display: inline-block;
  background: #EEF2FF;
  border-radius: 99px;
  padding: 3px 12px;
  margin: 3px 4px;
}

/* ---------- layout ---------- */

.app-grid {
  max-width: 1080px;
  margin: 24px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 880px) {
  .app-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

h2.section { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 18px 0 10px; }
h2.section:first-child { margin-top: 0; }

/* ---------- form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.field input, .field select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: 2px solid #C7D2FE;
  border-color: var(--accent);
}
.field input[type="color"] { padding: 2px; height: 38px; }

.logo-row { display: flex; gap: 8px; align-items: center; }
.logo-row input[type="file"] { font-size: 13px; }

.social-row { display: flex; gap: 8px; margin-bottom: 8px; }
.social-row select { width: 120px; flex: none; }
.social-row input { flex: 1; }

/* ---------- template grid ---------- */

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.tpl-card {
  position: relative;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 14px 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  text-align: center;
}
.tpl-card:hover { border-color: #C7D2FE; }
.tpl-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px #C7D2FE; }
.tpl-card.locked { color: #9CA3AF; background: #FAFAFA; }
.tpl-pro {
  position: absolute;
  top: 5px; right: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent-dark);
  background: #EEF2FF;
  border-radius: 4px;
  padding: 1px 5px;
}
.tpl-name { font-weight: 600; }

/* ---------- preview ---------- */

.preview-card { position: sticky; top: 16px; }
@media (max-width: 880px) { .preview-card { position: static; } }

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.dark-toggle { font-size: 13px; color: var(--muted); cursor: pointer; }
.dark-toggle input { vertical-align: middle; margin-right: 4px; }

#preview {
  width: 100%;
  height: 300px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.preview-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn-secondary { background: #EEF2FF; color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-big { flex: 1; min-width: 140px; }
.pro-tag {
  font-size: 10px;
  font-weight: 800;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
}

.tip { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* ---------- unlock panel ---------- */

.unlock-panel {
  display: none;
  margin-top: 14px;
  border: 1.5px solid #C7D2FE;
  background: #F5F7FF;
  border-radius: var(--radius);
  padding: 16px;
}
.unlock-panel.open { display: block; }
.unlock-panel h3 { margin: 0 0 4px; font-size: 16px; }
.unlock-panel p { margin: 4px 0; font-size: 13px; color: var(--muted); }
.unlock-row { display: flex; gap: 8px; margin: 10px 0; }
.unlock-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.lic-status { min-height: 18px; }
.lic-status code { background: #E9ECFF; padding: 1px 4px; border-radius: 4px; }
.unlock-buy a { font-weight: 600; }

/* ---------- FAQ / footer ---------- */

.faq { max-width: 760px; margin: 0 auto 40px; padding: 0 20px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 18px 20px 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.site-footer nav { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; margin: 0 8px; }
.site-footer a:hover { color: var(--accent); }

/* ---------- toast ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 50;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- pricing page ---------- */

.pricing-grid {
  max-width: 980px;
  margin: 28px auto 48px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 8px 30px rgba(79,70,229,0.12); }
.price-card .tier { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.price-card.featured .tier { color: var(--accent-dark); }
.price-card .amount { font-size: 34px; font-weight: 800; margin: 6px 0 2px; }
.price-card .amount small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 14px 0 18px; padding: 0; flex: 1; }
.price-card li { font-size: 14px; padding: 5px 0; color: #374151; }
.price-card li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.price-card li.no::before { content: "— "; color: #C4C9D4; font-weight: 400; }
.price-card .btn { width: 100%; }
.checkout-note { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---------- guide pages ---------- */

.guide {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.guide h1 { font-size: 26px; letter-spacing: -0.4px; margin-bottom: 6px; }
.guide .lede { color: var(--muted); font-size: 16px; margin-top: 0; }
.guide h2 { font-size: 19px; margin-top: 28px; }
.guide ol li, .guide ul li { margin-bottom: 8px; }
.guide .cta {
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 26px 0;
  font-size: 15px;
}
.guide .cta a { font-weight: 700; }

/* ---------- template gallery page ---------- */

.gallery-grid {
  max-width: 1080px;
  margin: 26px auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.gallery-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}
.gallery-head .free-badge {
  font-size: 10px;
  font-weight: 800;
  color: #15803D;
  background: #DCFCE7;
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.5px;
}
.gallery-card iframe {
  width: 100%;
  height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 12px;
}
.gallery-card .btn { text-align: center; display: block; text-decoration: none; font-size: 14px; }
.tpl-page-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--muted);
  font-size: 16px;
}

