:root {
  color-scheme: light dark;
  --bg: #f6f7f4;
  --bg-elevated: #ffffff;
  --text: #161616;
  --muted: #666a70;
  --line: rgba(20, 20, 20, 0.12);
  --orange: #f7931a;
  --orange-strong: #d87300;
  --green: #10845a;
  --shadow: 0 24px 70px rgba(28, 24, 17, 0.14);
  --soft-shadow: 0 14px 38px rgba(28, 24, 17, 0.1);
  --radius: 8px;
  --max: 1120px;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "SF Pro", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111213;
    --bg-elevated: #1b1c1e;
    --text: #f2f2ef;
    --muted: #a7abb0;
    --line: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --soft-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f4;
  --bg-elevated: #ffffff;
  --text: #161616;
  --muted: #666a70;
  --line: rgba(20, 20, 20, 0.12);
  --shadow: 0 24px 70px rgba(28, 24, 17, 0.14);
  --soft-shadow: 0 14px 38px rgba(28, 24, 17, 0.1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111213;
  --bg-elevated: #1b1c1e;
  --text: #f2f2ef;
  --muted: #a7abb0;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --soft-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(247, 147, 26, 0.11), transparent 32rem),
    linear-gradient(180deg, rgba(127, 127, 127, 0.06), transparent 26rem),
    var(--bg);
  color: var(--text);
  letter-spacing: 0;
  transition: background-color 180ms ease, color 180ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 58%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 58%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 62%);
  pointer-events: none;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
}

.site-header-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px;
}

.brand,
.controls,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: start;
}

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

.site-footer a:hover {
  color: var(--orange);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.controls {
  justify-content: flex-end;
  gap: 10px;
}

.control-button {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.control-button {
  min-height: 38px;
  padding: 0 13px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.theme-toggle {
  display: inline-flex;
  width: auto;
  border: 0;
  background: transparent;
  padding: 0 4px;
  box-shadow: none;
  align-items: center;
}

.theme-toggle:hover {
  box-shadow: none;
}

.theme-toggle-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 46px;
  align-items: center;
  max-width: var(--max);
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  padding: 34px 20px 60px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
  word-break: normal;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
}

.lead,
.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.22rem;
}

.control-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.product-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  isolation: isolate;
  perspective: 1000px;
}

.hero-shot {
  margin: 0;
}

.hero-shot img,
.artifact-panel img,
.app-device-gallery img {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero-widget-large {
  width: min(55vw, 360px);
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.24));
  transform: rotate(-3deg) translateZ(24px);
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-widget-medium,
.hero-widget-small-price {
  position: absolute;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.24));
}

.hero-widget-medium {
  right: 0;
  bottom: 30px;
  width: min(46vw, 330px);
  transform: rotate(4deg);
  animation: heroFloat 8s ease-in-out 700ms infinite;
}

.hero-widget-small-price {
  left: 8px;
  bottom: 22px;
  width: min(32vw, 172px);
  transform: rotate(-7deg);
  animation: heroFloat 6.5s ease-in-out 300ms infinite;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 92px;
}

.section-heading {
  max-width: none;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: none;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
}

.artifact-section {
  display: block;
}

.artifact-grid {
  display: grid;
  gap: 46px;
  overflow: visible;
}

.artifact-panel {
  display: grid;
  gap: 18px;
  padding: 0;
  overflow: visible;
  transition: opacity 180ms ease, translate 180ms ease;
}

.artifact-panel-heading {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.desktop-stack,
.lock-stack,
.watch-stack,
.tv-stack {
  display: grid;
  align-items: end;
  gap: clamp(16px, 3vw, 30px);
  justify-content: start;
  min-width: 0;
  overflow: visible;
  padding: 24px 12px 26px;
  margin: -24px -12px -26px;
}

.desktop-stack,
.lock-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 586px);
}

.desktop-stack img,
.lock-stack img {
  width: 100%;
}

.watch-stack {
  grid-template-columns: repeat(4, minmax(110px, 180px));
  gap: clamp(12px, 2.3vw, 22px);
  width: min(100%, 780px);
}

.watch-stack img {
  width: 100%;
}

.tv-stack {
  grid-template-columns: minmax(0, 860px);
}

.tv-stack img {
  width: 100%;
}

.modules-section {
  display: block;
}

.metrics-widget-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  align-items: start;
  width: 87.5%;
}

.metrics-widget-grid img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.18));
  translate: 0 16px;
  transition: opacity 180ms ease, translate 180ms ease;
}

.metrics-widget-grid img.is-visible {
  opacity: 1;
  translate: 0 0;
}

.app-device-gallery {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  width: min(100%, 820px);
}

.app-device-gallery img {
  width: 100%;
  transition: opacity 180ms ease, translate 180ms ease;
}

.artifact-panel,
.app-device-gallery img {
  opacity: 0;
  translate: 0 16px;
}

.artifact-panel.is-visible,
.app-device-gallery img.is-visible {
  opacity: 1;
  translate: 0 0;
}

.pricing-section {
  display: block;
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 18px;
  max-width: 578px;
}

.pricing-plan {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--bg-elevated) 96%, transparent), color-mix(in srgb, var(--bg) 82%, var(--bg-elevated)));
  box-shadow: 0 16px 38px rgba(28, 24, 17, 0.08);
}

.pricing-plan-featured {
  border-color: color-mix(in srgb, var(--orange) 72%, var(--line));
  background:
    radial-gradient(circle at 100% 0, rgba(247, 147, 26, 0.18), transparent 48%),
    linear-gradient(145deg, color-mix(in srgb, var(--bg-elevated) 96%, transparent), color-mix(in srgb, var(--bg) 82%, var(--bg-elevated)));
  box-shadow: 0 18px 42px rgba(247, 147, 26, 0.12);
}

.pricing-period {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 760;
}

.pricing-price {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  align-self: end;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 780;
  line-height: 1;
}

.pricing-unit {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.92rem;
  font-weight: 500;
}

.pricing-note {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.download-section {
  display: block;
}

.download-panel {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.qr-link,
.app-store-badge {
  display: block;
}

.qr-link img {
  display: block;
  width: 180px;
  height: 180px;
}

.app-store-badge {
  width: 180px;
  border-radius: 9px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.app-store-badge-image {
  display: block;
  width: 180px;
  height: auto;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 58px 20px 96px;
}

.legal-document {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: clamp(24px, 5vw, 54px);
}

.legal-document h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.legal-document h2 {
  margin-top: 38px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-document p,
.legal-document li,
.legal-document td,
.legal-document th {
  line-height: 1.62;
}

.legal-document p,
.legal-document li,
.legal-document td {
  color: var(--muted);
}

.legal-document a {
  color: var(--orange-strong);
  font-weight: 750;
}

.legal-updated {
  margin: 18px 0 34px;
  font-weight: 700;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-document table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.legal-document th,
.legal-document td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-document th {
  color: var(--text);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.legal-document tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  display: grid;
  width: 100%;
  gap: 8px;
  justify-items: center;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--muted);
}

.footer-cookie-note {
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.45;
}

.footer-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
}

.footer-trademark {
  width: 100%;
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

@keyframes heroFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

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

  .artifact-panel,
  .metrics-widget-grid img,
  .app-device-gallery img {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 900px) {
  .site-header-content {
    grid-template-columns: 1fr auto;
  }

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

  .artifact-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .artifact-panel-heading {
    justify-self: start;
  }

  .watch-stack {
    grid-template-columns: repeat(4, minmax(96px, 1fr));
  }

  .metrics-widget-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 650px;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .product-stage {
    min-height: 400px;
  }

}

@media (max-width: 620px) {
  .site-header-content {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 14px 16px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .controls {
    justify-content: flex-end;
    gap: 8px;
  }

  .control-button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .site-footer {
    gap: 7px;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  }

  .footer-links {
    gap: 8px 14px;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pricing-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pricing-plan {
    min-height: 190px;
    padding: 20px;
  }

  .product-stage {
    min-height: 360px;
  }

  .hero-widget-large {
    width: min(70vw, 280px);
    transform: rotate(-2deg);
  }

  .hero-widget-medium {
    right: 0;
    bottom: 26px;
    width: min(66vw, 250px);
    transform: rotate(3deg);
  }

  .hero-widget-small-price {
    left: 0;
    bottom: 0;
    width: min(34vw, 126px);
    transform: rotate(-5deg);
  }

  .desktop-stack,
  .lock-stack,
  .watch-stack,
  .tv-stack {
    justify-content: flex-start;
  }

  .desktop-stack {
    gap: 12px;
  }

  .metrics-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 440px;
  }

  .watch-stack {
    grid-template-columns: repeat(2, minmax(104px, 168px));
    gap: 14px 12px;
  }

  .legal-page {
    padding: 30px 16px 72px;
  }
}

@media (max-width: 480px) {
  .pricing-plans {
    grid-template-columns: 1fr;
  }

  .pricing-plan {
    min-height: 180px;
  }
}

@media (max-width: 340px) {
  .watch-stack {
    grid-template-columns: repeat(2, minmax(96px, 150px));
  }
}
