:root {
  --bg: #fbf5ea;
  --bg-soft: #fffaf2;
  --ink: #3f3a2f;
  --muted: #746f62;
  --muted-2: #9f9787;
  --sage: #747b63;
  --sage-dark: #5e654f;
  --sage-soft: #eef0e8;
  --warm-line: #e8cfab;
  --gold: #c89047;
  --card: rgba(255, 252, 246, 0.76);
  --shadow: 0 24px 90px rgba(92, 71, 43, .18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 92% 8%, rgba(222, 188, 126, .34), transparent 30%),
    radial-gradient(circle at 0% 35%, rgba(150, 157, 122, .18), transparent 30%),
    linear-gradient(180deg, #fffaf2 0%, #fbf5ea 45%, #fff9f1 100%);
}

a { color: inherit; text-decoration: none; }

.site-shell {
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  border-left: 1px solid rgba(200, 164, 110, .5);
  border-right: 1px solid rgba(200, 164, 110, .5);
  background:
    linear-gradient(90deg, rgba(255,255,255,.72), transparent 10%, transparent 90%, rgba(255,255,255,.65)),
    var(--bg);
}

.section-grid {
  --phone-width: min(380px, 32vw);
  --phone-copy-height: min(823px, 69.3vw);
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 40px;
  padding: 80px 128px;
  border-bottom: 1px solid rgba(220, 190, 148, .54);
  position: relative;
}

.hero {
  min-height: 760px;
  padding-top: 96px;
  overflow: hidden;
  isolation: isolate;
  background-image: url("./assets/eat-1.webp");
  background-repeat: no-repeat;
  background-size: min(560px, 56vw) auto;
  background-position: left clamp(200px, -5vw, -36px) bottom clamp(80px, -5vw, 6px);
}

.hero .copy {
  padding-left: clamp(38px, 4.4vw, 74px);
  align-self: center;
}

.hero p {
  margin-top: 22px;
}

.hero .store-row {
  margin-top: 30px;
}

.section-grid.alt {
  grid-template-columns: 1fr 1fr;
}

.section-grid > .copy {
  min-height: var(--phone-copy-height);
  display: flex;
  flex-direction: column;
  /*justify-content: center;*/
  padding-top: 100px;
  align-items: flex-start;
}

#log {
  overflow: hidden;
  isolation: isolate;
  background-image: url("./assets/tail-1-bg.webp");
  background-repeat: no-repeat;
  background-size: min(400px, 45vw) auto;
  background-position: left clamp(0px, 3vw, 42px) bottom 0;
}

#log .visual {
  z-index: 2;
}

#timeline {
  overflow: hidden;
  isolation: isolate;
  background-image: url("./assets/paw-0.webp");
  background-repeat: no-repeat;
  background-size: min(300px, 32vw);
  background-position: left clamp(44px, 8vw, 118px) bottom clamp(0px, 5vw, 0px);
}

#timeline .visual {
  z-index: 2;
}

#plan {
  overflow: hidden;
  isolation: isolate;
  background-image: url("./assets/sleep-1.webp");
  background-repeat: no-repeat;
  background-size: min(520px, 42vw) auto;
  background-position: left clamp(12px, 5vw, 78px) bottom clamp(80px, -5vw, 6px);
}

#plan .visual {
  z-index: 2;
}

#vetpack {
  --phone-copy-height: min(650px, 52vw);
  overflow: hidden;
  isolation: isolate;
  background-image: url("./assets/vet-1.webp");
  background-repeat: no-repeat;
  background-size: min(400px, 42vw) auto;
  background-position: left clamp(12px, 5vw, 178px) bottom clamp(80px, -5vw, 6px);
}

#vetpack .visual {
  z-index: 2;
}

.copy {
  position: relative;
  z-index: 4;
}

h1, h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: .98;
}

h1 {
  font-size: clamp(56px, 6.6vw, 92px);
}

h2 {
  font-size: clamp(45px, 5vw, 72px);
}

p {
  max-width: 560px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.store-row {
  display: flex;
  gap: 18px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.store-badge {
  height: 62px;
  min-width: 196px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: #151515;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.visual {
  min-height: 560px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}

.visual::before {
  content: "";
  position: absolute;
  width: min(52vw, 610px);
  height: min(52vw, 610px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 186, 120, .3), rgba(255, 246, 230, .1) 48%, transparent 70%);
  filter: blur(8px);
  z-index: -2;
}

.phone {
  width: var(--phone-width);
  aspect-ratio: 946 / 2048;
  position: relative;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(145deg, #2e2f2e, #090909 40%, #6c6256);
  box-shadow:
    0 36px 90px rgba(50, 38, 25, .32),
    0 0 0 2px rgba(255,255,255,.45) inset,
    0 0 0 1px rgba(30,30,30,.7);
  overflow: hidden;
  z-index: 3;
}

.phone::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 32px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.38);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 31px;
  object-fit: cover;
}

.phone-small {
  width: min(300px, 24vw);
}

.stacked {
  min-height: 640px;
}

.stacked .behind {
  position: absolute;
  left: 18%;
  transform: rotate(-7deg) scale(.95);
  opacity: .95;
}

.stacked .front {
  position: absolute;
  right: 13%;
  transform: rotate(6deg);
}

.chips {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.chips span,
.icon-list li {
  border: 1px solid rgba(116, 123, 99, .18);
  background: rgba(255,255,252,.72);
  color: var(--sage-dark);
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 17px;
  font-weight: 750;
  box-shadow: 0 10px 30px rgba(87, 71, 48, .08);
}

.icon-list {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 42px 0 0;
  flex-wrap: wrap;
}

.text-link {
  display: inline-flex;
  margin-top: 34px;
  color: var(--sage-dark);
  font-weight: 850;
  font-size: 19px;
}

.small-cta,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 42px;
  height: 52px;
  min-width: 132px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--sage-dark);
  color: #fffaf0;
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 14px 36px rgba(94, 101, 79, .24);
}

.final-cta {
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 96px 128px 120px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 52%, rgba(219, 144, 54, .2), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,248,238,.9));
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(56vw, 760px);
  background: url("./assets/paw-1.webp") center right / cover no-repeat;
  opacity: .86;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

.final-cta .copy {
  max-width: 620px;
}

.footer {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 84px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid rgba(216, 185, 142, .5);
}

@media (max-width: 980px) {
  .site-shell {
    border: 0;
  }

  .section-grid,
  .section-grid.alt {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 70px 28px;
    gap: 24px;
  }

  .section-grid > .copy {
    min-height: auto;
    display: block;
  }

  .hero {
    padding-top: 64px;
    background-size: min(600px, 122vw) auto;
    background-position: right -250px bottom 18px;
  }

  .hero .copy {
    padding-left: 0;
  }

  .hero p {
    margin-top: 20px;
  }

  .hero .store-row {
    margin-top: 28px;
  }

  h1 {
    font-size: clamp(56px, 15vw, 72px);
  }

  h2 {
    font-size: clamp(44px, 12vw, 62px);
  }

  p {
    font-size: 20px;
    margin-top: 24px;
  }

  .store-row {
    margin-top: 32px;
  }

  .store-badge {
    min-width: 178px;
    height: 54px;
    font-size: 17px;
  }

  .visual {
    min-height: 520px;
  }

  .phone {
    width: min(320px, 75vw);
    border-radius: 38px;
  }

  .phone-small {
    width: min(250px, 58vw);
  }

  .section-grid:nth-of-type(even) .visual {
    order: -1;
  }

  #log {
    background-size: min(620px, 132vw) auto;
    background-position: left -170px bottom 0;
  }

  #timeline {
    background-size: min(520px, 112vw) 280px;
    background-position: left -132px bottom -46px;
  }

  #plan {
    background-size: min(560px, 120vw) auto;
    background-position: left -138px bottom 0;
  }

  #vetpack {
    background-size: min(560px, 120vw) auto;
    background-position: left -150px bottom 0;
  }

  .stacked {
    min-height: 570px;
  }

  .stacked .behind {
    left: 5%;
  }

  .stacked .front {
    right: 2%;
  }

  .final-cta {
    min-height: 600px;
    padding: 76px 28px 360px;
  }

  .final-cta::after {
    inset: auto -90px 0 auto;
    width: min(760px, 130vw);
    height: 360px;
    opacity: .64;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 28%);
  }

  .footer {
    height: auto;
    padding: 30px 28px;
    flex-direction: column;
    align-items: flex-start;
  }
}
