:root {
  /* Light / warm paper identity */
  --bg-base: #F7F3EB;
  --bg-surface: #FFFCF7;
  --bg-elevated: #F0EBE1;
  --qr-plaque-bg: #EDE7DB;
  --gold-strong: #C9A84C;
  --gold-mid: rgba(201,168,76,0.40);
  --gold-subtle: rgba(201,168,76,0.18);
  --text-high: #1C1916;
  --text-mid: #6B645A;
  --text-low: #9A9288;
  --border-subtle: rgba(28,25,22,0.08);
  --ink-on-gold: #1C1916;
  --shadow-soft: 0 12px 40px rgba(28,25,22,0.08);
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --page-px: clamp(1rem, 4vw, 2.5rem);
  --card-pad: clamp(1rem, 3vw, 1.75rem);
  --m-topbar-h: 52px;
  /* Legacy aliases */
  --bg-page: var(--bg-base);
  --bg-card: var(--bg-surface);
  --gold: var(--gold-strong);
  --text-primary: var(--text-high);
  --text-muted: var(--text-mid);
}
html { scroll-behavior: smooth; }
html.memorial-route-active { scroll-behavior: auto; }
body {
  background: var(--bg-base);
  color: var(--text-high);
}
.glass-nav {
  background: rgba(247,243,235,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-link {
  color: var(--text-mid);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--text-high); }
.nav-logo { color: var(--text-high); text-decoration: none; }
.nav-logo-accent { color: var(--gold-strong); }
.nav-btn-register {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-strong); color: var(--ink-on-gold);
  font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 8px; padding: 9px 20px; text-decoration: none; border: none;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}
.nav-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  filter: brightness(1.04);
}
.nav-btn-register:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(201,168,76,0.22); }
.nav-bar-inner {
  grid-template-columns: minmax(0, 1fr) auto;
}
.nav-guest-desktop-only { display: none; }
.nav-btn-register-desktop { display: none; }
.nav-desktop-links {
  gap: 0.65rem;
  flex-wrap: nowrap;
}
.nav-desktop-links .nav-link {
  font-size: 13px;
  padding: 0.35rem 0.4rem;
}
.nav-desktop-links .nav-link.is-active {
  color: var(--text-high);
  box-shadow: inset 0 -2px 0 var(--gold-strong);
}
@media (min-width: 1024px) {
  .nav-bar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .nav-guest-desktop-only { display: contents; }
  .nav-btn-register-desktop { display: inline-flex; }
  .nav-desktop-links { gap: 0.55rem; }
}
@media (min-width: 1280px) {
  .nav-desktop-links { gap: 1rem; }
  .nav-desktop-links .nav-link {
    font-size: 14px;
    padding: 0.4rem 0.5rem;
  }
}
@media (min-width: 1536px) {
  .nav-desktop-links { gap: 1.35rem; }
}
.nav-mobile-panel {
  background: var(--bg-surface) !important;
  border-left-color: var(--border-subtle) !important;
}
.nav-mobile-link.is-active {
  color: var(--text-high) !important;
  background: rgba(201, 168, 76, 0.1);
}
.nav-mobile-link.is-active .nav-mobile-link-label {
  box-shadow: inset 0 -2px 0 var(--gold-strong);
}
.bg-elegant-grid { background-image: linear-gradient(rgba(28,25,22,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(28,25,22,0.04) 1px, transparent 1px); background-size: 80px 80px; }
.bg-elegant-glow { background: radial-gradient(ellipse at 75% 40%, rgba(201,168,76,0.12) 0%, transparent 58%), radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.06) 0%, transparent 52%); }
.no-scrollbar::-webkit-scrollbar { display: none; } .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.focus-ring:focus { outline: none; box-shadow: 0 0 0 2px rgba(201,168,76,0.35); }
/* CTA micro-animation (home / marketing) */
.cta-primary { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(201,168,76,0.35); }
/* Global mobile/tablet safety: avoid horizontal scroll from long text.
   Prefer clip over hidden so sticky/scroll don't break on iOS. */
html, body { overflow-x: clip; }
html.memorial-route-active,
html.memorial-route-active body {
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}
.break-anywhere { overflow-wrap: anywhere; word-break: break-word; }

/* Coarse pointers: skip expensive glass blurs site-wide */
@media (hover: none), (pointer: coarse) {
  .glass-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(247,243,235,0.97);
  }
  .gallery-search-sticky {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
/* Pricing page — light/warm paper identity */
@keyframes pricing-fade-in { from { opacity: 0; } to { opacity: 1; } }
.pricing-page {
  background: var(--bg-base);
  color: var(--text-high);
  font-size: 15px;
  line-height: 1.6;
}
.pricing-fade-in { animation: pricing-fade-in 300ms ease-out both; }
.pricing-gold-rule { height: 1px; background: #C9A84C; opacity: 0.3; border: none; }
.pricing-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: #C9A84C; }
.pricing-hero-title { font-family: "Playfair Display", serif; font-weight: 500; font-size: clamp(2rem, 5vw, 3rem); color: var(--text-high); line-height: 1.2; }
.pricing-hero-sub { color: var(--text-mid); font-size: 16px; }
.pricing-cards-grid { gap: 1.25rem; }
@media (min-width: 768px) { .pricing-cards-grid { gap: 2rem; } }
.pricing-card { background: var(--bg-surface); border-radius: 16px; border: 1px solid var(--border-subtle); box-shadow: 0 12px 32px rgba(28,25,22,0.06); }
.pricing-annual { color: var(--text-mid); font-size: 15px; line-height: 1.5; }
.pricing-partnerships-title {
  font-size: 1.125rem; font-weight: 500; color: var(--text-high); margin: 0 0 0.25rem;
}
.pricing-partnerships-sub {
  font-size: 0.875rem; color: var(--text-mid); margin: 0 0 1rem; line-height: 1.5;
}
.pricing-section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-mid); }
.pricing-package-name { font-family: "Playfair Display", serif; font-weight: 400; font-size: 1.5rem; color: var(--text-high); }
.pricing-price { font-size: clamp(52px, 8vw, 72px); font-weight: 300; color: var(--text-high); line-height: 1; letter-spacing: -0.02em; }
.pricing-price-strike { font-size: 1.5rem; font-weight: 300; color: var(--text-low); text-decoration: line-through; margin-right: 0.5rem; }
.pricing-one-time { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: #C9A84C; }
.pricing-discount-label { font-size: 0.875rem; color: #C9A84C; margin-top: 0.25rem; }
.pricing-feature { display: flex; align-items: flex-start; gap: 0.625rem; color: var(--text-mid); font-size: 15px; transition: color 0.2s; cursor: default; }
.pricing-feature:hover { color: var(--text-high); }
.pricing-feature-check { color: #C9A84C; font-size: 0.875rem; line-height: 1.6; flex-shrink: 0; }
.pricing-input { flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--border-subtle); background: var(--bg-surface) !important; color: var(--text-high); border-radius: 4px; font-size: 15px; font-family: inherit; }
.pricing-input::placeholder { color: var(--text-low); }
.pricing-input:focus { outline: none; border-color: #C9A84C; }
.pricing-btn-ghost { padding: 0.75rem 1.25rem; border: 1px solid #C9A84C; background: transparent; color: #C9A84C; border-radius: 4px; font-size: 15px; font-weight: 500; font-family: inherit; cursor: pointer; transition: opacity 0.2s; }
.pricing-btn-ghost:hover { opacity: 0.9; }
.pricing-btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }
.pricing-cta { display: block; width: 100%; text-align: center; background: var(--gold-strong); color: var(--ink-on-gold); border: none; border-radius: 4px; padding: 1rem 1.5rem; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; transition: opacity 0.2s; }
.pricing-cta:hover:not(:disabled) { opacity: 0.9; }
.pricing-cta:disabled { opacity: 0.5; cursor: not-allowed; }
.pricing-activation-note { font-size: 12px; color: var(--text-mid); text-align: center; margin-top: 0.75rem; }
.pricing-need-link-wrap { text-align: center; margin-top: 0.75rem; }
.pricing-need-link {
  font-size: 13px;
  color: var(--primary, #C9A84C);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing-need-link:hover { opacity: 0.85; }
.pricing-legal-consent {
  background: transparent;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.pricing-legal-consent .pricing-legal-text { color: var(--text-mid); font-size: 13px; }
.pricing-legal-consent .legal-doc-open { color: #C9A84C; font-weight: 500; }
.pricing-legal-consent input[type="checkbox"],
.cm-minor-consent input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  border-radius: 0.25rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: #C9A84C;
  accent-color: #C9A84C;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.pricing-legal-consent input[type="checkbox"]:checked,
.cm-minor-consent input[type="checkbox"]:checked {
  border-color: transparent;
  background-color: #C9A84C;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: 50%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35);
}
.pricing-legal-consent input[type="checkbox"]:focus-visible,
.cm-minor-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.35);
}
.pricing-legal-consent.is-accepted {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.35);
}
.pricing-legal-consent.is-accepted .pricing-legal-text { color: var(--text-high); }
.pricing-pillar { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; color: var(--text-mid); font-size: 14px; }
.pricing-pillar-text { max-width: 12rem; line-height: 1.4; }
.pricing-partnerships { background: var(--bg-surface); border-radius: 16px; border: 1px solid var(--border-subtle); }
.pricing-partnerships-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border: 1px solid #C9A84C; background: transparent; color: #C9A84C; border-radius: 4px; font-size: 14px; font-weight: 500; text-decoration: none; transition: opacity 0.2s; }
.pricing-partnerships-btn:hover { opacity: 0.9; }
.pricing-connected { font-size: 13px; color: #C9A84C; margin-top: 0.75rem; }
.pricing-discount-msg { font-size: 0.875rem; margin-top: 0.5rem; }
.pricing-remove-code { font-size: 13px; color: var(--text-mid); background: transparent; border: none; cursor: pointer; padding: 0; margin-top: 0.75rem; font-family: inherit; }
.pricing-remove-code:hover { color: var(--text-high); }
/* Create memorial page — light/warm paper identity */
.cm-page {
  --bg-input: #FFFCF7;
  --gold-muted: #7A6230;
  --border: var(--border-subtle);
  --border-hover: var(--gold-mid);
  --border-focus: rgba(201,168,76,0.60);
  background: var(--bg-base);
  color: var(--text-high);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
.cm-page .cm-main { max-width: 72rem; margin: 0 auto; padding: 1.5rem var(--page-px) 4rem; }
@media (min-width: 768px) { .cm-page .cm-main { padding: 2rem var(--page-px) 4rem; } }
.cm-header { margin-bottom: 1.5rem; }
@media (min-width: 768px) { .cm-header { margin-bottom: 2rem; } }
.cm-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 9999px; background: rgba(201,168,76,0.1); color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.cm-title { font-family: "Playfair Display", serif; font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.25rem); color: var(--text-primary); line-height: 1.2; margin: 0; }
.cm-subtitle { color: var(--text-muted); font-size: 14px; margin-top: 0.5rem; max-width: 42rem; }
@media (min-width: 768px) { .cm-subtitle { font-size: 15px; } }
.cm-required-note { font-size: 12px; color: var(--text-muted); margin-top: 0.75rem; }
.cm-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: var(--card-pad); }
.cm-card-title { font-family: "Playfair Display", serif; font-weight: 400; font-size: 1.125rem; color: var(--text-primary); margin: 0 0 0.25rem; display: flex; align-items: center; gap: 0.5rem; }
.cm-card-title .material-symbols-outlined { color: var(--gold); font-size: 1.25rem; }
.cm-section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 0; }
.cm-section-subtitle { font-size: 14px; color: var(--text-muted); margin: 0.25rem 0 0; line-height: 1.5; }
.cm-question-title { font-family: "Playfair Display", serif; font-weight: 400; font-size: 20px; color: var(--text-primary); margin: 0; }
.cm-field-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.cm-field { margin-bottom: 1rem; }
.cm-field:last-child { margin-bottom: 0; }
.cm-input, .cm-select, .cm-question-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-input);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.cm-input::placeholder, .cm-question-input::placeholder { color: var(--text-low); }
.cm-input:hover, .cm-select:hover, .cm-question-input:hover { border-color: var(--border-hover); }
.cm-input:focus, .cm-select:focus, .cm-question-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.06);
}
.cm-input:read-only { color: var(--text-muted); cursor: default; }
/* Override Tailwind forms plugin (white inputs on dark pages) */
.cm-page input.cm-input,
.cm-page textarea.cm-input,
.cm-page select.cm-select {
  background-color: #FFFCF7 !important;
  color: var(--text-high) !important;
  -webkit-text-fill-color: var(--text-high);
  caret-color: var(--text-high);
  border-color: rgba(28,25,22,0.12);
}
.cm-page input.cm-input::placeholder,
.cm-page textarea.cm-input::placeholder {
  color: var(--text-mid) !important;
  opacity: 1;
}
.cm-page input.cm-input:-webkit-autofill,
.cm-page input.cm-input:-webkit-autofill:hover,
.cm-page input.cm-input:-webkit-autofill:focus,
.cm-page textarea.cm-input:-webkit-autofill,
.cm-page textarea.cm-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-high) !important;
  box-shadow: 0 0 0 1000px #FFFCF7 inset !important;
  border-color: rgba(28,25,22,0.12);
}
.cm-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 2rem; }
.cm-date-group { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-select-day { min-width: 56px; flex: 0 0 auto; }
.cm-select-month { min-width: 70px; flex: 0 0 auto; }
.cm-select-year { min-width: 90px; flex: 1 1 auto; }
@media (max-width: 639px) {
  .cm-date-group { flex-direction: column; }
  .cm-select-day, .cm-select-month, .cm-select-year { min-width: 0; width: 100%; flex: 1 1 auto; }
}
.cm-grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .cm-grid-2 { grid-template-columns: 1fr 1fr; } }
.cm-form { display: flex; flex-direction: column; gap: 1.25rem; }
.cm-questions-list { display: flex; flex-direction: column; gap: 20px; margin-top: 1rem; }
.cm-question-field { margin-bottom: 0; }
.cm-question-label {
  display: block; font-size: 15px; font-weight: 400;
  color: var(--text-primary); line-height: 1.5; margin-bottom: 0.5rem;
}
.cm-question-input { resize: vertical; min-height: 48px; }
.cm-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.5rem; margin-top: 1rem;
  border: 2px dashed rgba(201,168,76,0.25); border-radius: 8px;
  cursor: pointer; transition: border-color 180ms ease, background 180ms ease;
}
.cm-dropzone:hover, .cm-dropzone.is-dragover {
  border-color: rgba(201,168,76,0.40);
  background: rgba(201,168,76,0.04);
}
.cm-dropzone-icon { color: var(--gold-muted); font-size: 28px; margin-bottom: 0.75rem; }
.cm-dropzone-text { color: var(--text-primary); font-size: 15px; margin: 0 0 0.5rem; }
.cm-dropzone-or { color: var(--text-muted); font-size: 14px; margin: 0 0 0.5rem; }
.cm-dropzone-link {
  background: none; border: none; padding: 0; color: var(--gold);
  font-size: 15px; font-weight: 500; font-family: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.cm-dropzone-link:hover { color: #B8963E; }
.cm-dropzone-formats { color: var(--text-muted); font-size: 13px; margin: 0.75rem 0 0; }
.cm-dropzone-count { color: var(--gold); font-size: 13px; margin: 0.5rem 0 0; }
.cm-dropzone-count.hidden { display: none; }
.cm-dropzone-hint { color: var(--text-muted); font-size: 13px; margin: 0.35rem 0 0; }
.cm-images-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 1rem;
}
.cm-images-preview.hidden { display: none; }
.cm-image-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(0, 0, 0, 0.04);
}
.cm-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cm-time-hint {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.08);
  color: var(--text-primary);
  font-size: 14px;
  text-align: center;
}
.cm-time-hint.hidden { display: none; }
.pricing-time-hint {
  margin-top: 0.75rem;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.5;
}
.pricing-register-banner {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.1);
}
.pricing-register-banner.hidden { display: none; }
.pricing-register-banner-text {
  margin: 0;
  color: var(--text-primary, #1C1916);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.cm-dropzone-hint { color: var(--text-muted); font-size: 13px; margin: 0.35rem 0 0; }
.cm-images-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 1rem;
}
.cm-images-preview.hidden { display: none; }
.cm-image-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(0, 0, 0, 0.04);
}
.cm-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cm-time-hint {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.08);
  color: var(--text-primary);
  font-size: 14px;
  text-align: center;
}
.cm-time-hint.hidden { display: none; }
.pricing-time-hint {
  margin-top: 0.75rem;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.5;
}
.pricing-register-banner {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.1);
}
.pricing-register-banner.hidden { display: none; }
.pricing-register-banner-text {
  margin: 0;
  color: var(--text-primary, #F0EDE8);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.cm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cm-stepper { margin-bottom: 1.5rem; }
.cm-stepper-track { display: flex; align-items: center; justify-content: center; max-width: 32rem; margin: 0 auto; }
.cm-stepper-node {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.3); background: transparent;
  transition: background 200ms ease, border-color 200ms ease;
}
.cm-stepper-node.is-active, .cm-stepper-node.is-complete { background: var(--gold); border-color: var(--gold); }
.cm-stepper-line {
  flex: 1; height: 1px; background: rgba(201,168,76,0.2);
  transition: background 200ms ease;
}
.cm-stepper-line.is-complete { background: var(--gold); }
.cm-stepper-labels { display: flex; justify-content: space-between; max-width: 32rem; margin: 0.5rem auto 0; gap: 0.5rem; }
.cm-stepper-label { flex: 1; text-align: center; font-size: 12px; color: var(--text-muted); transition: color 200ms ease; }
.cm-stepper-label:first-child { text-align: left; }
.cm-stepper-label:last-child { text-align: right; }
.cm-stepper-label.is-active, .cm-stepper-label.is-complete { color: var(--text-primary); }
.cm-btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; border: 1px solid rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.08); color: var(--gold);
  border-radius: 8px; font-size: 14px; font-weight: 500;
  font-family: inherit; cursor: pointer; transition: background 180ms ease, border-color 180ms ease;
}
.cm-btn-secondary:hover:not(:disabled) { background: rgba(201,168,76,0.14); border-color: rgba(201,168,76,0.35); }
.cm-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }
.cm-status { font-size: 13px; color: var(--text-muted); margin-top: 0.75rem; }
.cm-status.hidden { display: none; }
.cm-status.is-error { color: #f87171; }
.cm-status.is-success { color: #86efac; }
.cm-trust-grid { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .cm-trust-grid { grid-template-columns: repeat(3, 1fr); } }
.cm-trust-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.cm-trust-item .material-symbols-outlined { color: var(--gold-muted); font-size: 1.25rem; margin-top: 0.125rem; }
.cm-trust-title { font-size: 14px; font-weight: 500; color: var(--text-primary); margin: 0; }
.cm-trust-desc { font-size: 12px; color: var(--text-muted); margin: 0.125rem 0 0; }
.cm-field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.cm-field-label-row .cm-field-label { margin-bottom: 0; }
.cm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.25rem; }
.cm-card-head .cm-card-title { flex: 1; min-width: 0; margin-bottom: 0; }
.cm-info-details { position: relative; flex-shrink: 0; }
.cm-info-details > summary { list-style: none; }
.cm-info-details > summary::-webkit-details-marker { display: none; }
.cm-info-summary {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.65rem; border-radius: 9999px;
  border: 1px solid rgba(201,168,76,0.25); background: rgba(201,168,76,0.08);
  color: var(--gold); font-size: 12px; font-weight: 500;
  cursor: pointer; user-select: none;
}
.cm-info-summary--icon { width: 2rem; height: 2rem; padding: 0; justify-content: center; border-radius: 50%; }
.cm-info-summary .material-symbols-outlined { font-size: 1rem; line-height: 1; }
.cm-info-panel {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 30;
  width: min(20rem, calc(100vw - 2rem)); padding: 1rem; border-radius: 10px;
  border: 1px solid rgba(201,168,76,0.25); background: var(--bg-card);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.cm-info-panel--visibility { width: min(18rem, calc(100vw - 2rem)); }
.cm-info-panel-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0 0 0.5rem; }
.cm-info-panel-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cm-info-vis-option + .cm-info-vis-option { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(201,168,76,0.12); }
.cm-info-vis-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0 0 0.2rem; }
.cm-info-vis-desc { font-size: 12px; color: var(--text-muted); line-height: 1.45; margin: 0; }
.cm-field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.cm-field-label-row .cm-field-label { margin-bottom: 0; }
.cm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.25rem; }
.cm-card-head .cm-card-title { flex: 1; min-width: 0; margin-bottom: 0; }
.cm-info-details { position: relative; flex-shrink: 0; }
.cm-info-details > summary { list-style: none; }
.cm-info-details > summary::-webkit-details-marker { display: none; }
.cm-info-summary {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.65rem; border-radius: 9999px;
  border: 1px solid rgba(201,168,76,0.25); background: rgba(201,168,76,0.08);
  color: var(--gold); font-size: 12px; font-weight: 500;
  cursor: pointer; user-select: none;
}
.cm-info-summary--icon { width: 2rem; height: 2rem; padding: 0; justify-content: center; border-radius: 50%; }
.cm-info-summary .material-symbols-outlined { font-size: 1rem; line-height: 1; }
.cm-info-panel {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 30;
  width: min(20rem, calc(100vw - 2rem)); padding: 1rem; border-radius: 10px;
  border: 1px solid rgba(201,168,76,0.25); background: var(--bg-card);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.cm-info-panel--visibility { width: min(18rem, calc(100vw - 2rem)); }
.cm-info-panel-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0 0 0.5rem; }
.cm-info-panel-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.cm-info-vis-option + .cm-info-vis-option { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(201,168,76,0.12); }
.cm-info-vis-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0 0 0.2rem; }
.cm-info-vis-desc { font-size: 12px; color: var(--text-muted); line-height: 1.45; margin: 0; }
.cm-footer { margin-top: 0.5rem; }
.cm-cta-wrap { max-width: 320px; margin: 1.25rem auto 0; width: 100%; }
.cm-cta-wrap--desktop { display: none; }
@media (min-width: 1024px) { .cm-cta-wrap--desktop { display: block; } }
.cm-mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255,252,247,0.96); border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
@media (min-width: 1024px) { .cm-mobile-bar { display: none; } }
.cm-page.has-mobile-bar { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
.cm-mobile-bar .cm-mobile-cta { flex: 1; max-width: none; min-height: 48px; }
.em-desktop-save { max-width: 280px; width: 100%; }
.cm-cta {
  display: block; width: 100%; text-align: center;
  background: var(--gold-strong); color: var(--ink-on-gold);
  border: none; border-radius: 8px; padding: 14px;
  font-size: 15px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: background 180ms ease;
}
.cm-cta:hover:not(:disabled) { background: #B8963E; }
.cm-cta:disabled { opacity: 0.45; cursor: not-allowed; }
.cm-cta--create:not(:disabled) {
  min-height: 48px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.28);
  letter-spacing: 0.01em;
}
.cm-cta--create:not(:disabled):hover { box-shadow: 0 6px 18px rgba(201, 168, 76, 0.35); }
.cm-submit-hint {
  margin: 0.65rem 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}
.cm-submit-hint.hidden { display: none; }
.cm-submit-hint--mobile { margin: 0 0 0.5rem; flex: 1 1 100%; }
.cm-mobile-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--page-px);
}
.cm-header-paid .cm-title { font-size: clamp(1.65rem, 5vw, 2.35rem); }
.cm-paid-guidance {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem 0.85rem 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  background: rgba(201, 168, 76, 0.06);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 42rem;
}
.cm-paid-guidance li { margin: 0.35rem 0; }
.cm-paid-guidance li::marker { color: var(--gold); }
.cm-section-label--inline {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.cm-section-label--priority {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.cm-error { font-size: 14px; color: #f87171; }
.cm-error.hidden { display: none; }
.cm-success {
  margin-top: 1.5rem; border-radius: 12px; border: 1px solid rgba(134,239,172,0.3);
  border-left: 4px solid #86efac; background: rgba(134,239,172,0.08); padding: 1.5rem;
}
.cm-success.hidden { display: none; }
.cm-success h2 { font-size: 1.25rem; font-weight: 600; color: #86efac; margin: 0 0 0.5rem; }
.cm-success p, .cm-success li { color: rgba(134,239,172,0.9); font-size: 14px; }
.cm-minor-consent {
  margin-top: 1rem; border-radius: 12px; border: 1px solid rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.06); padding: 1rem 1.25rem;
}
.cm-minor-consent.hidden { display: none; }
.cm-minor-consent-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.cm-minor-consent-notice { font-size: 12px; color: var(--text-muted); margin: 0 0 0.75rem; line-height: 1.5; }
.cm-minor-consent label { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }
.cm-minor-consent.is-accepted {
  border-color: rgba(201, 168, 76, 0.55);
  background: rgba(201, 168, 76, 0.12);
}
.cm-minor-consent-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.cm-login-wrap { padding-top: 6rem; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding-left: 1rem; padding-right: 1rem; }
.cm-login-card { text-align: center; max-width: 28rem; }
.cm-login-title { font-family: "Playfair Display", serif; font-weight: 400; font-size: 1.5rem; color: var(--text-primary); margin: 0 0 1rem; }
.cm-login-sub { color: var(--text-muted); margin-bottom: 1.5rem; }
.cm-login-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.cm-login-actions .cm-btn-outline {
  display: inline-block; padding: 0.875rem 2rem; border: 1px solid var(--gold);
  color: var(--gold); font-weight: 500; border-radius: 8px; text-decoration: none;
  transition: background 180ms ease;
}
.cm-footer .pricing-legal-consent { margin-top: 1rem; }

/* Edit memorial */
.em-page { padding-bottom: 5rem; }
@media (min-width: 1024px) { .em-page { padding-bottom: 4rem; } }
.em-progress-wrap { margin-top: 1.25rem; max-width: 28rem; }
.em-progress-track { height: 6px; border-radius: 9999px; background: rgba(201,168,76,0.12); overflow: hidden; }
.em-progress-bar { height: 100%; background: linear-gradient(90deg, var(--gold-muted), var(--gold-strong)); border-radius: 9999px; transition: width 200ms ease; }
.em-progress-text { font-size: 12px; color: var(--text-muted); margin: 0.5rem 0 0; }
.em-layout { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1024px) { .em-layout { grid-template-columns: 1fr min(340px, 32vw); gap: 1.5rem; } }
.em-form-col { min-width: 0; }
.em-preview-col { min-width: 0; }
@media (min-width: 1024px) {
  .em-preview-panel { position: sticky; top: 6rem; }
}
.em-section { margin-bottom: 0; }
.em-section-summary {
  list-style: none; display: flex; align-items: center; gap: 0.75rem; cursor: pointer;
  padding: 0; margin: 0; user-select: none;
}
.em-section-summary::-webkit-details-marker { display: none; }
.em-section-icon { color: var(--gold); font-size: 1.25rem; }
.em-section-title { font-family: "Playfair Display", serif; font-size: 1.05rem; color: var(--text-primary); flex: 1; }
.em-section-chevron { color: var(--text-muted); transition: transform 200ms ease; }
.em-section[open] .em-section-chevron { transform: rotate(180deg); }
.em-section-body { margin-top: 1.25rem; padding-top: 0.25rem; border-top: 1px solid var(--border); animation: emSectionIn 200ms ease; }
@keyframes emSectionIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .em-progress-bar, .em-section-chevron, .em-section-body { transition: none; animation: none; }
}
.em-field-error { font-size: 12px; color: #f87171; margin: 0.35rem 0 0; }
.em-field-error.hidden, .em-field-hint.hidden { display: none; }
.em-field-hint { font-size: 12px; color: var(--text-muted); margin-top: 0.5rem; }
.em-age-hint { font-size: 13px; color: var(--gold); margin: 0.5rem 0 0; font-style: italic; }
.em-age-hint.hidden { display: none; }
.em-bio-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem; }
.em-toolbar-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-elevated);
  color: var(--text-muted); cursor: pointer; transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.em-toolbar-btn:hover { border-color: rgba(201,168,76,0.35); color: var(--gold); background: rgba(201,168,76,0.08); }
.em-toolbar-btn .material-symbols-outlined { font-size: 1.1rem; }
.em-toolbar-btn-text { padding: 0 12px; width: auto; font-size: 12px; font-family: inherit; }
.em-toolbar-btn-ai { padding: 0 12px; width: auto; font-size: 12px; font-family: inherit; color: var(--gold); border-color: rgba(201,168,76,0.25); }
.em-toolbar-btn-ai.is-loading { opacity: 0.6; pointer-events: none; }
.em-toolbar-btn-ai:disabled { opacity: 0.4; cursor: not-allowed; }
#em-bio-editor-wrap { position: relative; }
.em-bio-empty {
  position: absolute; inset: 12px 14px auto; pointer-events: none; font-size: 14px; color: var(--text-low);
  font-style: italic; line-height: 1.5;
}
.em-bio-empty.hidden { display: none; }
.em-bio-preview {
  min-height: 160px; padding: 1rem; border: 1px solid var(--border); border-radius: 8px;
  font-family: "Playfair Display", Georgia, serif; font-size: 15px; line-height: 1.7; color: var(--text-primary);
  background: rgba(201,168,76,0.04);
}
.em-bio-counter { font-size: 12px; color: var(--text-muted); margin: 0.5rem 0 0; text-align: right; }
.em-bio-counter.is-over { color: #fbbf24; }
.em-geo-btn { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.em-cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 0.75rem; }
.em-cover-thumb {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; padding: 0; border: 2px solid transparent;
  cursor: pointer; background: var(--bg-base); transition: border-color 180ms ease, transform 180ms ease;
}
.em-cover-thumb:hover { transform: scale(1.02); border-color: rgba(201,168,76,0.35); }
.em-cover-thumb.is-selected { border-color: var(--gold-strong); box-shadow: 0 0 0 1px rgba(201,168,76,0.2); }
.em-cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-cover-check {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35); color: #fff; font-size: 2rem; opacity: 0; transition: opacity 180ms ease;
}
.em-cover-thumb.is-selected .em-cover-check { opacity: 1; }
.em-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 1rem 0; }
.em-media-item {
  position: relative; border-radius: 10px; overflow: hidden; background: var(--bg-base);
  border: 1px solid var(--border); aspect-ratio: 1;
}
.em-media-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-drag-handle {
  position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,0.55); color: #fff;
  border-radius: 6px; font-size: 1.1rem; cursor: grab; padding: 2px;
}
.em-media-delete {
  position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: none; border-radius: 6px;
  background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.em-media-delete .material-symbols-outlined { font-size: 1rem; }
.em-dropzone { margin-top: 0.5rem; }
.em-vis-grid { display: grid; gap: 10px; margin-top: 1rem; }
@media (min-width: 640px) { .em-vis-grid { grid-template-columns: repeat(3, 1fr); } }
.em-vis-card {
  display: block; padding: 14px; border-radius: 10px; border: 1px solid var(--border);
  cursor: pointer; transition: border-color 180ms ease, background 180ms ease;
}
.em-vis-card.is-selected { border-color: rgba(201,168,76,0.45); background: rgba(201,168,76,0.08); }
.em-vis-radio { position: absolute; opacity: 0; pointer-events: none; }
.em-vis-card-title { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.em-vis-card-desc { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.em-share-link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.35rem; }
.em-share-link-input { flex: 1 1 220px; font-size: 13px; }
.em-share-copy-btn { flex: 0 0 auto; white-space: nowrap; }
.em-regenerate-qr-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 0.75rem; }
.em-qr-result { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(201,168,76,0.25); border-radius: 10px; background: rgba(201,168,76,0.06); }
.em-qr-result.hidden { display: none; }
.em-privacy-notice { margin: 0.75rem 0 1rem; padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid rgba(201,168,76,0.35); background: rgba(201,168,76,0.08); font-size: 0.875rem; line-height: 1.5; color: var(--text-mid, #6b7280); }
.em-qr-success { font-size: 14px; color: var(--gold); margin: 0 0 0.75rem; }
.em-qr-image { display: block; width: 200px; height: 200px; margin: 0 0 0.75rem; border-radius: 8px; background: #fff; padding: 8px; }
.em-qr-url { font-size: 13px; word-break: break-all; margin: 0 0 0.75rem; }
.em-qr-download { display: inline-flex; margin-top: 0.25rem; text-decoration: none; }
.em-desktop-actions { align-items: center; gap: 1rem; margin-top: 0.5rem; }
.em-back-link { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.em-back-link:hover { color: var(--gold); }
.em-preview-card {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,168,76,0.1), transparent 65%),
    var(--bg-surface);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(28,25,22,0.06);
  text-align: center;
}
.em-preview-badge {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); background: rgba(201,168,76,0.1); padding: 4px 10px; border-radius: 9999px; margin-bottom: 1.15rem;
}
.em-preview-cover {
  width: 7.5rem;
  height: 7.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.15rem;
  background: var(--bg-elevated);
  border: 2px solid rgba(201,168,76,0.5);
  box-shadow:
    0 0 0 8px rgba(255,252,247,0.95),
    0 0 0 10px rgba(201,168,76,0.18),
    0 14px 32px rgba(28,25,22,0.1);
}
.em-preview-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.em-preview-cover-empty { display: flex; align-items: center; justify-content: center; color: var(--text-low); }
.em-preview-cover-empty .material-symbols-outlined { font-size: 2.5rem; }
.em-preview-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.em-preview-years {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.85rem;
  color: var(--gold);
  margin: 0.45rem 0 0;
  letter-spacing: 0.18em;
}
.em-preview-age { font-size: 13px; color: var(--text-muted); font-style: italic; margin: 0.25rem 0 0; }
.em-preview-location { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin: 0.75rem 0 0; }
.em-preview-location .material-symbols-outlined { font-size: 1rem; color: var(--gold-muted); }
.em-preview-bio {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,76,0.18);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(28,25,22,0.78);
  text-align: left;
}
.em-preview-bio p { margin: 0 0 0.85rem; }
.em-preview-empty { color: var(--text-low); font-style: italic; margin: 0; text-align: center; }
.em-toast {
  position: fixed; bottom: 5.5rem; left: 50%; transform: translateX(-50%); z-index: 90;
  padding: 10px 18px; border-radius: 9999px; font-size: 13px; font-weight: 500;
  background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(28,25,22,0.12);
}
@media (min-width: 1024px) { .em-toast { bottom: 1.5rem; } }
.em-toast.is-saved { border-color: rgba(134,239,172,0.35); color: #86efac; }
.em-toast.is-saving { color: var(--gold); }
.em-toast.is-error { border-color: rgba(248,113,113,0.35); color: #f87171; }
.em-toast.hidden { display: none; }
.em-mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255,252,247,0.96); border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.em-mobile-status { flex: 1; font-size: 12px; color: var(--text-muted); min-width: 0; }
.em-mobile-cta { flex: 1; max-width: 200px; padding: 12px !important; font-size: 14px !important; }
.em-bottom-sheet { position: fixed; inset: 0; z-index: 100; }
.em-bottom-sheet.hidden { display: none; }
.em-bottom-sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.em-bottom-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 70vh; overflow-y: auto;
  background: var(--bg-card); border-radius: 16px 16px 0 0; border-top: 1px solid var(--border);
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
  animation: emSheetUp 200ms ease;
}
@keyframes emSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.em-bottom-sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.em-bottom-sheet-header h3 { margin: 0; font-family: "Playfair Display", serif; font-size: 1.1rem; color: var(--text-primary); }
.em-sheet-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; }
.em-cover-sheet-btn { margin-top: 0.75rem; }
.em-modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.em-modal.hidden { display: none; }
.em-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.em-modal-panel {
  position: relative; max-width: 400px; width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; z-index: 1;
}
.em-modal-panel h3 { margin: 0 0 0.5rem; font-family: "Playfair Display", serif; color: var(--text-primary); }
.em-modal-panel p { margin: 0 0 1.25rem; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.em-modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.memorial-header-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(201,168,76,0.4); margin: 0 auto 1rem; display: block; }
.memorial-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(201,168,76,0.18); margin-bottom: 1.5rem; }
.memorial-tabs button { padding: 0.75rem 1.25rem; font-size: 0.95rem; background: none; border: none; color: #8a8a8a; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; }
.memorial-tabs button:hover { color: #C9A84C; }
.memorial-tabs button.active { color: #C9A84C; border-bottom-color: #C9A84C; font-weight: 500; }
.memorial-tab-content { min-height: 200px; }
/* Memorial — light/warm paper identity */
.memorial-content-wrap { --m-bg-deep: #F7F3EB; --m-bg-mid: #FFFCF7; --m-border: rgba(201,168,76,0.22); --m-gold: #C9A84C; --m-gold-light: #B8963E; --m-ivory: #1C1916; --m-cream: #F0EBE1; --m-text-soft: #1C1916; --m-text-muted: rgba(28,25,22,0.58);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 95% 58% at 50% -4%, rgba(201,168,76,0.28), transparent 58%),
    radial-gradient(ellipse 42% 34% at 8% 42%, rgba(201,168,76,0.12), transparent 72%),
    radial-gradient(ellipse 42% 34% at 92% 48%, rgba(201,168,76,0.11), transparent 72%),
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(28,25,22,0.07), transparent 60%),
    linear-gradient(90deg, #E8E1D2 0%, #F3EEE4 11%, #F7F3EB 50%, #F3EEE4 89%, #E8E1D2 100%),
    linear-gradient(180deg, #FFFCF7 0%, #F7F3EB 34%, #EFE9DD 100%) !important;
  color: var(--m-text-soft);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 0 max(4rem, env(safe-area-inset-bottom, 0px));
}
/* Heavy SVG noise + blend modes were forcing costly paints on every scroll frame */
.memorial-content-wrap::before {
  content: none;
}
.memorial-content-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(28,25,22,0.055) 0%, transparent 14%, transparent 86%, rgba(28,25,22,0.055) 100%),
    radial-gradient(ellipse 70% 40% at 50% 18%, rgba(255,252,247,0.35), transparent 70%);
}
.memorial-content-wrap > * { position: relative; z-index: 1; }
.memorial-content-wrap > .memorial-hero-aura {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: min(72vh, 560px);
  min-height: 0;
  max-height: 560px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  overflow: hidden;
  contain: paint;
  transform: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0,0,0,0.5) 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0,0,0,0.5) 78%, transparent 100%);
}
.memorial-content-wrap > .memorial-hero-aura img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 22%;
  /* Avoid CSS blur — major scroll jank on mobile and desktop GPUs */
  filter: none;
  transform: none;
  opacity: 0.55;
}
.memorial-content-wrap > .memorial-hero-aura--empty {
  background:
    radial-gradient(ellipse 90% 60% at 50% 18%, rgba(201,168,76,0.28), transparent 62%),
    radial-gradient(ellipse 70% 50% at 20% 70%, rgba(201,168,76,0.12), transparent 70%),
    radial-gradient(ellipse 70% 50% at 80% 65%, rgba(201,168,76,0.1), transparent 70%);
  opacity: 1;
  min-height: 100%;
}
.memorial-content-wrap .memorial-topbar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--m-topbar-h); padding: 10px var(--page-px);
  padding-top: max(10px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(201,168,76,0.14);
  background: rgba(255,252,247,0.94);
  /* Sticky + backdrop-filter fights native scroll on iOS */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: sticky; top: 0; z-index: 50;
}
.memorial-content-wrap .memorial-share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.28);
  color: var(--m-gold-light); font-size: 13px; padding: 10px 18px; min-height: 44px;
  border-radius: 9999px; cursor: pointer; font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.memorial-content-wrap .memorial-share-btn:hover {
  background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.42);
}
.memorial-content-wrap .memorial-home-link {
  color: var(--m-ivory); text-decoration: none; font-size: 1rem;
  min-height: 44px; display: inline-flex; align-items: center;
  letter-spacing: 0.04em;
}
.memorial-content-wrap .memorial-home-link .nav-logo-accent { color: var(--m-gold); }
/* Responsive container for memorial pages */
.memorial-content-wrap { --m-container: min(760px, calc(100vw - 40px)); }
@media (min-width: 768px) and (max-width: 1023px) {
  .memorial-content-wrap { --m-container: min(860px, calc(100vw - 48px)); }
}
@media (min-width: 1024px) {
  .memorial-content-wrap { --m-container: min(1040px, calc(100vw - 64px)); }
}

.memorial-content-wrap .memorial-hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding-bottom: 0.5rem;
}
.memorial-content-wrap .memorial-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 18%, rgba(255,252,247,0.12), transparent 65%),
    linear-gradient(180deg, rgba(247,243,235,0.08) 0%, rgba(247,243,235,0.28) 70%, transparent 100%);
}
.memorial-content-wrap .memorial-profile {
  position: relative;
  z-index: 1;
  max-width: var(--m-container);
  margin: 0 auto;
  padding: 56px 24px 8px;
  text-align: center;
}
.memorial-content-wrap .memorial-avatar-wrap { margin-bottom: 30px; }
.memorial-content-wrap .memorial-avatar {
  width: 184px; height: 184px; border-radius: 50%; margin: 0 auto; background: var(--m-bg-mid);
  border: 2.5px solid rgba(201,168,76,0.65);
  box-shadow:
    0 0 0 8px rgba(255,252,247,0.92),
    0 0 0 10px rgba(201,168,76,0.28),
    0 0 0 18px rgba(255,252,247,0.55),
    0 28px 64px rgba(28,25,22,0.16);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.memorial-content-wrap .memorial-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  filter: sepia(8%) contrast(0.99);
}
.memorial-content-wrap .memorial-avatar .memorial-avatar-placeholder { font-size: 72px; color: var(--m-text-muted); }
.memorial-content-wrap .memorial-profile-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.05rem);
  font-weight: 500;
  color: var(--m-ivory);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  text-shadow: 0 1px 0 rgba(255,252,247,0.35);
}
.memorial-content-wrap .memorial-profile-dates {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--m-gold);
  letter-spacing: 0.32em;
  margin: 0 0 18px;
  text-shadow: 0 0 24px rgba(201,168,76,0.25);
}
.memorial-content-wrap .memorial-profile-dates:empty { display: none; }
.memorial-content-wrap .memorial-profile-dates:not(:empty)::before,
.memorial-content-wrap .memorial-profile-dates:not(:empty)::after {
  content: '·';
  display: inline-block;
  margin: 0 0.4em;
  letter-spacing: 0;
  opacity: 0.8;
}
.memorial-content-wrap .memorial-profile-ornament {
  width: 3.5rem;
  height: 1px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.85), transparent);
  position: relative;
}
.memorial-content-wrap .memorial-profile-ornament::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--m-gold);
  box-shadow: 0 0 0 4px rgba(255,252,247,0.95), 0 0 12px rgba(201,168,76,0.35);
}
.memorial-content-wrap .memorial-profile-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(28,25,22,0.68);
  line-height: 1.75;
  max-width: 34rem;
  margin: 0 auto;
}
.memorial-content-wrap .memorial-profile-quote::before {
  content: '\201C';
  font-size: 1.35em;
  color: rgba(201,168,76,0.75);
  margin-right: 0.08em;
}
.memorial-content-wrap .memorial-profile-quote::after {
  content: '\201D';
  font-size: 1.35em;
  color: rgba(201,168,76,0.75);
  margin-left: 0.08em;
}

@keyframes memorialRevealUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes memorialPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes memorialKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
.memorial-content-wrap .memorial-reveal {
  opacity: 0;
  animation: memorialRevealUp 0.85s ease forwards;
}
.memorial-content-wrap .memorial-reveal--1 { animation-delay: 0.06s; }
.memorial-content-wrap .memorial-reveal--2 { animation-delay: 0.18s; }
.memorial-content-wrap .memorial-reveal--3 { animation-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .memorial-content-wrap .memorial-reveal {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

.memorial-content-wrap .memorial-tabs-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  /* Avoid sticky here — competes with topbar and feels like scroll lock */
  position: relative;
  top: auto;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 8px 12px 10px;
  border: none;
  box-shadow: none;
}
.memorial-content-wrap .memorial-tabs-wrap::before {
  content: none;
}
.memorial-content-wrap .memorial-tabs {
  margin: 0;
  border-bottom: none;
  justify-content: center;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  border-radius: 9999px;
  background: rgba(255,252,247,0.95);
  border: 1px solid rgba(201,168,76,0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,252,247,0.9),
    0 3px 10px rgba(28,25,22,0.05);
}
.memorial-content-wrap .memorial-tabs button {
  color: rgba(28,25,22,0.45);
  font-family: 'Playfair Display', serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.38rem 0.95rem;
  border: none;
  border-bottom: none;
  margin: 0;
  border-radius: 9999px;
  background: transparent;
  outline: none;
  box-shadow: none;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.memorial-content-wrap .memorial-tabs button:focus,
.memorial-content-wrap .memorial-tabs button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,252,247,0.95), 0 0 0 3px rgba(201,168,76,0.4);
}
.memorial-content-wrap .memorial-tabs button:hover {
  color: rgba(28,25,22,0.75);
  background: rgba(201,168,76,0.1);
}
.memorial-content-wrap .memorial-tabs button.active {
  color: var(--ink-on-gold, #1C1916);
  background: linear-gradient(180deg, #D4B45A 0%, var(--m-gold) 100%);
  border-bottom-color: transparent;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(201,168,76,0.28);
}
.memorial-content-wrap .memorial-tabs button.active:focus-visible {
  box-shadow:
    0 2px 8px rgba(201,168,76,0.28),
    0 0 0 2px rgba(255,252,247,0.95),
    0 0 0 3px rgba(201,168,76,0.45);
}
.memorial-content-wrap .memorial-page {
  max-width: var(--m-container);
  margin: 0 auto;
  padding: 1.75rem 24px 0;
}
.memorial-content-wrap .memorial-tab-content > [role="tabpanel"]:not(.hidden) {
  animation: memorialPanelIn 0.22s ease;
}
@media (prefers-reduced-motion: reduce) {
  .memorial-content-wrap .memorial-tab-content > [role="tabpanel"]:not(.hidden) { animation: none; }
}
.memorial-content-wrap .memorial-view-all { color: var(--m-text-muted); }
.memorial-content-wrap .memorial-view-all a { color: var(--m-gold-light); text-decoration: none; }
.memorial-content-wrap .memorial-view-all a:hover { text-decoration: underline; }

/* Biografía — manuscrito ceremonial */
.memorial-content-wrap .memorial-bio-panel {
  position: relative;
  max-width: 100%;
  width: 100%;
  margin: 0.25rem auto 0;
  padding: clamp(1.5rem, 4.5vw, 2.6rem) clamp(1.35rem, 4vw, 2.4rem) clamp(1.65rem, 4.5vw, 2.75rem);
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(201,168,76,0.1), transparent 60%),
    #FFFCF7;
  border: 1px solid rgba(201, 168, 76, 0.32);
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(255,252,247,0.9),
    0 0 0 8px rgba(255, 252, 247, 0.5),
    0 0 0 9px rgba(201,168,76,0.18),
    0 22px 56px rgba(28, 25, 22, 0.09);
  box-sizing: border-box;
}
.memorial-content-wrap .memorial-bio-enter {
  animation: memorialPanelIn 0.65s ease both;
  animation-delay: 0.12s;
}
@media (prefers-reduced-motion: reduce) {
  .memorial-content-wrap .memorial-bio-enter { animation: none; }
}
.memorial-content-wrap .memorial-bio-ornament {
  width: 3.25rem;
  height: 1px;
  margin: 0 auto 1.45rem;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.8), transparent);
  position: relative;
}
.memorial-content-wrap .memorial-bio-ornament--bottom {
  margin: 1.6rem auto 0;
}
.memorial-content-wrap .memorial-bio-ornament::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--m-gold);
  box-shadow: 0 0 0 4px #FFFCF7;
}
.memorial-content-wrap .memorial-bio-body {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.06rem, 1.9vw, 1.16rem);
  line-height: 1.98;
  color: rgba(28,25,22,0.82);
}
.memorial-content-wrap .memorial-bio-body p {
  margin: 0 0 1.3rem;
}
.memorial-content-wrap .memorial-bio-body p:last-child { margin-bottom: 0; }
.memorial-content-wrap .memorial-bio-body p:first-child {
  font-size: 1.07em;
  color: rgba(28,25,22,0.9);
  line-height: 1.92;
}
.memorial-content-wrap .memorial-bio-body p:first-child::first-letter {
  float: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.55em;
  font-weight: 500;
  line-height: 0.8;
  padding: 0.1em 0.14em 0 0;
  color: var(--m-gold);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255,252,247,0.5);
}
.memorial-content-wrap .memorial-bio-body strong { color: var(--m-ivory); font-weight: 600; }
.memorial-content-wrap .memorial-bio-body em { color: rgba(28,25,22,0.62); }

/* Fotos — álbum */
.memorial-content-wrap .memorial-photos-section {
  margin-top: 0.35rem;
  padding: clamp(1.15rem, 3vw, 1.75rem);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,168,76,0.07), transparent 65%),
    #FFFCF7;
  border: 1px solid rgba(201, 168, 76, 0.24);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(28, 25, 22, 0.06);
}
.memorial-content-wrap .memorial-photos-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.35rem;
  padding-bottom: 0.85rem;
  position: relative;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}
.memorial-content-wrap .memorial-photos-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3rem;
  height: 2px;
  background: rgba(201, 168, 76, 0.65);
  border-radius: 1px;
}
.memorial-content-wrap .memorial-photos-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--m-ivory);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.memorial-content-wrap .memorial-photos-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--m-text-muted);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.32);
  border-radius: 9999px;
  padding: 0.35rem 0.8rem;
}
.memorial-content-wrap .memorial-collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0;
}
@media (min-width: 1024px) {
  .memorial-content-wrap .memorial-collage-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}
.memorial-content-wrap .memorial-photo-cell {
  border-radius: 14px;
  overflow: hidden;
  background: var(--m-bg-mid);
  border: 1px solid rgba(201, 168, 76, 0.22);
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgba(28, 25, 22, 0.05);
}
.memorial-content-wrap .memorial-photo-cell:hover {
  border-color: rgba(201, 168, 76, 0.55);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 36px rgba(28, 25, 22, 0.12);
}
.memorial-content-wrap .memorial-photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: center 22%; }
.memorial-content-wrap .memorial-photo-cell .memorial-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,25,22,0.45) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 12px;
  opacity: 0; transition: opacity 0.2s;
}
.memorial-content-wrap .memorial-photo-cell:hover .memorial-photo-overlay { opacity: 1; }
.memorial-content-wrap .memorial-fullscreen-row { margin-top: 1.35rem; text-align: center; }

/* Collage automático: slideshow álbum / cine */
.memorial-content-wrap .memorial-collage-slideshow {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--m-bg-mid);
  border: 2.5px solid rgba(201, 168, 76, 0.45);
  outline: 8px solid rgba(255, 252, 247, 0.88);
  outline-offset: 0;
  box-shadow:
    inset 0 0 80px rgba(28,25,22,0.12),
    0 28px 64px rgba(28, 25, 22, 0.16);
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 9;
  max-height: 560px;
}
.memorial-content-wrap .memorial-collage-slideshow::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(28, 25, 22, 0.58) 0%, rgba(28,25,22,0.14) 55%, transparent 100%);
}
.memorial-content-wrap .memorial-collage-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.7s ease; pointer-events: none;
  overflow: hidden;
}
.memorial-content-wrap .memorial-collage-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.memorial-content-wrap .memorial-collage-slide.hidden { opacity: 0; }
.memorial-content-wrap .memorial-collage-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  transform: none;
}
.memorial-content-wrap .memorial-collage-slide.active img {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .memorial-content-wrap .memorial-collage-slide.active img { animation: none; }
}
.memorial-content-wrap .memorial-collage-dots {
  position: absolute; bottom: 16px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.memorial-content-wrap .memorial-collage-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.45); cursor: pointer;
  transition: background 0.2s, transform 0.2s; padding: 0;
}
.memorial-content-wrap .memorial-collage-dot:hover { background: rgba(255, 255, 255, 0.8); }
.memorial-content-wrap .memorial-collage-dot.active {
  background: var(--m-gold);
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.4);
}
.memorial-content-wrap .memorial-collage-count {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: #FFFCF7; background: rgba(28, 25, 22, 0.62);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 9999px; padding: 5px 12px;
  pointer-events: none;
}

/* Modal fullscreen warm */
.memorial-media-modal {
  background: rgba(28, 25, 22, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.memorial-media-modal .memorial-modal-close {
  background: rgba(255, 252, 247, 0.12);
  color: #FFFCF7;
  border: 1px solid rgba(201, 168, 76, 0.35);
}
.memorial-media-modal .memorial-modal-close:hover {
  background: rgba(201, 168, 76, 0.28);
  color: #FFFCF7;
}
.memorial-modal-inner--warm {
  background: #1C1916;
  border: 1px solid rgba(201, 168, 76, 0.32);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}
.memorial-media-modal .memorial-modal-dots .memorial-dot.bg-primary,
.memorial-media-modal .memorial-dot.bg-primary {
  background: #C9A84C !important;
}
.memorial-media-modal .memorial-dot.bg-slate-400 {
  background: rgba(255,252,247,0.35) !important;
}
.step-image-wrap.fade-left::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to left, transparent 40%, var(--bg-base) 100%);
}
@media (max-width: 767px) {
  .memorial-content-wrap {
    --m-container: calc(100vw - 24px);
    isolation: auto;
  }
  /* Noise SVG + full-page blur aura crush iOS scroll compositing */
  .memorial-content-wrap::before {
    display: none;
  }
  .memorial-content-wrap .memorial-profile {
    padding: 28px 12px 4px;
  }
  .memorial-content-wrap > .memorial-hero-aura {
    inset: 0 auto auto 0;
    width: 100%;
    height: min(68vh, 480px);
    min-height: 0;
    max-height: 480px;
    overflow: hidden;
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  }
  .memorial-content-wrap > .memorial-hero-aura img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 22%;
    /* CSS blur of a large bitmap is the main mobile scroll killer */
    filter: none;
    transform: none;
    opacity: 0.45;
  }
  .memorial-content-wrap > .memorial-hero-aura--empty {
    height: min(68vh, 480px);
    max-height: 480px;
    min-height: 0;
  }
  .memorial-content-wrap .memorial-profile-name { font-size: 1.72rem; }
  .memorial-content-wrap .memorial-profile-quote {
    max-width: 100%;
    font-size: 1rem;
    padding: 0 0.25rem;
  }
  .memorial-content-wrap .memorial-avatar {
    width: 128px; height: 128px;
    box-shadow:
      0 0 0 7px rgba(255,252,247,0.96),
      0 0 0 9px rgba(201,168,76,0.28),
      0 0 0 14px rgba(201,168,76,0.1),
      0 14px 32px rgba(28,25,22,0.14);
  }
  .memorial-content-wrap .memorial-avatar img { filter: none; }
  .memorial-content-wrap .memorial-avatar-wrap { margin-bottom: 22px; }
  /* One sticky bar only — stacked sticky + tabs feel like scroll lock on iOS */
  .memorial-content-wrap .memorial-tabs-wrap {
    position: static;
    top: auto;
    padding: 7px 10px 8px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    box-shadow: none;
    border: none;
  }
  .memorial-content-wrap .memorial-tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin-bottom: 0;
    gap: 2px;
    padding: 2px;
    overscroll-behavior-x: contain;
  }
  .memorial-content-wrap .memorial-tabs::-webkit-scrollbar { display: none; }
  .memorial-content-wrap .memorial-tabs button {
    flex-shrink: 0; padding: 0.34rem 0.85rem; font-size: 0.8rem;
  }
  .memorial-content-wrap .memorial-page {
    padding: 1rem 12px 0;
  }
  .memorial-content-wrap .memorial-topbar {
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,252,247,0.98);
  }
  .memorial-content-wrap .memorial-collage-slide.active img {
    animation: none;
  }
  .memorial-content-wrap .memorial-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* Bio — full-bleed paper on mobile */
  .memorial-content-wrap .memorial-bio-panel {
    width: calc(100% + 24px);
    max-width: none;
    margin-left: -12px;
    margin-right: -12px;
    padding: 1.45rem 1.2rem 1.7rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow:
      inset 0 0 0 1px rgba(255,252,247,0.85),
      inset 0 0 0 7px rgba(255,252,247,0.4);
    border-top: 1px solid rgba(201, 168, 76, 0.28);
    border-bottom: 1px solid rgba(201, 168, 76, 0.28);
  }
  .memorial-content-wrap .memorial-bio-body {
    font-size: 1.05rem;
    line-height: 1.78;
  }
  .memorial-content-wrap .memorial-bio-body p { margin: 0 0 0.95rem; }
  .memorial-content-wrap .memorial-bio-body p:first-child::first-letter {
    font-size: 2.65em;
  }

  /* Fotos — slideshow + horizontal thumb rail */
  .memorial-content-wrap .memorial-collage-slideshow {
    aspect-ratio: var(--img-portrait-ratio, 4 / 5);
    margin-inline: -12px;
    width: calc(100% + 24px);
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(201, 168, 76, 0.22);
    border-bottom: 1px solid rgba(201, 168, 76, 0.22);
    outline: none;
    box-shadow: none;
    margin-bottom: 0;
    cursor: pointer;
    max-height: none;
  }
  .memorial-content-wrap .memorial-collage-slideshow::after {
    height: 42%;
    background: linear-gradient(to top, rgba(28, 25, 22, 0.58) 0%, rgba(28,25,22,0.15) 50%, transparent 100%);
  }
  .memorial-content-wrap .memorial-collage-dots {
    bottom: 20px;
    gap: 9px;
    padding: 0 12px 2px;
  }
  .memorial-content-wrap .memorial-collage-dot {
    width: 12px; height: 12px;
  }
  .memorial-content-wrap .memorial-collage-slide img {
    object-fit: cover;
    object-position: var(--img-face-position, center 18%);
    background: var(--m-bg-mid);
  }

  .memorial-content-wrap .memorial-photos-section {
    display: block;
    margin: 0 -12px;
    width: calc(100% + 24px);
    padding: 0.85rem 0 1rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.18);
    box-shadow: none;
    background: rgba(255, 252, 247, 0.92);
  }
  .memorial-content-wrap .memorial-photos-header {
    display: flex;
    padding: 0 1rem 0.65rem;
    margin: 0;
    border-bottom: none;
  }
  .memorial-content-wrap .memorial-photos-header::after { display: none; }
  .memorial-content-wrap .memorial-photos-title {
    font-size: 1.05rem;
  }
  .memorial-content-wrap .memorial-photos-count {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  .memorial-content-wrap .memorial-collage-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0.15rem 1rem 0.35rem;
    margin: 0;
    overscroll-behavior-x: contain;
  }
  .memorial-content-wrap .memorial-collage-grid::-webkit-scrollbar { display: none; }
  .memorial-content-wrap .memorial-photo-cell {
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    aspect-ratio: 1;
    border-radius: 12px;
    scroll-snap-align: start;
    box-shadow: 0 8px 20px rgba(28, 25, 22, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
  }
  .memorial-content-wrap .memorial-photo-cell:hover {
    transform: none;
  }
  .memorial-content-wrap .memorial-photo-cell .memorial-photo-overlay { display: none; }
  .memorial-content-wrap .memorial-fullscreen-row {
    display: none;
  }
}

/* Tablet tuning */
@media (min-width: 768px) and (max-width: 1023px) {
  .memorial-content-wrap .memorial-profile { padding-top: 52px; }
  .memorial-content-wrap .memorial-profile-name { font-size: 2.15rem; }
  .memorial-content-wrap .memorial-avatar { width: 180px; height: 180px; }
  .memorial-content-wrap .memorial-page { padding: 1.5rem 20px 0; }
}

/* Laptop/desktop tuning */
@media (min-width: 1024px) {
  .memorial-content-wrap {
    background:
      radial-gradient(ellipse 88% 52% at 50% -6%, rgba(201,168,76,0.32), transparent 56%),
      radial-gradient(ellipse 36% 42% at 6% 38%, rgba(201,168,76,0.14), transparent 68%),
      radial-gradient(ellipse 36% 42% at 94% 44%, rgba(201,168,76,0.13), transparent 68%),
      radial-gradient(ellipse 70% 40% at 50% 105%, rgba(28,25,22,0.08), transparent 58%),
      linear-gradient(90deg, #E2DAC9 0%, #EFE9DD 9%, #F7F3EB 50%, #EFE9DD 91%, #E2DAC9 100%),
      linear-gradient(180deg, #FFFCF7 0%, #F7F3EB 32%, #EDE7DB 100%) !important;
  }
  .memorial-content-wrap::before { content: none; }
  .memorial-content-wrap::after {
    background:
      linear-gradient(90deg, rgba(28,25,22,0.07) 0%, transparent 16%, transparent 84%, rgba(28,25,22,0.07) 100%),
      radial-gradient(ellipse 60% 36% at 50% 12%, rgba(255,252,247,0.4), transparent 70%);
  }
  .memorial-content-wrap .memorial-profile { padding: 72px 28px 20px; }
  .memorial-content-wrap > .memorial-hero-aura {
    height: min(78vh, 640px);
    max-height: 640px;
    opacity: 0.42;
  }
  .memorial-content-wrap > .memorial-hero-aura img {
    filter: none;
    transform: none;
    opacity: 0.5;
  }
  .memorial-content-wrap .memorial-avatar {
    width: 220px; height: 220px;
  }
  .memorial-content-wrap .memorial-profile-name {
    font-size: clamp(2.55rem, 3.2vw, 3.1rem);
  }
  .memorial-content-wrap .memorial-profile-dates {
    font-size: 0.98rem;
    letter-spacing: 0.2em;
  }
  .memorial-content-wrap .memorial-profile-quote {
    max-width: 38rem;
    font-size: 1.2rem;
  }
  .memorial-content-wrap .memorial-tabs-wrap {
    padding: 10px 20px 12px;
  }
  .memorial-content-wrap .memorial-tabs {
    padding: 3px;
    box-shadow:
      inset 0 1px 0 rgba(255,252,247,0.95),
      0 3px 12px rgba(28,25,22,0.05);
  }
  .memorial-content-wrap .memorial-tabs button {
    padding: 0.4rem 1.1rem;
    font-size: 0.88rem;
  }
  .memorial-content-wrap .memorial-page { padding: 2.35rem 28px 0; }
  .memorial-content-wrap .memorial-bio-panel {
    padding: 2.75rem 3rem 3rem;
  }
  .memorial-content-wrap .memorial-bio-body {
    font-size: 1.22rem;
    line-height: 2.05;
    max-width: 46rem;
    margin-inline: auto;
  }
  .memorial-content-wrap .memorial-bio-body p:first-child::first-letter {
    font-size: 4em;
  }
  .memorial-content-wrap .memorial-photos-section {
    padding: 1.85rem 2rem 2.1rem;
  }
  .memorial-content-wrap .memorial-collage-slideshow {
    max-height: 580px;
  }
  .memorial-content-wrap .memorial-photo-cell {
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(28, 25, 22, 0.07);
  }
}
/* Home page — light/warm paper identity + marketing craft */
.home-page {
  background:
    radial-gradient(circle at top, rgba(201,168,76,0.10), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(201,168,76,0.06), transparent 22%),
    var(--bg-base);
  color: var(--text-high);
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.eq-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mid); margin: 0 0 1.25rem;
}
.home-section-head .eq-eyebrow,
.home-journey-head .eq-eyebrow,
.home-why-copy .eq-eyebrow { color: var(--gold-strong); }
.eq-hero-title {
  font-family: "Playfair Display", serif; font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.625rem); line-height: 1.15;
  color: var(--text-high); margin: 0 0 1rem;
}
.eq-hero-title-gold { color: var(--gold-strong); }
.eq-hero-sub {
  font-size: 16px; color: var(--text-mid); margin: 0 0 1.75rem;
  max-width: 28rem; line-height: 1.55;
}
.eq-cta-primary,
.eq-cta-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: Inter, sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 8px; padding: 0.75rem 1.75rem; min-height: 3rem;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}
.eq-cta-primary {
  background: var(--gold-strong); color: var(--ink-on-gold); border: 1.5px solid var(--gold-strong);
  box-shadow: 0 2px 12px rgba(201,168,76,0.22);
}
.eq-cta-primary span[aria-hidden="true"] {
  display: inline-block; transition: transform 0.25s ease;
}
.eq-cta-secondary {
  border: 1.5px solid var(--gold-mid); background: transparent; color: var(--gold-strong);
}
.eq-cta-secondary span[aria-hidden="true"] {
  display: inline-block; transition: transform 0.25s ease;
}
.home-hero .eq-cta-primary,
.home-hero .eq-cta-secondary,
.home-cta-final .eq-cta-primary,
.home-cta-final .eq-cta-secondary {
  padding: 0.875rem 2rem; min-height: 3.5rem; font-size: 14px;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .eq-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(201,168,76,0.35);
    filter: brightness(1.06);
  }
  .eq-cta-primary:hover span[aria-hidden="true"] { transform: translateX(2px); }
  .eq-cta-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(201,168,76,0.22);
    filter: none;
  }
  .eq-cta-secondary:hover {
    transform: translateY(-1px);
    border-color: var(--gold-strong);
    color: var(--gold-strong);
    background: rgba(201,168,76,0.08);
  }
  .eq-cta-secondary:hover span[aria-hidden="true"] { transform: translateX(2px); }
  .eq-cta-secondary:active { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .eq-cta-primary,
  .eq-cta-secondary,
  .nav-btn-register {
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .eq-cta-primary:hover { opacity: 0.92; filter: none; transform: none; box-shadow: none; }
  .eq-cta-secondary:hover {
    opacity: 1; transform: none;
    border-color: var(--gold-strong);
    background: rgba(201,168,76,0.08);
  }
  .nav-btn-register:hover { transform: none; box-shadow: none; opacity: 0.92; filter: none; }
}
.eq-price-line { font-size: 13px; color: var(--text-mid); margin: 1.5rem 0 0; }
.eq-section-title {
  font-family: "Playfair Display", serif; font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.375rem); color: var(--text-high);
  margin: 0; line-height: 1.2;
}
.eq-section-title-gold { color: var(--gold-strong); }
.eq-section-divider { width: 40px; height: 1px; background: var(--gold-strong); margin: 16px 0 28px; border: none; }
.eq-section-body {
  font-size: 16px; color: var(--text-mid); margin: 0 auto 1.5rem;
  max-width: 32rem; line-height: 1.65;
}
/* Marketing media system */
:root {
  --m-section-py: clamp(3.5rem, 8vw, 6rem);
  --m-card-radius: 16px;
  --m-face-pos: center 22%;
}
.m-media-card {
  position: relative; overflow: hidden;
  border-radius: var(--m-card-radius);
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: var(--bg-surface);
  box-shadow: 0 16px 40px rgba(28, 25, 22, 0.08);
}
.m-media-card-img {
  width: 100%; height: 100%; display: block;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.m-media-card--clean.m-media-card--scene .m-media-card-img {
  object-fit: cover; object-position: center 30%;
}
.m-media-card--clean.m-media-card--product {
  background: var(--qr-plaque-bg);
  display: flex; align-items: center; justify-content: center;
}
.m-media-card--clean.m-media-card--product .m-media-card-img {
  object-fit: contain; object-position: center;
  width: 100%; height: 100%;
  padding: 8%;
  box-sizing: border-box;
}

.m-media-card--hero { aspect-ratio: 4 / 5; }
.m-media-card--hero .m-media-card-img { object-fit: cover; object-position: var(--m-face-pos); }
.m-media-card--step-wide { aspect-ratio: 16 / 10; }
.m-media-card--step-wide .m-media-card-img { object-fit: cover; object-position: center 35%; }
.m-media-card--step-portrait { aspect-ratio: 3 / 4; }
.m-media-card--step-portrait .m-media-card-img { object-fit: contain; object-position: center; padding: 0.5rem; background: var(--bg-base); }
.m-media-card--step-qr { aspect-ratio: 4 / 3; }
.m-media-card--step-qr .m-media-card-img { object-fit: contain; object-position: center; padding: 0.75rem; background: var(--bg-base); }
.m-media-card--feature { aspect-ratio: 4 / 3; }
.m-media-card--feature .m-media-card-img { object-fit: cover; object-position: var(--m-face-pos); }
.m-media-card--journey { aspect-ratio: 5 / 4; border-radius: 0; }
.m-media-card--journey .m-media-card-img { object-fit: cover; object-position: center center; }
.home-hero { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-base); }
.home-hero-main {
  flex: 1; display: flex; align-items: center;
  max-width: 1440px; margin: 0 auto; width: 100%;
  padding: 120px 1rem 40px;
}
@media (min-width: 1024px) { .home-hero-main { padding: 120px 2.5rem 40px; } }
.home-hero-grid { display: grid; gap: 2.5rem; align-items: center; width: 100%; }
@media (min-width: 1024px) { .home-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; } }
.home-hero-col { max-width: 38rem; position: relative; z-index: 1; }
.home-hero-copy {
  position: relative; max-width: 38rem; z-index: 1;
}
.home-hero-col::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -12% -8% -8% -12%;
  background: radial-gradient(ellipse at 20% 40%, rgba(255,252,247,0.9) 0%, transparent 68%);
}
.home-hero-actions { margin-top: 0; }
.home-hero-copy .eq-hero-sub { margin-bottom: 1.75rem; }
.home-hero-chip-scroller { margin-top: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.home-hero-chip-scroller::-webkit-scrollbar { display: none; }
.home-hero-chip-row { display: flex; flex-wrap: nowrap; gap: 0.75rem; width: max-content; min-width: 100%; }
@media (min-width: 768px) {
  .home-hero-chip-scroller { overflow: visible; }
  .home-hero-chip-row { flex-wrap: wrap; width: auto; }
}
.home-hero-visual { width: 100%; }
.home-hero-mobile-preview { margin-top: 0; }
.home-why-visual { width: 100%; }
.home-section--testimonials { padding-top: var(--m-section-py); padding-bottom: var(--m-section-py); }
.home-testimonials-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .home-testimonials-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.home-hero-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 42px; padding: 0.75rem 0.95rem; border-radius: 9999px;
  border: 1px solid var(--gold-subtle); background: var(--bg-surface);
  color: var(--text-high); font-size: 13px; line-height: 1.3;
  box-shadow: 0 4px 16px rgba(28,25,22,0.05);
}
.home-hero-chip::before {
  content: ''; width: 7px; height: 7px; border-radius: 9999px; flex-shrink: 0;
  background: rgba(201,168,76,0.9); box-shadow: 0 0 0 6px rgba(201,168,76,0.12);
}
.home-hero-chip--strong {
  background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.24); color: var(--gold-strong);
}
.home-hero-mockup { display: flex; justify-content: center; align-items: center; width: 100%; }
@media (min-width: 768px) {
  .home-hero-mockup { display: flex; }
  .home-hero-mobile-preview { display: none; }
}
@media (min-width: 1024px) { .home-hero-mockup { justify-content: flex-end; } }
.home-hero-mockup-shell {
  position: relative; width: 100%; max-width: 32rem; padding: 1.5rem; border-radius: 28px;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, #FFFCF7, #F7F3EB);
  border: 1px solid var(--gold-subtle); overflow: visible;
  box-shadow: 0 24px 60px rgba(28,25,22,0.10);
}
.home-hero-mockup-shell::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(201,168,76,0.18), transparent 68%);
  pointer-events: none;
}
.home-hero-mockup-img {
  position: relative; z-index: 1;
  width: min(88vw, 340px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 32px 64px rgba(201,168,76,0.10));
}
@media (min-width: 768px) {
  .home-hero-mockup-img { width: min(42vw, 400px); }
}
@media (min-width: 1024px) {
  .home-hero-mockup-img { width: min(44vw, 460px); }
}
.home-trust-bar {
  background: rgba(201,168,76,0.06);
  border-top: 1px solid rgba(201,168,76,0.16);
  border-bottom: 1px solid rgba(201,168,76,0.16);
  padding: 1.25rem 1rem;
  text-align: center;
  flex-shrink: 0;
}
.home-trust-bar-inner {
  max-width: 1440px; margin: 0 auto;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-mid);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 0.75rem;
}
.home-trust-bar-inner > span:not(.home-trust-sep) {
  color: var(--text-high);
}
@media (max-width: 479px) {
  .home-trust-bar-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; text-align: center;
  }
  .home-trust-sep { display: none; }
}
.home-trust-sep { color: rgba(201,168,76,0.45); user-select: none; }
.home-section { padding: var(--m-section-py) 1rem; }
@media (min-width: 1024px) { .home-section { padding: var(--m-section-py) 2.5rem; } }
.home-section--soft { background: linear-gradient(180deg, rgba(255,252,247,0.7), transparent); }
.home-section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.home-container { max-width: 1440px; margin: 0 auto; width: 100%; }
/* Journey / How it works */
.home-section--journey { padding-top: var(--m-section-py); padding-bottom: calc(var(--m-section-py) + 0.5rem); }
.home-journey-wrap { max-width: 68rem; margin-left: auto; margin-right: auto; }
.home-journey-head { max-width: 40rem; margin-left: auto; margin-right: auto; margin-bottom: 3.5rem; text-align: center; }
.home-journey-head .eq-eyebrow { color: var(--gold-strong); margin-bottom: 1rem; }
.home-journey-head .eq-section-title { margin: 0; }
.home-journey-divider { width: 48px; margin: 1.25rem auto 1.5rem; opacity: 0.85; }
.home-journey-lead { font-size: 1.0625rem; line-height: 1.7; max-width: 36rem; margin: 0 auto; color: var(--text-mid); }
.home-timeline {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  position: relative;
  width: 100%;
  max-width: 64rem;
  justify-content: center;
}
@media (min-width: 640px) {
  .home-timeline { grid-template-columns: repeat(2, 1fr); gap: 1.125rem; }
}
@media (min-width: 1024px) {
  .home-timeline,
  .home-timeline--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
  }
  .home-section--journey .home-timeline::before {
    display: none;
  }
}
.home-journey-cta { text-align: center; margin: 2rem auto 0; }
.home-timeline-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(201,168,76,0.16);
  background: #FFFCF7;
  min-height: 100%;
  box-shadow: 0 6px 22px rgba(28,25,22,0.04);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-timeline-step:hover {
    transform: translateY(-3px);
    border-color: rgba(201,168,76,0.32);
    box-shadow: 0 14px 36px rgba(28,25,22,0.08);
  }
}
.home-timeline-step-media {
  width: 100%; margin: 0; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.home-timeline-step-media .m-media-card {
  border: none; border-radius: 0; box-shadow: none;
}
.home-timeline-step-media .m-media-card--journey {
  aspect-ratio: 5 / 4; border-radius: 0; width: 100%;
}
.home-timeline-step-media .m-media-card--journey.m-media-card--product {
  background: var(--qr-plaque-bg);
  display: flex; align-items: center; justify-content: center;
}
.home-timeline-step-media .m-media-card--journey .m-media-card-img {
  object-fit: cover; object-position: center center;
}
.home-timeline-step:nth-child(3) .m-media-card--scene .m-media-card-img {
  object-fit: cover; object-position: center 42%;
}
.home-timeline-step-media .m-media-card--journey.m-media-card--product .m-media-card-img {
  object-fit: contain; object-position: center center;
}
.home-timeline-step-body {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.5rem 1.4rem 1.65rem; gap: 0.4rem; flex: 1;
}
.home-timeline-num {
  font-family: "Playfair Display", serif; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.18em; color: var(--gold-strong); margin: 0 0 0.2rem;
}
.home-timeline-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem; font-weight: 500; color: var(--text-high);
  margin: 0 0 0.35rem; line-height: 1.28; max-width: none;
}
.home-timeline-text {
  font-size: 0.9375rem; color: var(--text-mid); margin: 0;
  line-height: 1.65; max-width: 22rem;
}
.home-split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .home-split { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.home-tribute-visual {
  position: relative; width: 100%;
}
.home-tribute-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  display: block;
}
.home-tribute-copy {
  padding: 1.75rem 1.5rem; border-radius: 24px; border: 1px solid var(--gold-subtle);
  background: var(--bg-surface);
  box-shadow: 0 12px 32px rgba(28,25,22,0.06);
}
.home-tribute-features { list-style: none; margin: 0; padding: 0; }
.home-tribute-feat { display: flex; gap: 1rem; padding: 1.125rem 0; border-bottom: 1px solid var(--gold-subtle); }
.home-tribute-feat:last-child { border-bottom: none; padding-bottom: 0; }
.home-tribute-feat:first-child { padding-top: 0; }
.home-tribute-feat-icon { flex-shrink: 0; margin-top: 2px; color: var(--gold-strong); }
.home-tribute-feat-label { font-size: 16px; font-weight: 500; color: var(--text-high); margin: 0 0 0.35rem; }
.home-tribute-feat-desc { font-size: 14px; color: var(--text-mid); margin: 0; line-height: 1.55; }
.home-why-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .home-why-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.home-why-grid--compact { max-width: 64rem; }
.home-why-copy .eq-section-body { margin-left: 0; margin-right: 0; max-width: 34rem; }
.home-why-list {
  list-style: none; margin: 1.35rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.home-why-list-item {
  display: flex; flex-direction: row; align-items: flex-start; gap: 0.75rem;
  font-size: 0.975rem; color: var(--text-high); line-height: 1.5;
}
.home-why-list-icon {
  flex-shrink: 0; margin-top: 0.2rem; color: var(--gold-strong);
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.home-why-list-icon svg { display: block; }
.home-why-visual .m-media-card { max-width: 420px; margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) {
  .home-why-visual .m-media-card { margin-right: 0; }
}
.home-feature-pills { display: grid; grid-template-columns: 1fr; gap: 0.875rem; margin-top: 0.25rem; }
@media (min-width: 480px) { .home-feature-pills { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.home-feature-pill {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: var(--bg-surface); border: 1px solid var(--gold-subtle);
  border-radius: 14px; padding: 1.125rem 1.15rem;
  font-size: 14px; font-weight: 500; color: var(--text-high); line-height: 1.45;
  box-shadow: 0 8px 24px rgba(28,25,22,0.06);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-feature-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(201,168,76,0.32);
    background: #FFFCF7;
    box-shadow: 0 14px 32px rgba(28,25,22,0.09);
  }
}
.home-feature-pill-icon { flex-shrink: 0; margin-top: 2px; color: var(--gold-strong); }
.home-ui-mockup {
  background: var(--bg-surface); border: 1px solid var(--gold-subtle);
  border-radius: 22px; padding: 1.5rem; overflow: hidden;
  box-shadow: 0 20px 44px rgba(28,25,22,0.08);
}
.home-ui-mockup-header { padding-bottom: 1rem; border-bottom: 1px solid var(--gold-subtle); margin-bottom: 1rem; }
.home-ui-mockup-header p { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mid); margin: 0; }
.home-ui-mockup-header h3 { font-family: "Playfair Display", serif; font-size: 1.25rem; color: var(--text-high); margin: 0.5rem 0 0; font-weight: 400; }
.home-ui-step {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1rem; border-radius: 8px;
  border: 1px solid var(--gold-subtle); background: var(--bg-elevated);
  margin-bottom: 0.625rem;
}
.home-ui-step:last-child { margin-bottom: 0; }
.home-ui-step-num { font-family: "Playfair Display", serif; font-size: 13px; color: var(--text-mid); width: 2rem; flex-shrink: 0; }
.home-ui-step-text { font-size: 14px; color: var(--text-high); flex: 1; }
.home-testimonial-card {
  position: relative; background: #FFFCF7;
  border: 1px solid rgba(201,168,76,0.18); border-radius: 18px;
  padding: 2.35rem 2.1rem 2rem;
  box-shadow: 0 14px 36px rgba(28,25,22,0.07);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-testimonial-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201,168,76,0.32);
    box-shadow: 0 20px 44px rgba(28,25,22,0.10);
  }
}
.home-testimonial-quote-mark {
  position: absolute; top: 28px; left: 28px;
  font-family: "Playfair Display", serif; font-size: 72px; line-height: 0;
  color: rgba(201,168,76,0.18); pointer-events: none; user-select: none;
}
.home-testimonial-text {
  font-family: "Playfair Display", serif; font-size: 1.1875rem; font-weight: 400;
  color: var(--text-high); line-height: 1.7; margin: 0.5rem 0 1.85rem;
  position: relative; z-index: 1;
}
.home-testimonial-author { display: flex; align-items: center; gap: 0.85rem; }
.home-testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(201,168,76,0.14); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--gold-strong); flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.2);
}
.home-testimonial-name { font-size: 14px; font-weight: 600; color: var(--text-high); margin: 0; }
.home-testimonial-role { font-size: 12px; color: var(--text-mid); margin: 0.15rem 0 0; letter-spacing: 0.01em; }
.home-cta-final {
  background: transparent;
  padding: var(--m-section-py) 1rem; text-align: center;
}
.home-cta-final-inner {
  max-width: 58rem; margin: 0 auto; padding: 3.25rem 1.75rem;
  border-radius: 28px; border: 1px solid rgba(201,168,76,0.18);
  background:
    radial-gradient(circle at top, rgba(201,168,76,0.12), transparent 48%),
    #FFFCF7;
  box-shadow: 0 24px 60px rgba(28,25,22,0.08);
}
.home-cta-final-title {
  font-family: "Playfair Display", serif; font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text-high); line-height: 1.2; max-width: 520px; margin: 0 auto 32px;
}
.home-cta-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.875rem; margin-bottom: 0; }
.home-cta-final-trust { font-size: 13px; color: var(--text-mid); margin: 1.35rem 0 0; letter-spacing: 0.02em; }
@media (max-width: 767px) {
  .home-hero { min-height: auto; }
  .home-hero-main { padding: 5.5rem 1rem 1.5rem; }
  .home-hero-copy { max-width: none; }
  .home-hero-col { max-width: none; }
  .home-hero-col::before { inset: -6% -4% -4% -6%; }
  .home-hero-grid { gap: 1.25rem; }
  .home-hero-mockup { display: none; }
  .home-hero-mobile-preview {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
  }
  /* Compact phone-only crop — hide lifestyle props (stone/fabric/book) */
  .home-hero-mobile-preview .m-media-card--hero {
    width: min(46vw, 168px);
    max-width: 168px;
    aspect-ratio: 9 / 16;
    max-height: 268px;
    margin: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    box-shadow: 0 14px 32px rgba(28, 25, 22, 0.14);
  }
  .home-hero-mobile-preview .m-media-card--hero.m-media-card--product,
  .home-hero-mobile-preview .m-media-card--clean.m-media-card--product {
    background: transparent;
  }
  .home-hero-mobile-preview .m-media-card--hero .m-media-card-img,
  .home-hero-mobile-preview .m-media-card--clean.m-media-card--product .m-media-card-img {
    object-fit: cover;
    object-position: 50% 42%;
    padding: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.85);
    transform-origin: 50% 40%;
  }
  .home-cta-row { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .home-cta-row .eq-cta-primary,
  .home-cta-row .eq-cta-secondary { justify-content: center; width: 100%; }
  .home-hero-chip { flex-shrink: 0; width: auto; }
  .home-timeline-step { text-align: center; align-items: stretch; padding: 0; }
  .home-timeline-step-body { align-items: center; text-align: center; padding: 1.25rem 1.2rem 1.4rem; }
  .home-timeline-title,
  .home-timeline-text { max-width: none; text-align: center; }
  .m-media-card--journey .m-media-card-img { object-position: center center; }
  .home-timeline-step-media .m-media-card--journey { max-height: 240px; }
  .home-timeline-step-media .m-media-card--journey.m-media-card--product { max-height: 280px; }
  .home-split--tribute { gap: 1.5rem; }
  .home-tribute-copy { padding: 1.25rem 1rem; }
  .home-cta-final-inner { padding: 2.25rem 1.25rem; }
  .home-cta-final-actions { flex-direction: column; align-items: stretch; }
  .home-cta-final-actions .eq-cta-primary,
  .home-cta-final-actions .eq-cta-secondary { width: 100%; justify-content: center; }
}
@media (min-width: 1024px) {
  .home-timeline-step-media .m-media-card--journey { max-height: 240px; }
  .home-timeline-step-media .m-media-card--journey.m-media-card--product { max-height: 280px; }
}
/* How it works page */
.how-page {
  background: var(--bg-base); color: var(--text-high);
  font-family: Inter, sans-serif; font-size: 15px; line-height: 1.65;
  min-height: 100vh; padding-top: 6rem;
}
.how-container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.how-header { text-align: center; padding: 48px 1.5rem 40px; }
.how-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-strong); margin: 0 0 20px;
}
.how-header-title {
  font-family: "Playfair Display", serif; font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15;
  color: var(--text-high); margin: 0 0 16px;
}
.how-header-title-gold { color: var(--gold-strong); font-style: normal; }
.how-header-sub {
  font-size: 16px; color: var(--text-mid); line-height: 1.5;
  max-width: 480px; margin: 0 auto 24px;
}
.how-header-divider {
  width: 40px; height: 1px; background: var(--gold-strong);
  border: none; margin: 0 auto 28px;
}
.how-header-visual-wrap {
  max-width: 720px; margin: 0 auto; padding: 0 1.5rem;
}
.how-header-banner { max-width: 100%; }
.how-step-pills {
  display: none; align-items: center; justify-content: center; gap: 0.5rem;
  max-width: 100%; margin: 0 auto 2rem; padding: 0 1rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.how-step-pills::-webkit-scrollbar { display: none; }
.how-step-pill {
  flex-shrink: 0; min-width: 2.75rem; height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid rgba(201, 168, 76, 0.28);
  font-family: "Playfair Display", serif; font-size: 0.8rem;
  color: var(--text-mid); background: var(--bg-surface);
}
.how-step-pill.is-active {
  background: rgba(201, 168, 76, 0.14); border-color: var(--gold-strong); color: var(--gold-strong);
}
.how-progress--desktop {
  display: flex; align-items: center; justify-content: center;
  gap: 0; max-width: 480px; margin: 0 auto 64px; padding: 0 1.5rem;
}
.how-progress-segment {
  flex: 1; height: 2px; background: rgba(201,168,76,0.15);
}
.how-progress-node {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.30); background: transparent;
}
.how-progress-node.is-active {
  background: var(--gold-strong); border-color: var(--gold-strong);
}
.how-steps { display: flex; flex-direction: column; gap: 2.75rem; padding-bottom: 1rem; }
.how-header { padding-bottom: 1.5rem; }
.how-step {
  display: grid; gap: 0; align-items: center;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(201,168,76,0.14);
  background: #FFFCF7;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(28,25,22,0.04);
}
@media (min-width: 768px) {
  .how-step { grid-template-columns: 1fr 1fr; gap: 0; }
  .how-step--reverse .how-step-content { order: 2; }
  .how-step--reverse .how-step-visual { order: 1; }
}
.how-step-content { padding: 1.75rem 1.5rem 1.85rem; }
@media (min-width: 768px) {
  .how-step-content { padding: 2.25rem 2rem; }
}
.how-step-visual {
  display: flex; justify-content: stretch; align-items: stretch;
  min-height: 220px;
}
.how-step-visual .m-media-card {
  width: 100%; height: 100%; min-height: 240px;
  border: none; border-radius: 0; box-shadow: none;
  aspect-ratio: auto;
}
.how-step-visual .m-media-card--feature {
  aspect-ratio: auto;
}
.how-step-visual .m-media-card-img {
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 100%;
}
.how-steps > .how-container:nth-child(1) .m-media-card-img { object-position: center 28%; }
.how-steps > .how-container:nth-child(2) .m-media-card-img { object-position: center 62%; }
.how-steps > .how-container:nth-child(3) .m-media-card-img { object-position: center 42%; }
@media (min-width: 768px) {
  .how-step-visual .m-media-card { min-height: 340px; }
  .how-steps > .how-container:nth-child(2) .m-media-card-img { object-position: center 58%; }
}
.step-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-strong); margin: 0 0 12px;
}
.step-title {
  font-family: "Playfair Display", serif; font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400; color: var(--text-high); line-height: 1.2; margin: 0 0 16px;
}
.step-body { font-size: 15px; color: var(--text-mid); line-height: 1.65; margin: 0 0 24px; }
.step-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step-bullet {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 400; color: var(--text-high); line-height: 1.4;
}
.step-bullet-icon { flex-shrink: 0; margin-top: 2px; color: var(--gold-strong); }
.step-download {
  display: inline-flex; align-items: center; gap: 0.65rem;
  margin-top: 1rem; padding: 0.55rem 0.85rem;
  border-radius: 999px; border: 1px solid rgba(201,168,76,0.22);
  background: rgba(201,168,76,0.08);
}
.step-download-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-subtle); display: flex; align-items: center; justify-content: center;
  color: var(--gold-strong);
}
.step-download-icon svg { width: 14px; height: 14px; }
.step-download-label { font-size: 12px; font-weight: 500; color: var(--text-mid); margin: 0; white-space: nowrap; }
.step-body-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.how-step--qr-step {
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.how-step--qr-step .how-step-content {
  max-width: 560px;
  margin: 0 auto;
}
.how-step--qr-step .how-step-visual {
  width: 100%;
  justify-content: center;
}
.how-step--qr-step .step-download {
  justify-content: flex-start;
}
.step-body-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.how-step--qr-step .step-body-row {
  justify-content: center;
  text-align: left;
  gap: 10px 14px;
}
.how-step--qr-step .step-body-row .step-body {
  margin: 0;
  flex: 1 1 220px;
  max-width: 480px;
}
.how-step--qr-step .step-download {
  flex: 0 0 auto;
  margin-top: 0;
}
.how-step--qr-step .step-qr-card {
  width: 100%;
  max-width: min(760px, 100%);
}
.how-step--qr-step .m-media-card--step-qr {
  width: 100%;
  max-width: min(760px, 100%);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .how-step--qr-step { gap: 2.5rem; }
  .how-step--qr-step .step-qr-card { max-width: min(820px, 100%); }
  .how-step--qr-step .m-media-card--step-qr { max-width: min(820px, 100%); }
}
.step-image-wrap {
  position: relative; width: 100%; max-width: 480px;
  aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: var(--bg-elevated);
}
.step-image-wrap--wide { aspect-ratio: 16 / 9; }
.step-image-wrap--tall { aspect-ratio: 3 / 4; max-width: 400px; }
.step-image-wrap--contain {
  aspect-ratio: 3 / 4; background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
}
.step-image-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.98) saturate(0.96);
  object-position: center center;
}
.step-image-wrap--wide img { object-position: center 42%; }
.step-image-wrap--tall img { object-position: center 38%; }
.step-image-wrap--contain img {
  object-fit: contain; filter: none; padding: 0.75rem;
}
.step-image-wrap--contain.fade-right::after {
  background: linear-gradient(to right, transparent 55%, var(--bg-base) 100%);
}
.step-image-wrap--contain.fade-left::after {
  background: linear-gradient(to left, transparent 55%, var(--bg-base) 100%);
}
.step-image-wrap.fade-right::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, transparent 40%, var(--bg-base) 100%);
}
.step-image-wrap.fade-left::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to left, transparent 40%, var(--bg-base) 100%);
}
@media (max-width: 767px) {
  .step-image-wrap.fade-right::after,
  .step-image-wrap.fade-left::after,
  .step-image-wrap--contain.fade-right::after,
  .step-image-wrap--contain.fade-left::after { display: none; }
  .step-image-wrap img { filter: none; object-position: center 28%; }
  .step-image-wrap--wide { aspect-ratio: 16 / 10; max-height: 220px; }
  .step-image-wrap--tall { aspect-ratio: 4 / 5; max-width: none; }
  .how-step-visual--hide-mobile { display: none; }
  .how-step--qr-step .step-qr-card img {
    max-height: 220px;
    object-fit: contain;
  }
  .em-media-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .em-cover-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .em-preview-cover { aspect-ratio: 1; }
}
.step-qr-card {
  width: 100%; max-width: min(480px, 100%);
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .step-qr-card { max-width: min(760px, 100%); }
}
.step-qr-card picture {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
}
.step-qr-card img {
  display: block; margin: 0 auto;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center center;
  filter: brightness(0.92) saturate(0.95);
}
.step-divider {
  width: 100%; height: 1px; background: rgba(201,168,76,0.08);
  border: none; margin: 56px 0;
}
.how-cta-final {
  background: var(--bg-surface);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 100px 1rem; text-align: center;
}
.how-cta-intro {
  font-size: 13px; color: var(--text-low); margin: 0 auto 16px; max-width: 480px;
}
.how-cta-title {
  font-family: "Playfair Display", serif; font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.625rem); color: var(--text-high);
  line-height: 1.2; max-width: 520px; margin: 0 auto 32px;
}
.how-cta-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
}
.how-cta-trust { font-size: 13px; color: var(--text-mid); margin: 20px 0 0; letter-spacing: 0.02em; }
.how-step-visual .m-media-card { width: 100%; max-width: 100%; }
@media (max-width: 767px) {
  .how-progress--desktop { display: none; }
  .how-step-pills.u-show-mobile-only { display: flex; }
  .how-header-banner { max-height: 200px; }
  .how-header-banner.m-media-card--step-wide { aspect-ratio: 16 / 9; }
  .how-step { grid-template-columns: 1fr; gap: 0; }
  .how-step-visual { order: 1; width: 100%; min-height: 0; }
  .how-step-content { order: 2; padding: 1.35rem 1.25rem 1.5rem; }
  .how-step--reverse .how-step-visual { order: 1; }
  .how-step--reverse .how-step-content { order: 2; }
  .how-step-visual .m-media-card {
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
    height: auto;
  }
  .how-step-visual .m-media-card picture,
  .how-step-visual .m-media-card img.m-media-card-img {
    width: 100%;
    height: 100%;
    display: block;
  }
  .how-steps > .how-container:nth-child(1) .m-media-card-img { object-position: center 32%; }
  .how-steps > .how-container:nth-child(2) .m-media-card-img { object-position: center 70%; }
  .how-steps > .how-container:nth-child(3) .m-media-card-img { object-position: center 45%; }
  .how-steps { gap: 1.75rem; padding: 0 0 1rem; }
  .how-container { padding: 0 1rem; }
  .step-divider { margin: 40px 0; }
}
/* About page */
.about-page {
  background:
    radial-gradient(circle at top, rgba(201,168,76,0.10), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(201,168,76,0.06), transparent 22%),
    var(--bg-base);
  color: var(--text-high);
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  padding-top: 6rem;
}
.about-container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.about-hero {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}
.about-hero-inner { max-width: 40rem; }
.about-hero .eq-eyebrow { color: var(--gold-strong); }
.about-hero .eq-hero-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 32rem;
}
.about-section {
  padding: var(--m-section-py, 4rem) 0;
}
.about-section--why {
  background:
    linear-gradient(180deg, rgba(255,252,247,0.55) 0%, transparent 100%);
}
.about-section--why .home-why-grid { margin: 0 auto; }
.about-section--why .eq-section-title { margin-bottom: 1rem; }
.about-section--values { padding-bottom: calc(var(--m-section-py, 4rem) * 0.5); }
.about-values-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.about-values-header .eq-section-body {
  margin-left: auto;
  margin-right: auto;
  max-width: 34rem;
}
.about-values-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-value-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(201,168,76,0.14);
}
.about-value-row:last-child {
  border-bottom: 1px solid rgba(201,168,76,0.14);
}
.about-value-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--gold-strong);
  margin-top: 0.15rem;
  line-height: 1;
}
.about-value-copy { min-width: 0; flex: 1; }
.about-value-title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-high);
  margin: 0 0 0.4rem;
  line-height: 1.25;
}
.about-value-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}
.about-page .home-cta-final { padding-top: 2rem; }
@media (max-width: 767px) {
  .about-page { padding-top: 5.25rem; }
  .about-container { padding: 0 1rem; }
  .about-hero { padding: 2rem 0 1.5rem; text-align: left; }
  .about-hero-inner { max-width: none; }
  .about-hero .eq-hero-sub { margin-left: 0; margin-right: 0; }
  .about-values-header { text-align: left; margin-bottom: 1.5rem; }
  .about-values-header .eq-section-body { margin-left: 0; margin-right: 0; }
  .about-value-row { gap: 0.85rem; padding: 1.15rem 0; }
  .about-value-title { font-size: 1.1rem; }
}
.legal-lang-switch { display: flex; gap: 0.35rem; }
.legal-lang-btn {
  font-size: 12px; font-weight: 500; padding: 0.35rem 0.75rem; border-radius: 9999px;
  border: 1px solid rgba(201,168,76,0.25); background: transparent; color: var(--text-mid);
  cursor: pointer; transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.legal-lang-btn:hover { border-color: rgba(201,168,76,0.45); color: var(--text-high); }
.legal-lang-btn.is-active {
  background: rgba(201,168,76,0.12); border-color: var(--gold-strong); color: var(--text-high);
}
.home-testimonials-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .home-testimonials-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.home-experience-header { text-align: center; max-width: 36rem; margin: 0 auto 1.5rem; }
.home-experience-videos-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: start;
  gap: 1.25rem; max-width: 28rem; margin: 0 auto;
}
@media (min-width: 480px) {
  .home-experience-videos-grid { max-width: 32rem; gap: 1.5rem; }
}
.home-experience-video-wrap {
  position: relative; width: min(168px, 42vw); flex: 0 0 auto;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gold-subtle);
  background: var(--bg-elevated);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
@media (min-width: 480px) {
  .home-experience-video-wrap { width: 200px; }
}
.home-experience-video {
  display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 300px;
  object-fit: cover; background: #000;
}
@media (min-width: 480px) {
  .home-experience-video { max-height: 356px; }
}
.home-experience-video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; aspect-ratio: 9 / 16; max-height: 300px;
  padding: 1rem; text-align: center;
  background: linear-gradient(160deg, var(--bg-elevated) 0%, rgba(201,168,76,0.06) 100%);
  color: var(--text-mid);
}
@media (min-width: 480px) {
  .home-experience-video-placeholder { max-height: 356px; }
}
.home-experience-video-placeholder .material-symbols-outlined {
  font-size: 1.75rem; color: var(--gold-muted); opacity: 0.85;
}
.home-experience-video-placeholder p {
  font-size: 11px; line-height: 1.45; margin: 0; max-width: 9rem;
}
.home-cta-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }
@media (prefers-reduced-motion: no-preference) {
  .eq-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .eq-reveal.is-visible { opacity: 1; transform: none; }
  .home-hero-copy.eq-reveal .eq-hero-title {
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 40ms,
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 40ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eq-reveal { opacity: 1; transform: none; transition: none; }
  .home-timeline-step,
  .home-feature-pill,
  .home-testimonial-card {
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .home-timeline-step:hover,
  .home-feature-pill:hover,
  .home-testimonial-card:hover {
    transform: none;
  }
}
/* Nav: perfil dropdown en móvil */
@media (max-width: 639px) {
  [data-nav-profile-wrap] .nav-profile-dropdown { min-width: min(220px, calc(100vw - 32px)); }
}
/* Qué necesitas / What you need page */
@keyframes need-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.need-page {
  position: relative;
  z-index: 0;
  color: var(--text-high);
  background: var(--bg-base);
  overflow: clip;
  padding-bottom: 3.5rem;
}
.need-page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(201, 168, 76, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 45% 35% at 100% 55%, rgba(201, 168, 76, 0.06) 0%, transparent 55%);
}
.need-header,
.need-steps,
.need-cta-wrap {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .need-enter {
    animation: need-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--need-delay, 0ms);
  }
}
.need-header {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 1.75rem;
}
.need-badge {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-strong, #C9A84C);
  font-weight: 600;
  margin: 0 0 0.85rem;
}
.need-title {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--text-high);
  margin: 0 auto 0.85rem;
}
.need-title-gold { color: var(--gold-strong, #C9A84C); }
.need-sub {
  color: var(--text-mid);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.55;
  max-width: 28rem;
  margin: 0 auto;
}
.need-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.15rem auto 0;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-high);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.need-time-pill .material-symbols-outlined {
  font-size: 1.05rem;
  color: var(--gold-strong, #C9A84C);
}
.need-divider {
  width: 2.5rem;
  height: 1px;
  margin: 1.5rem auto 0;
  border: none;
  background: var(--gold-strong, #C9A84C);
}
.need-steps {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.need-step-rule {
  height: 1px;
  width: min(100%, 28rem);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.35), transparent);
}
.need-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: center;
}
.need-step-copy { order: 2; }
.need-step-visual { order: 1; min-width: 0; }
.need-step-visual .m-media-card {
  border-radius: 1.2rem;
  overflow: hidden;
  max-height: 280px;
  border: 1px solid rgba(201, 168, 76, 0.16);
  box-shadow: 0 16px 40px rgba(28, 25, 22, 0.09);
}
.need-step-visual .m-media-card-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 280px;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .need-step-visual .m-media-card:hover .m-media-card-img {
    transform: scale(1.03);
  }
}
.need-step-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}
.need-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.45rem;
  border-radius: 9999px;
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid rgba(201, 168, 76, 0.28);
  color: var(--gold-strong, #C9A84C);
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
}
.need-step-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-strong, #C9A84C);
  font-weight: 600;
  margin: 0;
}
.need-step-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 0.55rem;
  color: var(--text-high);
}
.need-step-body {
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 1.2rem;
  max-width: 28rem;
}
.need-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.need-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(201, 168, 76, 0.22);
  color: var(--text-high);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(28, 25, 22, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .need-chip:hover {
    border-color: rgba(201, 168, 76, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(28, 25, 22, 0.06);
  }
}
.need-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 9999px;
  background: rgba(201, 168, 76, 0.14);
  color: var(--gold-strong, #C9A84C);
  flex-shrink: 0;
}
.need-chip-icon .material-symbols-outlined { font-size: 1rem; }
.need-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.need-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(201, 168, 76, 0.2);
  box-shadow: 0 6px 18px rgba(28, 25, 22, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .need-detail:hover {
    border-color: rgba(201, 168, 76, 0.42);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(28, 25, 22, 0.07);
  }
}
.need-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  background: rgba(201, 168, 76, 0.14);
  color: var(--gold-strong, #C9A84C);
  flex-shrink: 0;
}
.need-detail-icon .material-symbols-outlined { font-size: 1.15rem; }
.need-detail-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-high);
  line-height: 1.25;
}
.need-detail-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-mid);
}
.need-cta-wrap {
  max-width: 1120px;
  margin: 1.75rem auto 0;
  padding: 1.5rem 1.25rem 1.35rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12) 0%, rgba(255, 255, 255, 0.6) 55%, rgba(201, 168, 76, 0.07) 100%);
  border: 1px solid rgba(201, 168, 76, 0.24);
  width: calc(100% - 2.5rem);
  text-align: center;
}
.need-cta .eq-cta-primary,
.need-cta .eq-cta-secondary {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.need-cta-trust {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-mid);
  letter-spacing: 0.01em;
}
@media (min-width: 640px) {
  .need-cta .eq-cta-primary,
  .need-cta .eq-cta-secondary {
    width: auto;
    min-width: 12rem;
  }
}
@media (min-width: 768px) {
  .need-steps { gap: 2.75rem; padding: 1rem 1.5rem 1.5rem; }
  .need-step {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.75rem;
  }
  .need-step-copy { order: 1; }
  .need-step-visual { order: 2; }
  .need-step--reverse .need-step-copy { order: 2; }
  .need-step--reverse .need-step-visual { order: 1; }
  .need-step-visual .m-media-card,
  .need-step-visual .m-media-card-img {
    max-height: 360px;
    min-height: 300px;
  }
}
@media (max-width: 639px) {
  .nav-mobile-link {
    font-size: 1.05rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }
  .need-chip { font-size: 0.84rem; }
  .need-cta-wrap { width: calc(100% - 2rem); padding: 1.25rem 1rem 1.15rem; }
}
/* FAQ responsive titles */
.faq-question { font-size: clamp(1rem, 3vw, 1.25rem); }
/* Admin mobile cards */
.admin-card {
  border: 1px solid rgb(226 232 240); border-radius: 0.75rem; padding: 1rem;
  background: white;
}
html.dark .admin-card {
  border-color: rgb(51 65 85); background: rgb(30 41 59 / 0.5);
}
.admin-card-row { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; padding: 0.25rem 0; }
.admin-card-label { color: rgb(100 116 139); flex-shrink: 0; }
html.dark .admin-card-label { color: rgb(148 163 184); }
.admin-card-value { text-align: right; word-break: break-word; min-width: 0; }
.admin-card-actions { display: flex; gap: 0.75rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgb(226 232 240); }
html.dark .admin-card-actions { border-top-color: rgb(51 65 85); }
/* Touch targets y espaciado móvil */
@media (max-width: 768px) {
  main .pt-24 { padding-top: 4.5rem; }
  main .pt-40 { padding-top: 5rem; }
  main .pt-32 { padding-top: 4rem; }
  main .pt-20 { padding-top: 4rem; }
}
/* Galería — warm paper system */
.gallery-page { background: var(--bg-base); color: var(--text-high); }
.gallery-title {
  font-family: "Playfair Display", serif; font-style: italic;
  font-size: clamp(1.75rem, 4vw, 2.25rem); color: var(--text-high); margin: 0 0 0.5rem;
}
.gallery-sub { color: var(--text-mid); max-width: 28rem; margin: 0 auto; font-size: 0.875rem; line-height: 1.55; }
.gallery-search-sticky {
  background: rgba(247,243,235,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.gallery-search-input {
  background: #FFFCF7; border: 1px solid rgba(201,168,76,0.22); border-radius: 16px;
  color: var(--text-high); padding: 0.85rem 1rem 0.85rem 2.75rem;
  box-shadow: 0 6px 18px rgba(28,25,22,0.04);
}
.gallery-search-input::placeholder { color: var(--text-low); }
.gallery-search-input:focus { border-color: var(--gold-strong); outline: none; box-shadow: 0 0 0 3px rgba(201,168,76,0.18); }
.gallery-search-icon { position: absolute; left: 1rem; color: var(--gold-strong); }
.gallery-search-hint { margin: 0.65rem 0 0; font-size: 0.75rem; color: var(--text-mid); }
.gallery-card {
  background: #FFFCF7; border-radius: 16px;
  border: 1px solid rgba(201,168,76,0.16);
  box-shadow: 0 8px 24px rgba(28,25,22,0.05);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  text-decoration: none; color: inherit;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201,168,76,0.3);
    box-shadow: 0 14px 36px rgba(28,25,22,0.08);
  }
}
.gallery-card-body { background: #FFFCF7; }
.gallery-card-media { background: var(--bg-elevated, #F0EBE1); }
.gallery-card-name { color: var(--text-high); }
.gallery-card-years {
  color: var(--gold-strong); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.35rem;
}
.gallery-card-excerpt { color: var(--text-mid); font-size: 0.875rem; line-height: 1.65; margin: 0; }
.gallery-card-footer { border-top: 1px solid rgba(201,168,76,0.14); }
.gallery-card-cta-label {
  font-size: 10px; color: var(--text-low); text-transform: uppercase; letter-spacing: 0.08em;
}
/* Galería — tarjetas con imagen nativa */
.gallery-card-media { aspect-ratio: 4 / 5; }
.gallery-card-img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center 22%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.gallery-card-placeholder {
  width: 100%; height: 100%; min-height: 12rem;
  display: flex; align-items: center; justify-content: center;
  color: rgba(183, 146, 82, 0.35);
}
.gallery-card-placeholder .material-symbols-outlined { font-size: 3.5rem; }
.gallery-card-media-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 42%);
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-card-media-shade,
.gallery-card:focus-visible .gallery-card-media-shade { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .gallery-card-img.u-touch-safe,
  .gallery-card:hover .gallery-card-img { transform: none !important; }
  .gallery-card:hover { transform: none !important; box-shadow: inherit; }
}
@media (hover: none), (pointer: coarse) {
  .gallery-card-img.u-touch-safe,
  .gallery-card:hover .gallery-card-img { transform: none !important; }
  .gallery-card:hover { transform: none !important; box-shadow: inherit; }
}
/* Memorial — visor pantalla completa en móvil */
@media (max-width: 767px) {
  #memorial-media-modal { padding: 0; align-items: stretch; }
  #memorial-media-modal .memorial-modal-inner {
    max-width: none; max-height: none; height: 100%;
    border-radius: 0; display: flex; flex-direction: column;
  }
  #memorial-media-modal .memorial-slideshow { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  #memorial-media-modal .memorial-slideshow .slides { flex: 1; display: flex; align-items: center; min-height: 0; }
  #memorial-media-modal .memorial-slide {
    width: 100%; aspect-ratio: auto !important;
    min-height: calc(100dvh - 88px);
    max-height: calc(100dvh - 88px);
  }
  #memorial-media-modal .memorial-slide img,
  #memorial-media-modal .memorial-slide video {
    width: 100%; height: auto; max-height: calc(100dvh - 88px);
    object-fit: contain;
  }
  #memorial-media-modal #memorial-modal-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
}
/* Galería — solo móvil */
@media (max-width: 767px) {
  .gallery-card--row { flex-direction: row; align-items: stretch; }
  .gallery-card--row .gallery-card-media {
    width: var(--img-thumb-md, 88px);
    flex-shrink: 0;
    aspect-ratio: 1;
    border-radius: 12px;
  }
  .gallery-card--row .gallery-card-body {
    padding: 0.75rem 1rem !important;
    flex: 1;
    min-width: 0;
  }
  .gallery-card--row .gallery-card-name {
    font-size: 1.2rem !important;
    line-height: 1.25;
  }
  .gallery-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .gallery-card--row .gallery-card-media-shade { display: none; }
  .gallery-card--row .mt-4 { margin-top: 0.5rem; padding-top: 0.5rem; }
  .gallery-page .gallery-main { padding-left: 1rem; padding-right: 1rem; padding-bottom: 5rem; }
  .gallery-page .gallery-header { padding-top: 0.75rem; padding-bottom: 0.25rem; }
  .gallery-page .gallery-header h3 { font-size: 1.625rem; line-height: 1.2; margin-bottom: 0.35rem; }
  .gallery-page .gallery-header p { font-size: 0.8125rem; line-height: 1.45; padding: 0 0.25rem; }
  .gallery-page .gallery-search-sticky {
    top: calc(3.75rem + env(safe-area-inset-top, 0px));
    margin-left: -0.25rem; margin-right: -0.25rem;
    padding: 0.65rem 0.25rem 0.85rem;
    background: rgba(17, 17, 17, 0.88);
    border-bottom: 1px solid rgba(183, 146, 82, 0.18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }
  html:not(.dark) .gallery-page .gallery-search-sticky {
    background: rgba(244, 239, 230, 0.92);
    border-bottom-color: rgba(183, 146, 82, 0.22);
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
  }
  .gallery-page .gallery-search-field {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.3rem 0.35rem 0.3rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(183, 146, 82, 0.35);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  html:not(.dark) .gallery-page .gallery-search-field {
    background: #fff;
    box-shadow: 0 4px 18px rgba(17, 17, 17, 0.06);
  }
  .gallery-page .gallery-search-field:focus-within {
    border-color: rgba(183, 146, 82, 0.65);
    box-shadow: 0 0 0 3px rgba(183, 146, 82, 0.18);
  }
  .gallery-page .gallery-search-icon {
    position: static;
    flex-shrink: 0;
    color: #b79252;
    font-size: 1.35rem;
    line-height: 1;
  }
  .gallery-page .gallery-search-input {
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem 0.65rem 0;
    border: none !important; box-shadow: none !important; background: transparent !important;
    border-radius: 0 !important; font-size: 16px; -webkit-appearance: none;
  }
  .gallery-page .gallery-search-input:focus { outline: none; }
  .gallery-page .gallery-search-hint {
    margin: 0.55rem 0 0; padding: 0 0.75rem; text-align: center;
    font-size: 0.75rem; line-height: 1.35; color: rgba(148, 163, 184, 0.95);
  }
  html:not(.dark) .gallery-page .gallery-search-hint { color: rgba(100, 116, 139, 0.95); }
  .gallery-page .gallery-grid { gap: 1.25rem; padding-top: 1.25rem; }
  .gallery-page .gallery-load-more-wrap { margin-top: 2rem; }
  .gallery-page .gallery-load-more-wrap button { width: 100%; max-width: 20rem; min-height: 2.75rem; }
}
@media (min-width: 768px) {
  .gallery-page .gallery-search-hint { display: none; }
  .gallery-page .gallery-search-icon { position: absolute; left: 1rem; color: rgb(148 163 184); }
  .gallery-page .gallery-search-input { padding-left: 3rem; }
}
body { min-height: 100dvh; }
/* Mobile image layer — utilities & tokens */
@media (max-width: 767px) {
  :root {
    --img-thumb-sm: 80px;
    --img-thumb-md: 88px;
    --img-portrait-ratio: 4 / 5;
    --img-face-position: center 18%;
  }
  .u-hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
  .u-show-mobile-only { display: none !important; }
}
@supports (padding-top: env(safe-area-inset-top)) {
  .glass-nav { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-top: env(safe-area-inset-top); }
  .nav-mobile-panel { padding-top: env(safe-area-inset-top); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
}

/* Mis memoriales — page + cards */
.mm-page {
  color: var(--text-high);
  position: relative;
  isolation: isolate;
}
.mm-page::before {
  content: '';
  position: absolute;
  inset: -2rem -1rem auto;
  height: 22rem;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201,168,76,0.14), transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 30%, rgba(201,168,76,0.06), transparent 65%);
}
.mm-page > * { position: relative; z-index: 1; }
.mm-header { margin-bottom: 2.25rem; }
.mm-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--text-high);
  margin: 0 0 0.55rem;
  letter-spacing: -0.015em;
}
.mm-subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 36rem;
}
.mm-error { color: #b91c1c; }
.mm-created-banner {
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.12);
  color: var(--text-high);
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.mm-billing-banner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.mm-billing-banner-item {
  border-radius: 12px;
  border: 1px solid rgba(185, 28, 28, 0.28);
  background: rgba(185, 28, 28, 0.08);
  color: var(--text-high);
  padding: 0.95rem 1.1rem;
}
.mm-billing-banner-title {
  font-weight: 650;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}
.mm-billing-banner-body {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-mid);
}
.mm-card-badge--billing {
  background: rgba(185, 28, 28, 0.12);
  color: #991b1b;
  border-color: rgba(185, 28, 28, 0.25);
}
.mm-status {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-mid);
  font-size: 0.95rem;
}
.mm-list { display: flex; flex-direction: column; gap: 1.15rem; }

.mm-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  background: var(--bg-surface);
  box-shadow: 0 10px 32px rgba(28, 25, 22, 0.06);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.mm-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 16px 44px rgba(28, 25, 22, 0.1);
  transform: translateY(-2px);
}
.mm-card--just-created {
  border-color: rgba(201, 168, 76, 0.6);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.24), 0 14px 40px rgba(28, 25, 22, 0.1);
}
.mm-card--archived { opacity: 0.72; }

.mm-card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 240px;
  background: linear-gradient(145deg, var(--bg-elevated), var(--qr-plaque-bg));
  overflow: hidden;
  flex-shrink: 0;
}
.mm-card-cover-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--img-face-position, center 22%);
  transition: transform 0.45s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mm-card:hover .mm-card-cover-media { transform: scale(1.03); }
}
.mm-card-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-low);
  background: linear-gradient(145deg, var(--bg-elevated), var(--qr-plaque-bg));
}
.mm-card-cover-placeholder .material-symbols-outlined { font-size: 2.5rem; }

.mm-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 1.2rem 1.25rem 1.35rem;
  flex: 1;
  min-width: 0;
}
.mm-card-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-elevated);
  color: var(--text-mid);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.35rem;
}
.mm-card-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.22;
  color: var(--text-high);
  margin: 0;
  letter-spacing: -0.01em;
}
.mm-card-dates {
  margin: 0.2rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  color: var(--gold-strong);
}
.mm-card-org {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.mm-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.mm-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.mm-card-btn-primary {
  background: var(--gold-strong);
  color: var(--ink-on-gold);
  border-color: var(--gold-strong);
}
.mm-card-btn-primary:hover { opacity: 0.92; }
.mm-card-btn-secondary {
  background: transparent;
  color: var(--text-high);
  border-color: rgba(201, 168, 76, 0.45);
}
.mm-card-btn-secondary:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold-strong);
}
.mm-card-btn-danger {
  background: transparent;
  color: #9f1239;
  border-color: rgba(159, 18, 57, 0.28);
}
.mm-card-btn-danger:hover {
  background: rgba(159, 18, 57, 0.06);
  border-color: rgba(159, 18, 57, 0.45);
}

@media (min-width: 640px) {
  .mm-card {
    flex-direction: row;
    align-items: stretch;
  }
  .mm-card-cover {
    width: 12.5rem;
    min-height: 10.5rem;
    max-height: none;
    aspect-ratio: 4 / 3;
    align-self: stretch;
  }
  .mm-card-body { padding: 1.25rem 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-card,
  .mm-card-cover-media { transition: none; }
  .mm-card:hover { transform: none; }
  .mm-card:hover .mm-card-cover-media { transform: none; }
}

/* Cancel modal — Mis memoriales */
.mm-modal-panel {
  border-radius: 1rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: var(--bg-surface);
  box-shadow: 0 24px 60px rgba(28, 25, 22, 0.18);
}
.mm-modal-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text-high);
  margin: 0;
}
.mm-modal-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-mid);
}
.mm-modal-refund {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #92400e;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}
.mm-modal-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-high);
}
.mm-modal-input {
  border-radius: 8px;
  border: 1px solid rgba(28, 25, 22, 0.14);
  background: #fff;
  color: var(--text-high);
  padding: 0.55rem 0.75rem;
}
.mm-modal-btn-ghost,
.mm-modal-btn-danger {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.mm-modal-btn-ghost {
  border: 1px solid rgba(28, 25, 22, 0.14);
  background: transparent;
  color: var(--text-high);
}
.mm-modal-btn-ghost:hover { background: var(--bg-elevated); }
.mm-modal-btn-danger {
  border: none;
  background: #dc2626;
  color: #fff;
}
.mm-modal-btn-danger:hover { background: #b91c1c; }
.mm-modal-btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* Pending memorial coupon — Mis memoriales */
.mm-pending-coupon {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border: 2px dashed rgba(183, 146, 82, 0.65);
  border-radius: 1rem;
  background: rgba(245, 158, 11, 0.08);
}
.dark .mm-pending-coupon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(212, 175, 95, 0.5);
}
.mm-pending-coupon-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(183, 146, 82, 0.2);
  color: #b79252;
}
.mm-pending-coupon-icon .material-symbols-outlined { font-size: 1.75rem; }
.mm-pending-coupon-body { flex: 1; min-width: 0; }
.mm-pending-coupon-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: inherit;
}
.mm-pending-coupon-sub {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: rgb(100 116 139);
}
.dark .mm-pending-coupon-sub { color: rgb(148 163 184); }
.mm-pending-coupon-btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* Contact card */
.contact-section {
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 1rem 6rem;
}
@media (min-width: 640px) {
  .contact-section { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .contact-section { padding-left: 2rem; padding-right: 2rem; padding-bottom: 7rem; }
}
.contact-card {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 22px 48px rgba(15, 23, 42, 0.08);
}
.contact-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}
@media (min-width: 768px) {
  .contact-card-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    min-height: 36rem;
  }
}
@media (min-width: 1100px) {
  .contact-card-grid { min-height: 40rem; }
}
.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.75rem;
  background:
    linear-gradient(165deg, rgba(201, 168, 76, 0.07) 0%, rgba(255, 252, 247, 0.9) 42%, #fff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  min-height: 0;
}
@media (min-width: 640px) {
  .contact-card-info { padding: 2rem 2.15rem; gap: 1.25rem; }
}
@media (min-width: 768px) {
  .contact-card-info {
    height: 100%;
    border-bottom: none;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    padding: 2.25rem;
  }
}
@media (min-width: 1100px) {
  .contact-card-info { padding: 2.5rem 2.75rem; }
}
.contact-card-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.22), rgba(201, 168, 76, 0.1));
  color: var(--gold-strong, #C9A84C);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.18);
}
.contact-card-icon .material-symbols-outlined { font-size: 1.45rem; }
.contact-card-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #0f172a;
}
.contact-card-desc {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 36rem;
}

/* Direct email block */
.contact-email-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.contact-email-block:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.12);
  transform: translateY(-1px);
}
.contact-email-block:focus-visible {
  outline: 2px solid rgba(201, 168, 76, 0.55);
  outline-offset: 2px;
}
.contact-email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
  border-radius: 0.7rem;
  background: #1c1916;
  color: var(--gold-strong, #C9A84C);
}
.contact-email-icon .material-symbols-outlined { font-size: 1.2rem; }
.contact-email-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}
.contact-email-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.contact-email-address {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-email-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-strong, #C9A84C);
}
.contact-email-action .material-symbols-outlined { font-size: 1.05rem; }

/* Map fills remaining column height */
.contact-map-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  overflow: hidden;
  border-radius: 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  background: #f1f5f9;
}
@media (min-width: 768px) {
  .contact-map-wrap { min-height: 0; }
}
.contact-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #f1f5f9;
}

/* Form column */
.contact-card-form-wrap {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  background: #fff;
}
@media (min-width: 640px) {
  .contact-card-form-wrap { padding: 2rem 2.15rem; }
}
@media (min-width: 768px) {
  .contact-card-form-wrap { padding: 2.25rem; }
}
@media (min-width: 1100px) {
  .contact-card-form-wrap { padding: 2.5rem 2.75rem; }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  height: 100%;
  text-align: left;
}
.contact-field { display: flex; flex-direction: column; gap: 0.45rem; }
.contact-field--message {
  flex: 1 1 auto;
  min-height: 0;
}
.contact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #334155;
}
.contact-input-shell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1rem;
  min-height: 3.25rem;
  border-radius: 0.8rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.contact-input-shell:hover {
  border-color: rgba(15, 23, 42, 0.16);
  background: #fff;
}
.contact-input-shell:focus-within {
  background: #fff;
  border-color: rgba(201, 168, 76, 0.7);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.02),
    0 0 0 3px rgba(201, 168, 76, 0.16);
}
.contact-input-shell--textarea {
  align-items: stretch;
  padding: 0.9rem 1rem;
  min-height: 10.5rem;
  height: 100%;
}
.contact-input-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #94a3b8;
  transition: color 0.18s ease;
}
.contact-input-shell:focus-within .contact-input-icon {
  color: var(--gold-strong, #C9A84C);
}
.contact-input {
  width: 100%;
  min-width: 0;
  flex: 1;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0.95rem 0;
  font-size: 0.975rem;
  line-height: 1.4;
  color: #0f172a;
  font-family: inherit;
}
.contact-input::placeholder { color: #94a3b8; }
.contact-textarea {
  resize: none;
  min-height: 9rem;
  height: 100%;
  padding: 0;
  line-height: 1.55;
}
.contact-form-footer { margin-top: auto; padding-top: 0.35rem; }
.contact-submit {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 9999px;
  background: var(--gold-strong, #C9A84C);
  color: var(--ink-on-gold, #1c1916);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 8px 20px rgba(201, 168, 76, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-submit .material-symbols-outlined { font-size: 1.2rem; }
.contact-submit:hover {
  background: color-mix(in srgb, var(--gold-strong, #C9A84C) 92%, #000);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08), 0 12px 24px rgba(201, 168, 76, 0.28);
}
.contact-submit:active { transform: translateY(0); }
.contact-note {
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.contact-submit.is-loading {
  opacity: 0.85;
  cursor: wait;
}
.contact-submit:disabled {
  cursor: wait;
  transform: none;
}

/* Contact success modal */
body.contact-modal-open { overflow: hidden; }
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.contact-modal.hidden { display: none; }
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: contact-modal-fade 0.22s ease;
}
.contact-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  padding: 1.85rem 1.75rem 1.6rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 24px 56px rgba(15, 23, 42, 0.18);
  text-align: center;
  animation: contact-modal-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.22), rgba(201, 168, 76, 0.08));
  color: var(--gold-strong, #C9A84C);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.2);
}
.contact-modal-icon--error {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.06));
  color: #dc2626;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.18);
}
.contact-modal-icon .material-symbols-outlined { font-size: 1.75rem; }
.contact-modal-title {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.contact-modal-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #64748b;
}
.contact-modal-hint {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}
.contact-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.35rem;
}
.contact-modal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  min-width: 10rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: var(--gold-strong, #C9A84C);
  color: var(--ink-on-gold, #1c1916);
  box-shadow: 0 8px 18px rgba(201, 168, 76, 0.25);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.contact-modal-btn-primary .material-symbols-outlined { font-size: 1.05rem; }
.contact-modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(201, 168, 76, 0.32);
}
.contact-modal-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  flex: 0 1 auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #334155;
}
.contact-modal-btn-secondary:hover {
  border-color: rgba(15, 23, 42, 0.2);
  background: #f8fafc;
}
@keyframes contact-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes contact-modal-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-modal-backdrop,
  .contact-modal-panel { animation: none; }
}

/* Contact map (Leaflet) */
#contact-map,
.contact-map { z-index: 0; }
#contact-map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: rgb(100 116 139);
}
#contact-map .leaflet-control-attribution a { color: rgb(100 116 139); }
#contact-map .leaflet-bar a {
  color: rgb(51 65 85);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
#contact-map .leaflet-bar {
  border: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}
.contact-map-pin { position: relative; }
.contact-map-pin-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 9999px;
  background: var(--gold-strong, #C9A84C);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
  z-index: 2;
}
.contact-map-pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 9999px;
  background: var(--gold-strong, #C9A84C);
  opacity: 0.35;
  animation: contact-map-pulse 2s ease-out infinite;
  z-index: 1;
}
@keyframes contact-map-pulse {
  0% { transform: scale(0.6); opacity: 0.45; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-map-pin-pulse { animation: none; }
}
