:root {
  color-scheme: light;
  --cream: #fff7ed;
  --paper: #fffdf8;
  --paper-strong: #fff9f1;
  --pink: #f0a6c6;
  --pink-dark: #b65f83;
  --mint: #bfe8d4;
  --mint-dark: #477664;
  --butter: #ffe6a5;
  --lavender: #d8c8ff;
  --peach: #ffc9a8;
  --cocoa: #3f3038;
  --fig: #705d67;
  --line: #eadbcc;
  --shadow: 0 20px 60px rgba(63, 48, 56, 0.13);
  --small-shadow: 0 8px 24px rgba(63, 48, 56, 0.1);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 230, 165, 0.56), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(216, 200, 255, 0.46), transparent 30rem),
    linear-gradient(180deg, #fffaf2 0%, var(--cream) 48%, #fff2f6 100%);
  color: var(--cocoa);
  font-family: "Baloo 2", "Nunito", "Aptos Rounded", sans-serif;
  min-width: 320px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(63, 48, 56, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 48, 56, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
  z-index: -2;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

#pastel-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.68;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 980px);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(234, 219, 204, 0.86);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--small-shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.06rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--fig);
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(191, 232, 212, 0.52);
  color: var(--cocoa);
  outline: none;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: center;
  overflow: clip;
  padding: 128px 24px 82px;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 247, 237, 0.92) 32%, rgba(255, 247, 237, 0.34) 70%),
    linear-gradient(0deg, rgba(255, 247, 237, 0.92) 0%, transparent 40%);
}

.hero-copy {
  position: relative;
  width: min(620px, 100%);
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
  padding-top: 4vh;
}

.product-line {
  margin: 0 0 14px;
  color: var(--pink-dark);
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(5rem, 17vw, 12rem);
  line-height: 0.78;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  max-width: 890px;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.05;
}

p {
  color: var(--fig);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.hero-copy > p:not(.product-line) {
  max-width: 560px;
  color: #5d4c55;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button.primary {
  background: var(--cocoa);
  color: #fffaf5;
  box-shadow: var(--small-shadow);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #5b404e;
  outline: none;
}

.button.secondary {
  background: rgba(255, 253, 248, 0.82);
  border-color: var(--line);
  color: var(--cocoa);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--mint);
  outline: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span,
.apk-note {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  padding: 8px 12px;
  color: var(--fig);
  font-size: 0.92rem;
  font-weight: 850;
}

.peek-link {
  position: absolute;
  right: 24px;
  bottom: 28px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(234, 219, 204, 0.9);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.78);
  color: var(--cocoa);
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(12px);
  animation: bob 3.8s ease-in-out infinite;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 126px) 0;
}

.section-heading {
  margin-bottom: 34px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.feature-orbit {
  position: relative;
  min-height: 760px;
  perspective: 1200px;
}

.orbit-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(380px, 56vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(8deg) rotateY(-12deg);
  border-radius: 36px;
  background: linear-gradient(145deg, #fffdf8, #fff0dc);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.orbit-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.orbit-card,
.privacy-card,
.timeline-item,
details,
.apk-card {
  border: 1px solid rgba(234, 219, 204, 0.82);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--small-shadow);
}

.orbit-card {
  position: absolute;
  width: min(260px, 42vw);
  padding: 20px;
  transform-style: preserve-3d;
}

.orbit-card span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--pink-dark);
  font-weight: 950;
}

.orbit-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.orbit-card.meal {
  top: 6%;
  left: 4%;
  background: #fff8df;
}

.orbit-card.symptom {
  top: 14%;
  right: 0;
  background: #f9eeff;
}

.orbit-card.mood {
  bottom: 16%;
  left: 0;
  background: #eefaf3;
}

.orbit-card.trend {
  right: 7%;
  bottom: 6%;
  background: #fff0f5;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
}

.copy-column {
  max-width: 620px;
}

.soft-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.soft-list li {
  position: relative;
  padding-left: 28px;
  color: var(--fig);
  font-weight: 750;
  line-height: 1.55;
}

.soft-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--mint);
  box-shadow: 10px 8px 0 var(--butter);
}

.comfort-stage {
  min-height: 560px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.phone-shell {
  position: relative;
  border: 10px solid #3f3038;
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.comfort-phone {
  width: min(360px, 82vw);
  height: 600px;
  transform: rotateY(-12deg) rotateX(6deg);
  background:
    linear-gradient(#fff8fb, #fffdf8),
    radial-gradient(circle at 30% 25%, rgba(240, 166, 198, 0.3), transparent 12rem);
}

.phone-top {
  width: 96px;
  height: 16px;
  margin: 16px auto 0;
  border-radius: 0 0 12px 12px;
  background: #3f3038;
}

.comfort-popup {
  margin: 52px 22px 28px;
  padding: 22px;
  border-radius: 22px;
  background: #f2fbf5;
  box-shadow: 0 18px 44px rgba(71, 118, 100, 0.18);
  animation: breathe 4s ease-in-out infinite;
}

.comfort-popup img {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  margin-bottom: 14px;
}

.comfort-popup p {
  color: var(--cocoa);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.45;
}

.comfort-popup button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--pink);
  color: var(--cocoa);
  font: inherit;
  font-weight: 900;
}

.symptom-meter {
  display: grid;
  gap: 14px;
  margin: 0 22px;
}

.symptom-meter span {
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--lavender), #fff5f8);
  animation: pulseLine 3.2s ease-in-out infinite;
}

.symptom-meter span:nth-child(2) {
  width: 74%;
  animation-delay: 0.2s;
}

.symptom-meter span:nth-child(3) {
  width: 86%;
  animation-delay: 0.4s;
}

.symptom-meter span:nth-child(4) {
  width: 58%;
  animation-delay: 0.6s;
}

.timeline-section {
  padding: clamp(74px, 11vw, 144px) 0;
  background:
    linear-gradient(180deg, rgba(191, 232, 212, 0.28), rgba(255, 230, 165, 0.25)),
    var(--paper);
}

.timeline-section .section-heading,
.timeline-ribbon {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.timeline-ribbon {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 48px;
}

.timeline-ribbon::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 8%;
  width: 84%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--butter), var(--mint), var(--lavender));
  transform-origin: left;
  animation: timelineGrow 6s ease-in-out infinite;
}

.timeline-item {
  padding: 20px;
}

.timeline-item time {
  display: block;
  margin-bottom: 22px;
  color: var(--pink-dark);
  font-weight: 950;
}

.gallery-section {
  overflow: clip;
}

.screen-stage {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  perspective: 1600px;
}

.gallery-phone {
  position: absolute;
  width: min(360px, 72vw);
  max-height: 700px;
  opacity: 0;
  transform: translateX(0) translateZ(-260px) rotateY(0deg) scale(0.82);
  pointer-events: none;
  transition: opacity 500ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-phone.active {
  opacity: 1;
  transform: translateX(0) translateZ(110px) rotateY(0deg) scale(1);
  pointer-events: auto;
  z-index: 3;
}

.gallery-phone.prev-shot {
  opacity: 0.48;
  transform: translateX(-280px) translateZ(-120px) rotateY(24deg) scale(0.86);
  z-index: 2;
}

.gallery-phone.next-shot {
  opacity: 0.48;
  transform: translateX(280px) translateZ(-120px) rotateY(-24deg) scale(0.86);
  z-index: 2;
}

.gallery-phone img {
  width: 100%;
  height: min(660px, 76vh);
  object-fit: cover;
  object-position: top;
}

.gallery-phone figcaption {
  padding: 16px;
  color: var(--fig);
  font-weight: 800;
  line-height: 1.45;
  background: var(--paper);
}

.stage-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  min-width: 74px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--cocoa);
  font: inherit;
  font-weight: 900;
  box-shadow: var(--small-shadow);
  cursor: pointer;
}

.stage-control.prev {
  left: 4px;
}

.stage-control.next {
  right: 4px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
}

.privacy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.privacy-card {
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.privacy-card:nth-child(1) {
  background: #fff0f5;
}

.privacy-card:nth-child(2) {
  background: #effaf4;
  transform: translateY(34px);
}

.privacy-card:nth-child(3) {
  background: #fff8df;
  transform: translateY(68px);
}

.download-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto clamp(72px, 8vw, 130px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(255, 240, 245, 0.92)),
    url("assets/gravy-promo-sheet.png") center / cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.download-copy {
  position: relative;
  max-width: 680px;
}

.download-copy > img {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.apk-card {
  padding: 24px;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(12px);
}

.android-mark {
  position: relative;
  width: 160px;
  height: 146px;
  margin: 0 auto 24px;
  border-radius: 30px 30px 22px 22px;
  background: var(--mint);
  box-shadow: inset 0 -10px 0 rgba(71, 118, 100, 0.12);
}

.android-mark::before,
.android-mark::after {
  content: "";
  position: absolute;
  top: 48px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cocoa);
}

.android-mark::before {
  left: 44px;
}

.android-mark::after {
  right: 44px;
}

.android-mark span {
  position: absolute;
  top: -18px;
  width: 4px;
  height: 30px;
  border-radius: 999px;
  background: var(--mint-dark);
}

.android-mark span:first-child {
  left: 54px;
  transform: rotate(-25deg);
}

.android-mark span:last-child {
  right: 54px;
  transform: rotate(25deg);
}

dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(112, 93, 103, 0.32);
}

dt {
  color: var(--fig);
  font-weight: 850;
}

dd {
  margin: 0;
  color: var(--cocoa);
  font-weight: 950;
  text-align: right;
}

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 950;
}

details p {
  margin: 14px 0 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--fig);
  font-weight: 850;
}

.site-footer span:first-child {
  color: var(--cocoa);
  font-weight: 950;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes pulseLine {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes timelineGrow {
  0%,
  100% {
    transform: scaleX(0.18);
  }
  50% {
    transform: scaleX(1);
  }
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 92svh;
    padding-top: 100px;
  }

  .hero-art {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 247, 237, 0.82) 54%, rgba(255, 247, 237, 0.26) 100%),
      linear-gradient(90deg, rgba(255, 247, 237, 0.8), transparent);
  }

  .intro-grid,
  .split,
  .privacy-grid,
  .download-section {
    grid-template-columns: 1fr;
  }

  .feature-orbit {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .orbit-core,
  .orbit-card {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .orbit-core {
    aspect-ratio: 1.1;
  }

  .comfort-phone {
    transform: none;
  }

  .timeline-ribbon,
  .privacy-cards {
    grid-template-columns: 1fr;
  }

  .timeline-ribbon::before {
    left: 18px;
    top: 0;
    width: 5px;
    height: 100%;
    transform-origin: top;
  }

  .timeline-item {
    margin-left: 28px;
  }

  .privacy-card,
  .privacy-card:nth-child(2),
  .privacy-card:nth-child(3) {
    min-height: auto;
    transform: none;
  }

  .screen-stage {
    min-height: 680px;
  }

  .gallery-phone.prev-shot,
  .gallery-phone.next-shot {
    opacity: 0;
    transform: translateZ(-220px) scale(0.82);
  }

  .stage-control {
    top: auto;
    bottom: 0;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(4rem, 24vw, 7rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .button {
    width: 100%;
  }

  .trust-row span,
  .apk-note {
    width: 100%;
    text-align: center;
  }

  .peek-link {
    display: none;
  }

  .download-section {
    width: min(100% - 20px, var(--max));
    padding: 24px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  #pastel-field {
    display: none;
  }
}
