@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/Inter-Regular.ttf") format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/Inter-Medium.ttf") format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/Inter-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/assets/Inter-Bold.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: #0d1012;
  --surface-soft: #13181b;
  --surface-raised: #182126;
  --accent: #38bdf8;
  --accent-pressed: #0ea5e9;
  --accent-soft: #0b3b55;
  --text: #ffffff;
  --text-muted: #adb7ba;
  --text-subtle: #768589;
  --border: #203038;
  --success: #2dd4bf;
  --warning: #fbbf24;
  --danger: #fb7185;
  --page-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgb(56 189 248 / 12%), transparent 31rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  background: rgb(5 7 13 / 78%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand img {
  object-fit: contain;
}

.header-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: 160ms ease;
}

.header-link:hover {
  border-color: var(--accent);
  color: var(--text);
}

.section {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding-top: 56px;
}

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.hero-text {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 13px 20px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: var(--bg);
}

.button-primary:hover {
  background: var(--accent-pressed);
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.release-summary {
  margin: 14px 0 0;
  color: var(--text-subtle);
  font-size: 0.82rem;
}

.phone-stage {
  position: relative;
  min-height: 620px;
}

.phone {
  position: absolute;
  width: min(280px, 70vw);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #334951;
  border-radius: 38px;
  background: var(--bg);
  box-shadow: 0 32px 90px rgb(0 0 0 / 55%);
  padding: 20px 18px;
}

.phone::before {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 74px;
  height: 18px;
  border-radius: 20px;
  background: #000;
  content: "";
  transform: translateX(-50%);
}

.phone-feed {
  top: 12px;
  left: 5%;
  z-index: 2;
  transform: rotate(-4deg);
}

.phone-insight {
  right: 2%;
  bottom: 6px;
  transform: rotate(5deg);
}

.phone-top {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-top: 12px;
}

.phone-top strong {
  font-size: 0.94rem;
}

.phone-progress {
  display: flex;
  gap: 6px;
  padding: 20px 4px;
}

.phone-progress span {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
}

.phone-progress .active {
  background: var(--accent);
}

.question-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 24px 20px;
}

.question-card h2 {
  margin: 18px 0 44px;
  font-size: 1.45rem;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.topic {
  margin: 0;
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.answer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.answer-row span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 500;
}

.answer-no {
  background: rgb(251 113 133 / 14%);
  color: var(--danger);
}

.answer-neutral {
  background: rgb(173 183 186 / 12%);
  color: var(--text-muted);
}

.answer-yes {
  background: rgb(45 212 191 / 14%);
  color: var(--success);
}

.mini-title {
  margin: 18px 0 10px;
  font-weight: 700;
}

.sway-space {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 40%, rgb(56 189 248 / 25%), transparent 28%),
    var(--surface-soft);
}

.axis {
  position: absolute;
  background: var(--border);
}

.axis-x {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.axis-y {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.point {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-subtle);
  opacity: 0.55;
}

.point-a {
  top: 32%;
  left: 68%;
}

.point-b {
  top: 48%;
  left: 63%;
}

.point-c {
  top: 39%;
  left: 78%;
}

.point-you {
  top: 27%;
  left: 73%;
  width: 14px;
  height: 14px;
  border: 2px solid white;
  background: var(--accent);
  opacity: 1;
}

.center {
  position: absolute;
  top: 43%;
  left: 69%;
  background: var(--danger);
}

.center-x {
  width: 23px;
  height: 1px;
  margin-left: -11px;
}

.center-y {
  width: 1px;
  height: 23px;
  margin-top: -11px;
}

.insight-lines {
  display: flex;
  height: 32px;
  gap: 4px;
  margin-top: 18px;
}

.insight-lines span {
  border-radius: 4px;
  background: var(--accent);
}

.insight-lines span:nth-child(1) {
  width: 18%;
  opacity: 0.35;
}

.insight-lines span:nth-child(2) {
  width: 28%;
  opacity: 0.6;
}

.insight-lines span:nth-child(3) {
  width: 54%;
}

.insight-copy {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 42px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--border);
}

.step-grid article {
  min-height: 280px;
  background: var(--surface);
  padding: 32px;
}

.step-grid article > span {
  display: block;
  margin-bottom: 72px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.step-grid p,
.insight-feature p,
.download-copy > p,
.install-card > p {
  color: var(--text-muted);
}

.insight-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 96px;
}

.insight-feature > div:first-child {
  max-width: 580px;
}

.distribution {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  padding: 28px;
}

.distribution-bar {
  display: flex;
  height: 42px;
  overflow: hidden;
  border-radius: 10px;
  opacity: 0.95;
}

.distribution-bar span:nth-child(1) {
  width: 10%;
  background: var(--danger);
}

.distribution-bar span:nth-child(2) {
  width: 14%;
  background: var(--warning);
}

.distribution-bar span:nth-child(3) {
  width: 12%;
  background: var(--text-subtle);
}

.distribution-bar span:nth-child(4) {
  width: 22%;
  background: var(--accent);
}

.distribution-bar span:nth-child(5) {
  width: 42%;
  background: var(--success);
}

.distribution-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.86rem;
}

.distribution-meta span {
  color: var(--text-muted);
}

.download-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 76px;
  border-top: 1px solid var(--border);
}

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

.download-copy .button {
  margin-top: 18px;
}

.release-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0 0;
}

.release-details div {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.release-details dt {
  color: var(--text-subtle);
  font-size: 0.76rem;
}

.release-details dd {
  margin: 4px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.checksum {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.checksum code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 8px;
  color: var(--text-subtle);
}

.install-card {
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 30px;
}

.install-card ol {
  margin: 22px 0;
  padding-left: 22px;
  color: var(--text-muted);
}

.qr-download {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.qr-download img {
  width: 132px;
  height: 132px;
  border-radius: 14px;
  background: white;
  padding: 8px;
}

.qr-download span {
  max-width: 130px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

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

.ios-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 20px;
}

.ios-note span {
  color: var(--text-subtle);
  font-size: 0.86rem;
}

footer {
  display: grid;
  width: min(calc(100% - 40px), var(--page-width));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
  color: var(--text-subtle);
  font-size: 0.8rem;
}

.footer-brand {
  color: var(--text);
  font-size: 1rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

footer nav a:hover {
  color: var(--text);
}

footer > p {
  margin: 0;
  text-align: right;
}

.legal-page {
  width: min(calc(100% - 40px), 780px);
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: 70px 0 100px;
}

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

.legal-updated {
  color: var(--text-subtle);
}

.legal-page section {
  margin-top: 44px;
}

.legal-page section h2 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.legal-page section p,
.legal-page section li {
  color: var(--text-muted);
}

.legal-page a {
  color: var(--accent);
}

.pending-page {
  display: flex;
  width: min(calc(100% - 40px), 760px);
  min-height: calc(100vh - 72px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
  padding: 70px 0;
}

.pending-page > img {
  margin-bottom: 30px;
}

.pending-page h1 {
  max-width: 700px;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
}

.pending-page > p:not(.eyebrow) {
  max-width: 570px;
  color: var(--text-muted);
}

.pending-page .button {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .hero,
  .insight-feature,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .phone-stage {
    min-height: 630px;
  }

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

  .step-grid article {
    min-height: auto;
  }

  .step-grid article > span {
    margin-bottom: 36px;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  footer nav {
    justify-content: flex-start;
  }

  footer > p {
    text-align: left;
  }
}

@media (max-width: 580px) {
  .section {
    padding: 70px 0;
  }

  .site-header {
    min-height: 64px;
  }

  .header-link {
    padding: 7px 11px;
    font-size: 0.76rem;
  }

  h1 {
    font-size: clamp(3.3rem, 17vw, 5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .phone-stage {
    min-height: 565px;
  }

  .phone {
    width: 240px;
    min-height: 500px;
    border-radius: 32px;
    padding: 18px 15px;
  }

  .phone-feed {
    left: 0;
  }

  .phone-insight {
    right: 0;
  }

  .question-card {
    min-height: 290px;
  }

  .question-card h2 {
    font-size: 1.2rem;
  }

  .release-details {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
