:root {
  --navy: hsl(219.18 51.58% 37.25%);
  --navy-dark: hsl(219.18 51.58% 28%);
  --text: hsl(222.2 47.4% 11.2%);
  --muted: hsl(215.4 16.3% 46.9%);
  --surface: hsl(210 40% 98%);
  --border: hsl(214.3 31.8% 91.4%);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  background-color: #fff;
}

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: #fff;
  line-height: 1.6;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  align-items: center;
}

.landing-split {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.landing-content {
  flex: 0 0 60%;
  max-width: 60%;
}

.landing-carousel {
  flex: 0 0 40%;
  max-width: 40%;
}

.app-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app-brand-logo {
  width: clamp(8.5rem, calc(18vw + 1.5rem), 11.5rem);
  height: auto;
  display: block;
  object-fit: contain;
}

.app-name {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.03em;
}

.app-lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 28rem;
  line-height: 1.5;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.store-badge {
  display: block;
  line-height: 0;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.store-badge:hover {
  opacity: 0.9;
  text-decoration: none;
}

.store-badge-image {
  display: block;
  height: 40px;
  width: auto;
}

.store-badge[data-store="google"] .store-badge-image {
  height: 58px;
}

.feature-carousel {
  background: transparent;
}

.carousel-shell {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 32px;
  isolation: isolate;
  clip-path: inset(0 round 32px);
}

.carousel-track {
  display: flex;
  transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.feature-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.feature-promo-image {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top center;
  vertical-align: top;
}

.landing-carousel .carousel-viewport {
  height: 600px;
  max-height: 600px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.carousel-nav:hover {
  background: #fff;
  border-color: var(--navy);
  transform: translateY(-50%) scale(1.04);
}

.carousel-nav--prev {
  left: 0.5rem;
}

.carousel-nav--next {
  right: 0.5rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: hsl(214.3 31.8% 82%);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.carousel-dot:hover {
  background: hsl(214.3 31.8% 70%);
}

.carousel-dot.is-active {
  width: 22px;
  background: var(--navy);
}

.carousel-dot:focus-visible,
.carousel-nav:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

footer p {
  margin: 0 0 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-lead {
  color: var(--muted);
  margin: 0 0 2rem;
}

.empty-policy {
  background: white;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.prose h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.prose p,
.prose li {
  font-size: 0.975rem;
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose strong {
  font-weight: 600;
}

.prose code {
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.wrap--narrow {
  max-width: 720px;
}

@media (max-width: 768px) {
  .landing-split {
    flex-direction: column;
    gap: 2rem;
  }

  .landing-content,
  .landing-carousel {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}
