:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --accent: #6a4df5;
  --accent-hover: #5a3de0;
  --line: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 20px 50px rgba(40, 20, 120, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #111113;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --accent: #8f7bff;
    --accent-hover: #a293ff;
    --line: rgba(255, 255, 255, 0.12);
    --nav-bg: rgba(20, 20, 22, 0.72);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 980px;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-small { font-size: 13px; padding: 5px 13px; }

.link { font-size: 17px; }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.nav-links a:not(.btn) { color: var(--text); opacity: 0.8; }
.nav-links a:not(.btn):hover { opacity: 1; text-decoration: none; }

/* Screenshots. The source images have App Store captions baked into
   the top ~22%, so crop to the window area and let the page's own
   headings do the talking. */

.shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 2880 / 1400;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

/* Hero */

.hero {
  text-align: center;
  padding: 88px 22px 40px;
  max-width: 1024px;
  margin: 0 auto;
}
.hero-icon { margin: 0 auto 20px; width: 128px; height: 128px; }
.hero h1 { font-size: 64px; font-weight: 700; line-height: 1.06; }
.hero-tagline {
  text-wrap: balance;
  font-size: 32px;
  font-weight: 600;
  margin: 8px 0 0;
  background: linear-gradient(90deg, #5b6cf9, #9b4ff0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 21px;
  color: var(--text-2);
  max-width: 560px;
  margin: 16px auto 0;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.fine { font-size: 13px; color: var(--text-2); margin: 16px 0 0; }
.shot-hero { margin-top: 56px; }

/* Story */

.story {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 22px;
  text-align: center;
}
.story h2 { font-size: 28px; font-weight: 700; }
.story p {
  font-size: 19px;
  color: var(--text-2);
  margin: 12px 0 0;
}

/* Features */

.features { background: var(--bg-alt); padding: 40px 0; }
.feature {
  max-width: 1024px;
  margin: 0 auto;
  padding: 72px 22px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: center;
}
.feature:nth-child(even) .feature-text { order: 2; }
.feature h2 { font-size: 40px; font-weight: 700; line-height: 1.1; }
.feature p { font-size: 19px; color: var(--text-2); margin: 16px 0 0; }

/* Details */

.details {
  max-width: 1024px;
  margin: 0 auto;
  padding: 96px 22px;
}
.details > h2 { font-size: 40px; font-weight: 700; text-align: center; }
.details-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.details-grid h3 { font-size: 17px; font-weight: 600; }
.details-grid p { font-size: 15px; color: var(--text-2); margin: 6px 0 0; }

/* Demos */

.demos {
  background: var(--bg-alt);
  padding: 96px 22px;
}
.demos > h2 { font-size: 40px; font-weight: 700; text-align: center; }
.demo-grid {
  max-width: 1200px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.demo { margin: 0; }
.demo video {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: #000;
}
.demo figcaption {
  text-align: center;
  font-weight: 600;
  margin-top: 14px;
}

/* Closing */

.closing {
  text-align: center;
  padding: 112px 22px;
  max-width: 640px;
  margin: 0 auto;
}
.closing img { margin: 0 auto 20px; width: 96px; height: 96px; }
.closing h2 { font-size: 48px; font-weight: 700; }
.closing p { font-size: 19px; color: var(--text-2); margin: 16px 0 32px; }

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  padding: 24px 22px 40px;
}

/* Help page: same bands as the main page, with a centered reading column */

.help-header {
  text-align: center;
  padding: 88px 22px 64px;
  max-width: 1024px;
  margin: 0 auto;
}
.help-header img { margin: 0 auto 20px; width: 96px; height: 96px; }
.help-header h1 { font-size: 56px; font-weight: 700; line-height: 1.07; }
.help-header p { font-size: 21px; color: var(--text-2); margin: 12px 0 0; }
.help-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 28px;
  font-size: 17px;
}
.help-section { scroll-margin-top: 52px; }
.help-section:nth-of-type(odd) { background: var(--bg-alt); }
.help-row {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 22px;
}
.help-row h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 32px;
}
.help-body > :first-child { margin-top: 0; }
.help-body h3 { font-size: 19px; font-weight: 600; margin-top: 32px; }
.help-body p, .help-body li { font-size: 17px; }
.help-body p { margin: 10px 0 0; }
.help-body ol, .help-body ul { margin: 10px 0 0; padding-left: 1.2em; }
.help-body li { margin-top: 8px; padding-left: 4px; }
.help-body li::marker { color: var(--text-2); }
.help .note {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-2);
  font-size: 15px;
  margin-top: 16px;
}
.help-section:nth-of-type(odd) .note { background: var(--bg); }
.help code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.help-section:nth-of-type(odd) code { background: var(--bg); }
kbd {
  font-family: inherit;
  font-size: 0.9em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* Responsive */

@media (max-width: 900px) {
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 734px) {
  .nav-inner { padding: 0 16px; }
  .nav-links { gap: 16px; }
  .hero { padding: 56px 16px 32px; }
  .hero h1 { font-size: 44px; }
  .hero-tagline { font-size: 24px; }
  .hero-sub { font-size: 18px; }
  .shot { border-radius: 10px; }
  .story { padding: 56px 16px; }
  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 16px;
    text-align: center;
  }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature h2, .details > h2, .demos > h2 { font-size: 32px; }
  .details, .demos { padding: 72px 16px; }
  .details-grid { grid-template-columns: 1fr; gap: 24px; }
  .closing { padding: 80px 16px; }
  .closing h2 { font-size: 36px; }
  .help-header { padding: 56px 16px 48px; }
  .help-header h1 { font-size: 40px; }
  .help-row { padding: 48px 16px; }
  .help-row h2 { font-size: 32px; margin-bottom: 24px; }
}

@media (max-width: 480px) {
  .nav-links a[href$="#features"], .nav-links a[href$="#demos"] { display: none; }
}
