@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500&display=swap");

:root {
  --background: #f7f2ec;
  --cream: #f4ede5;
  --espresso: #3f342f;
  --espresso-light: #75655d;
  --champagne: #c7a26f;
  --champagne-light: #eadfcf;
  --blush: #e8c2bf;
  --blush-soft: #f6e7e1;
  --warm-glow: #f1d8b4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--background);
  color: var(--espresso);
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
  font-weight: 500;
  line-height: 1.06;
}

p {
  margin: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.page-root {
  overflow-x: clip;
}

.hero-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #1d1412;
}

.hero-media,
.cta-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 20, 18, 0.55) 0%, rgba(29, 20, 18, 0.32) 35%, rgba(29, 20, 18, 0.74) 100%);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(29, 20, 18, 0.82) 0%, rgba(29, 20, 18, 0.54) 36%, rgba(29, 20, 18, 0.28) 100%);
}

.hero-content,
.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px;
  width: min(980px, calc(100% - 32px));
  animation: fade-up 800ms ease both;
}

.hero-content {
  color: #f9f1ea;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.74rem;
  color: var(--champagne-light);
  margin-bottom: 28px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 4.9rem);
  color: #fff7ef;
  margin-bottom: 10px;
}

.hero-italic {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  color: var(--blush);
  margin-bottom: 14px;
}

.hero-copy,
.hero-note,
.section-copy,
.section-italic,
.story-copy p,
.cta-content p,
.footer-copy {
  line-height: 1.8;
  color: var(--espresso-light);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 249, 244, 0.88);
}

.hero-note {
  margin-top: 12px;
  color: rgba(255, 249, 244, 0.62);
  font-style: italic;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  margin-top: 34px;
  border-radius: 999px;
  text-decoration: none;
  color: #241a17;
  background: linear-gradient(180deg, #f0d9b6 0%, #dcb98a 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.26);
}

.hero-button--light {
  color: #241a17;
}

.trust-strip {
  padding: 26px 0 22px;
  background: var(--background);
}

.trust-inner,
.section-inner,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.trust-inner {
  display: flex;
  justify-content: center;
  gap: 18px 28px;
  flex-wrap: wrap;
}

.trust-inner p {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: var(--espresso-light);
  font-size: 1.05rem;
}

.section {
  padding: 98px 0;
  background: var(--background);
}

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

.section-inner--narrow {
  width: min(860px, calc(100% - 40px));
}

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

.section-title {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  color: var(--espresso);
  margin-bottom: 42px;
}

.section-title--small {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  margin-bottom: 28px;
}

.section-italic {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.15vw, 1.5rem);
  max-width: 760px;
  margin: 0 auto;
}

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

.section-copy--left {
  margin: 0;
  text-align: left;
}

.section-copy--small {
  margin-top: 12px;
  font-size: 0.98rem;
  opacity: 0.78;
}

.section-copy--center {
  text-align: center;
}

.section--backend {
  background: linear-gradient(180deg, var(--background) 0%, #f6eee7 100%);
}

.backend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.backend-copy {
  padding-top: 12px;
  max-width: 760px;
}

.backend-panel,
.backend-card {
  border-radius: 28px;
  border: 1px solid rgba(63, 52, 47, 0.1);
  background: rgba(255, 250, 246, 0.88);
  box-shadow: 0 18px 50px rgba(63, 52, 47, 0.08);
  backdrop-filter: blur(10px);
}

.backend-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.backend-panel--chat {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.chat-thread {
  display: grid;
  gap: 16px;
  min-height: 42vh;
  max-height: none;
  overflow: visible;
  padding: 0 2px 8px;
}

.chat-bubble {
  max-width: min(760px, 84%);
  padding: 16px 18px;
  border-radius: 24px;
  line-height: 1.8;
  border: 0;
  box-shadow: 0 12px 28px rgba(63, 52, 47, 0.06);
  font-size: 1rem;
}

.chat-bubble p {
  margin: 0;
  color: inherit;
}

.chat-bubble--assistant {
  background: rgba(255, 255, 255, 0.84);
  color: var(--espresso);
  border-bottom-left-radius: 10px;
}

.chat-bubble--user {
  margin-left: auto;
  background: linear-gradient(180deg, #f0d9b6 0%, #e4c08f 100%);
  color: #2b201b;
  border-bottom-right-radius: 10px;
}

.chat-composer {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  max-width: min(760px, 100%);
}

.chat-composer-shell {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 250, 246, 0.9);
  border: 1px solid rgba(63, 52, 47, 0.08);
  box-shadow: 0 16px 32px rgba(63, 52, 47, 0.08);
}

.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;
}

.chat-composer-shell input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--espresso);
  border-radius: 16px;
  padding: 15px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  font-size: 1rem;
  box-shadow: none;
}

.chat-composer-shell input:focus {
  box-shadow: 0 0 0 3px rgba(199, 162, 111, 0.14);
}

.hero-button--panel {
  margin-top: 4px;
  width: 100%;
}

.hero-button--inline {
  width: auto;
  min-width: 124px;
  margin-top: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-composer .backend-field {
  margin-bottom: 0;
}

.backend-status,
.backend-copyline {
  color: var(--espresso-light);
  font-size: 0.95rem;
}

.backend-note {
  margin-top: -4px;
  color: var(--espresso-light);
  font-size: 0.86rem;
  font-style: italic;
}

.backend-results {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.backend-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.backend-card h3 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  color: var(--espresso);
}

.backend-card p {
  line-height: 1.8;
  color: var(--espresso-light);
}

.backend-block {
  display: grid;
  gap: 12px;
}

.backend-block h4,
.backend-mini h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  margin: 0;
  color: var(--espresso);
}

.backend-grid {
  display: grid;
  gap: 14px;
}

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

.backend-option-list {
  display: grid;
  gap: 12px;
}

.backend-option {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(63, 52, 47, 0.12);
  background: rgba(255, 255, 255, 0.74);
  text-align: left;
  color: var(--espresso);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.backend-option:hover {
  transform: translateY(-1px);
  border-color: rgba(199, 162, 111, 0.48);
  box-shadow: 0 16px 30px rgba(63, 52, 47, 0.08);
}

.backend-option--selected {
  border-color: rgba(199, 162, 111, 0.75);
  background: rgba(245, 236, 224, 0.94);
  box-shadow: 0 18px 32px rgba(199, 162, 111, 0.12);
}

.backend-option-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.backend-option-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  margin: 0;
}

.backend-option-price {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne);
  white-space: nowrap;
}

.backend-option-meta {
  display: flex;
  gap: 10px 12px;
  flex-wrap: wrap;
  color: var(--espresso-light);
  font-size: 0.92rem;
}

.backend-option-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.backend-option-meta span::before {
  content: "•";
  color: var(--champagne);
}

.backend-option-meta span:first-child::before {
  content: "";
}

.backend-option-description {
  margin: 0;
  color: var(--espresso-light);
  line-height: 1.75;
}

.backend-chip,
.backend-mini {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(63, 52, 47, 0.1);
  background: rgba(255, 255, 255, 0.76);
}

.backend-chip h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.backend-chip p,
.backend-mini p {
  color: var(--espresso-light);
  line-height: 1.75;
}

.backend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.backend-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(63, 52, 47, 0.12);
  background: rgba(255, 250, 246, 0.9);
  color: var(--espresso);
}

.backend-empty {
  color: var(--espresso-light);
  font-style: italic;
}

.step-list {
  display: grid;
  gap: 28px;
}

.step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
}

.step-num {
  color: var(--champagne);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-family: "Inter", system-ui, sans-serif;
}

.step-item p {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  line-height: 1.55;
}

.promise-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.promise-row span {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  color: var(--espresso-light);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--champagne);
}

.story-stack {
  display: grid;
  gap: 96px;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.story-row--reverse {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.35fr);
}

.story-row--reverse .story-image {
  order: 2;
}

.story-row--reverse .story-copy {
  order: 1;
}

.story-image {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(41, 26, 20, 0.14);
}

.story-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.story-copy {
  display: grid;
  gap: 12px;
}

.story-copy h3 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
}

.story-copy p {
  font-size: 1rem;
}

.cta-section {
  position: relative;
  min-height: 66svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #221715;
}

.cta-content {
  color: #f8f0e8;
  max-width: 720px;
}

.cta-content h2 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  color: #fff8f0;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(248, 240, 232, 0.86);
  max-width: 560px;
  margin: 0 auto;
}

.footer {
  padding: 28px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: center;
  border-top: 1px solid rgba(63, 52, 47, 0.12);
  background: var(--background);
}

.footer-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  color: var(--espresso);
}

.footer-links {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--espresso-light);
}

.footer-links a:hover {
  color: var(--espresso);
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.68;
}

[hidden] {
  display: none !important;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.section,
.footer {
  animation: fade-up 0.8s ease both;
}

@media (max-width: 980px) {
  .story-row,
  .story-row--reverse {
    grid-template-columns: 1fr;
  }

  .backend-layout {
    grid-template-columns: 1fr;
  }

  .story-row--reverse .story-image,
  .story-row--reverse .story-copy {
    order: initial;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .hero-content,
  .cta-content {
    padding: 64px 18px;
  }

  .trust-inner {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 78px 0;
  }

  .story-stack {
    gap: 72px;
  }

  .story-image img {
    aspect-ratio: 4 / 3;
  }

  .step-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .backend-grid--two {
    grid-template-columns: 1fr;
  }

  .backend-option-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-thread {
    max-height: none;
  }
}
