:root {
  --porcelain: #fbf7ef;
  --porcelain-2: #fffdf8;
  --sand: #ece1d2;
  --ink: #161513;
  --navy: #073f4a;
  --muted: #6c665d;
  --teal: #0b7a73;
  --teal-2: #2fa39a;
  --pink: #d96f97;
  --pink-2: #f3c8d7;
  --line: rgba(22, 21, 19, 0.12);
  --line-strong: rgba(7, 63, 74, 0.2);
  --surface: rgba(255, 253, 248, 0.82);
  --shadow: 0 34px 90px rgba(20, 41, 38, 0.2);
  --shadow-soft: 0 18px 48px rgba(20, 41, 38, 0.11);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.98) 0%, rgba(251, 247, 239, 0.96) 46%, rgba(244, 233, 224, 0.92) 100%),
    var(--porcelain);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.62) 30%, transparent 48%),
    repeating-linear-gradient(90deg, rgba(7, 63, 74, 0.035) 0 1px, transparent 1px 92px);
  opacity: 0.8;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 72%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  top: -12vh;
  right: -8vw;
  width: 58vw;
  height: 120vh;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(124deg, transparent 0 28%, rgba(255, 255, 255, 0.72) 32%, rgba(217, 111, 151, 0.14) 43%, transparent 58%),
    linear-gradient(156deg, transparent 0 46%, rgba(11, 122, 115, 0.12) 54%, transparent 68%);
  filter: blur(8px);
  opacity: 0.9;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(18px);
}

.site-header.compact {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  width: fit-content;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: rgba(22, 21, 19, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.footer a {
  transition: color 180ms ease;
}

.nav a:hover,
.footer a:hover,
.legal a:hover {
  color: var(--teal);
}

.nav-cta {
  justify-self: end;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ed8aa5, var(--pink));
  box-shadow: 0 18px 42px rgba(217, 111, 151, 0.28);
  font-size: 14px;
  font-weight: 800;
}

.section-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 820px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  align-items: center;
  gap: 56px;
  padding: 32px 0 78px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: 94px;
}

h2 {
  font-size: 64px;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero h1 span {
  display: inline-block;
  will-change: transform, opacity;
}

.hero h1 span:nth-child(4) {
  color: var(--pink);
}

.hero h1 span:nth-child(1),
.section-heading h2::first-line,
.split-copy h2::first-line,
.trust-copy h2::first-line {
  color: var(--navy);
}

.hero p,
.section-heading p,
.split-copy p,
.trust-copy p,
.download-card p,
.legal p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero p {
  max-width: 560px;
  margin: 28px 0 0;
}

.hero-actions,
.store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.button,
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 17px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 850;
}

.button.primary,
.store-button {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  box-shadow: 0 22px 48px rgba(11, 122, 115, 0.26);
}

.button.text {
  color: var(--navy);
  padding-inline: 8px;
}

.button.text::after {
  content: "↗";
  margin-left: 12px;
}

.micro-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 610px;
  margin-top: 52px;
}

.micro-proof span {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 2px solid rgba(11, 122, 115, 0.2);
  color: var(--muted);
  font-size: 14px;
}

.micro-proof strong {
  color: var(--navy);
  font-size: 15px;
}

.hero-stage {
  position: relative;
  min-height: 690px;
  isolation: isolate;
}

.stage-light {
  position: absolute;
  left: 3%;
  right: -8%;
  bottom: 14px;
  height: 180px;
  z-index: -1;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(236, 225, 210, 0.1), rgba(213, 201, 187, 0.82), rgba(236, 225, 210, 0.12));
  transform: perspective(680px) rotateX(70deg);
  box-shadow: 0 48px 100px rgba(22, 21, 19, 0.12);
}

.phone {
  position: relative;
  margin: 0;
  width: min(326px, 42vw);
  border-radius: 52px;
  padding: 12px;
  background: linear-gradient(145deg, #0d0d0c, #3c3b37 48%, #070706);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  will-change: transform, opacity;
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  background: #151514;
  border-radius: 12px;
}

.phone::before {
  width: 4px;
  height: 74px;
  left: -3px;
  top: 142px;
}

.phone::after {
  width: 4px;
  height: 96px;
  right: -3px;
  top: 176px;
}

.phone-screen {
  overflow: hidden;
  aspect-ratio: 1179 / 2556;
  border-radius: 42px;
  background: var(--porcelain);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-home {
  position: absolute;
  left: 5%;
  top: 36px;
  z-index: 1;
  transform: rotate(-4deg);
}

.phone-results {
  position: absolute;
  right: 0;
  top: 116px;
  z-index: 2;
  width: min(304px, 39vw);
  transform: rotate(7deg);
}

.how {
  position: relative;
  padding: 100px 0 116px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-heading p {
  max-width: 600px;
  margin: 22px 0 0;
}

.flow-line {
  position: absolute;
  left: 50%;
  bottom: 130px;
  width: min(1000px, calc(100% - 96px));
  transform: translateX(-50%);
  pointer-events: none;
}

.flow-line path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 2;
  stroke-dasharray: 8 10;
  stroke-linecap: round;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.step-card span,
.trust-rail span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.66);
  font-weight: 900;
}

.step-card p,
.trust-rail p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.scroll-story {
  position: relative;
  height: 420vh;
  min-height: 2600px;
}

.story-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: 70px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
}

.story-copy {
  position: relative;
  min-height: 360px;
}

.story-panel {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 540px;
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
}

.story-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.story-panel h2 {
  color: var(--navy);
}

.story-panel p {
  color: var(--muted);
  font-size: 20px;
}

.story-device {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 720px;
}

.story-device::before {
  content: "";
  position: absolute;
  width: min(520px, 86vw);
  height: min(520px, 86vw);
  border: 1px solid rgba(11, 122, 115, 0.16);
  border-radius: 50%;
  transform: rotateX(62deg) rotateZ(-10deg);
}

.story-phone {
  width: min(346px, 74vw);
}

.screen-stack {
  position: relative;
}

.screen-stack img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  will-change: opacity, transform;
}

.screen-stack img:first-child {
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.story-dots {
  position: absolute;
  right: 12%;
  top: 24%;
  display: grid;
  gap: 10px;
}

.story-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(7, 63, 74, 0.2);
  transition: height 180ms ease, background 180ms ease;
}

.story-dots span.is-active {
  height: 28px;
  background: var(--teal);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: 76px;
  padding: 116px 0;
}

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

.split-copy p {
  margin: 26px 0 0;
}

.cinema-frame {
  min-height: 610px;
  display: grid;
  place-items: center;
  border-radius: 46px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.65), rgba(243, 200, 215, 0.26)),
    linear-gradient(160deg, transparent, rgba(11, 122, 115, 0.1));
  box-shadow: var(--shadow-soft);
}

.phone-single {
  width: min(330px, 70vw);
}

.trust {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: start;
  gap: 54px;
  padding: 118px 0;
}

.trust-copy {
  position: sticky;
  top: 116px;
}

.trust-copy a,
.footer a[href*="71labs"],
.legal a {
  color: var(--teal);
  font-weight: 850;
}

.trust-rail {
  display: grid;
  gap: 18px;
}

.trust-rail div {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow-soft);
}

.trust-rail strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
}

.download {
  padding: 100px 0 118px;
}

.download-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  align-content: center;
  padding: 58px;
  border-radius: 42px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(7, 63, 74, 0.96), rgba(11, 122, 115, 0.9) 52%, rgba(217, 111, 151, 0.86)),
    var(--navy);
  box-shadow: var(--shadow);
}

.download-card::after {
  content: "";
  position: absolute;
  inset: -35% -20% auto auto;
  width: 70%;
  height: 140%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.26) 45%, transparent 64%);
  transform: rotate(12deg);
}

.download-card h2,
.download-card p,
.download-card .store-actions {
  position: relative;
  z-index: 1;
}

.download-card h2,
.download-card p {
  max-width: 600px;
}

.download-card p {
  color: rgba(255, 255, 255, 0.84);
}

.download-card .store-button {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.download-card .store-button.subtle {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 12px 0 0;
  color: var(--muted);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.legal {
  max-width: 850px;
  padding: 82px 0 110px;
}

.legal h1 {
  font-size: 76px;
}

.legal-date {
  margin: 18px 0 56px;
}

.legal section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.legal h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.2;
}

.legal p {
  font-size: 18px;
}

.js [data-reveal],
.js .site-header[data-reveal] {
  opacity: 0;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 76px;
  }

  h2 {
    font-size: 54px;
  }

  .hero,
  .story-stage,
  .split-section,
  .trust {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    padding-top: 44px;
  }

  .hero-stage {
    min-height: 640px;
  }

  .story-copy {
    min-height: 260px;
  }

  .story-device {
    min-height: 620px;
  }

  .trust-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header,
  .section-shell,
  .story-stage,
  .footer {
    width: min(100% - 30px, var(--max));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-top: 18px;
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 29px;
  }

  .brand small {
    font-size: 11px;
  }

  .nav-cta {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero {
    min-height: auto;
    display: block;
    padding: 42px 0 54px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 42px;
  }

  .hero p,
  .section-heading p,
  .split-copy p,
  .trust-copy p,
  .download-card p,
  .story-panel p {
    font-size: 17px;
  }

  .hero-actions,
  .store-actions {
    gap: 12px;
  }

  .button,
  .store-button {
    min-height: 50px;
    padding-inline: 18px;
  }

  .micro-proof {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .hero-stage {
    min-height: 470px;
    margin-top: 24px;
  }

  .stage-light {
    height: 120px;
  }

  .phone {
    border-radius: 40px;
    padding: 9px;
  }

  .phone-screen {
    border-radius: 32px;
  }

  .phone-home {
    width: min(220px, 56vw);
    left: -12px;
    top: 6px;
  }

  .phone-results {
    width: min(208px, 53vw);
    right: -12px;
    top: 70px;
  }

  .how,
  .split-section,
  .trust,
  .download {
    padding: 70px 0;
  }

  .flow-line {
    display: none;
  }

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

  .step-card,
  .trust-rail div {
    min-height: auto;
    padding: 24px;
    border-radius: 24px;
  }

  .scroll-story {
    height: auto;
    min-height: 0;
  }

  .story-stage {
    position: relative;
    min-height: auto;
    padding: 70px 0;
  }

  .story-copy {
    min-height: 300px;
  }

  .story-panel h2 {
    max-width: 330px;
  }

  .story-device {
    min-height: 560px;
  }

  .story-dots {
    right: 8px;
    top: 18%;
  }

  .cinema-frame {
    min-height: 560px;
    border-radius: 30px;
  }

  .trust {
    gap: 30px;
  }

  .download-card {
    min-height: 360px;
    padding: 30px;
    border-radius: 30px;
  }

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

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

  .legal h1 {
    font-size: 52px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 38px;
  }

  .site-header .nav-cta {
    display: none;
  }

  .hero-stage {
    min-height: 430px;
  }
}

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

  .js [data-reveal],
  .js .site-header[data-reveal] {
    opacity: 1;
  }

  .story-panel {
    position: static;
    opacity: 1;
    transform: none;
    margin-bottom: 28px;
  }

  .scroll-story {
    height: auto;
    min-height: 0;
  }

  .story-stage {
    position: relative;
    min-height: auto;
  }

  .story-copy {
    min-height: 0;
  }
}
