/* Tokens from docs/design/direction/README.md; keep in sync with apps/mobile/src/theme/tokens.ts. */
:root {
  --paper: #fff7f5;
  --ink: #2a0e1f;
  --muted: #7a5866;
  --accent: #c21f68;
  --accent-bg: rgba(235, 93, 90, 0.14);
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.6);
  --line: rgba(42, 14, 31, 0.1);
  --stage: linear-gradient(160deg, #ffe7d6, #fbd5de 55%, #f6c3da);
  --brand: linear-gradient(120deg, #fb923c, #eb5d5a 50%, #db2777);
  /* Text on the gradient sits on its deeper stops (design rule), never on the light orange. */
  --hero: linear-gradient(150deg, #eb5d5a, #db2777 55%, #7a1f3d);
  --glow-a: rgba(251, 146, 60, 0.28);
  --glow-b: rgba(219, 39, 119, 0.2);
  --shadow: 0 24px 60px -20px rgba(122, 31, 61, 0.35);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a0713;
    --ink: #fff1f5;
    --muted: #c9a9b8;
    --accent: #f9a8d4;
    --accent-bg: rgba(244, 114, 182, 0.2);
    --surface: #2a0e22;
    --glass: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.16);
    --stage: linear-gradient(160deg, #3a1129, #4a1434 55%, #5b1a3f);
    --glow-a: rgba(251, 146, 60, 0.22);
    --glow-b: rgba(219, 39, 119, 0.3);
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 17px/1.6 Inter,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
}
h1,
h2,
h3,
.btn,
.brand {
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}
h3 {
  font-size: 1.3rem;
  font-weight: 800;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font:
    800 0.8rem/1 Nunito,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Ambient glows behind the paper sections */
.glows {
  position: relative;
  isolation: isolate;
  overflow: hidden; /* the drifting glow scales past the section edges */
}
.glows::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 30% at 0% 20%, var(--glow-a), transparent 70%),
    radial-gradient(40% 30% at 100% 70%, var(--glow-b), transparent 70%);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    translate 250ms var(--ease-out),
    box-shadow 250ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-brand {
  color: #fff;
  background: linear-gradient(120deg, #eb5d5a, #db2777);
  box-shadow: 0 10px 24px -8px rgba(219, 39, 119, 0.6);
}
.btn-white {
  color: #2a0e1f;
  background: #fff;
  box-shadow: 0 12px 30px -10px rgba(42, 14, 31, 0.5);
}
.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.store {
  padding: 12px 22px;
  text-align: left;
}
.store small {
  display: block;
  font:
    600 0.72rem/1.1 Inter,
    sans-serif;
  letter-spacing: 0;
}
.store span {
  font-size: 1.15rem;
  line-height: 1.1;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav .btn {
  padding: 10px 20px;
  font-size: 0.95rem;
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--hero);
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}
.hero::before {
  /* orange warmth kept to the corner, away from the text */
  content: '';
  position: absolute;
  inset: auto -10% -30% auto;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    closest-side,
    rgba(251, 146, 60, 0.55),
    transparent
  );
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-block: 72px 80px;
}
.hero h1 {
  font-size: clamp(2.9rem, 8vw, 5.4rem);
}
.hero .lead {
  font-size: 1.2rem;
  max-width: 34ch;
  margin: 22px 0 32px;
  color: #fff1f5;
}
.hero .note {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #fff1f5;
}
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 44px;
  max-width: 520px;
}
.trust div {
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(42, 14, 31, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.trust b {
  display: block;
  font:
    900 1.15rem/1.2 Nunito,
    sans-serif;
}
.trust span {
  font-size: 0.85rem;
  line-height: 1.3;
  display: block;
  color: #fff1f5;
}
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-block: 48px 56px;
    text-align: center;
  }
  .hero .lead,
  .trust {
    margin-inline: auto;
  }
}
@media (max-width: 480px) {
  .trust {
    gap: 8px;
  }
  .trust div {
    padding: 12px 8px;
  }
}

/* Phone frame */
.phone {
  width: min(300px, 78vw);
  margin-inline: auto;
  border: 9px solid #1d0a16;
  border-radius: 46px;
  overflow: hidden;
  background: #1d0a16;
  box-shadow: var(--shadow);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 37px;
}
.hero-visual {
  position: relative;
  justify-self: center;
}
.badge {
  position: absolute;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  color: #2a0e1f;
  font:
    800 0.95rem/1 Nunito,
    sans-serif;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px -12px rgba(42, 14, 31, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation:
    badge-in 700ms var(--ease-out) backwards,
    float 6s ease-in-out infinite;
}
.b1 {
  top: 16%;
  left: -22%;
  animation-delay: 900ms, 1.6s;
}
.b2 {
  bottom: 18%;
  right: -18%;
  animation-delay: 1.3s, 2.6s;
}
@keyframes badge-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
}
@media (max-width: 860px) {
  .badge {
    font-size: 0.82rem;
    padding: 8px 12px;
  }
  .b1 {
    left: -6%;
  }
  .b2 {
    right: -6%;
  }
}

/* Hero screen recording inside the phone frame */
.screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 37px;
  background: var(--paper);
}
.hero .phone {
  transform: rotate(3deg);
  box-shadow: 0 40px 80px -30px rgba(42, 14, 31, 0.7);
}

/* Intro statement */
.statement {
  text-align: center;
  padding-block: 110px 40px;
}
.statement h2 {
  max-width: 18ch;
  margin-inline: auto;
}
.statement p {
  max-width: 52ch;
  margin: 20px auto 0;
  font-size: 1.15rem;
}

/* Features */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding-block: 56px;
}
.feature:nth-child(even) .copy {
  order: 2;
}
.feature .copy p {
  font-size: 1.12rem;
  margin-top: 18px;
  max-width: 40ch;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.chips span {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
}
.stage {
  background: var(--stage);
  border-radius: 36px;
  padding: 48px 24px;
}
@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 40px;
  }
  .feature:nth-child(even) .copy {
    order: 0;
  }
}

/* Steps */
.steps {
  padding-block: 90px;
  text-align: center;
}
.steps ol {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 18px;
  color: #fff;
  font:
    900 1.2rem Nunito,
    sans-serif;
  background: linear-gradient(120deg, #eb5d5a, #db2777);
}
.card p {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .steps ol {
    grid-template-columns: 1fr;
  }
}

/* Privacy band */
.private {
  background: #2a0e1f;
  color: #fff1f5;
  border-radius: 40px;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.private::after {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    closest-side,
    rgba(219, 39, 119, 0.35),
    transparent
  );
  pointer-events: none;
}
.private .eyebrow {
  color: #f9a8d4;
}
.private ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  position: relative;
}
.private li {
  padding-left: 30px;
  position: relative;
  color: #e9d3de;
}
.private li b {
  color: #fff;
}
.private li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(120deg, #fb923c, #db2777);
}
.private a {
  color: #f9a8d4;
}
@media (max-width: 860px) {
  .private {
    grid-template-columns: 1fr;
  }
}

/* Download */
.download {
  margin-block: 100px;
  text-align: center;
  color: #fff;
  background: var(--hero);
  border-radius: 40px;
  padding: clamp(48px, 8vw, 90px) 24px;
}
.download p {
  color: #fff1f5;
  font-size: 1.15rem;
  margin: 18px auto 32px;
  max-width: 40ch;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* FAQ */
.faq {
  max-width: 780px;
  margin-inline: auto;
  padding-bottom: 60px;
}
.faq h2 {
  text-align: center;
  margin-bottom: 40px;
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  position: relative;
  font:
    800 1.15rem/1.3 Nunito,
    sans-serif;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  padding: 0 0 22px;
  color: var(--muted);
}
.contact {
  text-align: center;
  padding: 40px 0 90px;
}
.contact p {
  margin: 10px 0 22px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding-block: 36px;
  font-size: 0.95rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
footer a {
  color: var(--ink);
  text-decoration: none;
}
footer a:hover {
  color: var(--accent);
}
.credit a {
  font-weight: 700;
  color: var(--accent);
}

/* Legal pages: paper, ink, a reading column */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding: 64px 0 96px;
}
.legal h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}
.legal h2 {
  font-size: 1.5rem;
  margin: 44px 0 12px;
}
.legal h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}
.legal p,
.legal li {
  margin: 0 0 12px;
}
.legal ul {
  padding-left: 22px;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.95rem;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.legal th {
  font-family: Nunito, sans-serif;
  font-weight: 800;
}
.table-scroll {
  overflow-x: auto;
}
.summary {
  margin: 28px 0 8px;
}

/* Motion. Content is hidden for reveals only when JS runs (.js on <html>), so nothing is lost without it.
   Separate translate/scale/rotate properties keep reveals, hovers and presses from overriding each other. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(60px) rotate(9deg);
  }
}
@keyframes float {
  50% {
    translate: 0 -10px;
  }
}
@keyframes drift {
  to {
    transform: translate(-6%, -8%) scale(1.15);
  }
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.hero .wrap > div:first-child > * {
  animation: rise 800ms var(--ease-out) backwards;
}
.hero .wrap > div:first-child > :nth-child(2) {
  animation-delay: 80ms;
}
.hero .wrap > div:first-child > :nth-child(3) {
  animation-delay: 160ms;
}
.hero .wrap > div:first-child > :nth-child(4) {
  animation-delay: 220ms;
}
.hero .wrap > div:first-child > :nth-child(5) {
  animation-delay: 300ms;
}
.hero .phone {
  animation:
    phone-in 1.1s var(--ease-out) 150ms backwards,
    float 7s ease-in-out 1.3s infinite;
}
.hero::before {
  animation: drift 14s ease-in-out infinite alternate;
}
.glows::before {
  animation: drift 22s ease-in-out infinite alternate;
}

.js [data-reveal],
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease-out) var(--d, 0ms),
    transform 900ms var(--ease-out) var(--d, 0ms),
    translate 250ms var(--ease-out);
}
.js [data-reveal].in,
.js [data-stagger].in > * {
  opacity: 1;
  transform: none;
}
[data-stagger] > :nth-child(2) {
  --d: 60ms;
}
[data-stagger] > :nth-child(3) {
  --d: 120ms;
}
[data-stagger] > :nth-child(4) {
  --d: 180ms;
}
[data-stagger] > :nth-child(5) {
  --d: 240ms;
}
[data-stagger] > :nth-child(6) {
  --d: 300ms;
}
[data-stagger] > :nth-child(7) {
  --d: 360ms;
}
[data-stagger] > :nth-child(8) {
  --d: 420ms;
}
[data-stagger] > :nth-child(9) {
  --d: 480ms;
}
.feature .stage {
  --d: 100ms;
}

.js .stage .phone {
  scale: 0.92;
  transition:
    scale 1.2s var(--ease-out) 200ms,
    rotate 500ms var(--ease-out);
}
.js .stage.in .phone {
  scale: 1;
}

details[open] > p {
  animation: faq-in 300ms var(--ease-out);
}
summary {
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    translate: 0 -2px;
  }
  .btn-brand:hover {
    box-shadow: 0 14px 30px -8px rgba(219, 39, 119, 0.7);
  }
  .card:hover {
    translate: 0 -4px;
  }
  .stage:hover .phone {
    rotate: -2deg;
  }
  summary:hover {
    color: var(--accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  ::before,
  ::after {
    animation: none !important;
  }
  /* reveals become a plain fade */
  .js [data-reveal],
  .js [data-stagger] > * {
    transform: none;
    transition: opacity 400ms ease;
  }
  .js .stage .phone {
    scale: 1;
  }
  .btn:hover,
  .card:hover {
    translate: none;
  }
}
