:root {
  --canvas: #d7e0d3;
  --canvas-deep: #2a332c;
  --rose: #c45d6a;
  --rose-soft: #e08b96;
  --wine: #681e2d;
  --olive: #756736;
  --ink: #2a332c;
  --muted: #5c675e;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(42, 51, 44, 0.18);
  --display: Nunito, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--display);
  overflow-x: hidden;
}

main {
  max-width: 100vw;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(215, 224, 211, 0.92);
  border-bottom: 1px solid rgba(42, 51, 44, 0.08);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 36px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.header-cta,
.text-link {
  color: var(--wine);
  font-weight: 800;
}

.header-cta {
  padding: 10px 16px;
  border: 1px solid rgba(196, 93, 106, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.hero {
  position: relative;
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px) 72px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(215, 224, 211, 0.96) 0%, rgba(215, 224, 211, 0.78) 46%, rgba(215, 224, 211, 0.28) 100%),
    url("/assets/Splash.jpg") center right / cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(215, 224, 211, 0), var(--canvas));
}

.hero-content {
  max-width: 720px;
  min-width: 0;
}

.eyebrow,
.feature-kicker {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 16ch;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.96;
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  font-weight: 900;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.12;
  font-weight: 800;
}

.hero-copy,
.section-copy p,
.journey-copy p,
.final-cta p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  min-height: 56px;
  padding: 8px 15px 8px 13px;
  color: var(--white);
  background: #1c1514;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(104, 30, 45, 0.22);
}

.app-store-badge svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: currentColor;
}

.app-store-badge span {
  display: grid;
  gap: 1px;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1;
}

.app-store-badge small {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-herd {
  position: relative;
  min-height: 560px;
}

.goat {
  position: absolute;
  width: min(32vw, 210px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28%;
  box-shadow: var(--shadow);
  border: 6px solid rgba(255, 255, 255, 0.72);
}

.g1 { right: 38%; top: 0; transform: rotate(-8deg); }
.g2 { right: 4%; top: 36px; transform: rotate(7deg); z-index: 2; }
.g3 { right: 28%; top: 210px; transform: rotate(3deg); }
.g4 { right: 0; top: 250px; transform: rotate(-5deg); width: min(24vw, 150px); }
.g5 { right: 46%; top: 320px; transform: rotate(9deg); width: min(22vw, 132px); }

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: -40px auto 0;
  overflow: hidden;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(42, 51, 44, 0.1);
}

.trust-strip div {
  min-height: 132px;
  padding: 22px 26px 28px;
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 8px;
  color: var(--olive);
  font-size: 1.12rem;
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin-top: 86px;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 6vw, 86px);
  color: var(--white);
  background: var(--wine);
}

.search-band .eyebrow {
  color: var(--rose-soft);
}

.search-band p {
  color: rgba(255, 255, 255, 0.78);
}

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

.herd-grid figure {
  margin: 0;
}

.herd-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28%;
  border: 4px solid rgba(255, 255, 255, 0.35);
}

.herd-grid figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: min(1180px, calc(100% - 40px));
  margin: 82px auto;
}

.feature-grid article {
  min-height: 276px;
  padding: 30px;
  background: var(--white);
  border: 1px solid rgba(42, 51, 44, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(42, 51, 44, 0.08);
}

.feature-grid p,
.journey-copy li {
  color: var(--muted);
  line-height: 1.56;
}

.journey {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  min-height: 560px;
  background: rgba(255, 255, 255, 0.42);
}

.journey-herd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 40px;
  align-content: center;
}

.journey-herd img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28%;
  box-shadow: var(--shadow);
}

.journey-herd img:last-child {
  grid-column: 1 / -1;
  width: 58%;
  justify-self: center;
}

.journey-copy {
  align-self: center;
  padding: clamp(46px, 7vw, 92px);
}

.journey-copy ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.journey-copy li {
  padding-left: 24px;
  border-left: 4px solid var(--rose);
}

.proof {
  padding: clamp(54px, 8vw, 100px) clamp(24px, 8vw, 120px);
  color: var(--white);
  background: var(--olive);
}

.proof blockquote {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.12;
  text-align: center;
  font-weight: 800;
}

.final-cta {
  padding: clamp(66px, 8vw, 112px) 24px;
  text-align: center;
}

.final-cta p {
  max-width: 680px;
  margin: 0 auto 28px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid rgba(42, 51, 44, 0.1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-weight: 800;
}

body.legal-page {
  background:
    radial-gradient(circle at top left, rgba(196, 93, 106, 0.12), transparent 40%),
    radial-gradient(circle at top right, rgba(117, 103, 54, 0.1), transparent 36%),
    var(--canvas);
}

.legal-main {
  padding: 40px clamp(20px, 4vw, 56px) 64px;
}

.legal-article {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 51, 44, 0.08);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 18px 50px rgba(42, 51, 44, 0.06);
}

.legal-article h1 {
  margin: 0 0 12px;
  max-width: none;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.legal-article h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-article p,
.legal-article li {
  color: var(--ink);
  line-height: 1.65;
}

.legal-article p {
  margin: 0 0 1rem;
}

.legal-article ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-article a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-meta {
  margin-bottom: 1.5rem !important;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(215, 224, 211, 0.7);
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-note {
  margin-top: 2rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(42, 51, 44, 0.1);
  color: var(--muted) !important;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(215, 224, 211, 0.94) 0%, rgba(215, 224, 211, 0.78) 60%, rgba(215, 224, 211, 0.5) 100%),
      url("/assets/Splash.jpg") center / cover;
  }

  .hero-herd {
    min-height: 420px;
  }

  .trust-strip,
  .feature-grid,
  .search-band,
  .journey {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: 0;
  }

  .herd-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 38px 18px 46px;
  }

  h1 {
    font-size: clamp(2.3rem, 11vw, 3.1rem);
  }

  .hero-herd {
    min-height: 340px;
  }

  .goat {
    width: min(42vw, 150px);
    border-width: 4px;
  }

  .trust-strip,
  .feature-grid {
    width: calc(100% - 28px);
  }

  .feature-grid article {
    min-height: auto;
  }

  .herd-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer,
  .footer-links,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .journey-herd {
    padding: 24px;
  }
}
