:root {
  --ivory: #f7f2eb;
  --blush: #fff5f3;
  --rose: #d14d62;
  --rose-deep: #a83a4d;
  --honey: #e8a87c;
  --espresso: #2a211c;
  --mocha: #5c4a42;
  --plum: #1e1520;
  --glow: rgba(209, 77, 98, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--ivory);
  color: var(--espresso);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

a { color: var(--rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  background: rgba(247, 242, 235, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 33, 28, 0.06);
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--rose-deep);
  font-weight: 600;
}

.brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-with-logo:hover { text-decoration: none; }
.brand-with-logo img { flex-shrink: 0; }

.nav-cta {
  background: var(--rose);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--glow);
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--rose-deep); transform: translateY(-1px); }

/* Hero — asymmetric split */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4vw;
  align-items: center;
  padding: 120px 5vw 80px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mocha);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-rotate {
  display: block;
  color: var(--rose);
  min-height: 1.15em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--mocha);
  max-width: 32rem;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 32px var(--glow);
}
.btn-primary:hover { filter: brightness(1.05); }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(42, 33, 28, 0.2);
  color: var(--espresso);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
}

/* Chat collage — offset cards */
.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(30, 21, 32, 0.15);
}

.hero-visual:not(:has(.hero-photo[src])) .chat-card,
.chat-card { z-index: 2; }

.bento-with-img {
  display: flex;
  gap: 24px;
  align-items: center;
}
.bento-img {
  width: 42%;
  max-width: 200px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-card {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(30, 21, 32, 0.12);
  max-width: 260px;
  font-size: 0.92rem;
  border: 1px solid rgba(42, 33, 28, 0.06);
}

.chat-card.ai { background: var(--blush); border-color: rgba(209, 77, 98, 0.15); }
.chat-card.c1 { top: 8%; left: 5%; transform: rotate(-4deg); }
.chat-card.c2 { top: 38%; right: 0; transform: rotate(3deg); }
.chat-card.c3 { bottom: 8%; left: 18%; transform: rotate(-2deg); }

.chat-card .from { font-size: 0.75rem; color: var(--mocha); margin-bottom: 6px; }

/* Stats ribbon */
.stats-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  padding: 48px 5vw;
  background: var(--plum);
  color: var(--blush);
}

.stat-num {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  display: block;
}

.stat-label { font-size: 0.9rem; opacity: 0.85; }

/* Bento features */
.section {
  padding: 80px 5vw;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--mocha);
  max-width: 36rem;
  margin-bottom: 40px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background: white;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(42, 33, 28, 0.08);
  box-shadow: 0 8px 30px rgba(30, 21, 32, 0.05);
}

.bento-card.span7 { grid-column: span 7; }
.bento-card.span5 { grid-column: span 5; }
.bento-card.span4 { grid-column: span 4; }
.bento-card.span8 { grid-column: span 8; }
.bento-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.bento-card p { color: var(--mocha); font-size: 0.95rem; }

.bento-card.accent {
  background: linear-gradient(145deg, var(--rose-deep), var(--plum));
  color: var(--blush);
}
.bento-card.accent p { color: rgba(255, 245, 243, 0.88); }

/* FAQ — AEO */
.faq { background: var(--blush); }

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(42, 33, 28, 0.08);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--espresso);
  font-family: inherit;
}

.faq-a {
  padding: 0 22px 18px;
  color: var(--mocha);
  font-size: 0.95rem;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 100px 5vw;
  background: linear-gradient(180deg, var(--ivory), var(--blush));
}

.cta-band h2 { font-size: 2.4rem; margin-bottom: 16px; }

/* Footer — Replika-style columns */
.site-footer {
  background: var(--plum);
  color: rgba(255, 245, 243, 0.9);
  padding: 56px 5vw 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blush);
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-logo-link:hover { text-decoration: none; opacity: 0.9; }

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.75;
  max-width: 220px;
}

.footer-col h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.55;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255, 245, 243, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--honey); text-decoration: underline; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 245, 243, 0.12);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}
.footer-bottom a { color: var(--honey); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .bento-with-img { flex-direction: column; }
  .bento-img { width: 100%; max-width: none; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 21, 32, 0.55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--mocha);
}

.modal h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  background: var(--ivory);
  padding: 4px;
  border-radius: 12px;
}

.modal-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--mocha);
}
.modal-tab.active { background: white; color: var(--rose-deep); box-shadow: 0 2px 8px rgba(0,0,0,.06); }

.modal label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--mocha);
}

.modal input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(42, 33, 28, 0.15);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.modal-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: none;
}
.modal-error.show { display: block; }

.modal-submit {
  width: 100%;
  padding: 14px;
  background: var(--rose);
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
  }
  .hero-visual { min-height: 320px; margin-top: 20px; }
  .bento-card.span7,
  .bento-card.span5,
  .bento-card.span4,
  .bento-card.span8 { grid-column: span 12; }
}
