/* Shared memorial design tokens — Ana (walnut/parchment) + Alicia (ivory/sage/gold) */
:root {
  --bg: #f4efe6;        /* Alicia ivory */
  --bg-2: #ece4d3;      /* Alicia panel */
  --paper: #fbf8f0;     /* warm card */
  --ink: #2a2218;       /* Ana deep ink */
  --ink-2: #4a3f30;
  --muted: #6f6658;     /* Alicia soft */
  --rule: rgba(51, 48, 42, 0.16);
  --rule-strong: rgba(51, 48, 42, 0.28);
  --sage: #5e7359;      /* Alicia accent */
  --walnut: #6f4f2b;    /* Ana accent */
  --gold: #9a7b3f;      /* shared gold */
  --blue: #4d7d83;      /* paradise water */
  --rose: #a76f6a;      /* shared rose */
  --shadow: 0 22px 70px rgba(51, 40, 25, 0.2);
  --shadow-soft: 0 12px 34px rgba(51, 40, 25, 0.12);
  --radius: 8px;
  --nav-h: 76px;        /* real height of the fixed top nav (logo 50 + 2×13 pad) — keep in sync with .site-header */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* land in-page anchor links a touch below the fixed header, not flush under it */
  scroll-padding-top: calc(var(--nav-h) + 28px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* guard against accidental horizontal scroll on small viewports */
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .21 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

p {
  color: var(--ink-2);
  line-height: 1.75;
}

main,
header,
footer,
section {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px clamp(20px, 6vw, 86px);
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
  transition: padding 0.35s ease, box-shadow 0.35s ease;
}

/* Slight lift once scrolled */
.site-header.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 8px 28px rgba(36, 27, 15, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand .brand-word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
}
.brand .brand-word em {
  font-style: italic;
  font-weight: 500;
  color: var(--walnut);
}
/* tiny tracked label feel for the lead words */
.brand .brand-word {
  font-variant-ligatures: common-ligatures;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent; /* let the logo's own cream blend into the bar */
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #44362a; /* matches the logo silhouette */
}

.nav a,
.nav-cta {
  text-decoration: none;
}

.nav a {
  position: relative;
  padding: 6px 1px;
  color: #44362a; /* matches the logo silhouette */
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  border-radius: 2px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  right: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
  background: var(--sage);
  color: #fff8ea;
  padding: 12px 19px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--sage);
  transition: background 0.22s ease, border-color 0.22s ease;
}

.nav-cta::after {
  content: "\2192";
  font-size: 13px;
  letter-spacing: 0;
  transition: transform 0.22s ease;
}

.nav-cta:hover {
  background: #54684f;
  border-color: #54684f;
}

.nav-cta:hover::after {
  transform: translateX(3px);
}

/* Hamburger — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* The CTA that lives inside the dropdown is desktop-hidden */
.nav-cta-mobile { display: none; }

.hero {
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  position: relative;
  align-items: center;
  padding: calc(var(--nav-h) + clamp(18px, 3.5vh, 40px)) clamp(20px, 6vw, 86px) clamp(92px, 13vh, 124px);
}

.hero-verse {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 4.5vh, 46px);
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}
.hero-verse p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.08;
  color: #fff8ea;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.5);
}
.hero-verse span {
  display: block;
  margin-top: 9px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 248, 234, 0.82);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(0.94) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(28, 21, 12, 0.86) 0%, rgba(28, 21, 12, 0.66) 40%, rgba(28, 21, 12, 0.2) 76%, rgba(28, 21, 12, 0.06) 100%),
    linear-gradient(180deg, rgba(28, 21, 12, 0.28), rgba(28, 21, 12, 0.5));
}

.hero-content {
  width: min(690px, 100%);
  color: #fff;
}

.eyebrow {
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

.hero .eyebrow {
  color: #f2e3bf;
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff8ea;
  font-size: clamp(58px, 8vw, 118px);
  max-width: 10ch;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}

.hero-copy {
  max-width: 640px;
  margin-top: 24px;
  color: rgba(255, 250, 240, 0.97);
  font-size: clamp(17px, 1.7vw, 21px);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 0;
  padding: 0 22px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: #fff8ea;
  color: var(--ink);
}

.button-ghost {
  color: #fff8ea;
  border: 1px solid rgba(255, 248, 234, 0.54);
}

/* Hero CTA hierarchy: make the primary action dominant, the secondary quiet */
.hero-actions .button { border-radius: var(--radius); }
.hero-actions .button-primary {
  min-height: 56px;
  padding: 0 30px;
  font-size: 14px;
  color: #fff8ea;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 248, 234, 0.34);
  background: rgba(94, 115, 89, 0.32);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.hero-actions .button-primary:hover { background: rgba(94, 115, 89, 0.46); border-color: rgba(255, 248, 234, 0.62); transform: translateY(-1px); }
.hero-actions .button-ghost {
  min-height: 56px;
  background: rgba(255, 248, 234, 0.06);
  border-color: rgba(255, 248, 234, 0.34);
  font-weight: 600;
}
.hero-actions .button-ghost:hover { background: rgba(255, 248, 234, 0.14); }
.button { transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease; }

.hero-trust {
  margin-top: 16px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 234, 0.86);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.domain-card {
  width: fit-content;
  max-width: 100%;
  margin-top: 34px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 248, 234, 0.32);
  background: rgba(251, 247, 236, 0.14);
  backdrop-filter: blur(16px);
}

.domain-label {
  display: block;
  margin-bottom: 5px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 248, 234, 0.76);
}

.domain-card strong {
  display: block;
  color: #fff8ea;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: clamp(15px, 2vw, 20px);
  overflow-wrap: anywhere;
}

.section {
  padding: clamp(68px, 10vw, 124px) clamp(22px, 6vw, 86px);
}

.scripture-band {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 250px;
  padding: 56px 24px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.scripture-band p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 6vw, 70px);
  font-style: italic;
  line-height: 1;
  color: var(--walnut);
}

.scripture-band span,
.mini-quote span,
.pricing-note,
.footer,
.form-message {
  font-family: "Mulish", system-ui, sans-serif;
}

.scripture-band span,
.mini-quote span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.intro {
  max-width: 1180px;
  margin: 0 auto;
}

.intro-copy {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 54px;
}

.intro-copy h2,
.section-head h2,
.product-copy h2,
.moderation-copy h2,
.builder h2,
.start-panel h2 {
  font-size: clamp(42px, 5.6vw, 72px);
  text-wrap: balance;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.intro-grid article {
  min-height: 270px;
  padding: 30px;
  background: var(--paper);
}

.intro-grid span {
  display: block;
  margin-bottom: 30px;
  color: var(--gold);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.intro-grid h3,
.template-list h3,
.addon-grid h3 {
  margin-bottom: 13px;
  font-size: 31px;
}

.product,
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.product-image-wrap,
.template-layout img,
.builder img {
  padding: 11px;
  background: #fff;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.product-copy p {
  margin-top: 22px;
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(-45deg);
}

.templates {
  background: var(--bg-2);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 15px;
}

.section-head p {
  margin-top: 18px;
  font-size: 18px;
}

.template-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

.template-list {
  display: grid;
  gap: 18px;
}

.template-list article,
.addon-grid article,
.policy-board div,
.choice-grid article,
.price-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.template-list article {
  padding: 26px;
}

.moderation {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(36px, 6vw, 74px);
  max-width: 1180px;
  margin: 0 auto;
}

.moderation-copy p:not(.eyebrow) {
  margin-top: 24px;
  font-size: 18px;
}

.policy-board {
  display: grid;
  gap: 14px;
}

.policy-board div {
  padding: 24px;
}

.policy-board strong {
  display: block;
  margin-bottom: 9px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.policy-board div:nth-child(2) strong {
  color: var(--gold);
}

.policy-board div:nth-child(3) strong {
  color: var(--rose);
}

/* Moderation: the two review options + dashboard note */
.moderation-options {
  max-width: 1180px;
  margin: clamp(42px, 6vw, 70px) auto 0;
}
.moderation-options h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.choice-grid article {
  padding: 28px;
}
.choice-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.choice-tag.tag-auto { color: var(--sage); background: rgba(94, 115, 89, 0.12); }
.choice-tag.tag-manual { color: var(--gold); background: rgba(154, 123, 63, 0.13); }
.choice-grid strong {
  display: block;
  margin-bottom: 9px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
}
.choice-grid p { color: var(--ink-2); margin: 0; }
.moderation-dash {
  margin: 22px 0 0;
  padding: 18px 22px;
  background: var(--bg-2);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2);
}
.moderation-dash strong { color: var(--ink); }
@media (max-width: 760px) {
  .choice-grid { grid-template-columns: 1fr; }
}
/* ===== Admin dashboard mockup (lives in the moderation section) ===== */
.builder-cta { margin-top: 30px; }
.builder-cta .button { padding: 15px 30px; }
.builder-visual { display: flex; flex-direction: column; align-items: center; }
#moderation .admin-mock { width: 100%; }

.admin-mock {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.admin-mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
}
.am-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(51, 48, 42, 0.22); }
.am-url {
  flex: 1; margin-left: 10px; padding: 5px 12px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
  font-family: "Mulish", system-ui, sans-serif; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-mock-body { padding: clamp(18px, 2.4vw, 26px); }
.am-head { display: flex; align-items: center; justify-content: space-between; }
.am-head strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; color: var(--ink); }
.am-head > div span { font-family: "Mulish", system-ui, sans-serif; font-size: 12px; color: var(--muted); }
.am-pill {
  padding: 4px 12px; border-radius: 999px; background: rgba(94, 115, 89, 0.14); color: var(--sage);
  font-family: "Mulish", system-ui, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.am-section { margin-top: 22px; }
.am-section-title {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 11px;
  font-family: "Mulish", system-ui, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.am-section-title span { font-weight: 600; letter-spacing: 0.03em; text-transform: none; color: var(--muted); }
.am-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg);
}
.am-row + .am-row { margin-top: 9px; }
.am-row-main { flex: 1; min-width: 0; }
.am-row-main strong { display: block; margin-bottom: 2px; font-family: "Mulish", system-ui, sans-serif; font-size: 13px; color: var(--ink); }
.am-row-main p { margin: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-mask { letter-spacing: 2px; color: var(--muted); }
.am-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.am-btn {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper);
  font-family: "Mulish", system-ui, sans-serif; font-size: 12px; font-weight: 700; cursor: default; color: var(--ink-2);
}
.am-btn.ok { color: var(--sage); border-color: rgba(94, 115, 89, 0.4); }
.am-btn.no { color: var(--rose); border-color: rgba(167, 111, 106, 0.4); }
.am-btn.no.on { background: var(--rose); color: #fff8ea; border-color: var(--rose); }
.am-photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.am-photo {
  aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--rule);
  background: repeating-linear-gradient(45deg, rgba(111, 79, 43, 0.06) 0 8px, rgba(111, 79, 43, 0.11) 8px 16px);
}
.am-photo.add { display: grid; place-items: center; background: var(--bg-2); color: var(--muted); font-size: 22px; }

/* Animated moderation dashboard (self-running demo) */
.am-row {
  transition: background .3s ease, transform .55s cubic-bezier(.4,0,.2,1), opacity .5s ease,
              max-height .55s ease, margin .55s ease, padding .55s ease, border-color .3s ease;
  max-height: 90px; overflow: hidden;
}
.am-row.am-ok { background: rgba(94,115,89,.16); border-color: rgba(94,115,89,.5); }
.am-row.am-no { background: rgba(167,111,106,.16); border-color: rgba(167,111,106,.5); }
.am-row.am-leave { transform: translateX(46px); opacity: 0; max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.am-btn { transition: transform .15s ease, background .25s ease, color .25s ease, border-color .25s ease; }
.am-btn.am-press { transform: scale(.88); }
.am-btn.ok.am-lit { background: var(--sage); color: #fff8ea; border-color: var(--sage); }
.am-btn.no.am-lit { background: var(--rose); color: #fff8ea; border-color: var(--rose); }
.am-photo { transition: transform .5s cubic-bezier(.4,0,.2,1), box-shadow .25s ease; will-change: transform; }
.am-photo.am-drag { z-index: 5; box-shadow: 0 12px 24px rgba(0,0,0,.22); }

/* Keep the "Kept peaceful, always" section to a single viewport */
#moderation {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(10px, 2vh, 30px));
  padding-bottom: clamp(10px, 2vh, 30px);
}
#moderation .moderation { width: 100%; }
#moderation .moderation-options { margin-top: clamp(6px, 1.5vh, 20px); }
@media (max-width: 880px) {
  #moderation { min-height: 0; display: block; }
}

.builder {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
}

.builder p:not(.eyebrow):not(.mini-quote p) {
  margin-top: 22px;
  font-size: 18px;
}

.mini-quote {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
}

.mini-quote p {
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 3.2vw, 36px);
  font-style: italic;
  line-height: 1.2;
  color: var(--walnut);
}

.pricing {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.price-card {
  padding: 30px;
}

.price-card.featured {
  background: #fffaf0;
  border-color: rgba(97, 113, 87, 0.45);
  transform: translateY(-16px);
}

.plan {
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.price-card h3 {
  margin-top: 20px;
  font-size: 70px;
}

.price-card > span:not(.plan-badge) {
  display: block;
  margin-top: 6px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 14px;
}

.plan-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 13px;
  background: var(--sage);
  color: #fff8ea;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.price-card ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
  line-height: 1.6;
}

.price-card li {
  padding-left: 4px;
}
.price-card li::marker {
  color: var(--gold);
}

.pricing-note {
  max-width: 1120px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Keep the pricing section to a single viewport */
#pricing {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(8px, 1.8vh, 28px) - 40px);
  padding-bottom: calc(clamp(8px, 1.8vh, 28px) + 40px);
}
#pricing .section-head { margin-bottom: clamp(14px, 2.4vh, 28px); }
#pricing .section-head h2 { font-size: clamp(32px, 4vw, 48px); }
#pricing .price-card { padding: clamp(20px, 2.2vw, 30px); }
#pricing .price-card .plan { font-size: 11px; }
#pricing .price-card h3 { margin-top: 10px; font-size: clamp(40px, 4.2vw, 58px); }
.price-card h3 .per { font-family: "Mulish", system-ui, sans-serif; font-size: 0.34em; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); vertical-align: baseline; margin-left: 2px; }
#pricing .price-card > span:not(.plan-badge) { margin-top: 6px; padding-bottom: 16px; font-size: 13px; }
#pricing .price-card .plan-badge { margin-bottom: 15px; }
#pricing .price-card ul { gap: 11px; margin-top: 17px; font-size: 14px; line-height: 1.55; }
#pricing .pricing-note { margin-top: 16px; font-size: 12px; }
#pricing .price-card.featured { transform: translateY(-12px); }
@media (max-width: 980px) {
  #pricing { min-height: 0; display: block; }
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.addon-grid article {
  padding: 25px;
}

/* "Premium" pill on a featured add-on */
.addon-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--accent, #9a7b3f);
  background: rgba(154, 123, 63, 0.12);
  border: 1px solid rgba(154, 123, 63, 0.3);
  border-radius: 999px;
}

/* Keepsake product photo slots (placeholders — drop a real <img> inside to replace) */
#keepsakes .addon-grid article { overflow: hidden; }
#keepsakes .addon-photo {
  margin: -25px -25px 18px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--rule);
  background: repeating-linear-gradient(45deg, rgba(111, 79, 43, 0.06) 0 14px, rgba(111, 79, 43, 0.11) 14px 28px);
}
#keepsakes .addon-photo span {
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
#keepsakes .addon-photo img { width: 100%; height: 100%; object-fit: cover; }
#keepsakes .addon-lead { max-width: 660px; margin: 30px auto 0; text-align: center; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
#keepsakes .addon-grid article:nth-child(2) .addon-photo { background: repeating-linear-gradient(45deg, rgba(94, 115, 89, 0.07) 0 14px, rgba(94, 115, 89, 0.13) 14px 28px); }
#keepsakes .addon-grid article:nth-child(3) .addon-photo { background: repeating-linear-gradient(45deg, rgba(167, 111, 106, 0.07) 0 14px, rgba(167, 111, 106, 0.13) 14px 28px); }
#keepsakes .addon-grid article:nth-child(4) .addon-photo { background: repeating-linear-gradient(45deg, rgba(154, 123, 63, 0.07) 0 14px, rgba(154, 123, 63, 0.13) 14px 28px); }

.start {
  padding-top: 36px;
}

.start-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 70px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(97, 113, 87, 0.95), rgba(53, 111, 122, 0.92)),
    var(--sage);
  box-shadow: var(--shadow);
}

.start-panel .eyebrow,
.start-panel h2,
.start-panel p {
  color: #fff8ea;
}

.start-panel > p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 20px;
}

.signup-form {
  margin-top: 32px;
}

.signup-form label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 248, 234, 0.82);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signup-form div {
  display: flex;
  gap: 10px;
  max-width: 560px;
}

.signup-form input,
.signup-form button {
  min-height: 52px;
  border-radius: 999px;
  font: 700 14px "Mulish", system-ui, sans-serif;
}

.signup-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 248, 234, 0.4);
  padding: 0 20px;
  color: var(--ink);
  background: rgba(255, 248, 234, 0.94);
}

.signup-form button {
  border: 0;
  padding: 0 22px;
  color: var(--ink);
  background: #fff8ea;
  cursor: pointer;
}

.form-message {
  min-height: 22px;
  margin-top: 10px;
  color: rgba(255, 248, 234, 0.82);
  font-size: 13px;
}

.footer {
  display: grid;
  gap: 8px;
  padding: 34px 24px 44px;
  background: var(--ink);
  color: rgba(255, 248, 234, 0.82);
  text-align: center;
  font-size: 12px;
}

.footer p {
  color: inherit;
  line-height: 1.55;
}

.footer a {
  color: #fff8ea;
}

/* === Editorial display & entrance === */
.hero h1,
.intro-copy h2,
.section-head h2,
.product-copy h2,
.moderation-copy h2,
.builder h2,
.start-panel h2,
.scripture-band p,
.price-card h3 {
  letter-spacing: -0.022em;
}

@keyframes syp-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-bottom,
.hero-verse {
  opacity: 0;
  animation: syp-rise 1.05s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.hero-bottom { animation-delay: 0.30s; }
.hero-verse { animation-delay: 1s; }
@media (prefers-reduced-motion: reduce) {
  .hero-bottom,
  .hero-verse { opacity: 1; animation: none; }
}

/* refined eyebrow tick — left-aligned contexts only */
.hero .eyebrow,
.product-copy .eyebrow,
.moderation-copy .eyebrow,
.builder .eyebrow,
.intro-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.hero .eyebrow::before,
.product-copy .eyebrow::before,
.moderation-copy .eyebrow::before,
.builder .eyebrow::before,
.intro-copy .eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* === Motion & feel === */
.button,
.nav-cta,
.price-card,
.template-list article,
.addon-grid article,
.policy-board div,
.intro-grid article,
a {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary:hover { box-shadow: 0 14px 30px rgba(51, 40, 25, 0.24); }
.button-ghost:hover { border-color: #fff8ea; background: rgba(255, 248, 234, 0.12); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(94, 115, 89, 0.34); }
.price-card:hover,
.template-list article:hover,
.addon-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-card.featured:hover { transform: translateY(-21px); }
.signup-form button:hover { transform: translateY(-1px); }

/* Gentle scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-cta-bar { display: none; }

  /* Nav becomes a dropdown panel under the bar */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px clamp(20px, 6vw, 86px) 20px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 20px 44px rgba(36, 27, 15, 0.18);
    font-size: 13px;
  }
  .site-header.nav-open .nav { display: flex; }

  .nav a:not(.nav-cta) {
    padding: 16px 2px;
    border-bottom: 1px solid var(--rule);
  }
  .nav a::after { display: none; }

  .nav-cta-mobile {
    display: inline-flex;
    justify-content: center;
    margin-top: 16px;
    border: 1px solid var(--sage);
  }

  .intro-copy,
  .product,
  .template-layout,
  .moderation,
  .builder {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .pricing-grid,
  .addon-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 18px;
  }

  .brand {
    font-size: 18px;
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 92svh;
    padding: 100px 20px 36px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(28, 21, 12, 0.46) 0%, rgba(28, 21, 12, 0.78) 50%, rgba(28, 21, 12, 0.9) 100%);
  }

  .hero h1 {
    max-width: 9ch;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .domain-card {
    width: 100%;
  }

  .intro-grid article {
    min-height: 0;
  }

  .signup-form div {
    flex-direction: column;
  }
}

/* === Hero fits within one viewport: push content up, scale down === */
.hero {
  min-height: 100svh;
  align-items: start;                          /* headline sits at the top */
  padding-top: clamp(108px, 14vh, 148px);    /* clearance below the top bar */
  padding-bottom: clamp(96px, 14vh, 132px);  /* room for the verse pinned at the bottom */
}
/* Headline group flows at the top; everything else is pinned to the bottom-left corner */
.hero-content { position: static; }
.hero-top {
  position: relative;
  z-index: 3;
  opacity: 1;
  transform: none;
}
.hero-bottom {
  position: absolute;
  left: clamp(20px, 6vw, 86px);
  bottom: clamp(28px, 5vh, 56px);
  width: min(520px, calc(100% - 40px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  z-index: 3;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 5vw, 72px); max-width: 17ch; line-height: 1.08; }
.hero h1 .until {
  /* same size & font as the main headline */
  display: block;
  font-size: 1em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  color: #fff8ea;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}
.hero-copy { margin-top: 0; max-width: 540px; font-size: clamp(16px, 1.4vw, 19px); }
/* Buttons centered across the full width of the page, in the lower-center band */
.hero-actions {
  position: absolute;
  left: 50%;
  bottom: clamp(165px, 22vh, 260px);
  margin: 0;
  transform: translateX(calc(-50% - 48px));
  justify-content: center;
  gap: 16px;
  z-index: 4;
  animation: syp-rise 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) 0.45s both;
}
.hero-actions::before {            /* soft focal glow so the CTAs read over the video */
  content: "";
  position: absolute;
  inset: -70px -110px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(20, 14, 6, 0.5), transparent 75%);
  filter: blur(22px);
  pointer-events: none;
}
.domain-card { margin-top: 0; padding: 12px 16px; }
/* Scripture moves to the bottom-right so the left corner belongs to the cluster */
.hero-verse {
  left: auto;
  right: clamp(20px, 6vw, 86px);
  bottom: clamp(28px, 5vh, 56px);
  width: min(460px, 46%);
  text-align: right;
  padding: 0;
}
.hero-verse p { font-size: clamp(22px, 2.8vw, 38px); }
.hero-verse span { margin-top: 9px; font-size: 13px; letter-spacing: 0.22em; }
@media (max-width: 900px) {
  /* not enough width to sit side by side — stack scripture below, centered */
  .hero-verse { left: 0; right: 0; width: auto; text-align: center; padding: 0 24px; bottom: clamp(18px, 4vh, 34px); }
  .hero-bottom { bottom: clamp(96px, 16vh, 150px); }
}
@media (max-width: 640px) {
  .hero { padding-bottom: clamp(40px, 9vh, 64px); }
  .hero h1 { font-size: clamp(32px, 8.5vw, 50px); }
  .hero-actions {
    position: static; transform: none; margin-top: 26px;
    justify-content: flex-start; animation: none;
  }
  .hero-actions::before { display: none; }
  .hero-bottom { position: static; width: 100%; margin-top: 32px; bottom: auto; }
  .hero-verse { position: static; margin-top: 20px; }
}

/* === Sample memory board (landing demo) === */
.board-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.memory-composer {
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  position: sticky;
  top: 96px;
}
.board-demo .field { margin-bottom: 14px; }
.board-demo .field label {
  display: block;
  margin-bottom: 7px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.board-demo input[type="text"],
.board-demo textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: #fffdf8;
  font-family: "Lora", Georgia, serif;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
}
.board-demo input:focus,
.board-demo textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.photo-add {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  cursor: pointer;
}
.photo-add:hover { border-color: var(--sage); color: var(--ink); }
.photo-add input { display: none; }

.button.button-solid {
  background: var(--sage);
  color: #fff8ea;
  border: 1px solid var(--sage);
}
.button.button-solid:hover { background: #54684f; }

.composer-note {
  margin-top: 14px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.memory-feed { display: grid; gap: 16px; }
.memory-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px;
}
.memory-card.fresh { animation: syp-rise 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.memory-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.memory-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff8ea;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  flex: 0 0 auto;
}
.memory-head > div { display: flex; flex-direction: column; line-height: 1.3; }
.memory-head strong {
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
}
.memory-time {
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 11px;
  color: var(--muted);
}
.memory-status {
  margin-left: auto;
  padding: 4px 10px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.memory-status.approved { background: rgba(94, 115, 89, 0.14); color: var(--sage); }
.memory-status.pending { background: rgba(154, 123, 63, 0.16); color: var(--walnut); }
.memory-card p { color: var(--ink-2); }
.memory-photo {
  margin-top: 14px;
  height: 150px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(111, 79, 43, 0.05) 0 12px, rgba(111, 79, 43, 0.09) 12px 24px);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.memory-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
  .board-demo-grid { grid-template-columns: 1fr; }
  .memory-composer { position: static; }
}

/* === Template live preview (Ana) === */
.template-preview {
  display: block;
  text-decoration: none;
  color: inherit;
}
.template-frame {
  position: relative;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: #fff;
  overflow: hidden;
}
.template-frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 14px;
  background: #e7ddc9;
  border-bottom: 1px solid var(--rule);
}
.template-frame-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(51, 48, 42, 0.22);
}
.template-frame iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
  background: #f5efe3;
}
.template-open {
  display: inline-block;
  margin-top: 14px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}
.template-preview:hover .template-open { color: var(--ink); }
.template-preview:hover .template-frame { box-shadow: 0 30px 80px rgba(51, 40, 25, 0.28); }

.tpl-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  vertical-align: middle;
  background: rgba(94, 115, 89, 0.14);
  color: var(--sage);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tpl-link {
  display: inline-block;
  margin-top: 12px;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
}
.tpl-link:hover { color: var(--ink); }

/* === Language switcher === */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 12px; cursor: pointer;
  background: transparent; border: 1px solid var(--rule-strong); color: var(--ink-2);
  font-family: "Mulish", system-ui, sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.lang-btn:hover { border-color: var(--sage); color: var(--ink); }
.lang-btn svg { display: block; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  list-style: none; margin: 0; padding: 6px;
  width: 200px; max-height: 340px; overflow-y: auto;
  background: var(--paper); border: 1px solid var(--rule);
  box-shadow: 0 20px 44px rgba(36, 27, 15, 0.18);
  display: none;
}
.lang-menu.open { display: block; }
.lang-menu li { margin: 0; }
.lang-menu button {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; background: transparent; cursor: pointer;
  font-family: "Lora", Georgia, serif; font-size: 15px; color: var(--ink-2);
}
.lang-menu button:hover { background: var(--bg-2); color: var(--ink); }

/* RTL niceties for Arabic */
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu button { text-align: right; }
[dir="rtl"] .nav a::after { left: auto; right: 0; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .domain-card { left: auto; right: clamp(20px, 6vw, 86px); }

@media (max-width: 980px) {
  /* keep the language button visible in the bar on mobile, before the hamburger */
  .lang-btn span { display: none; }
  .lang-btn { padding: 10px; }
}

/* Group the language switcher next to the Create-a-memorial CTA */
.nav-end { display: flex; align-items: center; gap: 14px; }

/* Match the language button height to the CTA */
.nav-end .lang-btn,
.nav-end .nav-cta-bar { height: 42px; }
.nav-end .lang-btn { padding-top: 0; padding-bottom: 0; }


/* === Section headers: ornament + gold rule, unifying with the app === */
.section-head .eyebrow { position: relative; }
.section-head .eyebrow::before {
  content: "· · ·";
  display: block;
  margin-bottom: 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.42em;
  color: var(--gold);
  opacity: 0.85;
}
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--sage));
}

/* ============================================================
   Hero: big title top-left · buttons center (down + left)
   · address+trust bottom-left · scripture bottom-right
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: start;
  column-gap: 0;
}
.hero-content { position: static; align-self: start; width: auto; display: block; }
.hero h1 { font-size: clamp(42px, 6vw, 82px); max-width: 24ch; }
.hero h1 .until { font-size: 1em; font-style: italic; color: #f2d8a0; }

/* address + trust pinned bottom-left */
.hero-bottom {
  position: absolute;
  inset: auto auto clamp(28px, 5vh, 56px) clamp(20px, 6vw, 86px);
  width: min(420px, calc(100% - 40px));
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 3;
}

/* buttons: stacked, centered then nudged down and to the left */
.hero-actions {
  position: absolute;
  left: 50%;
  top: 66%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  z-index: 4;
  animation: none;
}
.hero-actions::before { display: none; }
.hero-actions-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: auto;
}
.hero-actions-inner .button { width: 220px; white-space: nowrap; }

/* scripture bottom-right */
.hero-verse {
  position: absolute;
  left: auto;
  right: calc(clamp(40px, 9vw, 150px) - 32px);
  bottom: calc(clamp(28px, 5vh, 56px) + 4px);
  width: min(440px, 46%);
  text-align: right;
  padding: 0;
  z-index: 3;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; align-content: center; row-gap: 28px; }
  .hero-content { display: flex; flex-direction: column; }
  .hero-bottom { position: static; inset: auto; width: 100%; margin-top: 24px; }
  .hero-actions { position: static; transform: none; }
  .hero-actions-inner { flex-direction: row; flex-wrap: wrap; width: auto; }
  .hero-actions-inner .button { width: 220px; white-space: nowrap; }
  .hero-verse { position: static; width: auto; text-align: center; margin-top: 18px; }
  .hero h1 { font-size: clamp(34px, 9vw, 56px); max-width: 16ch; }
}

/* === Hero background-music toggle (top-right) === */
.hero-sound {
  position: absolute;
  top: clamp(110px, 15vh, 150px);
  right: 27px; /* center-aligned with the chat button column (right:20px, 60px wide) */
  z-index: 6;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 234, 0.4);
  background: rgba(20, 14, 6, 0.34);
  color: #fff8ea;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.hero-sound:hover { background: rgba(20, 14, 6, 0.55); border-color: rgba(255, 248, 234, 0.7); transform: scale(1.06); }
.hero-sound svg { display: block; }
.hero-sound .ic-on { display: none; }
.hero-sound.is-on { background: var(--sage); border-color: var(--sage); }
.hero-sound.is-on .ic-on { display: block; }
.hero-sound.is-on .ic-muted { display: none; }
@media (max-width: 640px) { .hero-sound { top: 74px; width: 42px; height: 42px; } }

/* === Full memorial example embedded directly under the hero === */
.example-embed {
  max-width: 1180px;
  margin: 44px auto 22px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: #f5efe3;
  overflow: hidden;
}
.example-frame {
  display: block;
  width: 100%;
  height: 3200px;            /* JS resizes to the real content height */
  border: 0;
}
.example-open-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin: 0 auto 8px; }
/* template-list now stands on its own (3 style cards) */
.templates .template-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 900px) { .templates .template-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .templates .template-list { grid-template-columns: 1fr; } }

.life-example {
  background:
    linear-gradient(180deg, rgba(251, 247, 236, 0.86), rgba(235, 226, 208, 0.9)),
    var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.life-example-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.life-profile {
  align-self: stretch;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.life-profile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 22px;
}

.life-profile .eyebrow {
  margin-bottom: 10px;
}

.life-profile h3 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 48px);
}

.life-profile p {
  margin-bottom: 10px;
  color: var(--muted);
}

.life-profile span {
  display: block;
  color: var(--sage);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.life-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.life-timeline figure {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #fffaf0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.life-timeline img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.life-timeline figcaption {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: var(--ink-2);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.life-timeline figcaption strong {
  color: var(--walnut);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.life-note {
  max-width: 1180px;
  margin: 18px auto 0;
  color: var(--muted);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 980px) {
  .life-example-shell {
    grid-template-columns: 1fr;
  }

  .life-profile {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: center;
  }

  .life-profile img {
    margin-bottom: 0;
  }

  .life-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .life-profile,
  .life-timeline {
    grid-template-columns: 1fr;
  }

  .life-timeline img {
    min-height: 250px;
  }
}

/* === Selectable style cards (swap the example below) === */
#template-options article { cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
#template-options article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
#template-options article.is-active {
  border-color: var(--sage);
  box-shadow: inset 0 0 0 1px var(--sage), var(--shadow-soft);
}
#template-options article.is-active h3::after {
  content: "Shown above";
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  padding: 3px 9px;
  background: rgba(94, 115, 89, 0.14);
  color: var(--sage);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === Example leads the page, full-bleed === */
.example-first { margin: 0; }
.example-first .example-embed {
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.example-first .example-open-row { padding: 18px 20px 4px; margin: 0; }


/* Green CTA used in the styles section + spacing */
.button-green { background: var(--sage); color: #fff8ea; border: 1px solid var(--sage); border-radius: 0; }
.button-green:hover { background: #54684f; border-color: #54684f; }
.templates .example-open-row { margin-top: 42px; align-items: center; }

/* ===== Elena AI avatar — "video call" demo ===== */
.avatar-section .section-head { margin-bottom: 26px; }
.call { max-width: 560px; margin: 0 auto; }
.call-stage {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #1c1813; box-shadow: 0 18px 50px rgba(0,0,0,.22);
  aspect-ratio: 4 / 5; max-height: 70vh;
}
.call-video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 6s ease; }
.call.speaking .call-video { transform: scale(1.04); }
.call-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 0 rgba(94,115,89,0); transition: box-shadow .3s ease;
}
.call.speaking .call-stage::after { box-shadow: inset 0 0 0 2px rgba(122,150,116,.7); }
.call-meta { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; }
.call-live { display: inline-flex; align-items: center; gap: 7px; background: rgba(0,0,0,.45); color: #fff; font-family: "Mulish",sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.call-live i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.8); }
@keyframes cblink { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.call-name { font-family: "Cormorant Garamond",serif; font-size: 26px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.call-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 20px 20px;
  color: #fdf8f0; font-family: "Lora",serif; font-size: 17px; line-height: 1.5;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  min-height: 64px;
}
.call-caption.thinking::after { content: "…"; animation: cdots 1.2s steps(4) infinite; }
@keyframes cdots { 0%{opacity:.3} 50%{opacity:1} 100%{opacity:.3} }
.call-controls { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.call-btn { display: inline-grid; place-items: center; border: 0; cursor: pointer; color: #fff; background: var(--sage,#5e7359); border-radius: 999px; }
.call-mic { width: 52px; height: 52px; flex: 0 0 auto; transition: background .2s ease, transform .15s ease; }
.call-mic:hover { transform: translateY(-1px); }
.call-mic.listening { background: #c0584f; animation: cpulse 1.3s ease-in-out infinite; }
@keyframes cpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(192,88,79,.5);} 50% { box-shadow: 0 0 0 10px rgba(192,88,79,0);} }
.call-textform { flex: 1; display: flex; gap: 8px; }
.call-textform input { flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper,#fff); font-family: "Lora",serif; font-size: 15px; color: var(--ink); }
.call-textform input:focus { outline: none; border-color: var(--sage,#5e7359); }
.call-send { width: 46px; height: 46px; flex: 0 0 auto; }
.avatar-note { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted,#8a7f6f); }
@media (max-width: 540px){ .call-stage { aspect-ratio: 3/4; } .call-caption { font-size: 15px; } }

/* ===== Help chatbot — Paradise Guide ===== */
.cbot { position: fixed; right: 32px; bottom: calc(clamp(32px, 5vh, 56px) + 4px); z-index: 90; font-family: "Mulish", system-ui, sans-serif; }
.cbot-toggle { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--sage,#5e7359); box-shadow: 0 8px 24px rgba(0,0,0,.25); display: grid; place-items: center; transition: transform .18s ease; }
.cbot-toggle:hover { transform: translateY(-2px) scale(1.04); }
.cbot-toggle img { width: 38px; height: 38px; object-fit: contain; filter: brightness(0) invert(1); }
.cbot.open .cbot-toggle { display: none; }
.cbot-panel { position: absolute; right: 0; bottom: 0; width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 40px)); background: var(--paper,#fdfbf6); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; }
.cbot-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sage,#5e7359); color: #fff; }
.cbot-head img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }
.cbot-head-text { line-height: 1.2; flex: 1; }
.cbot-head-text strong { display: block; font-size: 14px; }
.cbot-head-text span { font-size: 11px; opacity: .85; }
.cbot-close { background: transparent; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cbot-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg,#f4efe6); }
.cbot-msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.cbot-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--rule); color: var(--ink); border-bottom-left-radius: 4px; }
.cbot-msg.user { align-self: flex-end; background: var(--sage,#5e7359); color: #fff; border-bottom-right-radius: 4px; }
.cbot-msg.typing { color: var(--muted,#8a7f6f); font-style: italic; }
.cbot-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--rule); background: var(--paper,#fdfbf6); }
.cbot-form input { flex: 1; min-width: 0; padding: 10px 13px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; font-family: inherit; color: var(--ink); }
.cbot-form input:focus { outline: none; border-color: var(--sage,#5e7359); }
.cbot-form button { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--sage,#5e7359); color: #fff; cursor: pointer; display: grid; place-items: center; }
@media (max-width: 480px){ .cbot { right: 14px; bottom: 14px; } }

/* Footer links + plan-ahead */
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 0 0 16px; }
.footer-links a { font-family: "Mulish", system-ui, sans-serif; font-size: 13px; letter-spacing: .05em; color: rgba(255,248,234,.92); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-links a:hover { color: #fff; border-bottom-color: rgba(255,248,234,.6); }
.planahead .section-head { text-align: center; max-width: 720px; margin: 0 auto; }
.planahead-cta { margin-top: 24px; }

/* Chatbot panel must be closed by default (overrides the base .cbot-panel display) */
.cbot-panel { display: none; }
.cbot.open .cbot-panel { display: flex; }

/* Plan-ahead with photo (2-column) */
.planahead { display: grid; grid-template-columns: minmax(0,1.38fr) minmax(320px,0.72fr); gap: clamp(24px,4vw,52px); align-items: center; max-width: 1340px; margin: 0 auto; }
.planahead .section-head { text-align: left; max-width: none; margin: 0; }
.planahead-image img { width: 100%; display: block; padding: 11px; background: #fff; border-radius: 3px; box-shadow: var(--shadow); }
@media (max-width: 760px){ .planahead { grid-template-columns: 1fr; } .planahead .planahead-image { order: -1; } .planahead .section-head { text-align: center; } }

/* Start section: primary create CTA + secondary "remind me" email */
.start-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 4px; }
.start-panel .signup-form { margin-top: 20px; }
.start-panel .signup-form label { display: block; font-family: "Mulish", system-ui, sans-serif; font-size: 13px; letter-spacing: .01em; color: #fff8ea; margin-bottom: 10px; text-transform: none; }

/* "How it works" — trim height (esp. on mobile where the desk image stacks) */
.intro .product { margin-top: 24px; }
.intro .check-list { gap: 9px; margin-top: 18px; }
@media (max-width: 760px) {
  .intro .product-image-wrap { display: none; }
  .intro .product { margin-top: 6px; }
  .intro-grid { gap: 6px; }
}

/* Keep the moderation dashboard from changing height as comments animate out/in */
#moderation .am-comments { min-height: 169px; }

/* Live avatar overlays (HeyGen video stream / Tavus iframe) on the call stage */
.call-live-video, .call-tavus { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.call-live-video { object-fit: cover; background: #1c1813; }
.call-tavus-frame { width: 100%; height: 100%; border: 0; display: block; }
.call-meta, .call-caption { z-index: 2; }
.call-live-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.call-live-btn { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper,#fff); color: var(--ink); font-family: "Mulish", system-ui, sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .15s ease; }
.call-live-btn:hover { border-color: var(--sage,#5e7359); transform: translateY(-1px); }
.call-live-btn:disabled { opacity: .6; cursor: default; }
