/* Reviews.Memorial — quiet, dignified, trustworthy. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #2b2a27;
  --ink-soft: #6b675f;
  --line: #e7e1d6;
  --sage: #6f7f6a;
  --sage-dark: #56644f;
  --gold: #b8965a;
  --gold-soft: #f3ead9;
  --danger: #9c4a3c;
  --danger-soft: #f7e9e6;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
main { max-width: 1060px; margin: 0 auto; padding: 32px 24px 64px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: 2.1rem; margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 32px 0 12px; }
h3 { font-size: 1.15rem; margin: 20px 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--sage-dark); }

/* Nav */
.appnav {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px; background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { color: var(--gold); }
.appnav .links { display: flex; gap: 4px; flex-wrap: wrap; }
.appnav .links a {
  text-decoration: none; color: var(--ink-soft); padding: 6px 12px; border-radius: 8px; font-size: 0.95rem;
}
.appnav .links a:hover { background: var(--bg); color: var(--ink); }
.appnav .links a.active { background: var(--gold-soft); color: var(--ink); font-weight: 600; }
.navright { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.username { color: var(--ink-soft); font-size: 0.9rem; }
a.quiet { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
a.quiet:hover { color: var(--ink); }

/* Buttons & forms */
.btn {
  display: inline-block; background: var(--sage-dark); color: #fff;
  border: none; border-radius: 8px; padding: 10px 20px;
  font-size: 1rem; font-family: var(--sans); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--sage); }
.btn.small { padding: 7px 14px; font-size: 0.9rem; }
.btn.secondary { background: transparent; color: var(--sage-dark); border: 1px solid var(--sage-dark); }
.btn.secondary:hover { background: var(--gold-soft); }
.btn.gold { background: var(--gold); }
.btn.danger { background: var(--danger); }

form.stack label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 0.92rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url],
input[type=date], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; font-family: var(--sans); background: var(--surface); color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-hint { color: var(--ink-soft); font-size: 0.85rem; margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Cards & panels */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.card.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-value { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.stat-label { color: var(--ink-soft); font-size: 0.88rem; margin-top: 2px; }
.stat-hint { color: var(--ink-soft); font-size: 0.78rem; margin-top: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.badge-not_scheduled { background: #eeeae2; color: var(--ink-soft); }
.badge-scheduled { background: #e8ecf3; color: #46587a; }
.badge-sent { background: var(--gold-soft); color: #7d6531; }
.badge-clicked { background: #e5eee3; color: var(--sage-dark); }
.badge-reminder_sent { background: #f0e8f3; color: #6d5478; }
.badge-completed { background: #dcebd9; color: #3c5a34; }
.badge-do_not_contact { background: var(--danger-soft); color: var(--danger); }

/* Flash + notices */
.flash { max-width: 1060px; margin: 16px auto 0; padding: 12px 18px; background: #e5eee3; border: 1px solid #c9dcc4; border-radius: 8px; color: var(--sage-dark); }
.notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.92rem; }
.notice.warn { background: var(--gold-soft); border: 1px solid #e0cba0; color: #6d5628; }
.notice.error { background: var(--danger-soft); border: 1px solid #e0b7ad; color: var(--danger); }
.notice.info { background: #e8ecf3; border: 1px solid #c8d2e2; color: #46587a; }

/* Message preview */
.msg-preview {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px; white-space: pre-wrap; font-size: 0.95rem;
}

/* Landing */
.hero { text-align: center; padding: 76px 16px 36px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--gold-soft) 0%, transparent 70%);
  opacity: .55; pointer-events: none; z-index: -1;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); max-width: 780px; margin: 0 auto 20px; letter-spacing: -0.015em; line-height: 1.15; }
.hero .sub { font-size: 1.18rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto 30px; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Two-column hero with phone mockup */
.hero2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 58px 0 26px; position: relative; }
.hero2::before {
  content: ""; position: absolute; inset: -40px -300px auto; height: 120%;
  background: radial-gradient(ellipse 60% 55% at 35% 10%, var(--gold-soft) 0%, transparent 70%);
  opacity: .5; pointer-events: none; z-index: -1;
}
.hero2 h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 4.6vw, 3.15rem); letter-spacing: -0.015em; line-height: 1.13; }
.hero2 .sub { font-size: 1.14rem; color: var(--ink-soft); margin-bottom: 28px; }
.hero2 .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 880px) {
  .hero2 { grid-template-columns: 1fr; text-align: center; gap: 8px; padding-top: 44px; }
  .hero2 .ctas { justify-content: center; }
}

.phone {
  width: 310px; background: #fff; border: 1px solid var(--line); border-radius: 38px;
  padding: 20px 15px 26px; margin: 0 auto;
  box-shadow: 0 30px 70px -34px rgba(43,42,39,.35), 0 2px 8px rgba(43,42,39,.06);
}
.phone .ptop { text-align: center; margin-bottom: 14px; }
.phone .pavatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: #7d6531;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
}
.phone .pname { font-weight: 600; color: var(--ink); font-size: 0.78rem; margin-top: 4px; }
.phone .ptime { text-align: center; color: #a6a19a; font-size: 0.66rem; margin: 6px 0 10px; }
.bubble {
  background: #e9e9eb; color: #1c1c1e; border-radius: 18px; border-bottom-left-radius: 5px;
  padding: 10px 13px; font-size: 0.82rem; line-height: 1.45; max-width: 91%; margin-bottom: 7px;
  font-family: -apple-system, "Segoe UI", sans-serif;
}
.bubble .blink { color: #0b63ce; text-decoration: underline; }
.phone-caption { text-align: center; color: var(--ink-soft); font-size: 0.82rem; margin-top: 16px; font-style: italic; }

/* Dark editorial band */
.dark-band {
  background: linear-gradient(175deg, #33312c 0%, #262521 100%);
  color: #ece8df; border-radius: calc(var(--radius) + 6px);
  padding: 54px 50px; margin: 40px 0;
  position: relative; overflow: hidden;
}
.dark-band::after {
  content: ""; position: absolute; top: 0; left: 50px; width: 72px; height: 3px; background: var(--gold);
}
.dark-band h2 { color: #faf7f2; margin-top: 0; font-size: 1.9rem; }
.dark-band p { color: #bdb7aa; max-width: 44em; }
.dark-band .gold-line { color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.25rem; margin-top: 22px; }
@media (max-width: 640px) { .dark-band { padding: 40px 28px; } .dark-band::after { left: 28px; } }

/* Pull-quote */
.pullquote {
  text-align: center; padding: 64px 20px 58px; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.45; max-width: 27em; margin: 0 auto; color: var(--ink);
}
.pullquote::before { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin: 0 auto 30px; }
.pullquote .attr { display: block; font-family: var(--sans); font-style: normal; font-size: 0.85rem; color: var(--ink-soft); margin-top: 18px; }

/* Motion */
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(43,42,39,.18); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card { transition: none; } .card:hover { transform: none; }
}

.trust-strip {
  display: flex; justify-content: center; gap: 10px 28px; flex-wrap: wrap;
  padding: 18px 16px; margin: 26px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.88rem;
}
.trust-strip span { white-space: nowrap; }
.trust-strip b { color: var(--ink); font-weight: 600; }

/* Guarantee */
.guarantee {
  border: 3px double var(--gold); border-radius: var(--radius); background: var(--surface);
  padding: 36px 32px; margin: 26px 0; display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}
.guarantee .seal {
  flex: 0 0 auto; width: 108px; height: 108px; border-radius: 50%;
  border: 2px solid var(--gold); background: var(--gold-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif); color: #7d6531; margin: 0 auto;
}
.guarantee .seal .n { font-size: 2.1rem; font-weight: 700; line-height: 1; }
.guarantee .seal .d { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; margin-top: 4px; text-align: center; }
.guarantee .body-copy { flex: 1 1 320px; }
.guarantee h3 { margin: 0 0 8px; font-size: 1.35rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--gold); font-weight: 700; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 6px 0 6px 28px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--sage-dark); font-weight: 700; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; padding: 10px 0 10px 44px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 8px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: #7d6531;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
}
.price-tag { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; }
.price-tag small { font-size: 1rem; color: var(--ink-soft); font-family: var(--sans); font-weight: 400; }
.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 6px 0 0; color: var(--ink-soft); }

.site-footer { text-align: center; color: var(--ink-soft); font-size: 0.88rem; padding: 32px 16px 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .fineprint { margin-top: 6px; font-size: 0.8rem; }

.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin-bottom: 0; }
.actions-inline { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.qr-img { width: 200px; height: 200px; }
.muted { color: var(--ink-soft); }
.small-text { font-size: 0.85rem; }
code.link-box { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; word-break: break-all; font-size: 0.85rem; }

/* Printable QR card */
.qr-card-sheet { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.qr-card {
  width: 420px; max-width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 40px 34px; text-align: center;
}
.qr-card .headline { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.qr-card .body { font-size: 0.92rem; color: #4a4740; white-space: pre-wrap; margin-bottom: 20px; }
.qr-card .home-name { font-weight: 600; margin-top: 18px; }
.qr-card .url { font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; word-break: break-all; }
.qr-card.style-traditional { border: 3px double #a99668; border-radius: 4px; }
.qr-card.style-warm { background: #fdf9f0; border-color: #e0cba0; }
.qr-card.style-minimal { border: 1px solid #ddd; border-radius: 0; }
.qr-card.style-minimal .headline { font-family: var(--sans); font-size: 1.1rem; }

@media print {
  .appnav, .site-footer, .no-print, .flash { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .qr-card { border-color: #999; break-inside: avoid; }
}

/* Demo-mode banner — a paid product must never imply it delivered when it didn't */
.demo-banner { background: #fbf1d9; border-bottom: 1px solid #e6d3a3; color: #7a5b16; padding: 9px 20px; font-size: 0.9rem; text-align: center; }
.demo-banner a { color: #7a5b16; font-weight: 600; }
