/* The Care They Deserve — shared styles
   Mirrors the warm, large-print, single-column funnel style of
   Write the Letter They Keep (navy + cream + warm terracotta CTA). */

:root {
  --navy: #14243b;
  --navy-soft: #1f3350;
  --cream: #faf6ee;
  --cream-deep: #f2ead9;
  --ink: #2a2a28;
  --ink-soft: #57544c;
  --terracotta: #c1553b;
  --terracotta-dark: #a4432c;
  --gold: #b98b3e;
  --line: #e4dbc7;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(20, 36, 59, 0.12);
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

img { max-width: 100%; display: block; border-radius: var(--radius); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type { border-bottom: none; }

.section-alt {
  background: var(--cream-deep);
}

.eyebrow {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  background: rgba(193, 85, 59, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero .eyebrow { background: rgba(20,36,59,0.06); color: var(--navy); }
.hero h1 { font-size: 2.5rem; }
.hero .lede { max-width: 560px; margin: 0 auto 28px; }
.hero img { margin: 32px auto 28px; box-shadow: var(--shadow); }

.summary-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.summary-row span { display: flex; align-items: center; gap: 8px; }
.summary-row span::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(193, 85, 59, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(193, 85, 59, 0.38); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 20px 40px; font-size: 1.15rem; }

.guarantee {
  margin-top: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Problem / feature cards */
.card-grid {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* Steps */
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.step-num {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--ink-soft); margin: 0; }

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  padding-left: 30px;
  position: relative;
}
.feature-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--terracotta);
  font-weight: 700;
}

/* Sample letter / example block */
.sample {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  max-width: 520px;
  margin: 32px auto 0;
  box-shadow: var(--shadow);
  font-size: 1.02rem;
}
.sample .sample-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* Use case chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  color: var(--navy);
}

/* Pricing block */
.pricing-box {
  background: var(--navy);
  color: var(--cream);
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow);
}
.pricing-box .eyebrow { background: rgba(250,246,238,0.12); color: var(--cream); }
.pricing-box h2 { color: var(--white); }
.pricing-box .price {
  font-size: 3rem;
  font-weight: 700;
  margin: 10px 0 4px;
}
.pricing-box .price-note {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 24px;
}
.pricing-box .feature-list li { color: var(--cream); text-align: left; }
.pricing-box .feature-list { max-width: 380px; margin: 24px auto; }
.pricing-box .btn { margin-top: 10px; }
.pricing-box .guarantee { color: rgba(250,246,238,0.7); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--terracotta);
  margin-left: 12px;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

/* Final CTA */
.final-cta { text-align: center; }

/* Footer */
footer {
  background: var(--cream-deep);
  padding: 40px 0;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
footer .foot-title { color: var(--navy); font-weight: 700; margin-bottom: 4px; }

/* Sticky bottom bar (mobile) */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: none;
  z-index: 40;
  box-shadow: 0 -8px 24px rgba(20,36,59,0.1);
}
@media (max-width: 640px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
  .hero h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
}

/* ===== Checkout / upsell pages ===== */
.checkout-shell {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.checkout-header { text-align: center; margin-bottom: 32px; }
.checkout-header .brand {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.order-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.order-summary .row {
  display: flex; justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  padding: 8px 0;
}
.order-summary .row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px; padding-top: 14px;
  font-weight: 700; font-size: 1.1rem;
  color: var(--navy);
}
.bump-box {
  border: 2px dashed var(--terracotta);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(193,85,59,0.05);
  margin: 20px 0;
}
.bump-box label { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.bump-box input[type="checkbox"] { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.bump-box .bump-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700; color: var(--navy); margin-bottom: 4px;
}
.bump-box .bump-price { color: var(--terracotta-dark); font-weight: 700; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  background: var(--white);
}
.form-row { display: grid; gap: 16px; }
@media (min-width: 520px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}
.secure-note {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* Upsell page layout */
.upsell-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  text-align: center;
}
.upsell-badge {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.upsell-shell h1 { font-size: 2rem; }
.upsell-decline {
  display: block;
  margin: 22px auto 0;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: underline;
  background: none; border: none; cursor: pointer;
}
.price-compare {
  display: flex; align-items: baseline; justify-content: center; gap: 14px;
  margin: 18px 0;
}
.price-compare .was { text-decoration: line-through; color: var(--ink-soft); font-size: 1.2rem; }
.price-compare .now { font-size: 2.6rem; font-weight: 700; color: var(--navy); }

/* Delivery page */
.delivery-shell {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  text-align: center;
}
.delivery-shell .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px;
}
.download-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.download-card .name { font-weight: 700; color: var(--navy); }
.download-card .btn { padding: 12px 22px; font-size: 0.95rem; }

/* Checkout + one-click offer states */
.btn:disabled { opacity: 0.6; cursor: progress; }
.payment-error {
  min-height: 1.2em;
  margin: 12px 0 0;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #a33a24;
}
a.upsell-decline { text-decoration: underline; }

/* ---------- Guided letter (letter.html) ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.letter-top { position: sticky; top: 0; z-index: 2; background: var(--cream); padding: 16px 20px 0; }
.letter-brand {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; color: var(--terracotta);
}
.letter-progress { height: 4px; background: var(--line); border-radius: 4px; margin: 12px auto 0; max-width: 620px; overflow: hidden; }
.letter-progress span { display: block; height: 100%; width: 0; background: var(--terracotta); transition: width 0.4s ease; }
.letter-shell { max-width: 620px; margin: 0 auto; padding: 36px 20px 40px; }
.letter-shell h1 { font-size: 1.9rem; outline: none; }
.letter-label {
  display: block; margin: 22px 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem; font-weight: 700; color: var(--navy);
}
.letter-label .optional { font-weight: 400; color: var(--ink-soft); }
.letter-input, .letter-textarea, .letter-paper {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  color: var(--ink); font: inherit; padding: 14px 16px;
}
.letter-input:focus, .letter-textarea:focus, .letter-paper:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,36,59,0.12); }
.letter-textarea { min-height: 160px; resize: none; line-height: 1.6; margin-top: 4px; }
.letter-joggers {
  background: var(--cream-deep); border-radius: 10px; padding: 14px 18px; margin: 4px 0 18px;
  font-size: 0.95rem; color: var(--ink-soft);
}
.letter-joggers-label {
  display: block; margin-bottom: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--terracotta);
}
.letter-joggers ul { margin: 0; padding-left: 20px; }
.letter-joggers li { margin: 2px 0; }
.letter-hint { margin-top: 16px; font-size: 0.95rem; color: var(--ink-soft); }
.letter-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.letter-nav .btn { flex: 0 1 auto; }
.letter-back, .letter-link {
  background: none; border: none; padding: 8px 0; cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem; color: var(--navy); text-decoration: underline;
}
.letter-summary { list-style: none; padding: 0; margin: 0; }
.letter-summary li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.letter-summary li > span { width: 1.2em; color: var(--ink-soft); }
.letter-summary li.done > span { color: var(--terracotta); font-weight: 700; }
.letter-summary em { color: var(--ink-soft); font-size: 0.9rem; }
.letter-writing { text-align: center; padding-top: 30px; }
.letter-quill {
  width: 46px; height: 46px; margin: 0 auto 22px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--terracotta);
  animation: letter-spin 1s linear infinite;
}
@keyframes letter-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .letter-quill { animation-duration: 3s; } }
.letter-paper {
  min-height: 320px; resize: none; margin-top: 8px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.15rem; line-height: 1.75;
  padding: 28px 26px; box-shadow: var(--shadow);
}
.letter-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 28px; }
.letter-actions .btn { width: 100%; max-width: 360px; }
.letter-alert {
  background: #fbeae5; border: 1px solid #e9b8aa; color: #8a3320; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 20px; font-size: 0.95rem;
}
.letter-save {
  text-align: center; min-height: 1.4em; margin: 0 0 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.85rem; color: var(--ink-soft);
}
@media (max-width: 520px) {
  .letter-shell h1 { font-size: 1.6rem; }
  .letter-nav .btn { padding: 16px 26px; }
  .letter-paper { padding: 20px 16px; }
}
.btn.btn-quiet { background: transparent; color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn.btn-quiet:hover { border-color: var(--navy); background: transparent; }
