:root {
  --pink: #E63E8C;
  --pink-dark: #B02468;
  --pink-mid: #F27BAE;
  --pink-soft: #FCE4EF;
  --wine: #70113A;
  --gold: #D4A82A;
  --gold-mid: #E8C766;
  --gold-soft: #FBF3DC;
  --ink: #1A1A1A;
  --text: #4A4A4A;
  --muted: #8A8A8A;
  --line: #EDE9E4;
  --cream: #FAF6F1;
  --white: #FFFFFF;
  --success: #7A8B3A;
  --error: #C4453A;
  --shadow: 0 18px 50px rgba(26, 26, 26, 0.08);
  --shadow-sm: 0 8px 24px rgba(26, 26, 26, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --header: 92px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}
body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: block;
  width: 100%;
  text-wrap: pretty;
}
h1 { font-size: clamp(1.9rem, 3.2vw, 3.05rem); }
h2 { font-size: clamp(1.55rem, 2.3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }

.eyebrow {
  display: grid;
  grid-template-columns: 8px minmax(0, max-content);
  align-items: center;
  column-gap: 10px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #70113A;
  grid-column: 1;
  align-self: center;
}
.lead { font-size: 1.05rem; color: var(--text); max-width: 72ch; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 14px 24px; font-weight: 700; font-size: 0.95rem;
  transition: 0.25s ease;
}
.btn-primary { background: var(--pink); color: var(--white); }
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--pink);
  border: 1.5px solid var(--pink);
}
.btn-ghost:hover { background: var(--pink-soft); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-gold { background: var(--wine); color: var(--white); }
.btn-gold:hover { background: #56102C; color: var(--white); }
.btn-wine { background: var(--wine); color: var(--white); }
.btn-wine:hover { background: #56102C; transform: translateY(-1px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(237,233,228,0.8);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}
.brand img.logo-full {
  height: 58px;
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  background: transparent;
}
.brand .wordmark { display: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.nav a:hover { color: var(--pink); }
.nav a.btn-wine,
.nav a.btn-primary,
.nav a.btn-wine:hover,
.nav a.btn-primary:hover {
  color: var(--white);
}
.nav a.is-active:not(.btn) { color: var(--pink); }
.nav a.is-active:not(.btn)::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: -2px;
  background: var(--pink);
  border-radius: 2px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
}
.menu-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}
.menu-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 7px; }
.menu-toggle-bars span:nth-child(3) { top: 14px; }
.menu-toggle.is-open {
  background: var(--pink-soft);
}
.menu-toggle.is-open .menu-toggle-bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .menu-toggle-bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 88px;
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg,
      rgba(255,255,255,0.94) 0%,
      rgba(250,246,241,0.90) 34%,
      rgba(250,246,241,0.42) 58%,
      rgba(255,255,255,0.06) 100%),
    url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero h1 { font-size: clamp(1.85rem, 3.1vw, 2.85rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p { margin: 18px 0 28px; font-size: 1.12rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-visual {
  position: relative;
}
.hero-visual img.hero-photo {
  width: 100%; height: 560px; object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.floating-chip {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.chip-1 { left: -18px; bottom: 80px; }
.chip-2 { right: 18px; top: 28px; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block; margin-right: 6px; }

.form label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--ink); margin: 10px 0 6px; }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; background: #fff; color: var(--ink);
  font-size: 16px;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--pink-mid); border-color: var(--pink);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-msg { display: none; margin-top: 10px; font-size: 0.88rem; font-weight: 600; }
.form-msg.ok { display: block; color: var(--success); }
.form-msg.err { display: block; color: var(--error); }

/* Sections */
section { padding: 92px 0; scroll-margin-top: var(--header); }
.alt { background: var(--cream); }
.blush { background: var(--pink-soft); }
.section-head { max-width: none; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 14px auto 0; }

/* Problem channels */
.channels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.channel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  transition: 0.25s;
}
.channel:hover { border-color: var(--pink); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.channel span { display: block; font-size: 1.4rem; margin-bottom: 6px; }
.converge {
  text-align: center;
  position: relative;
  padding: 18px 0 8px;
}
.converge .arrow { color: var(--wine); font-size: 1.6rem; }
.loop-result {
  margin: 16px auto 0;
  max-width: 520px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 16px 22px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.gold-dot { width: 10px; height: 10px; background: #70113A; border-radius: 50%; }

/* Loop timeline */
.loop-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.loop-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  cursor: pointer;
  transition: 0.25s;
  min-height: 170px;
}
.loop-step:hover, .loop-step.open {
  border-color: var(--pink);
  box-shadow: var(--shadow-sm);
}
.loop-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pink-soft); color: var(--pink-dark);
  display: grid; place-items: center; font-weight: 800; font-size: 0.8rem;
  margin-bottom: 12px;
}
.loop-step h3 { margin-bottom: 6px; }
.loop-step p { font-size: 0.92rem; }
.loop-extra { display: none; margin-top: 10px; color: var(--muted); font-size: 0.88rem; }
.loop-step.open .loop-extra { display: block; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 18px; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { font-size: 0.92rem; }

/* AI */
.ai-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch;
}
.chat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  min-height: 460px;
}
.chat-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--wine); color: #fff;
}
.iso {
  width: 34px; height: 34px; border-radius: 10px;
  background: #fff; color: var(--wine);
  display: grid; place-items: center; font-weight: 800;
}
.chat-log { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 14px; font-size: 0.92rem; }
.bubble.ai { background: var(--pink-soft); color: var(--ink); align-self: flex-start; }
.bubble.user { background: var(--ink); color: #fff; align-self: flex-end; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 12px; font-size: 0.8rem; cursor: pointer; font-weight: 600;
}
.chip:hover { border-color: var(--pink); color: var(--pink); }

.guide-box, .phone, .book-box, .os-box, .demo-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.disclaimer {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine);
  padding: 10px 12px;
  border-radius: 8px;
}

/* Phone mock */
.phone {
  max-width: 420px;
  margin: 0 auto;
  background: #111;
  color: #fff;
  border-radius: 32px;
  padding: 18px 18px 24px;
}
.phone-top { text-align: center; color: #bbb; font-size: 0.78rem; margin-bottom: 12px; }
.phone-avatar {
  width: 64px; height: 64px; border-radius: 18px; background: var(--pink);
  margin: 8px auto 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.4rem;
}
.transcript { min-height: 180px; font-size: 0.92rem; line-height: 1.6; color: #eee; }
.phone-controls { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

/* Booking */
.book-steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.book-steps span {
  padding: 6px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: var(--cream); color: var(--muted);
}
.book-steps span.on { background: var(--pink); color: #fff; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  cursor: pointer; font-weight: 600; font-size: 0.88rem;
}
.choice.on { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-dark); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.confirm-card {
  display: none;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}
.confirm-card .muted { color: var(--text); }
.confirm-card.show { display: block; }

/* Relationship / OS */
.flow {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.node {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; font-weight: 700; color: var(--ink);
  transition: 0.2s;
}
.node:hover { background: var(--pink); color: #fff; border-color: var(--pink); }
.node.pink { background: var(--pink); color: #fff; border-color: var(--pink); }
.conn { color: var(--gold); font-weight: 800; }

/* Reactivation demo */
.react-demo { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.stage {
  background: var(--white); border: 1px dashed var(--line); border-radius: 16px; padding: 16px; min-height: 150px;
}
.stage.active { border-style: solid; border-color: var(--pink); background: var(--pink-soft); }

/* Use cases */
.use-extra { display: none; margin-top: 8px; font-size: 0.86rem; color: var(--muted); }
.card.open .use-extra { display: block; }

/* Demo journey */
.journey { display: grid; gap: 10px; }
.j-step {
  display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start;
  opacity: 0.45; transform: translateY(8px); transition: 0.4s;
}
.j-step.on { opacity: 1; transform: none; }
.j-num {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--pink-soft); color: var(--pink-dark);
  display: grid; place-items: center; font-weight: 800;
}

/* CTA */
.cta-final {
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 56px 40px;
}
.cta-final h2, .cta-final .eyebrow { color: #fff; }
.cta-final .lead { color: #d8d8d8; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* Footer */
footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px;
}
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a:hover { color: var(--pink); }
.copy { margin-top: 28px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(24px); transition: 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

.modal {
  position: fixed; inset: 0; background: rgba(26,26,26,0.55);
  display: none; align-items: center; justify-content: center; z-index: 80; padding: 20px;
}
.modal.show { display: flex; }
.modal-card {
  background: #fff; border-radius: 20px; max-width: 560px; width: 100%;
  padding: 24px; max-height: 86vh; overflow: auto;
}
.price { color: var(--pink-dark); font-weight: 800; }

.site-header { position: sticky; }
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
}
.nav a { min-height: 44px; display: inline-flex; align-items: center; }
.btn { min-height: 44px; }

@media (max-width: 1100px) {
  .hero-grid { gap: 28px; }
  .hero-visual img.hero-photo { height: 460px; }
}

@media (max-width: 980px) {
  .hero {
    background-image:
      linear-gradient(180deg,
        rgba(255,255,255,0.94) 0%,
        rgba(250,246,241,0.88) 38%,
        rgba(250,246,241,0.35) 100%),
      url("../images/hero-bg.jpg");
    background-position: center top;
  }
  .hero-grid, .ai-wrap, .grid-2, .cta-grid, .foot-grid { grid-template-columns: 1fr; }
  .channels { grid-template-columns: repeat(3, 1fr); }
  .loop-track, .grid-3, .react-demo { grid-template-columns: 1fr 1fr; }
  .hero-visual img.hero-photo { height: min(380px, 58vw); }
  .chip-1 { left: 12px; bottom: 16px; }
  .chip-2 { right: 12px; top: 16px; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    position: absolute; top: var(--header); left: 0; right: 0;
    background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .nav.open a {
    padding: 12px 14px;
    border-radius: 12px;
    min-height: 48px;
  }
  .nav.open a.is-active:not(.btn) {
    background: var(--pink-soft);
    color: var(--pink-dark);
    font-weight: 800;
    box-shadow: inset 3px 0 0 var(--pink);
  }
  .nav.open a.is-active:not(.btn)::after { display: none; }
  .nav.open a.btn.is-active {
    box-shadow: 0 0 0 3px var(--pink-soft);
  }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .brand img.logo-full { height: 64px; max-width: min(280px, 70vw); }
  .nav.open a.btn-wine,
  .nav.open a.btn-primary { color: #fff; }
  .cta-final { padding: 36px 22px; }
}

@media (max-width: 640px) {
  :root { --header: 90px; }
  .container { width: min(var(--max), calc(100% - 24px)); }
  .channels, .loop-track, .grid-3, .react-demo, .form .row, .slots { grid-template-columns: 1fr; }
  section { padding: 56px 0; scroll-margin-top: var(--header); }
  .hero { padding: 28px 0 48px; }
  .hero-copy p { font-size: 1rem; margin: 12px 0 20px; }
  .hero-visual img.hero-photo { height: min(280px, 70vw); border-radius: 20px; }
  .floating-chip { font-size: 0.72rem; padding: 8px 10px; max-width: calc(100% - 24px); }
  .chat { min-height: 400px; }
  .phone { max-width: 100%; border-radius: 24px; }
  .book-steps span { font-size: 0.72rem; }
  h1, h2 { overflow-wrap: anywhere; }
}

@media (max-width: 400px) {
  .hero-actions .btn { width: 100%; }
  .channels { grid-template-columns: 1fr 1fr; }
  .brand img.logo-full { height: 53px; max-width: 72vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
