/* Nook marketing site v3. Tokens from DESIGN_SYSTEM.md */

@font-face {
  font-family: "Inter Tight";
  src: url("../assets/InterTight-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f8f9fa;
  --sheet: #ffffff;
  --field: #e9ecef;
  --line: #dee2e6;
  --line2: #ced4da;
  --ink: #212529;
  --ink2: #495057;
  --ink3: #6c757d;
  --ink4: #adb5bd;
  --inv: #f8f9fa;
  --danger: #a63a33;
  --ok: #2f9e44;
  --warn: #f08c00;
  --late: #e03131;
  --ok-bg: rgb(47 158 68 / 0.1);
  --warn-bg: rgb(240 140 0 / 0.1);
  --late-bg: rgb(224 49 49 / 0.1);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 72px;
  --container: 1280px;
  --radius-roofline: 31px 19px 31px 31px;
  --radius-roofline-sm: 18px 12px 18px 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter Tight", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ----- Capsule CTA ----- */

.btn-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--inv);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  transition: transform 150ms var(--ease-out);
  white-space: nowrap;
}

.btn-capsule:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn-capsule:hover {
    transform: translateY(-1px);
  }

  .btn-capsule:hover:active {
    transform: scale(0.97);
  }
}

.btn-capsule--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line2);
}

.btn-capsule--sm {
  min-height: 40px;
  padding: 0 1.125rem;
  font-size: 0.9375rem;
}

/* ----- Nav ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out),
    backdrop-filter 180ms var(--ease-out);
}

.site-header.is-scrolled {
  background: rgb(248 249 250 / 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px 6px 10px 10px;
  overflow: hidden;
}

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

.brand__name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink2);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: none;
}

.nav-cta--always {
  display: inline-flex;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 14px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--ink);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 180ms var(--ease-out), opacity 140ms var(--ease-out);
}

.nav-toggle__bars span:nth-child(1) {
  transform: translateY(-5.5px);
}

.nav-toggle__bars span:nth-child(3) {
  transform: translateY(5.5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.mobile-nav {
  display: block;
  position: fixed;
  top: calc(var(--nav-h) - 0.25rem);
  left: 0.75rem;
  right: 0.75rem;
  z-index: 39;
  padding: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out),
    visibility 200ms var(--ease-out);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav__panel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgb(33 37 41 / 0.12);
}

.mobile-nav__panel > a:not(.mobile-nav__cta) {
  display: block;
  padding: 0.8rem 0.85rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-radius: 12px;
  color: var(--ink);
}

.mobile-nav__panel > a:not(.mobile-nav__cta):active {
  background: var(--field);
}

.mobile-nav__cta {
  margin-top: 0.35rem;
  width: 100%;
  min-height: 44px;
}

@media (min-width: 900px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* ----- Hero ----- */

.hero {
  position: relative;
  padding: 2rem 0 0;
  overflow: hidden;
}

.hero-enter {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition:
    opacity 420ms var(--ease-out),
    transform 420ms var(--ease-out);
}

.hero-enter--1 { transition-delay: 40ms; }
.hero-enter--2 { transition-delay: 110ms; }
.hero-enter--3 { transition-delay: 180ms; }
.hero-enter--4 { transition-delay: 260ms; }

.hero.is-ready .hero-enter {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  text-align: center;
}

.hero__stage {
  position: relative;
  z-index: 1;
  padding: 0.5rem 0 3.5rem;
  background: transparent;
}

.hero__stage-inner {
  width: min(100% - 1rem, 1560px);
  margin-inline: auto;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero__sub {
  margin: 0 auto 1.5rem;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ink3);
  max-width: 40ch;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 52px;
  padding: 0 1.125rem;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--sheet);
  transition: transform 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.store-badge:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .store-badge:hover {
    transform: translateY(-1px);
    border-color: var(--ink4);
  }

  .store-badge:hover:active {
    transform: scale(0.97);
  }
}

.store-badge__icon {
  width: 22px;
  height: 22px;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge__text small {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-badge__text strong {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Product photography (transparent device mockups) */
.shot {
  margin: 0;
  width: 100%;
  background: transparent;
  line-height: 0;
  overflow: visible;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
}

.shot--hero {
  width: 100%;
  max-width: none;
}

.shot--hero img {
  width: 100%;
  height: auto;
  display: block;
}

.shot--dual {
  width: min(100%, 1180px);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero {
    padding: 2.75rem 0 0;
  }

  .hero__copy {
    max-width: 44rem;
    margin-bottom: 2.75rem;
  }

  .hero__stage {
    padding: 2.25rem 0 5.5rem;
  }

  .hero__stage-inner {
    width: min(100% - 1.5rem, 1600px);
  }
}

@media (max-width: 899px) {
  .hero {
    padding: 1.5rem 0 0;
  }

  .hero__copy {
    margin-bottom: 1.5rem;
  }

  .hero__stage {
    padding: 0.25rem 0 2.75rem;
  }
}

/* ----- Sections ----- */

.section {
  padding: 4.5rem 0;
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section__lead {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ink3);
  max-width: 36ch;
  line-height: 1.5;
}

.section__header {
  margin-bottom: 2.75rem;
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__header--center .section__lead {
  text-align: center;
}

/* ----- How it works ----- */

.how {
  padding: 4.5rem 0 5rem;
}

.how__header {
  margin-bottom: 3rem;
}

.how__header .section__lead {
  max-width: 44ch;
}

.how__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink4);
}

.how-flow {
  display: flex;
  flex-direction: column;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.how-step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.25rem;
  align-items: start;
}

.how-step__rail {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100%;
}

.how-step__rail::before {
  content: "";
  position: absolute;
  top: 2.75rem;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line2);
  transform: translateX(-50%);
}

.how-step:last-child .how-step__rail::before {
  display: none;
}

.how-step__dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--inv);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.how-step__body {
  display: grid;
  gap: 1.25rem;
  padding: 0.2rem 0 2.75rem;
  min-width: 0;
}

.how-step:last-child .how-step__body {
  padding-bottom: 0;
}

.how-step__meta {
  margin: 0.4rem 0 0.55rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink4);
}

.how-step__copy h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.how-step__copy p:last-child {
  margin: 0;
  color: var(--ink3);
  font-size: 1.0625rem;
  max-width: 36ch;
  line-height: 1.55;
}

/* Ambient scenes (play while step is in view) */

.how-scene {
  position: relative;
  width: 100%;
  min-height: 9.5rem;
  background: transparent;
  overflow: visible;
}

.how-scene--chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.how-chip-float {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--inv);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

.how-step.is-in .how-chip-float {
  animation: how-chip-pop 3.8s var(--ease-out) infinite;
}

.how-step.is-in .how-chip-float--1 { animation-delay: 0s; }
.how-step.is-in .how-chip-float--2 { animation-delay: 0.4s; }
.how-step.is-in .how-chip-float--3 { animation-delay: 0.8s; }
.how-step.is-in .how-chip-float--4 { animation-delay: 1.2s; }

.how-scene--toasts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.25rem 0;
}

.how-toast {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgb(33 37 41 / 0.08);
  opacity: 0;
  transform: translateY(-18px) scale(0.96);
}

.how-toast__app {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink4);
}

.how-toast strong {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.how-toast span:last-child {
  font-size: 0.75rem;
  color: var(--ink3);
}

.how-step.is-in .how-toast {
  animation: how-toast-pop 5.2s var(--ease-out) infinite;
}

.how-step.is-in .how-toast--1 { animation-delay: 0s; }
.how-step.is-in .how-toast--2 { animation-delay: 1.55s; }
.how-step.is-in .how-toast--3 { animation-delay: 3.1s; }

.how-scene--members {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
}

.how-member {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--inv);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.85);
}

.how-member--plus {
  background: var(--field);
  color: var(--ink);
  border: 1.5px dashed var(--line2);
  font-size: 1.25rem;
  font-weight: 500;
}

.how-member-label {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink3);
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
}

.how-step.is-in .how-member {
  animation: how-member-fly 4.8s var(--ease-out) infinite;
  animation-delay: var(--delay);
}

.how-step.is-in .how-member-label {
  animation: how-label-fade 4.8s var(--ease-out) infinite;
  animation-delay: 0.55s;
}

@keyframes how-chip-pop {
  0% { opacity: 0; transform: translateY(14px) scale(0.96); }
  14%, 72% { opacity: 1; transform: translateY(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

@keyframes how-toast-pop {
  0% { opacity: 0; transform: translateY(-22px) scale(0.95); }
  12%, 58% { opacity: 1; transform: translateY(0) scale(1); }
  78%, 100% { opacity: 0; transform: translateY(10px) scale(0.98); }
}

@keyframes how-member-fly {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 36px)) scale(0.78);
  }
  18%, 68% {
    opacity: 1;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1);
  }
  40% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 7px)) scale(1);
  }
  85%, 100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 30px)) scale(0.92);
  }
}

@keyframes how-label-fade {
  0%, 12% { opacity: 0; }
  22%, 70% { opacity: 1; }
  85%, 100% { opacity: 0; }
}

@media (min-width: 900px) {
  .how {
    padding: 5.5rem 0 6rem;
  }

  .how__header {
    margin-bottom: 3.75rem;
  }

  .how-flow {
    max-width: 64rem;
  }

  .how-step {
    grid-template-columns: 3rem 1fr;
    gap: 1.75rem;
  }

  .how-step__body {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
    gap: 2rem;
    align-items: center;
    padding-bottom: 3.5rem;
  }

  .how-scene {
    min-height: 11.5rem;
  }

  .how-scene--chips {
    justify-content: flex-start;
  }
}

/* ----- Feature rows (copy left, mockup right) ----- */

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.feature-row {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.feature-row__copy h3 {
  margin: 0 0 0.875rem;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.feature-row__lead {
  margin: 0;
  color: var(--ink3);
  font-size: 1.0625rem;
  max-width: 36ch;
  font-weight: 400;
  line-height: 1.5;
}

.feature-row__copy .feature-list {
  margin-top: 1.35rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.125rem;
  color: var(--ink2);
  font-size: 0.975rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.feature-row__visual {
  display: flex;
  justify-content: center;
  min-height: 12rem;
}

.feature-row__visual--empty {
  background: transparent;
}

.shot--feature {
  width: min(100%, 560px);
}

@media (min-width: 900px) {
  .feature-stack {
    gap: 5rem;
  }

  .feature-row {
    grid-template-columns: 0.9fr 1.15fr;
    gap: 4rem;
  }

  .feature-row__visual {
    justify-content: flex-end;
    min-height: 20rem;
  }

  .shot--feature {
    width: min(100%, 620px);
  }
}

/* ----- Design section ----- */

.design {
  padding: 4.5rem 0 5rem;
}

.design__header {
  margin-bottom: 2.5rem;
}

.design__header .section__lead {
  max-width: 42ch;
}

.design__modes {
  margin: 1.15rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink2);
}

.design .shot--dual {
  width: min(100%, 1240px);
}

@media (min-width: 900px) {
  .design {
    padding: 5.5rem 0 6rem;
  }

  .design__header {
    margin-bottom: 3.25rem;
  }
}

/* ----- Final CTA ----- */

.final-cta {
  padding: 5rem 0;
  text-align: center;
}

.final-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.125rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.final-cta p {
  margin: 0 0 1.75rem;
  color: var(--ink3);
  font-size: 1.0625rem;
  font-weight: 400;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

/* ----- Footer ----- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__brand p {
  margin: 0.75rem 0 0;
  color: var(--ink3);
  font-size: 0.9375rem;
  max-width: 28ch;
}

.footer__col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink4);
}

.footer__col a {
  display: block;
  padding: 0.3rem 0;
  color: var(--ink2);
  font-size: 0.9375rem;
}

.footer__col a:hover {
  color: var(--ink);
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink4);
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ----- Reveal (motion) — replays on scroll down and up ----- */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 420ms var(--ease-out),
    transform 420ms var(--ease-out);
}

.reveal[data-dir="up"] {
  transform: translateY(-28px) scale(0.97);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger only on enter — exit snaps without delay cascade */
.reveal-stagger > .reveal {
  transition-delay: 0ms;
}
.reveal-stagger > .reveal.is-in:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal.is-in:nth-child(2) { transition-delay: 55ms; }
.reveal-stagger > .reveal.is-in:nth-child(3) { transition-delay: 110ms; }
.reveal-stagger > .reveal.is-in:nth-child(4) { transition-delay: 165ms; }
.reveal-stagger > .reveal.is-in:nth-child(5) { transition-delay: 220ms; }
.reveal-stagger > .reveal.is-in:nth-child(6) { transition-delay: 275ms; }

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

  .hero-enter,
  .reveal,
  .mobile-nav {
    transition: opacity 160ms var(--ease-out);
    transform: none;
  }

  .nav-toggle__bars span {
    transition: none;
  }

  .hero-enter,
  .hero.is-ready .hero-enter,
  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .btn-capsule,
  .store-badge {
    transition: none;
  }

  .btn-capsule:active,
  .btn-capsule:hover,
  .store-badge:active,
  .store-badge:hover {
    transform: none;
  }

  .nav-toggle__bars span:nth-child(1) {
    transform: translateY(-5.5px);
  }

  .nav-toggle__bars span:nth-child(3) {
    transform: translateY(5.5px);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
    opacity: 0;
  }

  .how-chip-float,
  .how-toast,
  .how-member,
  .how-member-label,
  .how-step.is-in .how-chip-float,
  .how-step.is-in .how-toast,
  .how-step.is-in .how-member,
  .how-step.is-in .how-member-label {
    animation: none;
    opacity: 1;
  }

  .how-chip-float,
  .how-toast {
    transform: none;
  }

  .how-member {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1);
  }
}

/* ----- Legal pages ----- */

.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink3);
  margin-bottom: 2rem;
  text-decoration: none;
}

.legal-page .back-link:hover {
  color: var(--ink);
}

.legal-page h1 {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal-page .meta {
  color: var(--ink3);
  margin: 0 0 2rem;
  font-size: 0.9375rem;
}

.legal-page h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.legal-page h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 0.975rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal-page p,
.legal-page li {
  color: var(--ink2);
  font-size: 0.975rem;
  line-height: 1.55;
}

.legal-page p {
  margin: 0 0 0.75rem;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0 0 0.75rem;
}

.legal-page li {
  margin-bottom: 0.35rem;
}

.legal-page a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-wrap {
  max-width: 40rem;
}
