:root {
  --navy-950: #041320;
  --navy-900: #071d32;
  --navy-800: #0d2b49;
  --navy-700: #164264;
  --orange: #ff6042;
  --orange-dark: #d94229;
  --mint: #bdf3dc;
  --cream: #f7f4ed;
  --paper: #fffdf8;
  --ink: #112133;
  --muted: #5c6875;
  --line: #dce1df;
  --radius: 1.5rem;
  --shadow: 0 24px 70px rgba(4, 19, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: white;
  color: var(--navy-950);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 10;
  width: 100%;
  color: white;
}

.nav-wrap {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 0.8rem;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-header nav a,
.site-footer nav a {
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a {
  color: rgba(255, 255, 255, 0.76);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: white;
}

.hero {
  display: grid;
  min-height: 760px;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 4rem;
  padding-top: 8rem;
  padding-bottom: 5rem;
  color: white;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: 760px;
  background:
    radial-gradient(circle at 78% 34%, rgba(34, 115, 157, 0.54), transparent 25rem),
    linear-gradient(140deg, var(--navy-950), var(--navy-900) 54%, #0a3552);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 760px;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent, black 55%, transparent);
  content: "";
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.mint {
  color: var(--mint);
}

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

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.25rem, 6vw, 5.85rem);
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--mint);
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.app-store-button {
  display: inline-flex;
  min-width: 186px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.85rem;
  background: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  color: var(--navy-950);
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.05;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-store-button:hover,
.app-store-button:focus-visible {
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.app-store-button.coming-soon {
  cursor: default;
}

.app-store-button.coming-soon:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transform: none;
}

.app-store-button small {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.apple-mark {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50% 50% 47% 47%;
  background: currentColor;
  color: var(--navy-950);
  font-size: 0;
}

.apple-mark::after {
  width: 0.74rem;
  height: 0.92rem;
  border-radius: 50% 50% 44% 44%;
  background: white;
  content: "";
}

.text-link,
.arrow-link {
  font-weight: 760;
  text-underline-offset: 0.28em;
}

.text-link {
  color: white;
}

.availability {
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.hero-visual::before {
  position: absolute;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(189, 243, 220, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(189, 243, 220, 0.035), 0 0 0 150px rgba(189, 243, 220, 0.025);
  content: "";
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: min(330px, 78vw);
  padding: 1.45rem;
  border: 8px solid #03101c;
  border-radius: 3rem;
  background: #f6f3eb;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.42);
  color: var(--ink);
  transform: rotate(2.5deg);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  font-weight: 760;
}

.live-pill {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #fee2dc;
  color: var(--orange-dark);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

.primary-metric {
  padding: 1.3rem;
  border-radius: 1.3rem;
  background: var(--navy-900);
  color: white;
  text-align: center;
}

.primary-metric span,
.metric-grid span {
  display: block;
  color: #75818c;
  font-size: 0.72rem;
  font-weight: 650;
}

.primary-metric span {
  color: rgba(255, 255, 255, 0.58);
}

.primary-metric strong {
  font-size: 3rem;
  letter-spacing: -0.05em;
}

.primary-metric small,
.metric-grid small {
  margin-left: 0.25rem;
  color: #8794a0;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.metric-grid > div {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
}

.metric-grid strong {
  font-size: 1.2rem;
}

.metric-grid .heart {
  color: var(--orange-dark);
}

.run-line {
  display: flex;
  height: 42px;
  align-items: end;
  gap: 5px;
  margin: 1.1rem 0;
}

.run-line i {
  flex: 1;
  border-radius: 3px;
  background: var(--mint);
}

.run-line i:nth-child(1) { height: 28%; }
.run-line i:nth-child(2) { height: 48%; }
.run-line i:nth-child(3) { height: 38%; }
.run-line i:nth-child(4) { height: 77%; }
.run-line i:nth-child(5) { height: 58%; }
.run-line i:nth-child(6) { height: 92%; }
.run-line i:nth-child(7) { height: 68%; }

.recording {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  text-align: center;
}

.recording span {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #2bbd79;
}

.signal-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 150px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 1rem;
  background: rgba(9, 42, 68, 0.8);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.signal-card strong,
.signal-card small {
  display: block;
}

.signal-card strong {
  font-size: 0.76rem;
}

.signal-card small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.65rem;
}

.signal-treadmill {
  top: 5.5rem;
  left: 0;
}

.signal-heart {
  right: -1rem;
  bottom: 6.5rem;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(189, 243, 220, 0.12);
}

.heart-icon {
  color: var(--orange);
  font-size: 1.15rem;
}

.proof-strip {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid p {
  margin: 0;
  padding: 1.7rem 2.2rem;
  border-right: 1px solid var(--line);
}

.proof-grid p:first-child {
  border-left: 1px solid var(--line);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  font-size: 0.9rem;
}

.proof-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding-block: clamp(5.5rem, 10vw, 8.5rem);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.section-heading.compact {
  margin-bottom: 2.5rem;
}

.section-heading h2,
.privacy-grid h2,
.cta-card h2,
.legal-hero h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.08rem;
}

.step-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  counter-reset: steps;
}

.step-grid li {
  min-height: 260px;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-right: 0;
}

.step-grid li:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.step-grid li:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.step-number {
  display: block;
  margin-bottom: 3.4rem;
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 750;
}

.step-grid h3,
.feature-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.step-grid p,
.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.features {
  background: var(--cream);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-card {
  min-height: 300px;
  padding: 2.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.feature-card.featured {
  background: var(--navy-900);
  color: white;
}

.feature-card.featured p {
  color: rgba(255, 255, 255, 0.67);
}

.feature-symbol {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 4.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--navy-900);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.compatibility-icon {
  position: relative;
  display: flex;
  width: 1.55rem;
  align-items: center;
  justify-content: space-between;
}

.compatibility-icon::before {
  position: absolute;
  right: 0.25rem;
  left: 0.25rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.compatibility-icon i {
  z-index: 1;
  width: 0.42rem;
  height: 0.42rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--mint);
}

.compatibility-icon i:nth-child(2) {
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
}

.heart-symbol {
  background: #fee2dc;
  color: var(--orange-dark);
}

.security-symbol {
  background: #dcebf7;
}

.lock-icon {
  position: relative;
  width: 1.2rem;
  height: 1rem;
  margin-top: 0.35rem;
  border: 2px solid var(--navy-900);
  border-radius: 0.3rem;
}

.lock-icon::before {
  position: absolute;
  bottom: calc(100% - 1px);
  left: 50%;
  width: 0.68rem;
  height: 0.62rem;
  border: 2px solid var(--navy-900);
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  content: "";
  transform: translateX(-50%);
}

.lock-icon::after {
  position: absolute;
  top: 0.32rem;
  left: 50%;
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: var(--navy-900);
  content: "";
  transform: translateX(-50%);
}

.feature-card .fine-print {
  margin-top: 1rem;
  font-size: 0.73rem;
}

.privacy-section {
  background: var(--navy-900);
  color: white;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 7rem;
}

.privacy-lede {
  margin-bottom: 2rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 620;
  line-height: 1.35;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}

.check-list li::before {
  color: var(--mint);
  content: "✓";
  font-weight: 850;
}

.privacy-note {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.arrow-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--mint);
}

.final-cta {
  background: var(--orange);
}

.cta-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.cta-card img {
  border-radius: 1.45rem;
  box-shadow: 0 15px 32px rgba(101, 25, 12, 0.2);
}

.cta-card .eyebrow {
  color: #591a10;
}

.cta-card h2 {
  margin: 0;
  color: var(--navy-950);
}

.site-footer {
  padding-block: 2.6rem;
  background: var(--navy-950);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-grid > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.site-footer nav {
  justify-content: flex-end;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: white;
}

/* Legal pages */
.legal-page {
  background: var(--cream);
}

.legal-page .site-header {
  position: relative;
  background: var(--navy-950);
}

.legal-hero {
  padding: 5rem 0 3.5rem;
  background: var(--navy-900);
  color: white;
}

.legal-hero p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 1.1rem;
}

.legal-document {
  display: grid;
  width: min(1040px, calc(100% - 2.5rem));
  margin: 4rem auto 6rem;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 4rem;
}

.legal-aside {
  align-self: start;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
}

.legal-aside strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.legal-copy h2 {
  margin: 3rem 0 1rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p,
.legal-copy li {
  color: #364352;
}

.legal-copy li + li {
  margin-top: 0.45rem;
}

.legal-copy a {
  color: #115c8a;
  font-weight: 650;
  text-underline-offset: 0.2em;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  background: var(--navy-950);
  color: white;
  text-align: center;
}

.error-card img {
  width: 88px;
  margin: 0 auto 2rem;
  border-radius: 1.4rem;
}

.error-card h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 10vw, 6rem);
}

.error-card p {
  color: rgba(255, 255, 255, 0.65);
}

.error-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--mint);
  font-weight: 750;
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 10rem;
    padding-bottom: 6rem;
  }

  .hero::before,
  .hero::after {
    height: 1200px;
  }

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

  .hero-visual {
    min-height: 480px;
  }

  .signal-treadmill {
    left: 8%;
  }

  .signal-heart {
    right: 8%;
  }

  .proof-strip {
    margin-top: 0;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-card {
    grid-template-columns: auto 1fr;
  }

  .cta-card .app-store-button {
    grid-column: 2;
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .footer-grid > p {
    display: none;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 1.5rem, 1140px);
  }

  .site-header nav {
    gap: 0.8rem;
  }

  .site-header nav a {
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 8.5rem;
  }

  .hero::before,
  .hero::after {
    height: 1150px;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 4.4rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 445px;
  }

  .phone-frame {
    width: 285px;
    padding: 1.15rem;
  }

  .signal-card {
    min-width: 132px;
    padding: 0.65rem 0.78rem;
  }

  .signal-treadmill {
    top: 1rem;
    left: 0;
  }

  .signal-heart {
    right: 0;
    bottom: 2.2rem;
  }

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

  .proof-grid p,
  .proof-grid p:first-child {
    border-right: 1px solid var(--line);
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .proof-grid p:last-child {
    border-bottom: 1px solid var(--line);
  }

  .step-grid li,
  .step-grid li:first-child,
  .step-grid li:last-child {
    min-height: 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 0;
  }

  .step-grid li:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .step-grid li:last-child {
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .step-number,
  .feature-symbol {
    margin-bottom: 2rem;
  }

  .feature-card {
    min-height: 0;
  }

  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-card img,
  .cta-card .app-store-button {
    grid-column: auto;
    justify-self: center;
  }

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

  .footer-brand {
    justify-self: center;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 0.6rem;
  }

  .legal-document {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-aside {
    order: 2;
  }
}

@media (max-width: 460px) {
  .site-header .brand > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

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

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