/* Homepage: the App Store screenshots' plum and cream look, with native app captures. */

body.home {
  overflow-x: hidden;
  background: var(--surface-soft);
}

.nav-app {
  display: none;
}

.home section[id] {
  scroll-margin-top: 80px;
}

.home h1,
.home h2,
.home h3 {
  margin: 0;
  letter-spacing: -0.01em;
}

/* Hero */

.gm-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 18%, rgba(170, 154, 210, 0.18), rgba(170, 154, 210, 0) 42%),
    linear-gradient(180deg, var(--plum-900) 0%, var(--plum-700) 58%, var(--primary) 100%);
}

.gm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.gm-hero-copy {
  padding-bottom: 72px;
}

.gm-hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  line-height: 1.06;
}

.gm-hero-lead {
  margin: 22px 0 0;
  font-size: 1.3rem;
  font-weight: 650;
  color: rgba(255, 249, 240, 0.94);
}

.gm-hero-text {
  max-width: 34rem;
  margin: 14px 0 0;
  font-size: 1.1rem;
  color: var(--lavender);
}

.gm-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.gm-stores a {
  display: inline-flex;
  border-radius: 10px;
  transition: transform 160ms ease;
}

.gm-stores a:hover {
  transform: translateY(-2px);
}

.gm-stores img {
  height: 50px;
  width: auto;
}

.gm-hero-note {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: rgba(214, 207, 238, 0.74);
}

.gm-hero-visual {
  display: flex;
  justify-content: center;
  align-self: end;
  margin-bottom: -96px;
}

/* Phone and magnified detail, drawn like the App Store screenshots */

.gm-device {
  position: relative;
  width: min(320px, 74vw);
  flex: 0 0 auto;
}

.gm-screen {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 13% / 6.4%;
  background: #fafafc;
  box-shadow: 0 22px 48px rgba(16, 13, 36, 0.36);
}

.gm-screen img {
  width: 100%;
  height: auto;
}

.gm-pop {
  position: absolute;
  left: -7%;
  width: 114%;
  padding: 3.4%;
  border: 1.5px solid rgba(199, 182, 223, 0.55);
  border-radius: 16px;
  background: var(--card-cream);
  box-shadow:
    0 14px 36px rgba(22, 15, 51, 0.3),
    0 3px 8px rgba(22, 15, 51, 0.14);
  transform: translateY(-50%);
}

.gm-pop img {
  width: 100%;
  height: auto;
}

.gm-pop.white {
  background: #fff;
}

.gm-pop.lavender {
  background: #f0edf8;
}

/* Each detail is centred on the same content in the screen below it. */
.gm-pop.at-question { top: 44.7%; }
.gm-pop.at-choice { top: 37.3%; }
.gm-pop.at-introduction { top: 38.1%; }
.gm-pop.at-chat { top: 19.4%; }
.gm-pop.at-private { top: 79.5%; }

/* Sections */

.gm-section {
  padding: 96px 0;
}

.gm-section.cream {
  background: var(--cream);
}

.gm-kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gm-heading {
  max-width: 44rem;
  margin: 0 auto 52px;
  text-align: center;
}

.gm-heading h2,
.gm-feature h2 {
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.gm-heading p:not(.gm-kicker) {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* How it works */

.gm-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gm-step {
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.gm-step-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--cream);
  background: var(--primary);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.gm-step h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
}

.gm-step p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Feature rows */

.gm-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.gm-feature + .gm-feature {
  margin-top: 112px;
}

.gm-feature.flip .gm-feature-visual {
  order: -1;
}

.gm-feature-copy {
  max-width: 30rem;
}

.gm-feature-copy > p:not(.gm-kicker) {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.gm-feature-visual {
  display: flex;
  justify-content: center;
}

.gm-points {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.gm-points li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
}

.gm-points li::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='%235d549c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
    var(--primary-soft);
}

/* Accountability band */

.gm-band {
  padding: 104px 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 18% 12%, rgba(170, 154, 210, 0.16), rgba(170, 154, 210, 0) 40%),
    linear-gradient(180deg, var(--plum-900), var(--plum-700));
}

.gm-band .gm-kicker {
  color: var(--lavender);
}

.gm-band h2 {
  color: var(--cream);
}

.gm-band .gm-feature-copy > p:not(.gm-kicker) {
  color: var(--lavender);
}

.gm-share {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.gm-share-card {
  padding: 20px 22px;
  border: 1px solid rgba(214, 207, 238, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.gm-share-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: 1.02rem;
  font-weight: 700;
}

.gm-share-card svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--lavender);
}

.gm-share-card ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 30px;
  color: var(--lavender);
}

/* Safety */

.gm-safety {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gm-safety-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.gm-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
}

.gm-icon svg {
  width: 22px;
  height: 22px;
}

.gm-safety-card h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.2;
}

.gm-safety-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.gm-safety-card a {
  font-weight: 650;
}

/* FAQ */

.gm-faq {
  max-width: 760px;
  margin: 0 auto;
}

.gm-faq details {
  border-bottom: 1px solid var(--line-strong);
}

.gm-faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.gm-faq summary::-webkit-details-marker {
  display: none;
}

.gm-faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease;
}

.gm-faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.gm-faq summary:focus-visible {
  outline: 3px solid rgba(93, 84, 156, 0.28);
  outline-offset: 4px;
  border-radius: 8px;
}

.gm-faq details p {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

/* Closing call to action */

.gm-cta {
  padding: 96px 0;
  color: var(--cream);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(170, 154, 210, 0.2), rgba(170, 154, 210, 0) 50%),
    linear-gradient(180deg, var(--plum-700), var(--plum-900));
}

.gm-cta h2 {
  color: var(--cream);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
}

.gm-cta p {
  margin: 16px 0 0;
  color: var(--lavender);
  font-size: 1.12rem;
}

.gm-cta .gm-stores {
  justify-content: center;
}

.home .site-footer {
  border-top: 1px solid rgba(214, 207, 238, 0.12);
}

/* Responsive */

@media (max-width: 980px) {
  .gm-hero-grid,
  .gm-feature {
    grid-template-columns: 1fr;
  }

  .gm-hero {
    padding-top: 56px;
    text-align: center;
  }

  .gm-hero-copy {
    padding-bottom: 8px;
  }

  .gm-hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .gm-stores {
    justify-content: center;
  }

  .gm-hero-visual {
    margin-bottom: -120px;
  }

  .gm-feature {
    gap: 40px;
  }

  .gm-feature.flip .gm-feature-visual {
    order: 0;
  }

  .gm-feature-copy {
    max-width: 36rem;
    margin: 0 auto;
  }

  .gm-steps,
  .gm-safety {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-app {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 650;
  }

  .gm-section,
  .gm-band,
  .gm-cta {
    padding: 72px 0;
  }

  .gm-heading {
    margin-bottom: 36px;
  }

  .gm-feature + .gm-feature {
    margin-top: 80px;
  }

  .gm-steps,
  .gm-safety {
    grid-template-columns: 1fr;
  }

  .gm-device {
    width: min(290px, 72vw);
  }

  .gm-stores img {
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gm-stores a,
  .gm-faq summary::after {
    transition: none;
  }
}
