:root {
  --bg: #f7f8fd;
  --surface: #ffffff;
  --surface-soft: #eef1fa;
  --ink: #202532;
  --ink-strong: #090d16;
  --muted: #626a7b;
  --muted-soft: #8b93a5;
  --line: rgba(32, 37, 50, 0.12);
  --line-strong: rgba(32, 37, 50, 0.22);
  --blue: #4e73b1;
  --blue-deep: #223c6d;
  --blue-soft: #adc7ff;
  --purple: #d9beff;
  --green: #6d9440;
  --rose: #d84d77;
  --shadow: 0 28px 80px rgba(41, 52, 76, 0.18);
  --shadow-soft: 0 18px 48px rgba(41, 52, 76, 0.12);
  --container: min(1160px, calc(100vw - 2rem));
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfbff 0%, var(--bg) 48%, #eef2f9 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 20;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: var(--ink-strong);
  color: #fff;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  width: var(--container);
  margin: 0 auto;
  padding: 1.15rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-strong);
  text-decoration: none;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.72rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(41, 52, 76, 0.1));
}

.brand-lockup > span,
.brand-name,
h1,
h2,
h3,
.store-button strong {
  font-family: "Space Grotesk", sans-serif;
}

.brand-lockup > span,
.brand-name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-tag {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 32px rgba(41, 52, 76, 0.08);
  backdrop-filter: blur(16px);
}

.site-nav a {
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink-strong);
  background: rgba(78, 115, 177, 0.08);
  border-radius: 999px;
}

main {
  max-width: 100vw;
  overflow: clip;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 86svh;
  padding: 7.2rem max(1rem, calc((100vw - 1160px) / 2)) 3.75rem;
  display: grid;
  grid-template-columns: minmax(19rem, 0.72fr) minmax(28rem, 1.28fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96) 0 34%, rgba(244, 247, 255, 0.86) 34% 100%),
    linear-gradient(180deg, rgba(173, 199, 255, 0.22), rgba(217, 190, 255, 0.16));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 24%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-copy {
  width: min(100%, 30rem);
  max-width: 30rem;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.45rem 0 0.85rem;
  color: var(--ink-strong);
  font-size: clamp(4.4rem, 10vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 28rem;
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.store-button {
  display: inline-flex;
  min-width: 11.4rem;
  min-height: 4rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-strong);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(78, 115, 177, 0.34);
  background: #fff;
  box-shadow: var(--shadow);
}

.store-button-primary {
  background: var(--ink-strong);
  color: #fff;
  border-color: var(--ink-strong);
}

.store-button-primary:hover,
.store-button-primary:focus-visible {
  background: #151b28;
}

.store-kicker {
  color: currentColor;
  opacity: 0.68;
  font-size: 0.74rem;
  font-weight: 700;
}

.store-button strong {
  font-size: 1.12rem;
  line-height: 1;
}

.hero-media {
  position: relative;
  min-height: min(60vw, 39rem);
  display: grid;
  place-items: center;
}

.phone-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 0.62rem solid #171d29;
  border-radius: 2.1rem;
  background: #f5f6fb;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.phone-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  left: 50%;
  width: 24%;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.72);
  transform: translateX(-50%);
}

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

.phone-frame-main {
  z-index: 3;
  width: clamp(17rem, 24vw, 21rem);
  aspect-ratio: 1080 / 2364;
}

.phone-frame-left,
.phone-frame-right {
  position: absolute;
  z-index: 2;
  width: clamp(12.6rem, 18vw, 15.5rem);
  aspect-ratio: 1080 / 2364;
}

.phone-frame-left {
  left: clamp(0rem, 2vw, 2rem);
  bottom: 1.5rem;
  transform: rotate(-7deg);
}

.phone-frame-right {
  right: clamp(0rem, 2vw, 2rem);
  top: 1.5rem;
  transform: rotate(6deg);
}

.phone-frame.is-tilting {
  box-shadow: 0 34px 96px rgba(41, 52, 76, 0.24);
}

.support-band,
.feature-strip,
.progress-story,
.photo-section,
.final-cta,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.support-band {
  padding: clamp(3rem, 8vw, 6rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0.55rem 0 0;
  color: var(--ink-strong);
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.support-content p,
.feature-copy p,
.story-copy p,
.photo-copy p,
.final-cta p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.support-content {
  display: grid;
  gap: 1rem;
}

.text-link {
  width: fit-content;
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.25em;
}

.feature-strip {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(17rem, 0.82fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.feature-media {
  min-height: 36rem;
  display: grid;
  place-items: center;
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(173, 199, 255, 0.42), rgba(255, 255, 255, 0.42) 48%, rgba(217, 190, 255, 0.38));
}

.phone-frame-detail {
  width: min(21rem, 82%);
  aspect-ratio: 1080 / 2364;
  transform: rotate(-3deg);
}

.feature-copy,
.story-copy,
.photo-copy {
  max-width: 36rem;
}

.feature-copy p,
.story-copy p,
.photo-copy p {
  margin-top: 1.2rem;
}

.progress-story {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(26rem, 1.18fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  border-top: 1px solid var(--line);
}

.story-screens {
  min-height: 42rem;
  position: relative;
}

.phone-frame-story {
  width: clamp(15rem, 23vw, 20rem);
  aspect-ratio: 1080 / 2364;
}

.phone-frame-offset {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: rotate(5deg);
}

.photo-section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(18rem, 0.58fr) minmax(22rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.landscape-shot {
  margin: 0;
  overflow: hidden;
  border: 0.62rem solid #171d29;
  border-radius: 2rem;
  background: #f5f6fb;
  box-shadow: var(--shadow);
  aspect-ratio: 1080 / 2364;
  max-height: 42rem;
  justify-self: center;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.landscape-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta {
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 241, 250, 0.92)),
    linear-gradient(90deg, rgba(173, 199, 255, 0.42), rgba(217, 190, 255, 0.3));
  box-shadow: var(--shadow-soft);
}

.final-cta h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.final-cta p {
  margin-top: 0.75rem;
  max-width: 32rem;
}

.store-actions-final {
  justify-content: flex-end;
}

.site-footer {
  padding: 1.4rem 0 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink-strong);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  animation: reveal-in 720ms ease both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:focus-visible {
  outline: 3px solid rgba(78, 115, 177, 0.72);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Legal pages use the same bright product language while preserving legal copy. */
.legal-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfbff 0%, var(--bg) 48%, #eef2f9 100%);
}

.legal-body .skip-link {
  background: var(--ink-strong);
  color: #fff;
}

.legal-shell {
  width: min(1040px, calc(100vw - 2rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0 2.6rem;
}

.legal-header .brand-lockup {
  color: var(--ink-strong);
}

.legal-header .brand-mark {
  filter: drop-shadow(0 10px 22px rgba(41, 52, 76, 0.12));
}

.legal-header .brand-tag {
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--ink-strong);
  border-color: rgba(78, 115, 177, 0.3);
  background: #fff;
  transform: translateY(-1px);
}

.legal-main {
  padding-bottom: 2rem;
}

.legal-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: clamp(1.35rem, 4vw, 3rem);
  border-radius: 2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 241, 250, 0.82)),
    linear-gradient(90deg, rgba(173, 199, 255, 0.28), rgba(217, 190, 255, 0.18));
  box-shadow: var(--shadow-soft);
}

.legal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.45rem;
  background: linear-gradient(90deg, var(--green), var(--blue-soft), var(--purple));
}

.legal-intro {
  margin-bottom: 2rem;
}

.legal-kicker {
  margin: 0 0 0.65rem;
  color: var(--blue);
}

.legal-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.legal-meta {
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.legal-meta p {
  margin: 0;
}

.legal-copy {
  color: var(--muted);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.legal-copy section + section {
  margin-top: 1.7rem;
}

.legal-copy h2 {
  margin: 0 0 0.7rem;
  color: var(--ink-strong);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.08;
}

.legal-copy p,
.legal-copy ul,
.legal-copy li {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.legal-copy p,
.legal-copy ul {
  margin: 0 0 0.95rem;
}

.legal-copy ul {
  padding-left: 1.15rem;
}

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

.legal-copy strong {
  color: var(--ink-strong);
}

.legal-copy a {
  color: var(--blue-deep);
  font-weight: 800;
  text-underline-offset: 0.2em;
}

@media (max-width: 1040px) {
  .hero,
  .support-band,
  .feature-strip,
  .progress-story,
  .photo-section,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8rem;
  }

  .hero-copy {
    width: min(100%, 44rem);
    max-width: 44rem;
  }

  .hero-media {
    min-height: 43rem;
  }

  .support-band {
    align-items: start;
  }

  .feature-strip,
  .progress-story,
  .photo-section {
    gap: 2.6rem;
  }

  .photo-section {
    align-items: start;
  }

  .landscape-shot {
    justify-self: start;
    width: min(26rem, 100%);
  }

  .store-actions-final {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    width: min(100vw - 1.2rem, 100%);
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0.6rem 3rem;
    gap: 2rem;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0 42%, rgba(244, 247, 255, 0.92) 42% 100%),
      linear-gradient(180deg, rgba(173, 199, 255, 0.18), rgba(217, 190, 255, 0.14));
  }

  .hero h1 {
    font-size: clamp(3.7rem, 18vw, 5.1rem);
  }

  .hero-lead {
    max-width: 100%;
  }

  .hero-copy {
    width: min(100%, 23rem);
    max-width: 23rem;
  }

  .store-actions,
  .store-actions-final {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-button {
    width: 100%;
    min-width: 0;
  }

  .hero-media {
    min-height: 33rem;
  }

  .phone-frame-main {
    width: min(70vw, 20rem);
  }

  .phone-frame-left,
  .phone-frame-right {
    width: min(42vw, 12.2rem);
  }

  .phone-frame-left {
    left: -0.2rem;
    bottom: 0.6rem;
  }

  .phone-frame-right {
    right: -0.2rem;
    top: 0.8rem;
  }

  .support-band,
  .feature-strip,
  .progress-story,
  .photo-section,
  .final-cta,
  .site-footer {
    width: min(100vw - 1.2rem, 100%);
  }

  h2 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .feature-media {
    min-height: 30rem;
    border-radius: 1.3rem;
  }

  .phone-frame {
    border-width: 0.45rem;
    border-radius: 1.65rem;
  }

  .story-screens {
    min-height: 35rem;
  }

  .phone-frame-story {
    width: min(54vw, 16rem);
  }

  .landscape-shot {
    border-width: 0.45rem;
    border-radius: 1.65rem;
  }

  .final-cta {
    padding: 1.35rem;
    border-radius: 1.35rem;
  }

  .site-footer,
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-shell {
    width: min(100vw - 1.2rem, 100%);
  }

  .legal-card {
    padding: 1.3rem;
    border-radius: 1.3rem;
  }

  .legal-title {
    max-width: 10ch;
    font-size: clamp(1.95rem, 9vw, 2.7rem);
    line-height: 1;
  }

  .legal-copy {
    font-size: 0.96rem;
  }
}

@media (max-width: 430px) {
  .hero-media {
    min-height: 29rem;
  }

  .phone-frame-main {
    width: min(74vw, 17.5rem);
  }

  .phone-frame-left,
  .phone-frame-right {
    opacity: 0.82;
  }

  .story-screens {
    min-height: 31rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
