:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #0a84ff;
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #e0ecff, var(--bg) 34%);
  line-height: 1.5;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 92vw);
}

.centered {
  text-align: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-wrap {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.topbar nav {
  display: inline-flex;
  gap: 20px;
}

.topbar nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.82)),
    url("assets/hero-bg.webp");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 0.8rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

.lead {
  margin: 12px 0 0;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 520;
}

.sublead {
  margin: 12px 0 24px;
  color: var(--muted);
  max-width: 54ch;
}

.app-store-badge {
  width: 178px;
  height: auto;
}

.device-card {
  width: min(100%, 360px);
  justify-self: end;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.hero-shot {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.section {
  padding: 82px 0;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.01em;
}

.section-copy {
  margin: 0 0 28px;
  color: var(--muted);
}

.carousel-shell {
  position: relative;
  margin-top: 16px;
}

.screenshot-browser {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 251, 0.96));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 4px);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.carousel-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 18px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
}

.carousel-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-tab.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.carousel-panel {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  align-items: start;
  gap: 18px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 6px 0;
}

.device-frame {
  margin: 0;
  background: var(--surface);
  padding: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.phone-frame {
  width: min(100%, 320px);
  border-radius: 28px;
}

.phone-frame img {
  border-radius: 20px;
}

.tablet-frame {
  width: min(100%, 400px);
  border-radius: 24px;
  padding: 12px;
}

.tablet-frame img {
  border-radius: 16px;
}

#panel-iphone .carousel-track {
  grid-auto-columns: minmax(240px, 320px);
}

#panel-ipad .carousel-track {
  grid-auto-columns: minmax(300px, 400px);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.carousel-btn.prev {
  left: -12px;
}

.carousel-btn.next {
  right: -12px;
}

.video-preview-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.video-preview {
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.video-preview h3 {
  margin: 0;
  padding: 16px 18px 12px;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}

.video-preview-media {
  --preview-video-height: clamp(320px, 54vw, 512px);
  height: var(--preview-video-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.98));
}

.video-preview video {
  width: auto;
  max-width: 100%;
  height: 100%;
  background: #111827;
  object-fit: contain;
}

.feature-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.steps li + li {
  margin-top: 10px;
}

.privacy,
.download {
  background: rgba(255, 255, 255, 0.65);
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-grid {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

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

.footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  background: #f8fafc;
}

.legal-content {
  max-width: 860px;
  background: #ffffff;
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.legal-content h1 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.legal-content h2 {
  margin-top: 24px;
  font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
  color: #1f2937;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-footer-links {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .device-card {
    width: min(100%, 360px);
    margin: 0 auto;
    justify-self: center;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar nav {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .carousel-btn {
    display: none;
  }

  .screenshot-browser {
    padding: 14px;
  }

  .carousel-tabs {
    display: flex;
    width: 100%;
  }

  .carousel-tab {
    flex: 1;
    text-align: center;
  }

  .carousel-track {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .legal-content {
    padding: 22px;
  }
}
