:root {
  color-scheme: dark;
  --page: #1d1d1fff;
  --surface: #1c1c1e;
  --surface-soft: #2c2c2e;
  --text: #f5f5f7;
  --text-muted: #a8a8b3;
  --line: #2d2d38;
  --dark: #050507;
  --accent: #7c8cff;
  --accent-warm: #f5b84b;
  --shadow-soft: 0 18px 48px rgb(17 17 20 / 10%);
  --shadow-phone: 0 22px 60px rgb(17 17 20 / 22%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgb(124 140 255 / 24%);
}

main {
  position: relative;
  overflow: hidden;
  background: var(--page);
  isolation: isolate;
}

main::before,
main::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
}

main::before {
  top: 112px;
  right: -14%;
  width: 48%;
  height: 240px;
  background: linear-gradient(112deg, transparent, rgb(124 140 255 / 8%), transparent);
  filter: blur(48px);
}

main::after {
  bottom: 92px;
  left: -12%;
  width: 44%;
  height: 190px;
  background: linear-gradient(76deg, transparent, rgb(245 184 75 / 6%), transparent);
  filter: blur(46px);
}

main > section {
  position: relative;
  z-index: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(29 29 31 / 82%);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 780;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 18px rgb(17 17 20 / 16%);
}

.store-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border-radius: 8px;
  transition: filter 160ms ease, transform 160ms ease;
}

.store-badge:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.testflight-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--dark);
  color: #ffffff;
  font-size: 16px;
  font-weight: 720;
  transition: filter 160ms ease, transform 160ms ease;
}

.testflight-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.nav-links {
  display: none;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--dark);
  color: #ffffff;
  font-size: 14px;
  font-weight: 720;
}

.nav-download:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.hero {
  padding: 72px 0 82px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: 46px;
}

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

h1,
h2 {
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: 72px;
  line-height: 0.96;
  font-weight: 860;
}

.hero-subtitle {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 21px;
  line-height: 1.45;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 720;
}

.hero-screens {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 10px 0 6px;
}

.phone-shot {
  position: relative;
  z-index: 1;
  flex: 0 0 clamp(168px, 16.5vw, 230px);
  margin-bottom: 0;
}

.phone-shot + .phone-shot {
  margin-left: clamp(-42px, -3.4vw, -28px);
}

.shot-share {
  transform: translateY(26px) rotate(-3deg);
}

.shot-home {
  z-index: 3;
  flex-basis: clamp(188px, 18vw, 258px);
}

.shot-details {
  z-index: 2;
  transform: translateY(24px) rotate(3deg);
}

.phone-frame {
  overflow: hidden;
  border: clamp(5px, 0.7vw, 9px) solid var(--dark);
  border-radius: clamp(26px, 3vw, 42px);
  background: var(--dark);
  box-shadow: var(--shadow-phone);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: clamp(20px, 2.25vw, 33px);
}

.how-it-works {
  padding: 58px 0 54px;
}

.features {
  padding: 74px 0 90px;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  max-width: 650px;
  margin: 0 auto;
  font-size: 48px;
  line-height: 1.04;
  font-weight: 820;
}

.section-subtitle {
  max-width: 650px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.48;
}

.steps-list {
  display: grid;
  gap: 26px;
  max-width: 980px;
  margin: 0 auto;
}

.step-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.step-number {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgb(124 140 255 / 12%);
  color: var(--accent);
  font-size: 14px;
  font-weight: 820;
}

.step-item p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.feature-list {
  display: grid;
  gap: 26px;
  max-width: 760px;
  margin: 0 auto;
}

.split-section-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1fr);
  gap: 68px;
  align-items: start;
}

.split-section-heading {
  margin-bottom: 0;
  text-align: left;
}

.split-section-heading h2,
.split-section-heading .section-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.split-section-layout .steps-list,
.split-section-layout .feature-list {
  max-width: none;
  margin: 6px 0 0;
}

.feature-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.feature-icon {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgb(124 140 255 / 12%);
  color: var(--accent);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 780;
}

.feature-item p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: var(--page);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.site-footer p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 680;
}

.footer-layout .footer-links {
  width: auto;
  margin: 0;
  justify-content: flex-end;
}

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

.legal-header {
  padding: 24px 0 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
}

.back-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.legal-main {
  min-height: calc(100svh - 135px);
  padding: 52px 0 92px;
}

.legal-content {
  max-width: 780px;
}

.legal-content h1 {
  margin-bottom: 18px;
  font-size: 58px;
}

.legal-content h2 {
  margin: 44px 0 14px;
  font-size: 30px;
  line-height: 1.16;
}

.legal-content h3 {
  margin: 32px 0 12px;
  font-size: 22px;
}

.legal-content p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 19px;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 18px;
}

.legal-content code {
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.legal-content p code,
.legal-content li code {
  padding: 2px 5px;
}

.legal-content pre {
  overflow-x: auto;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.legal-content pre code {
  background: transparent;
}

.table-scroll {
  overflow-x: auto;
  margin: 18px 0 28px;
}

.legal-content table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: var(--text-muted);
  font-size: 15px;
}

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

.legal-content th {
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 980px) {
  .hero {
    padding: 54px 0 68px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  h1 {
    font-size: 64px;
  }

  .hero-screens {
    justify-content: flex-start;
  }

  .split-section-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split-section-heading {
    text-align: center;
  }

  .split-section-heading h2,
  .split-section-heading .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .split-section-layout .steps-list,
  .split-section-layout .feature-list {
    max-width: 760px;
    margin: 0 auto;
  }

}

@media (max-width: 680px) {
  .container,
  .nav,
  .footer-links {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 66px;
  }

  .brand span {
    display: none;
  }

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

  .hero {
    padding: 34px 0 54px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: 48px;
  }

  .hero-subtitle {
    margin-bottom: 22px;
    font-size: 18px;
  }

  h2 {
    font-size: 36px;
  }

  .legal-content h1 {
    font-size: 44px;
  }

  .hero-screens {
    position: relative;
    justify-content: center;
    min-height: clamp(400px, 122vw, 520px);
    padding: 12px 0 0;
    overflow: visible;
  }

  .phone-shot {
    position: absolute;
    top: 18px;
    flex: none;
    width: clamp(138px, 38vw, 176px);
    margin: 0;
  }

  .phone-shot + .phone-shot {
    margin-left: 0;
  }

  .shot-share {
    left: max(0px, calc(50% - 178px));
    transform: translateY(42px) rotate(-5deg);
  }

  .shot-home {
    left: 50%;
    width: clamp(174px, 53vw, 224px);
    transform: translateX(-50%);
  }

  .shot-details {
    right: max(0px, calc(50% - 178px));
    transform: translateY(42px) rotate(5deg);
  }

  .how-it-works {
    padding: 44px 0 36px;
  }

  .features {
    padding: 58px 0 68px;
  }

  .footer-layout {
    display: grid;
  }

  .footer-layout .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .cta-row .store-badge img {
    width: 164px;
    height: auto;
  }

  h1 {
    font-size: 44px;
  }

  .hero-screens {
    min-height: clamp(390px, 126vw, 500px);
  }

  .phone-shot {
    width: clamp(126px, 40vw, 154px);
  }

  .shot-share {
    left: 0;
  }

  .shot-home {
    width: clamp(164px, 55vw, 206px);
  }

  .shot-details {
    right: 0;
  }
}
