/* The home page's content sections (index.html only, after home.css): Three ways in, the
   alert map, Also in SharePaws, For rescues and shelters, Kind by design, Get the app. */

/* Three ways in: three grey tiles, each a screen (or the alert map) over its copy. */
.ways-grid {
  display: grid;
  gap: 16px;
}

.way {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--tile-radius);
  background: var(--tint);
  overflow: hidden;
}

.way-art {
  position: relative;
  display: grid;
  justify-items: center;
  height: 340px;
  padding-top: 40px;
  overflow: hidden;
}

.way-art .phone {
  --pw: 248px;
  rotate: -1.5deg;
}

.way:nth-child(2) .way-art .phone {
  rotate: 1.5deg;
}

/* A soft fade where each screen meets its copy. */
.way-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 56px;
  background: linear-gradient(rgba(247, 247, 247, 0), var(--tint));
  pointer-events: none;
}

.way-art-radar {
  align-items: center;
  padding-top: 0;
}

.way-art-radar::after {
  content: none;
}

.way-copy {
  padding: 8px 28px 32px;
}

.way .num {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.landing .way h3 {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.way p:not(.num) {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
}

.way p:last-child {
  margin-bottom: 0;
}

/* Mid widths: each tile lies on its side, the screen beside the copy. */
@media (min-width: 42rem) and (max-width: 67.49rem) {
  .way {
    grid-template-rows: none;
    grid-template-columns: minmax(15rem, 2fr) 3fr;
    align-items: center;
  }

  .way-art {
    height: 100%;
    min-height: 320px;
  }

  .way-art::after {
    content: none;
  }

  .way-art .phone {
    position: absolute;
    top: 36px;
  }

  .way-copy {
    padding: 40px 40px 40px 8px;
  }
}

@media (min-width: 67.5rem) {
  .ways-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Lost and found: rings for the alert radius, pins inside it and one just outside. */
.radar {
  position: relative;
  width: 248px;
  aspect-ratio: 1;
}

.ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(240, 114, 47, 0.55);
}

.r1 {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(240, 114, 47, 0.16), rgba(240, 114, 47, 0.04) 70%);
}

.r2 {
  width: 66%;
  height: 66%;
  box-shadow: inset 0 0 0 1px rgba(240, 114, 47, 0.35);
}

.r3 {
  width: 33%;
  height: 33%;
  box-shadow: inset 0 0 0 1px rgba(240, 114, 47, 0.35);
}

.pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--tint);
  translate: -50% -50%;
}

.pin-lost {
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-fill);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  z-index: 1;
}

.pin-lost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: ping 2.4s var(--ease) infinite;
}

.pin-a { left: 24%; top: 34%; }
.pin-b { left: 72%; top: 26%; }
.pin-c { left: 66%; top: 74%; }
.pin-d { left: 30%; top: 72%; }

.radius-label {
  position: absolute;
  right: 2%;
  top: 4%;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(240, 114, 47, 0.55); }
  100% { box-shadow: 0 0 0 44px rgba(240, 114, 47, 0); }
}

/* Also in SharePaws: the title on the left, a two-column list with hairlines on the right. */
.split {
  display: grid;
  gap: 0 48px;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 2fr;
  }
}

.more-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 40px;
}

@media (min-width: 40rem) {
  .more-list {
    grid-template-columns: 1fr 1fr;
  }
}

.more-list li {
  margin: 0;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.more-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

/* For rescues and shelters: the page's one tangerine band. */
.rescues {
  background: var(--accent-soft);
  padding-block: var(--space);
}

.rescues + .section {
  padding-top: var(--space);
}

.rescues-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 56rem) {
  .rescues-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--accent-soft-ink);
}

.landing .rescues h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
}

.rescue-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: point;
}

.rescue-points li {
  counter-increment: point;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 20px 24px 20px 20px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  box-shadow: 0 1px 2px rgba(154, 61, 11, 0.06), 0 8px 24px -12px rgba(154, 61, 11, 0.18);
}

.rescue-points li::before {
  content: counter(point);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
  font-weight: 800;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

/* Kind by design: three short columns under hairlines. */
.trust-grid {
  display: grid;
  gap: 0 40px;
}

@media (min-width: 48rem) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  padding: 20px 0 8px;
  border-top: 2px solid var(--ink);
}

.landing .trust-item h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.trust-item p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Get the app: one grey tile, the paw and the pitch on the left, the calls on the right. */
.get {
  scroll-margin-top: 64px;
}

.get-panel {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background: var(--tint);
}

@media (min-width: 70rem) {
  .get-panel {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 48px;
  }
}

.get-icon {
  display: block;
  margin: 0 0 24px;
  border-radius: 18px;
  outline: 1px solid var(--image-outline);
  outline-offset: -1px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 12px 24px -10px rgba(194, 65, 12, 0.4);
}

.landing .get h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 0 0 12px;
}

.landing .get .lead {
  margin: 0;
}

.get-actions {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pin-lost::before {
    animation: none;
  }
}
