:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --ink: #171717;
  --muted: #68625c;
  --line: #ded7cc;
  --panel: #fffdf8;
  --accent: #1b6a66;
  --accent-2: #8f3f2a;
  --focus: #2457c5;
  --shadow: 0 24px 60px rgb(48 38 25 / 12%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(120deg, rgb(27 106 102 / 8%), transparent 34%),
    linear-gradient(280deg, rgb(143 63 42 / 8%), transparent 38%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration-color: rgb(23 23 23 / 28%);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: currentColor;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem max(1rem, env(safe-area-inset-left)) 0.85rem max(1rem, env(safe-area-inset-right));
  border-bottom: 1px solid rgb(23 23 23 / 10%);
  background: rgb(247 244 238 / 88%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.65rem;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 0.48rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.is-active {
  border-color: rgb(23 23 23 / 13%);
  background: rgb(255 255 255 / 55%);
  color: var(--ink);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 4.6rem 0;
  scroll-margin-top: 7.5rem;
}

.hero {
  display: grid;
  min-height: calc(100svh - 5.4rem);
  align-items: center;
  gap: 2rem;
  padding-top: 3rem;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.app-kicker {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.1rem;
  font-size: clamp(3.4rem, 18vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2rem, 9vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.55rem, 7vw, 3rem);
  line-height: 1;
}

.lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 4vw, 1.3rem);
}

.hero-actions,
.app-links,
.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button,
.text-link {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid rgb(23 23 23 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 42%);
  font-weight: 680;
  text-decoration: none;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.slop-machine {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.slop-machine::before,
.slop-machine::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgb(23 23 23 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 23 23 / 8%) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.slop-machine::after {
  background-size: 18px 18px;
  opacity: 0.32;
  animation: grid-drift 12s linear infinite;
}

.slop-machine span {
  position: absolute;
  top: calc(var(--y) * 16%);
  left: calc(var(--x) * 23%);
  z-index: 1;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgb(23 23 23 / 16%);
  border-radius: 999px;
  background: rgb(247 244 238 / 75%);
  color: rgb(23 23 23 / 66%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  animation: slop-float 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -650ms);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.app-grid {
  display: grid;
  gap: 1rem;
}

.app-card {
  display: grid;
  gap: 1.3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 253 248 / 70%);
  box-shadow: var(--shadow);
}

.app-copy p:not(.app-kicker) {
  max-width: 38rem;
  color: var(--muted);
}

.store-badge {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  gap: 0.72rem;
  padding: 0.58rem 0.95rem;
  border-radius: 8px;
  background: #0d0d0d;
  color: #fff;
  font-weight: 760;
  line-height: 1.05;
  text-decoration: none;
}

.store-badge.muted {
  background: var(--accent);
}

.store-badge svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.store-badge small {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.68rem;
  font-weight: 560;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: end;
  overflow: hidden;
}

.screenshots img {
  width: 100%;
  min-width: 0;
  border: 1px solid rgb(23 23 23 / 12%);
  border-radius: 8px;
  box-shadow: 0 18px 30px rgb(23 23 23 / 12%);
}

.screenshots img:nth-child(1) {
  transform: translateY(2.45rem);
}

.screenshots img:nth-child(2) {
  transform: translateY(1.15rem);
}

.provider-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.provider-strip img {
  width: 100%;
  height: 4.2rem;
  object-fit: contain;
  padding: 0.8rem;
  border: 1px solid rgb(23 23 23 / 10%);
  border-radius: 8px;
  background: #fff;
}

.phone-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.5rem 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: phones;
}

.phone-list li {
  counter-increment: phones;
}

.phone-list a {
  display: grid;
  min-height: 3rem;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgb(23 23 23 / 12%);
  border-radius: 8px;
  background: rgb(255 255 255 / 36%);
  text-decoration: none;
}

.phone-list a::before {
  content: counter(phones, decimal-leading-zero);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
}

.about p {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.external-links a {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgb(23 23 23 / 15%);
  border-radius: 999px;
  background: rgb(255 255 255 / 42%);
  font-weight: 680;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@keyframes grid-drift {
  to {
    transform: translate3d(18px, 18px, 0);
  }
}

@keyframes slop-float {
  0%,
  100% {
    opacity: 0.38;
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }

  50% {
    opacity: 1;
    transform: translate3d(18px, -14px, 0) rotate(1deg);
  }
}

@media (min-width: 720px) {
  .site-header {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding-inline: max(1.4rem, env(safe-area-inset-left)) max(1.4rem, env(safe-area-inset-right));
  }

  .main-nav {
    justify-content: flex-end;
  }

  .section {
    width: min(1120px, calc(100% - 3rem));
    padding-block: 6rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.58fr);
    min-height: calc(100svh - 4rem);
  }

  .slop-machine {
    min-height: 32rem;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .app-card.featured {
    grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.72fr);
    align-items: center;
  }

  .app-card:not(.featured) {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.7fr);
    align-items: center;
  }

  .phone-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .app-grid {
    gap: 1.2rem;
  }

  .app-card {
    padding: 1.3rem;
  }

  .provider-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
