:root {
  --bg: #faf6f1;
  --ink: #1f1a17;
  --muted: #6b5e57;
  --accent: #b08968;
  --accent-dark: #8a6a4f;
  --card: #ffffff;
  --border: #e6dccf;
  --shadow: 0 6px 24px rgba(31, 26, 23, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Top nav ---------- */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.topnav .brand {
  font-family: "Georgia", serif;
  font-size: 36px;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1;
}
.topnav .brand span { color: var(--accent); }
.topnav nav { display: flex; gap: 28px; }
.topnav nav a {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.topnav nav a:hover, .topnav nav a.active { color: var(--ink); }
@media (max-width: 700px) {
  .topnav { flex-direction: column; gap: 14px; padding: 18px 16px; }
  .topnav .brand { font-size: 30px; }
  .topnav nav { gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 16px; }
}

/* ---------- Layout ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; }
.wrap-wide { max-width: 900px; margin: 0 auto; padding: 32px 20px 80px; }
h1 { font-family: "Georgia", serif; font-size: 38px; line-height: 1.15; margin: 24px 0 12px; letter-spacing: -0.5px; }
h2 { font-family: "Georgia", serif; font-size: 26px; line-height: 1.2; margin: 36px 0 10px; letter-spacing: -0.3px; }
h3 { font-family: "Georgia", serif; font-size: 20px; line-height: 1.25; margin: 24px 0 6px; }
p { margin: 0 0 14px; font-size: 16px; }
.sub { color: var(--muted); font-size: 17px; max-width: 540px; margin: 0 auto 28px; }
.social-proof { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.stars { color: #d4a056; letter-spacing: 2px; }

/* ---------- Hero (homepage only) ---------- */
.hero {
  text-align: center;
  padding: 32px 0 8px;
}
.hero-tagline {
  font-family: "Georgia", serif;
  font-style: italic;
  color: var(--accent-dark);
  font-size: 18px;
  margin-top: 6px;
}

/* ---------- Bottom brand image (closing visual) ---------- */
.brand-image-section {
  text-align: center;
  margin: 56px auto 12px;
}
.brand-image {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
}

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; background: #efe6da; padding: 6px; border-radius: 999px; max-width: 540px; margin: 0 auto 28px; }
.tab { flex: 1; text-align: center; padding: 10px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); transition: all .15s ease; font-size: 14px; }
.tab.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 540px) {
  .tabs { flex-direction: column; border-radius: 18px; max-width: 100%; }
  .tab { border-radius: 12px; }
}

/* ---------- Cards / forms ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
input[type="text"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 16px; font-family: inherit; background: #fbf8f4; color: var(--ink);
  transition: border-color .15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 8px 0 18px; }
.tier { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 10px; cursor: pointer; text-align: center; transition: all .15s ease; background: #fbf8f4; }
.tier:hover { border-color: var(--accent); }
.tier.selected { border-color: var(--accent); background: #fff; box-shadow: 0 4px 14px rgba(176, 137, 104, 0.18); }
.tier .price { font-size: 20px; font-weight: 700; font-family: "Georgia", serif; }
.tier .name { font-size: 12px; font-weight: 600; color: var(--accent-dark); margin: 2px 0 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.tier .blurb { font-size: 11px; color: var(--muted); line-height: 1.45; }
@media (max-width: 480px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn { display: block; width: 100%; padding: 14px 20px; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform .1s ease, background .15s ease; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #c9b9a8; cursor: not-allowed; }
.btn-inline { display: inline-block; width: auto; padding: 12px 22px; text-decoration: none; }
.btn-secondary { padding: 10px 16px; background: #fff; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---------- Output area ---------- */
.output { margin-top: 24px; padding: 22px; border-radius: 14px; background: #f7f0e5; border: 1px solid var(--border); white-space: pre-wrap; font-family: "Georgia", serif; font-size: 16px; line-height: 1.7; min-height: 80px; display: none; }
.output.visible { display: block; }
.output-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: -apple-system, sans-serif; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.output-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.loading { display: none; text-align: center; padding: 24px; color: var(--muted); }
.loading.visible { display: block; }
.spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid #efe6da; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 32px; padding: 20px; }
.err { color: #b94a48; background: #fff3f3; border: 1px solid #f3c8c8; padding: 12px; border-radius: 10px; margin-top: 12px; font-size: 14px; display: none; }
.err.visible { display: block; }

/* ---------- Testimonials ---------- */
.testimonials { margin-top: 40px; }
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 12px; }
.testimonial p { margin: 0 0 8px; font-style: italic; color: var(--ink); }
.testimonial .who { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Content pages (FAQ / Tips / Examples) ---------- */
.content-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 34px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.content-block h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--ink);
}
.content-block h3 {
  font-size: 23px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.3;
}
.content-block h2:first-child,
.content-block h3:first-child { margin-top: 0; }
.content-block p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: var(--ink);
}
.content-block p:last-child { margin-bottom: 0; }
.content-block p + h3 { margin-top: 34px; }

.example-block {
  background: #f7f0e5;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 18px 0 28px;
  font-family: "Georgia", serif;
  font-size: 17px;
  line-height: 1.85;
}
.example-meta {
  font-family: -apple-system, sans-serif;
  font-size: 13px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 14px;
}
.cta-strip {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  margin: 40px 0 16px;
}
.cta-strip h3 { margin: 0 0 10px; }
.cta-strip p { color: var(--muted); margin-bottom: 16px; }
