/* Home page layout (hero + sections). Shared pages keep using style.css. */
body.home {
  background: #ffffff;
  color: var(--ink);
}

.home a { color: var(--purple); }

/* ---------- Hero ---------- */
.hero-wrap {
  background: #7554DE;
  color: #fff;
  overflow: hidden;
}

.hero-wrap .nav { border-bottom: 0; }

.hero2 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero2 h1 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 20px;
  color: #fff;
}

.hero2 p.lead {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 0 32px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--purple) !important;
  font-weight: 600; padding: 14px 26px; min-height: 48px; border-radius: 999px; text-decoration: none;
}

.btn-outline-light {
  display: inline-flex; align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.7); color: #fff !important;
  font-weight: 600; padding: 12px 24px; min-height: 48px; border-radius: 999px; text-decoration: none;
}

.discover {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 44px;
  color: rgba(255, 255, 255, 0.85) !important; text-decoration: none; font-size: 15px;
}

.discover .circle {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--purple);
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
}

.hero-visual { position: relative; display: flex; justify-content: center; }

.mock {
  width: 250px; background: #1c1a24; border-radius: 40px; padding: 11px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.mock img { width: 100%; display: block; border-radius: 30px; }

.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 16px;
  padding: 12px 16px; font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.float-card small { display: block; font-weight: 500; color: var(--secondary); }
.float-card.a { left: -10px; top: 70px; }
.float-card.b { right: -8px; bottom: 90px; animation-delay: -2.5s; }


/* ---------- Sections ---------- */
.sec { padding: 72px 20px; }
.sec.tint { background: #f6f4ff; }
.sec .wrap { max-width: 1100px; margin: 0 auto; }

.sec h2.title {
  font-size: 38px; line-height: 1.15; letter-spacing: -0.016em;
  margin: 0 0 14px; color: var(--ink);
}

.sec p.sub { font-size: 19px; line-height: 1.42; color: var(--secondary); max-width: 640px; margin: 0 0 44px; }

.split {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center;
}

.split .mock { margin: 0 auto; width: 240px; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 26px; }

.feat { display: flex; gap: 16px; align-items: flex-start; }

.tile {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(117, 84, 222, 0.12); display: grid; place-items: center; color: var(--purple);
}
.float-card .ico { vertical-align: -3px; margin-right: 4px; color: var(--purple); }

.feat h3 { margin: 2px 0 6px; font-size: 18px; color: var(--ink); }
.feat p { margin: 0; font-size: 17px; line-height: 1.47; color: var(--secondary); }

.plan-tag2 {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--purple); background: rgba(117, 84, 222, 0.14);
  padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }

.step .mock { width: 200px; margin: 0 auto 22px; border-radius: 34px; padding: 9px; }
.step .mock img { border-radius: 26px; }

.step .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: #fff;
  display: inline-grid; place-items: center; font-weight: 800; margin-bottom: 10px;
}

.step h3 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.step p { margin: 0 auto; max-width: 300px; color: var(--secondary); font-size: 17px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.pcard {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 26px;
}

.pcard.best { border: 2px solid var(--purple); }
.pcard h3 { margin: 0; font-size: 21px; color: var(--ink); }
.pcard .amt { font-size: 34px; font-weight: 800; color: var(--purple); margin: 8px 0 16px; }
.pcard .amt span { font-size: 15px; font-weight: 500; color: var(--secondary); }
.pcard ul { padding-left: 18px; margin: 0; color: var(--secondary); font-size: 17px; }
.pcard li { margin-bottom: 8px; }

/* Contact band */
.contact {
  background: #7554DE; color: #fff;
  border-radius: 28px; padding: 52px 30px; text-align: center;
}

.contact h2 { margin: 0 0 10px; font-size: 32px; color: #fff; }
.contact p { margin: 0 auto 26px; max-width: 520px; color: rgba(255, 255, 255, 0.85); }

/* Footer */
.home footer {
  background: #1c1a24; color: rgba(255, 255, 255, 0.7); border-top: 0; margin-top: 0;
}
.home footer a { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; text-align: center; padding-bottom: 70px; }
  .hero2 h1 { font-size: 38px; }
  .hero2 p.lead { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }
  .split { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .steps, .price-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .sec { padding: 52px 20px; }
  .sec h2.title { font-size: 30px; }
}

.hero-wrap .nav { max-width: 1100px; }

body.home { overflow-x: hidden; }
.hero2 > *, .split > *, .feat > div, .step, .pcard { min-width: 0; }

@media (max-width: 900px) {
  .hero2 { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .steps, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-wrap .nav .link { display: none; }
  .hero-wrap .nav { padding: 18px 20px; }
  .btn-light, .btn-outline-light { width: 100%; justify-content: center; }
  .hero2 .btn-row { flex-direction: column; }
}

.step .tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 14px; border-radius: 999px;
  background: rgba(117, 84, 222, 0.12); color: var(--purple);
  font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
}

/* ---------- Try Gut Bud (preset demo) ---------- */
.tryit { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.try-note { font-size: 15px; color: var(--secondary); margin: 0; }

.chat {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  box-shadow: 0 24px 60px rgba(117, 84, 222, 0.18); overflow: hidden;
  display: flex; flex-direction: column; min-width: 0;
}

.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--border); background: #fff; }
.chat-name { display: block; font-weight: 800; font-size: 16px; color: var(--ink); }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--secondary); }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }

.chat-body {
  height: 470px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px;
  background: rgba(117, 84, 222, 0.04);
}

.chat-empty { margin: auto; text-align: center; color: var(--secondary); font-size: 14px; }

.bubble { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 16px; line-height: 1.5; }
.bubble.user { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: #ececf3; color: var(--ink); border-bottom-left-radius: 6px; }

.bubble.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.bubble.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #9a96ad; animation: dot 1s infinite ease-in-out;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-5px); opacity: 1; } }

.chat-cta {
  align-self: stretch; text-align: center; font-size: 13.5px; color: var(--secondary);
  background: #fff; border: 1px dashed rgba(117, 84, 222, 0.45); border-radius: 14px; padding: 12px 14px;
}

.chat-input { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); background: #fff; }
.chat-input input {
  flex: 1; min-width: 0; border: 0; background: #f1f0f6; border-radius: 18px; padding: 11px 15px;
  font: inherit; font-size: 16px; color: var(--ink);
}
.chat-input input:focus { outline: none; }
.chat-input button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--purple); color: #fff;
  font-size: 20px; font-weight: 800; cursor: pointer; flex-shrink: 0;
}
.chat-input button:disabled { background: #cfc6f1; cursor: default; }

@media (max-width: 900px) {
  .tryit { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chat-body { height: 560px; }
}

.chat-input button.pressed { transform: scale(0.88); background: #5c3fc0; }
.chat-input button { transition: transform 0.12s, background 0.12s; }

/* Purple band behind the Gut Bud chat so the white card stands out */
.sec.band { background: #7554DE; }
.sec.band h2.title { color: #fff; }
.sec.band p.sub { color: rgba(255, 255, 255, 0.88); }
.sec.band .try-note { color: rgba(255, 255, 255, 0.75); }
.sec.band .chat {
  border: 0;
  box-shadow: 0 20px 48px rgba(20, 8, 70, 0.3);
}

a.float-card { text-decoration: none; color: var(--ink); cursor: pointer; transition: box-shadow 0.15s; }
a.float-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
a.float-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#try { scroll-margin-top: 20px; }

/* =====================  Motion  ===================== */

/* progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 50;
  background: #fff;
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* scroll reveal (only hides content when JavaScript is running) */
.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(.25,.1,.3,1), transform 0.5s cubic-bezier(.25,.1,.3,1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.from-left { transform: translateX(-24px); }
.js .reveal.from-right { transform: translateX(24px); }
.js .reveal.in { opacity: 1; transform: none; }

/* hero entrance on load */
.hero2 h1, .hero2 p.lead, .hero2 .btn-row, .hero2 .discover {
  animation: rise 0.6s cubic-bezier(.25,.1,.3,1) both;
}
.hero2 p.lead { animation-delay: 0.12s; }
.hero2 .btn-row { animation-delay: 0.24s; }
.hero2 .discover { animation-delay: 0.36s; }
.hero-visual { animation: slideIn 1s cubic-bezier(.25,.1,.3,1) 0.2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes hover { 50% { transform: translateY(-12px); } }

/* feature icons pop in with their card */
.js .feat.reveal .tile { transform: scale(0.85); transition: transform 0.6s cubic-bezier(.25,.1,.3,1); transition-delay: calc(var(--d, 0ms) + 200ms); }
.js .feat.reveal.in .tile { transform: none; }

.tile { transition: transform 0.25s; }

/* phones and cards respond to hover */
.step .mock, .split .mock { transition: transform 0.35s cubic-bezier(.25,.1,.3,1); }
.step:hover .mock { transform: translateY(-6px); }
.pcard { transition: transform 0.3s, box-shadow 0.3s, opacity 0.5s cubic-bezier(.25,.1,.3,1); }
.pcard:hover { transform: translateY(-4px); }
.js .pcard.reveal:not(.in):hover { transform: translateY(20px); }

/* the live chat card gently floats once it has shown up */
.chat { transition: transform 0.3s; }

/* press feedback */
.btn-light, .btn-outline-light, .discover, a.float-card, .chat-input button {
  transition: transform 0.16s cubic-bezier(.25,.1,.3,1), opacity 0.16s, background 0.16s;
}
.btn-light:active, .btn-outline-light:active, a.float-card:active { transform: scale(0.97); opacity: 0.9; }
.btn-light:focus-visible, .btn-outline-light:focus-visible, .discover:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
