:root {
  --bg: #f2f2f7;
  --ink: #1c1c1e;
  --muted: #6e6e73;
  --faint: #a3abb2;
  --hair: #e5e5ea;
  --primary: #0088ff;

  --max-width: 1200px;
  --font-sans: Inter, 'Inter Fallback', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Rethink Sans', 'Rethink Sans Fallback', ui-sans-serif, system-ui, sans-serif;

  color-scheme: light;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: Rethink Sans;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/rethink-sans.woff2') format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--primary);
  color: #fff;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  padding: 32px 48px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.badge-appstore {
  display: flex;
  width: 122px;
  height: 47px;
  line-height: 0;
}

.badge-appstore img {
  width: 122px;
  height: 47px;
  border-radius: 12px;
  box-shadow:
    0 0.6px 0.6px -1.08px rgba(0, 0, 0, 0.16),
    0 2.29px 2.29px -2.17px rgba(0, 0, 0, 0.15),
    0 10px 10px -3.25px rgba(0, 0, 0, 0.09);
}

.hero-section {
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 100%;
  padding: 120px 0 160px;
  position: relative;
  overflow: visible;
}

.hero-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 90vw;
}

.hero-mobile-logo {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-mobile-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.hero-mobile-logo span {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.pill {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px 6px 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 5px 20px rgba(0, 0, 0, 0.1),
    0 1px 1px rgba(0, 0, 0, 0.13);
}

.pill span {
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 20px;
  text-align: center;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 44px;
  letter-spacing: -2px;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 18px;
  letter-spacing: -0.5px;
  line-height: 22px;
  text-align: center;
  color: var(--muted);
  max-width: 85vw;
}

.hero-mobile-download {
  display: none;
  margin-top: 8px;
}

.hero-screenshots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max-width);
  padding: 12px 48px 0;
  overflow: visible;
}

.screenshot-spread {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 1040px;
  min-height: clamp(430px, 42vw, 560px);
  padding: 12px 0 56px;
}

.screenshot-card {
  width: clamp(160px, 18vw, 224px);
  aspect-ratio: 472 / 1024;
  object-fit: cover;
  border-radius: clamp(26px, 2.8vw, 36px);
  box-shadow:
    0 24px 40px rgba(28, 28, 30, 0.08),
    0 60px 110px rgba(28, 28, 30, 0.14);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
  will-change: transform;
}

.screenshot-card:hover {
  position: relative;
  z-index: 10;
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 28px 48px rgba(28, 28, 30, 0.1),
    0 80px 140px rgba(28, 28, 30, 0.18);
}

.screenshot-card--one,
.screenshot-card--two,
.screenshot-card--three,
.screenshot-card--four,
.screenshot-card--five {
  transform: none;
}

.footer {
  padding: 24px 16px;
  display: flex;
  justify-content: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max-width);
  width: 100%;
}

.footer-links span,
.footer-links a {
  font-size: 13px;
  color: var(--faint);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-dot {
  color: var(--hair) !important;
}

.legal {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding: 152px 24px 96px;
}

.legal__head {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hair);
}

.legal__head h1 {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.legal__head p {
  font-size: 14px;
  color: var(--faint);
}

.legal h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.legal p {
  margin-bottom: 16px;
}

.legal ul {
  margin: 0 0 16px 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong {
  color: var(--ink);
}

.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 120px 24px;
}

.notfound h1 {
  font-size: 40px;
  letter-spacing: -1.5px;
  font-weight: 600;
}

.notfound p {
  color: var(--muted);
}

.notfound a {
  margin-top: 8px;
  color: var(--primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .site-header {
    display: none;
  }

  .hero-mobile-logo {
    display: flex;
  }

  .hero-mobile-download {
    display: inline-flex;
  }

  .hero-title {
    font-size: 30px !important;
    line-height: 30px !important;
  }

  .hero-section {
    padding: 72px 0 96px;
  }

  .hero-screenshots {
    justify-content: flex-start;
    padding: 8px 0 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .screenshot-spread {
    justify-content: flex-start;
    gap: 4px;
    width: max-content;
    max-width: none;
    min-height: 520px;
    padding: 12px 36px 52px;
  }

  .screenshot-card {
    width: 210px;
    scroll-snap-align: center;
  }
}

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

  * {
    transition: none !important;
    animation: none !important;
  }
}
