@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;
  overflow-x: hidden;
  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: minmax(0, 1fr);
  gap: 48px;
}

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

.insight-demo {
  width: min(100%, 920px);
  min-width: 0;
  margin: 0;
}

.insight-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.insight-demo-header > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.insight-demo-header > div span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insight-demo-header strong {
  font-size: 1.25rem;
}

.sway-space-demo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 69% 39%, rgb(56 189 248 / 18%), transparent 34%),
    linear-gradient(145deg, rgb(19 24 27 / 98%), rgb(9 13 16 / 98%));
  box-shadow: 0 24px 70px rgb(0 0 0 / 24%);
}

.sway-demo-axis {
  position: absolute;
  z-index: 1;
  background: var(--border);
}

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

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

.sway-demo-label {
  position: absolute;
  z-index: 5;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.sway-demo-label-top,
.sway-demo-label-bottom {
  right: 0;
  left: 0;
  text-align: center;
}

.sway-demo-label-top {
  top: 8px;
}

.sway-demo-label-bottom {
  bottom: 8px;
}

.sway-demo-label-left,
.sway-demo-label-right {
  top: 50%;
  width: 96px;
  text-align: center;
}

.sway-demo-label-left {
  left: -34px;
  transform: translateY(-50%) rotate(-90deg);
}

.sway-demo-label-right {
  right: -34px;
  transform: translateY(-50%) rotate(90deg);
}

.density-field {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--accent);
  border-radius: 46% 54% 58% 42% / 48% 38% 62% 52%;
  transform: rotate(-8deg);
}

.density-field-outer {
  top: 17%;
  left: 51%;
  width: 38%;
  height: 49%;
  background: rgb(56 189 248 / 7%);
  opacity: 0.44;
}

.density-field-middle {
  top: 23%;
  left: 57%;
  width: 27%;
  height: 37%;
  background: rgb(56 189 248 / 11%);
  opacity: 0.62;
}

.density-field-inner {
  top: 29%;
  left: 63%;
  width: 15%;
  height: 23%;
  background: rgb(56 189 248 / 17%);
  opacity: 0.8;
}

.sway-demo-point,
.sway-demo-you {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-subtle);
  opacity: 0.55;
}

.point-1 {
  top: 31%;
  left: 64%;
}

.point-2 {
  top: 43%;
  left: 71%;
}

.point-3 {
  top: 51%;
  left: 62%;
}

.point-4 {
  top: 27%;
  left: 75%;
}

.point-5 {
  top: 38%;
  left: 80%;
}

.point-6 {
  top: 57%;
  left: 73%;
}

.point-7 {
  top: 35%;
  left: 55%;
}

.point-8 {
  top: 47%;
  left: 85%;
}

.sway-demo-you {
  top: 25%;
  left: 69%;
  width: 17px;
  height: 17px;
  border: 2px solid var(--text);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgb(56 189 248 / 12%);
  opacity: 1;
}

.sway-demo-you-label {
  position: absolute;
  top: calc(25% - 31px);
  left: calc(69% - 12px);
  z-index: 5;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-raised);
  padding: 3px 7px;
  font-size: 0.7rem;
  font-weight: 700;
}

.sway-demo-center {
  position: absolute;
  top: 43%;
  left: 70%;
  z-index: 4;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
}

.sway-demo-center::before,
.sway-demo-center::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--danger);
  content: "";
  transform: translate(-50%, -50%);
}

.sway-demo-center::before {
  width: 28px;
  height: 1px;
}

.sway-demo-center::after {
  width: 1px;
  height: 28px;
}

.sway-demo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  color: var(--text-subtle);
  font-size: 0.72rem;
}

.sway-demo-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-subtle);
  opacity: 0.65;
}

.legend-point-you {
  border: 1px solid var(--text);
  background: var(--accent);
  opacity: 1;
}

.legend-center {
  position: relative;
  width: 10px;
  height: 10px;
}

.legend-center::before,
.legend-center::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--danger);
  content: "";
  transform: translate(-50%, -50%);
}

.legend-center::before {
  width: 10px;
  height: 1px;
}

.legend-center::after {
  width: 1px;
  height: 10px;
}

.notification-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  border-top: 1px solid var(--border);
  padding-top: 56px;
  padding-bottom: 64px;
}

.notification-feature-heading {
  max-width: 500px;
}

.notification-feature-heading p:last-child {
  margin: 18px 0 0;
  color: var(--text-muted);
}

.notification-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.notification-preview {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 15px 16px;
}

.notification-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 5px rgb(251 113 133 / 10%);
}

.notification-preview-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.notification-preview-copy strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.notification-preview-copy > span {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.notification-preview time {
  color: var(--text-subtle);
  font-size: 0.7rem;
  font-weight: 600;
}

.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-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  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;
}

.release-details-ios {
  margin-top: 26px;
}

.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 ol {
  margin: 14px 0 0;
}

.ios-note .button {
  width: 100%;
  margin-top: 14px;
}

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;
  }

  .notification-feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .notification-list {
    grid-template-columns: repeat(2, minmax(0, 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;
  }

  .notification-feature {
    gap: 26px;
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .notification-list {
    grid-template-columns: 1fr;
  }

  .notification-preview {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 13px;
  }

  .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;
  }

  .download-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;
  }
}
