:root {
  /* ── Core palette ── */
  --bg: #f7f2e8;
  --bg-deep: #efe4d2;
  --ink: #1f2e2a;
  --ink-soft: #4d5d57;
  --brand: #9b6f3f;
  --brand-deep: #6b4a2a;
  --surface: #fffdf9;
  --line: #ddcfba;
  --success: #2b7a5d;
  --warning: #8a5a1f;
  --danger: #9f3a30;
  --shadow: 0 16px 40px rgba(28, 39, 35, 0.11);

  /* ── Semantic aliases (used by wizard, how-it-works, and inline styles) ── */
  --color-primary: #9b6f3f;
  --color-primary-dark: #6b4a2a;
  --color-accent: #2b7a5d;
  --color-success: #2b7a5d;
  --color-warning: #8a5a1f;
  --color-error: #9f3a30;
  --color-border: #ddcfba;
  --color-surface: #fffdf9;
  --color-background: #f7f2e8;
  --color-muted: #4d5d57;
  --color-text: #1f2e2a;

  /* ── Border radii ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  /* ── Shadows ── */
  --shadow-sm: 0 4px 12px rgba(28, 39, 35, 0.07);
  --shadow-md: 0 16px 40px rgba(28, 39, 35, 0.11);
  --shadow-lg: 0 24px 48px rgba(28, 39, 35, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, #fbf7ee 0%, var(--bg) 60%, #e8dcc8 100%);
  min-height: 100%;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  line-height: 1.7;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(560px, calc(100% - 2rem));
}

.narrow-large {
  width: min(760px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: rgba(247, 242, 232, 0.82);
  border-bottom: 1px solid rgba(155, 111, 63, 0.17);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav > a,
.linkish {
  color: var(--ink-soft);
  font-weight: 600;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.site-nav > a:hover,
.linkish:hover {
  color: var(--ink);
  text-decoration: none;
}

.inline-form {
  display: inline;
}

.main-shell {
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
}

.section-block {
  padding: 2.5rem 0;
}

.hero {
  min-height: clamp(480px, 72vh, 650px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding-top: 3.4rem;
  padding-bottom: 2.8rem;
}

.hero-copy {
  animation: rise 600ms ease-out both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 42ch;
}

.hero-media {
  border-radius: 22px;
  min-height: 380px;
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(145deg, rgba(27, 34, 31, 0.38), rgba(151, 106, 61, 0.2)),
    url("https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  animation: rise 750ms ease-out both;
}

.hero-actions,
.inline-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-section {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border-radius: var(--radius-lg);
  margin: 4rem 0;
}

.cta-section h2 {
  color: white;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(130deg, var(--brand) 0%, #b9874d 100%);
  color: #fff9f0;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(124, 82, 41, 0.24);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  box-shadow: none;
}

.btn-danger {
  background: linear-gradient(130deg, #8f332b 0%, #bf5247 100%);
}

.full {
  width: 100%;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.surface-card,
.step-card,
.stat-card,
.trust-card,
.price-card,
.auth-card {
  background: var(--surface);
  border: 1px solid rgba(189, 161, 129, 0.35);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.step-card,
.trust-card,
.price-card,
.stat-card,
.surface-card,
.auth-card {
  padding: 1.3rem;
}

.emotional-pull {
  text-align: center;
}

.steps-grid,
.trust-grid,
.pricing-grid,
.stats-grid,
.settings-grid {
  display: grid;
  gap: 1rem;
}

.steps-grid,
.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.pricing-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.featured {
  border-color: rgba(155, 111, 63, 0.5);
  background: linear-gradient(145deg, #fffdf9 0%, #f7efe3 100%);
}

.price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  margin: 0.2rem 0 0.8rem;
}

.step-number {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--brand-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.stat-card p {
  margin: 0;
  color: var(--ink-soft);
}

.stat-card strong {
  font-size: 1.9rem;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.flash-stack {
  margin-top: 1rem;
}

.flash {
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  margin-bottom: 0.55rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.flash-success {
  color: #194c3a;
  border-color: rgba(43, 122, 93, 0.3);
  background: rgba(43, 122, 93, 0.1);
}

.flash-warning {
  color: #6a4317;
  border-color: rgba(138, 90, 31, 0.28);
  background: rgba(138, 90, 31, 0.1);
}

.flash-danger {
  color: #6e251f;
  border-color: rgba(159, 58, 48, 0.3);
  background: rgba(159, 58, 48, 0.1);
}

.flash-info {
  color: #1b414f;
  border-color: rgba(57, 107, 125, 0.3);
  background: rgba(57, 107, 125, 0.1);
}

.stack-form {
  display: grid;
  gap: 0.9rem;
}

.grouped-message-form {
  gap: 1.2rem;
}

.form-section-card {
  border: 1px solid rgba(189, 161, 129, 0.4);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.9);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.form-section-heading {
  margin: 0;
  font-size: 1.35rem;
}

.surface-subcard {
  border: 1px solid rgba(189, 161, 129, 0.45);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(247, 239, 227, 0.5);
  display: grid;
  gap: 0.75rem;
}

.consent-attestation-group {
  margin: 0;
}

.consent-attestation-group legend {
  font-weight: 700;
  color: var(--ink);
}

.photo-preview-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.photo-preview-item {
  margin: 0;
  border: 1px solid rgba(189, 161, 129, 0.5);
  border-radius: 12px;
  background: #fff9f1;
  overflow: hidden;
}

.photo-preview-item img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  display: block;
}

.photo-preview-item figcaption {
  padding: 0.48rem 0.62rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

label {
  display: grid;
  gap: 0.32rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cdbba5;
  border-radius: 12px;
  font: inherit;
  padding: 0.68rem 0.75rem;
  background: #fffcf6;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(155, 111, 63, 0.35);
  border-color: var(--brand);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  font-weight: 500;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.muted {
  color: var(--ink-soft);
}

.split-muted {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e7dac8;
  padding: 0.66rem;
}

th {
  color: var(--ink-soft);
  font-weight: 700;
}

.table-link {
  font-weight: 700;
}

.auth-card {
  padding: 1.5rem;
  margin-top: 2.2rem;
}

.stack-row {
  display: grid;
  gap: 0.7rem;
}

.small-note {
  font-size: 0.86rem;
}

.danger-zone {
  border-color: rgba(159, 58, 48, 0.38);
  background: #fff8f6;
}

.site-footer {
  border-top: 1px solid rgba(155, 111, 63, 0.2);
  padding: 2rem 0;
  background: rgba(240, 228, 210, 0.6);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  filter: blur(58px);
  z-index: 0;
}

.bg-glow-one {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 8%;
  background: rgba(241, 188, 125, 0.25);
}

.bg-glow-two {
  width: 300px;
  height: 300px;
  right: -120px;
  top: 50%;
  background: rgba(129, 170, 149, 0.23);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-media {
    min-height: 280px;
  }

  .steps-grid,
  .trust-grid,
  .pricing-grid,
  .stats-grid,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.2rem);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .steps-grid,
  .trust-grid,
  .pricing-grid,
  .stats-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .split-muted {
    flex-direction: column;
  }
}

/* Footer Styles */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.footer-logo {
  margin-bottom: 1rem;
  text-align: left;
}

.footer-logo-img {
  max-width: 280px;
  height: auto;
  opacity: 0.9;
}

.footer-tagline {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-mailing {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.mailing-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mailing-input {
  flex: 1;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--ink);
}

.mailing-input:focus {
  outline: 2px solid rgba(155, 111, 63, 0.3);
  border-color: var(--brand);
}

.mailing-btn {
  padding: 0.55rem 1.1rem;
  background: linear-gradient(130deg, var(--brand) 0%, #b9874d 100%);
  color: #fff9f0;
  border: none;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.mailing-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.mailing-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-company {
  margin-top: 0.25rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-brand h3 {
    font-size: 1.5rem;
  }
  
  .mailing-form {
    flex-direction: column;
  }
  
  .social-links {
    justify-content: center;
  }
}
.legal-page {
  padding: 3rem 0;
}

.legal-doc-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-doc-card h1 {
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.legal-doc-card h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--brand-deep);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.legal-doc-card h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.legal-doc-card ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-doc-card li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-doc-card .muted {
  color: var(--ink-soft);
  font-style: italic;
}

.important-note {
  background: #fef7e0;
  border-left: 4px solid var(--warning);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.important-note strong {
  color: var(--warning);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1em;
}

@media (max-width: 640px) {
  .legal-doc-card {
    padding: 1.5rem;
  }
}

/* ── Shared message-card styles (dashboard + messages/list) ── */
.messages-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.message-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(155, 111, 63, 0.12);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.message-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.message-status {
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.message-status.scheduled {
  background: rgba(155, 111, 63, 0.1);
  color: var(--brand-deep);
}

.message-status.delivered {
  background: rgba(43, 122, 93, 0.12);
  color: var(--success);
}

.message-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.detail-row {
  display: flex;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.detail-label {
  color: var(--color-muted);
  font-weight: 600;
}

.detail-value {
  color: var(--color-text);
}

.message-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.meta-item,
.meta-date {
  color: var(--color-muted);
}

.meta-date {
  margin-left: auto;
}

.message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  align-items: center;
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
}

.empty-state h2,
.empty-state h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .message-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .detail-label {
    min-width: auto;
  }

  .meta-date {
    margin-left: 0;
    width: 100%;
  }
}

/* New image styles for homepage and how it works page */
.emotional-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.emotional-text {
  max-width: 42ch;
}

.decorative-image {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.delivery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for images */
@media (max-width: 768px) {
  .emotional-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .emotional-text {
    max-width: none;
  }
}

/* Hero media background images */
.hero-media-typewriter {
  background-image:
    linear-gradient(145deg, rgba(27, 34, 31, 0.38), rgba(151, 106, 61, 0.2)),
    url("../images/typerwritter_and_written_letter.JPG");
}

.hero-media-envelopes {
  background-image:
    linear-gradient(145deg, rgba(27, 34, 31, 0.38), rgba(151, 106, 61, 0.2)),
    url("../images/bundle_envelopes_plus_letter_picture.JPG");
}
