:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f8f9fa;
  --text: #202124;
  --muted: #5f6368;
  --line: #e0e3e7;
  --accent: #01875f;
  --accent-soft: #e6f4ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.hero > * {
  max-width: 56rem;
}

.eyebrow,
.section-label,
.meta-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1,
.section-heading h2,
.app-card h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.12;
}

.hero-copy {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.app-summary {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.app-icon {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  object-fit: cover;
}

.app-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.app-card h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.status-pill {
  flex-shrink: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.app-tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-description {
  margin: 0;
  line-height: 1.55;
}

.app-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.meta-item p:last-child {
  margin: 0.35rem 0 0;
  font-weight: 500;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.screenshot-section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.screenshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.slider-button:hover,
.slider-button:focus-visible {
  background: var(--surface-muted);
}

.screenshot-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 22%);
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.screenshot-slider::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-muted);
  scroll-snap-align: start;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.app-link.secondary {
  background: #ffffff;
  color: var(--accent);
  border-color: var(--line);
}

.app-link:hover,
.app-link:focus-visible {
  background: #017154;
  border-color: #017154;
}

.app-link.secondary:hover,
.app-link.secondary:focus-visible {
  background: var(--surface-muted);
  border-color: #c7cacf;
}

.about-section {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.about-section h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about-copy {
  max-width: 52rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-link,
.inline-link {
  color: var(--text);
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible,
.inline-link:hover,
.inline-link:focus-visible {
  text-decoration: underline;
}

.footer-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: right;
}

.policy-page {
  padding-top: 2rem;
}

.policy-hero {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.policy-hero h1,
.policy-section h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.policy-hero h1 {
  max-width: 20ch;
  margin-top: 0.45rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.policy-meta {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.policy-section {
  max-width: 52rem;
  padding: 1.5rem 0 0;
}

.policy-section h2 {
  font-size: 1.2rem;
}

.policy-section p,
.policy-note p {
  margin: 0.8rem 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.policy-note {
  max-width: 52rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

@media (max-width: 900px) {
  .screenshot-slider {
    grid-auto-columns: minmax(180px, 30%);
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 1rem, 42rem);
    padding: 1rem 0 2rem;
  }

  .topbar {
    min-height: auto;
  }

  .brand {
    gap: 0.65rem;
  }

  .brand-logo {
    height: 26px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .hero {
    padding: 2rem 0 1.25rem;
  }

  .hero > * {
    max-width: 100%;
  }

  .section-heading {
    display: block;
    margin-top: 1.5rem;
  }

  .section-heading h2 {
    margin-top: 0.45rem;
  }

  .app-summary {
    grid-template-columns: 1fr;
  }

  .app-icon {
    width: 88px;
    height: 88px;
  }

  .screenshot-header {
    align-items: start;
    flex-direction: column;
  }

  .screenshot-slider {
    grid-auto-columns: minmax(220px, 72%);
  }

  .app-meta {
    grid-template-columns: 1fr;
  }

  .app-link {
    width: 100%;
  }

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

  .footer-links {
    gap: 0.75rem 1rem;
  }

  .footer-text {
    text-align: left;
  }
}
