:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --panel: #ffffff;
  --panel-soft: #fafafa;
  --text: #1d1d1f;
  --muted: #626267;
  --border: rgba(0, 0, 0, 0.13);
  --border-strong: rgba(0, 0, 0, 0.22);
  --accent: #0066cc;
  --focus: #0071e3;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  --content-width: 1120px;
  --page-gutter: clamp(20px, 4vw, 40px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0f;
    --panel: #1c1c1e;
    --panel-soft: #161618;
    --text: #f5f5f7;
    --muted: #a6a6ab;
    --border: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.26);
    --accent: #75b7ff;
    --focus: #64a8ff;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 400 1rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--panel);
  background: var(--text);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
main {
  width: min(var(--content-width), calc(100% - (2 * var(--page-gutter))));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
}

.brand {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"],
.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"],
.site-footer a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.home-hero {
  padding: clamp(76px, 12vw, 144px) 0 clamp(56px, 8vw, 88px);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 8vw, 72px);
  align-items: center;
  padding: 48px 0 72px;
}

.hero-copy {
  max-width: 680px;
}

.hero-icon,
.app-icon {
  border-radius: 22%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.hero-icon {
  margin-bottom: 24px;
}

.hero-shot {
  justify-self: center;
  width: min(100%, 350px);
}

.hero-shot img,
.screenshot-grid img {
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7.5vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}

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

.lead {
  max-width: 740px;
  color: var(--text);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.35;
}

.app-store-cta {
  margin: 24px 0 0;
}

.app-store-link {
  display: inline-block;
  border-radius: 8px;
}

.app-store-link:focus-visible {
  outline-offset: 6px;
}

.app-store-badge {
  width: 180px;
}

.content-section {
  padding: clamp(56px, 8vw, 88px) 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.app-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  max-width: 740px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

.app-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

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

.app-card p {
  margin-bottom: 10px;
}

.text-link,
.text-page a {
  color: var(--accent);
  font-weight: 650;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
}

figure {
  margin: 0;
}

figcaption {
  padding: 14px 4px 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-grid article {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
}

.feature-grid p {
  margin-bottom: 0;
}

.text-page {
  max-width: 780px;
  padding: clamp(56px, 8vw, 84px) 0 88px;
}

.text-page > section {
  padding-top: 34px;
}

.text-page h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
}

.text-page h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

details {
  border-top: 1px solid var(--border);
}

details:last-child {
  border-bottom: 1px solid var(--border);
}

summary {
  padding: 20px 2px;
  cursor: pointer;
  color: var(--text);
  font-weight: 650;
}

details[open] summary {
  padding-bottom: 10px;
}

details p {
  max-width: 680px;
  margin: 0;
  padding: 0 2px 20px;
}

.release-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.release-list li + li {
  margin-top: 9px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 14px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .legal-credit {
  flex-basis: 100%;
  max-width: 720px;
  font-size: 0.72rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .screenshot-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .product-hero {
    grid-template-columns: minmax(0, 1fr) 370px;
    min-height: 720px;
    padding-top: 28px;
  }

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

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding-block: 16px 10px;
  }

  .nav {
    width: 100%;
    gap: 2px 18px;
  }

  .app-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .app-card .app-icon {
    width: 68px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
