:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --ink: #141821;
  --muted: #6a707d;
  --soft: #e3e5eb;
  --accent: #4f82c7;
  --accent-dark: #2e5f9f;
  --tooltip: #1e2430;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(100% - 48px, 980px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 94px;
}

.brand,
.store-link,
.site-footer a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 720;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background-image: url("/assets/speak2pets-icon.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 4px 14px rgba(24, 83, 160, 0.18);
}

.store-link,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.store-link:hover,
.site-footer a:hover {
  color: var(--ink);
}

.intro {
  max-width: 745px;
  padding-bottom: 76px;
}

.kicker,
.app-meta,
.detail-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 5.7rem);
  font-weight: 760;
  line-height: 0.96;
}

.intro-copy {
  max-width: 635px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.app-showcase {
  padding-bottom: 82px;
}

.app-tile {
  min-width: 0;
}

.app-link {
  position: relative;
  display: block;
  width: min(100%, 224px);
  margin-bottom: 24px;
  border-radius: 27%;
  outline-offset: 10px;
}

.app-link::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 2;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--tooltip);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.app-link:hover::after,
.app-link:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-icon {
  width: 100%;
  border-radius: 27%;
  box-shadow: 0 18px 44px rgba(79, 130, 199, 0.18);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.app-link:hover .app-icon,
.app-link:focus-visible .app-icon {
  box-shadow: 0 22px 54px rgba(79, 130, 199, 0.28);
  transform: translateY(-3px);
}

.app-copy {
  max-width: 490px;
}

.app-meta,
.detail-meta {
  margin-bottom: 8px;
}

.app-copy h2,
.details h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2.08rem);
  font-weight: 760;
  line-height: 1.08;
}

.app-copy p:last-child,
.details p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 56px);
  border-top: 1px solid var(--soft);
  padding: 42px 0 78px;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  padding-bottom: 96px;
}

.screenshots img {
  width: 100%;
  max-width: 220px;
  border: 1px solid rgba(20, 24, 33, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(20, 24, 33, 0.08);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--soft);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.not-found-page {
  min-height: 100vh;
}

.not-found {
  width: min(100% - 48px, 720px);
  margin: 0 auto;
  padding: 72px 0;
}

.not-found .brand {
  margin-bottom: 52px;
}

.not-found h1 {
  font-size: clamp(3rem, 8vw, 5rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 760;
  text-decoration: none;
}

@media (max-width: 720px) {
  .page-shell,
  .not-found {
    width: min(100% - 32px, 980px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0 64px;
  }

  .intro {
    padding-bottom: 56px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.35rem);
  }

  .app-showcase {
    padding-bottom: 66px;
  }

  .app-link {
    width: min(58vw, 190px);
    margin-bottom: 20px;
  }

  .app-copy {
    max-width: 440px;
  }

  .details,
  .screenshots {
    grid-template-columns: 1fr;
  }

  .details {
    gap: 34px;
    padding-bottom: 64px;
  }

  .screenshots {
    gap: 22px;
    padding-bottom: 70px;
  }

  .screenshots img {
    max-width: 210px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
