/* 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; }
}

/* --- Always-reachable preview CTA on the interview page ---
   The interview is long by design (it is an interview). This keeps the
   reward one tap away at any scroll depth instead of four screens down. */
.lede-note{
  text-align:center;
  max-width:520px;
  margin:-28px auto 34px;
  font-size:15px;
  color:var(--ink-soft);
}
.sticky-cta{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:40;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:rgba(250,247,241,.94);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-top:1px solid var(--line);
}
.sticky-cta .btn{
  width:100%;
  max-width:420px;
  margin:0;
}
.sticky-cta-note{
  font-size:13px;
  color:var(--ink-soft);
}
/* Keep the last question clear of the bar. */
#interview{ padding-bottom:132px; }
/* The in-flow button at the end of the form would now be a duplicate. */
#interview .form-actions{ display:none; }

@media (prefers-reduced-motion:no-preference){
  .sticky-cta{ transition:transform .2s ease; }
}
.need-memory{
  margin:0 0 4px;
  max-width:420px;
  text-align:center;
  font-size:13.5px;
  line-height:1.45;
  color:var(--accent-dark);
}

/* --- Homepage conversion: sample teaser + always-reachable CTA ---
   Clarity, 33 real homepage views: 10 taps total, only 4 on a CTA, and 58%
   never scrolled as far as the pricing section. */
.sample .sample-body{
  position:relative;
  max-height:190px;
  overflow:hidden;
}
.sample .sample-fade{
  position:absolute;
  left:0; right:0; bottom:0;
  height:110px;
  background:linear-gradient(to bottom, rgba(255,255,255,0), var(--bg-card) 88%);
  pointer-events:none;
}
.sample-cta{
  max-width:640px;
  margin:22px auto 0;
  text-align:center;
}
.sample-cta p{
  color:var(--ink-soft);
  font-size:16px;
  margin:0 0 18px;
}

.home-sticky{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:40;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:rgba(250,247,241,.94);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-top:1px solid var(--line);
  transform:translateY(115%);
  visibility:hidden;
  transition:transform .22s ease, visibility .22s;
}
.home-sticky.visible{
  transform:none;
  visibility:visible;
}
.home-sticky .btn{
  width:100%;
  max-width:420px;
  margin:0;
}
.home-sticky-note{
  font-size:13px;
  color:var(--ink-soft);
}
@media (prefers-reduced-motion:reduce){
  .home-sticky{ transition:none; }
}

/* --- Paywall: make it visible that the eulogy continues ---
   The free preview is now 4-5 sentences. These blurred bars are a neutral
   placeholder for the locked remainder, not rendered text. */
.locked-rest{
  position:relative;
  background:var(--bg-card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px 44px 34px;
  margin:0 0 18px;
  overflow:hidden;
}
.locked-lines{ display:flex; flex-direction:column; gap:14px; filter:blur(4px); opacity:.4; }
.locked-lines span{ display:block; height:11px; border-radius:6px; background:var(--ink-soft); }
.locked-lines span:nth-child(1){ width:96%; }
.locked-lines span:nth-child(2){ width:88%; }
.locked-lines span:nth-child(3){ width:93%; }
.locked-lines span:nth-child(4){ width:72%; }
.locked-lines span:nth-child(5){ width:90%; }
.locked-lines span:nth-child(6){ width:58%; }
.locked-badge{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  white-space:nowrap;
  font-family:var(--sans);
  font-size:14px;
  font-weight:600;
  color:var(--accent-dark);
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 20px;
}
.locked-badge::before{ content:"🔒 "; }
.locked-caption{
  text-align:center;
  color:var(--ink-soft);
  font-size:15px;
  line-height:1.6;
  max-width:520px;
  margin:0 auto 26px;
}
@media (max-width:520px){
  .locked-rest{ padding:26px 22px 30px; }
  .locked-badge{ font-size:13px; padding:8px 15px; }
}

/* Collapsed optional details */
.more-toggle{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; margin:6px 0 18px; padding:16px 18px; border:1px dashed var(--line,#d9d4c7); border-radius:14px; background:transparent; color:var(--ink); font:inherit; font-weight:600; text-align:left; cursor:pointer; }
.more-toggle .optional-tag{ font-weight:400; }
.more-toggle .chev{ margin-left:auto; transition:transform .2s ease; }
.more-toggle.open .chev{ transform:rotate(180deg); }
.more-fields{ animation:fadeIn .2s ease; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(-4px);} to{opacity:1; transform:none;} }

/* Tighter hero: the form is the page */
#interview h1{ margin-bottom:10px; }
.lede-tight{ margin-bottom:18px; }
@media (max-width:640px){ #interview h1{ font-size:clamp(24px,7vw,30px); } .lede-tight{ font-size:15.5px; margin-bottom:14px; } }
