:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: var(--brand-blue);
  --accent-text: var(--on-accent);
  --link: var(--info);
  --border: #d2d2d7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --bg-alt: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    /* tokens.css switches dark values with [data-theme="dark"]; mirror the ones used here. */
    --brand-blue: #4db0db;
    --info: #6cc3e8;
    --border: #38383a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
}

::selection {
  background: var(--brand-pink);
  color: #1e1e1e;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

header.site a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

header.site img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

header.site nav a {
  margin-left: 20px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

header.site nav a:hover {
  color: var(--text);
}

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero img.icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
}

.hero h1 {
  margin: 24px 0 8px;
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.4;
}

.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 980px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.badge img {
  height: 48px;
}

.button.secondary {
  margin-left: 8px;
  background: transparent;
  color: var(--link);
  border: 1px solid var(--link);
}

.device {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 24px auto 0;
  aspect-ratio: 4260 / 2840;
}

.device .screen {
  position: absolute;
  left: 9.25%;
  top: 12.92%;
  width: 81.5%;
  height: 76.97%;
  object-fit: cover;
}

.device .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

section.features {
  padding: 64px 0;
  background: var(--bg-alt);
}

section.features h2,
section.pro h2 {
  margin: 0 0 32px;
  text-align: center;
  font-size: 34px;
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

section.pro {
  padding: 64px 0;
  text-align: center;
}

section.pro p {
  max-width: 600px;
  margin: 0 auto 12px;
  color: var(--muted);
}

main.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

main.doc h1 {
  margin: 0 0 4px;
  font-size: 40px;
  letter-spacing: -0.02em;
}

main.doc .updated {
  margin: 0 0 32px;
  color: var(--muted);
}

main.doc h2 {
  margin: 36px 0 8px;
  font-size: 22px;
}

footer.site {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer.site a {
  margin-right: 16px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .hero {
    padding-top: 48px;
  }

  .button.secondary {
    margin: 12px 0 0;
  }
}

/* Modes */
section.modes {
  padding: 80px 0 40px;
  text-align: center;
}

section.modes .eyebrow {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 600;
}

section.modes h2 {
  max-width: 760px;
  margin: 0 auto 20px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

section.modes .intro {
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.4;
}

.shot img {
  display: block;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 24px;
}

.tab {
  padding: 8px 18px;
  border: 0;
  border-bottom: 2px solid var(--border);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected="true"] {
  border-bottom-color: var(--text);
  color: var(--text);
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.desc {
  max-width: 720px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

.desc strong {
  color: var(--text);
  font-weight: 500;
}

.js .shots,
.js .descs {
  display: grid;
}

.js .shot,
.js .desc {
  grid-area: 1 / 1;
  width: 100%;
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.js .shot.active,
.js .desc.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s;
}

html:not(.js) .shot + .shot {
  margin-top: 32px;
}

/* Questions */
section.faq {
  padding: 64px 0 80px;
}

section.faq h2 {
  margin: 0 0 32px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 21px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-list details p {
  max-width: 720px;
  margin: 0;
  padding: 0 0 24px;
  color: var(--muted);
  animation: fade 0.35s ease both;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero .device {
  animation: pop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero img.icon {
  animation: rise 0.7s ease-out 0.7s both;
}

.hero h1 {
  animation: rise 0.7s ease-out 0.85s both;
}

.hero p.lead {
  animation: rise 0.7s ease-out 1s both;
}

.hero .badge {
  display: inline-block;
  animation: rise 0.7s ease-out 1.15s both;
}

.badge img,
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.badge:hover img {
  transform: scale(1.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.js .card.reveal.visible:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .hero .device,
  .hero img.icon,
  .hero h1,
  .hero p.lead,
  .hero .badge {
    animation: none;
  }

  .js .shot,
  .js .desc {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .faq-list details p {
    animation: none;
  }

  .faq-list summary::after,
  .card,
  .badge img {
    transition: none;
  }

  .card:hover,
  .badge:hover img {
    transform: none;
  }
}
