/* Production fallback: keeps newer conversion sections styled if an older CSS file is cached. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.site-header > *,
.hero-content,
.page-hero-content,
.section-heading,
.split > *,
.persona-layout > *,
.moments-layout > *,
.operating-layout > *,
.contact-grid > *,
.footer-inner > *,
.demo-card > *,
.app-experience-layout > * {
  min-width: 0;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p,
dt,
dd,
a,
button,
input,
select,
textarea,
figcaption {
  overflow-wrap: break-word;
}

.partner-badge,
.button,
.store-badge {
  overflow-wrap: anywhere;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-store {
  margin-top: 16px;
}

.store-badge {
  display: grid;
  gap: 2px;
  align-content: center;
  min-width: 154px;
  min-height: 58px;
  padding: 9px 14px 10px;
  color: var(--cream, #fff8ee);
  background:
    linear-gradient(135deg, rgba(7, 28, 24, 0.98), rgba(9, 43, 38, 0.95));
  border: 1px solid rgba(255, 248, 238, 0.24);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(4, 18, 15, 0.18);
  font-weight: 800;
}

.store-badge span {
  color: rgba(255, 248, 238, 0.72);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1;
}

.store-badge strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.08;
}

.play-store {
  background:
    linear-gradient(135deg, rgba(12, 115, 103, 0.96), rgba(9, 43, 38, 0.98));
}

.light-store {
  color: var(--deep, #092b26);
  background: var(--cream, #fff8ee);
  border-color: rgba(255, 248, 238, 0.34);
}

.light-store span {
  color: rgba(9, 43, 38, 0.62);
}

#personas,
#try-app,
#genetics {
  scroll-margin-top: 112px;
}

.journey-links,
.micro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.journey-links {
  margin-top: 16px;
}

.micro-links {
  margin-top: 18px;
}

.journey-links a,
.micro-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(21, 33, 29, 0.12);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

.mobile-demo-section {
  position: relative;
  background:
    linear-gradient(180deg, var(--cream, #fff8ee), #f0eadc 46%, var(--deep, #092b26) 46%, var(--deep, #092b26));
}

.demo-showcase {
  display: grid;
  gap: 28px;
}

.reveal-card {
  opacity: 1;
}

.demo-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.48fr) minmax(0, 0.72fr);
  gap: 22px;
  align-items: center;
  min-height: 520px;
  padding: 22px;
  background: rgba(255, 248, 238, 0.95);
  border: 1px solid rgba(21, 33, 29, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft, 0 16px 40px rgba(17, 29, 25, 0.12));
}

.investor-demo {
  color: var(--cream, #fff8ee);
  background:
    linear-gradient(135deg, rgba(9, 43, 38, 0.96), rgba(7, 28, 24, 0.98));
  border-color: rgba(255, 248, 238, 0.16);
}

.investor-demo .demo-copy p {
  color: rgba(255, 248, 238, 0.74);
}

.demo-visual {
  position: relative;
  height: 470px;
  overflow: hidden;
  background: var(--deep, #092b26);
  border-radius: 8px;
}

.demo-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  color: var(--cream, #fff8ee);
  background: rgba(7, 28, 24, 0.72);
  border: 1px solid rgba(255, 248, 238, 0.22);
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 820;
}

.phone-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 330px);
  min-height: 590px;
  padding: 16px;
  color: var(--cream, #fff8ee);
  background:
    linear-gradient(160deg, rgba(10, 43, 38, 0.98), rgba(7, 28, 24, 0.98)),
    radial-gradient(circle at top, rgba(239, 183, 86, 0.14), transparent 52%);
  border: 1px solid rgba(255, 248, 238, 0.2);
  border-radius: 34px;
  box-shadow: var(--shadow-strong, 0 26px 70px rgba(7, 28, 24, 0.28));
  overflow: hidden;
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 3;
  width: 86px;
  height: 22px;
  background: #04120f;
  border-radius: 0 0 16px 16px;
  transform: translateX(-50%);
}

.demo-phone {
  width: min(100%, 292px);
  min-height: 535px;
  justify-self: center;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding-top: 18px;
  border-bottom: 1px solid rgba(255, 248, 238, 0.12);
}

.phone-top strong,
.phone-top small {
  display: block;
}

.phone-top small {
  color: rgba(255, 248, 238, 0.62);
  font-size: 0.78rem;
}

.phone-avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--deep, #092b26);
  background: var(--marigold, #efb756);
  border-radius: 50%;
  font-weight: 920;
}

.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  min-height: 360px;
  padding: 18px 0;
}

.bubble {
  max-width: 84%;
  margin: 0;
  padding: 12px 13px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.38;
  opacity: 1;
}

.bubble.ai {
  align-self: flex-start;
  color: var(--ink, #15211d);
  background: rgba(255, 248, 238, 0.94);
  border-bottom-left-radius: 6px;
}

.bubble.user {
  align-self: flex-end;
  color: var(--cream, #fff8ee);
  background: var(--jade, #0c7367);
  border-bottom-right-radius: 6px;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  margin: 0;
  padding: 12px 13px;
  background: rgba(255, 248, 238, 0.14);
  border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: 15px;
}

.typing-dots span {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--marigold, #efb756);
  border-radius: 50%;
}

.phone-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  color: rgba(255, 248, 238, 0.62);
  background: rgba(255, 248, 238, 0.09);
  border: 1px solid rgba(255, 248, 238, 0.12);
  border-radius: 18px;
  font-size: 0.84rem;
}

.phone-input strong {
  color: var(--marigold, #efb756);
  font-size: 0.82rem;
}

.demo-copy {
  max-width: 360px;
}

.demo-copy h3 {
  font-size: 2rem;
  line-height: 1.05;
}

.demo-copy p {
  color: var(--ink-soft, #52615a);
}

.app-experience-section {
  position: relative;
  overflow: hidden;
  color: var(--cream, #fff8ee);
  background:
    radial-gradient(circle at 72% 16%, rgba(239, 183, 86, 0.22), transparent 30%),
    radial-gradient(circle at 18% 84%, rgba(12, 115, 103, 0.35), transparent 34%),
    linear-gradient(145deg, #071c18 0%, var(--deep, #092b26) 48%, #10352f 100%);
}

.app-experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: 52px;
  align-items: center;
}

.experience-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.1), rgba(255, 248, 238, 0.03)),
    radial-gradient(circle at 50% 42%, rgba(239, 183, 86, 0.18), transparent 42%);
  box-shadow: var(--shadow-strong, 0 26px 70px rgba(7, 28, 24, 0.28));
  perspective: 1200px;
}

.stage-orbit {
  position: absolute;
  inset: 20px;
  transform-style: preserve-3d;
}

.stage-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 284px;
  min-height: 540px;
  transform: translate(-50%, -50%) rotateX(8deg) rotateY(-16deg) translateZ(84px);
}

.stage-card,
.stage-photo {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(4, 18, 15, 0.28);
}

.stage-card {
  display: grid;
  gap: 6px;
  width: 198px;
  padding: 16px;
  color: var(--cream, #fff8ee);
  background: rgba(255, 248, 238, 0.1);
  border: 1px solid rgba(255, 248, 238, 0.18);
  backdrop-filter: blur(16px);
}

.stage-card span,
.stage-card small {
  color: rgba(255, 248, 238, 0.66);
  font-size: 0.76rem;
  font-weight: 760;
}

.stage-card strong {
  font-size: 1rem;
  line-height: 1.12;
}

.stage-user {
  top: 88px;
  left: 8px;
  transform: rotateY(22deg) translateZ(105px);
}

.stage-ai {
  right: 16px;
  bottom: 92px;
  transform: rotateY(-20deg) translateZ(115px);
}

.stage-investor {
  right: 38px;
  top: 58px;
  transform: rotateY(-26deg) translateZ(82px);
}

.stage-photo {
  width: 180px;
  height: 226px;
  object-fit: cover;
  border: 1px solid rgba(255, 248, 238, 0.2);
}

.stage-photo-one {
  top: 158px;
  right: 22px;
  transform: rotateY(-24deg) rotateZ(2deg) translateZ(70px);
}

.stage-photo-two {
  bottom: 30px;
  left: 28px;
  transform: rotateY(18deg) rotateZ(-2deg) translateZ(62px);
}

.stage-pulse {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(239, 183, 86, 0.95), transparent);
  opacity: 0.6;
}

.pulse-one {
  top: 210px;
  left: 126px;
  width: 210px;
  transform: rotate(18deg);
}

.pulse-two {
  right: 124px;
  bottom: 188px;
  width: 200px;
  transform: rotate(-22deg);
}

@media (max-width: 980px) {
  .app-experience-layout,
  .demo-card {
    grid-template-columns: 1fr;
  }

  .demo-card {
    min-height: auto;
  }

  .demo-copy {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .partner-badge {
    max-width: 146px;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .store-badge {
    min-width: 136px;
    min-height: 54px;
    padding: 8px 12px;
  }

  .mobile-demo-section {
    background: var(--cream, #fff8ee);
  }

  .demo-card {
    padding: 16px;
  }

  .demo-visual {
    height: 300px;
  }

  .demo-phone {
    min-height: 500px;
  }

  .phone-shell {
    width: min(100%, 292px);
    min-height: 520px;
  }

  .phone-chat {
    min-height: 310px;
  }

  .experience-stage {
    min-height: 540px;
    margin-right: -8px;
    margin-left: -8px;
  }

  .stage-orbit {
    inset: 8px;
  }

  .stage-phone {
    width: 238px;
    min-height: 470px;
  }

  .stage-card {
    width: 152px;
    padding: 12px;
  }

  .stage-card strong {
    font-size: 0.88rem;
  }

  .stage-card small,
  .stage-investor,
  .stage-pulse {
    display: none;
  }

  .stage-user {
    top: 28px;
    left: 4px;
  }

  .stage-ai {
    right: 6px;
    bottom: 34px;
  }

  .stage-photo {
    width: 112px;
    height: 142px;
  }

  .stage-photo-one {
    top: 140px;
    right: 4px;
  }

  .stage-photo-two {
    bottom: 118px;
    left: 6px;
  }

  #personas,
  #try-app,
  #genetics {
    scroll-margin-top: 16px;
  }
}
