/* TenderEulogy — dignified, warm, calm */
:root {
  --bg: #faf7f1;
  --bg-card: #ffffff;
  --ink: #2b2a26;
  --ink-soft: #5c5a52;
  --line: #e6e0d4;
  --accent: #4a5d4e;      /* deep sage */
  --accent-dark: #3a4a3d;
  --gold: #a8874e;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 660px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo span { color: var(--accent); }
.header-note { font-size: 14px; color: var(--ink-soft); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(32px, 5.4vw, 48px);
  line-height: 1.18;
  max-width: 720px;
  margin: 0 auto 20px;
  letter-spacing: -0.01em;
}
.hero p.sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 32px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-quiet {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-quiet:hover { background: rgba(74, 93, 78, 0.07); transform: none; }
.btn-small { font-size: 15px; padding: 10px 22px; }
.under-cta { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

/* Trust row */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding: 22px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.trust li { list-style: none; }
.trust li::before { content: "· "; color: var(--gold); font-weight: 700; }
.trust li:first-child::before { content: ""; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: #f3efe6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.25;
  margin-bottom: 14px;
  text-align: center;
}
.section-sub { text-align: center; color: var(--ink-soft); max-width: 560px; margin: 0 auto 40px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.step { text-align: left; }
.step .num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 8px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; font-weight: 650; }
.step p { font-size: 15.5px; color: var(--ink-soft); }

/* Sample */
.sample {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 44px;
  max-width: 640px;
  margin: 36px auto 0;
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.85;
  color: #3a3833;
  position: relative;
}
.sample::before {
  content: "“";
  font-size: 64px;
  color: var(--gold);
  position: absolute;
  top: 8px;
  left: 20px;
  opacity: 0.35;
  font-family: var(--serif);
}
.sample .attribution {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 18px;
  font-style: normal;
}

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin: 40px auto 0; }
.plan {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: left;
}
.plan.featured { border: 2px solid var(--accent); position: relative; }
.plan.featured .flag {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 999px;
}
.plan h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.plan .price { font-size: 34px; font-weight: 700; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.plan ul { list-style: none; margin: 18px 0 24px; }
.plan ul li { padding: 5px 0 5px 26px; position: relative; font-size: 15.5px; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { width: 100%; text-align: center; }

/* FAQ */
.faq { max-width: 660px; margin: 36px auto 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
}
.faq summary {
  font-weight: 650;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
footer a { color: var(--ink-soft); }
footer .foot-links { margin-top: 6px; }
footer .foot-links a { margin: 0 10px; }

/* ===== Interview form ===== */
.form-page { padding: 48px 0 80px; }
.form-page h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(26px, 4.5vw, 36px);
  text-align: center;
  margin-bottom: 10px;
}
.form-page .lede { text-align: center; color: var(--ink-soft); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }
.qcard {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 18px;
}
.qcard label.qlabel { display: block; font-weight: 650; font-size: 16.5px; margin-bottom: 4px; }
.qcard .hint { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.qcard input[type="text"], .qcard textarea, .qcard select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fdfcf9;
  color: var(--ink);
}
.qcard textarea { min-height: 96px; resize: vertical; }
.qcard input:focus, .qcard textarea:focus, .qcard select:focus {
  outline: none;
  border-color: var(--accent);
}
.qcard .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-row label {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15px;
  cursor: pointer;
  background: #fdfcf9;
  user-select: none;
}
.choice-row input { display: none; }
.choice-row input:checked + span { font-weight: 650; }
.choice-row label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(74, 93, 78, 0.08);
}
.form-actions { text-align: center; margin-top: 30px; }
.optional-tag { font-weight: 400; color: var(--ink-soft); font-size: 13.5px; }

/* Preview block */
.preview-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 44px;
  margin: 30px 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.9;
  position: relative;
  overflow: hidden;
}
.preview-box .fadeout {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 130px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--bg-card) 85%);
}
.loading-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.loading-state .dot-pulse { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; color: var(--ink); }

/* Speech delivery page */
.speech-page { padding: 40px 0 90px; }
.speech-doc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 52px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.95;
  white-space: pre-wrap;
  margin: 24px 0;
}
.speech-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0; }
.tab-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.tab-row button {
  font-family: var(--sans);
  font-size: 14.5px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fdfcf9;
  cursor: pointer;
  color: var(--ink);
}
.tab-row button.active { border-color: var(--accent); background: rgba(74,93,78,0.08); font-weight: 650; }
.notice {
  background: #f3efe6;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 16px 0;
}

/* Legal pages */
.legal { padding: 48px 0 80px; }
.legal h1 { font-family: var(--serif); font-size: 30px; margin-bottom: 20px; }
.legal h2 { font-size: 19px; text-align: left; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15.5px; color: var(--ink-soft); }
.legal ul { padding-left: 22px; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .qcard .row { grid-template-columns: 1fr; }
  .sample { padding: 30px 26px; }
  .speech-doc { padding: 30px 24px; font-size: 17.5px; }
  .hero { padding: 48px 0 40px; }
}
@media print {
  header, footer, .speech-tools, .tab-row, .notice, .btn { display: none !important; }
  .speech-doc { border: none; font-size: 17pt; line-height: 2.1; padding: 0; }
  body { background: #fff; }
}
