/* Mockivator landing — dark theme, red accent */
:root {
  --bg: #000000;
  --surface: #111111;
  --surface-elevated: #1c1c1c;
  --text: #ffffff;
  --text-muted: #a1a1a1;
  --text-dim: #888888;
  --accent: #ff3b30;
  --accent-glow: rgba(255, 59, 48, 0.55);
  --accent-dark: #4a0e0e;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --section-pad: clamp(3.5rem, 8vw, 6rem);
  --container: min(
    1100px,
    calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))
  );
  /* Relative to this stylesheet (css/styles.css), not the HTML page */
  --cursor-hand: url("../images/small_white_hand.png") 0 0, auto;
  --cursor-hand-action: url("../images/small_white_hand.png") 0 0, pointer;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  cursor: var(--cursor-hand);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  cursor: inherit;
  overflow-x: clip;
  overflow-wrap: break-word;
}

a,
button,
.btn-app-store,
[role="button"],
.notification--revealable {
  cursor: var(--cursor-hand-action);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  align-self: stretch;
  padding-block: 0.4rem;
  padding-top: calc(0.4rem + env(safe-area-inset-top, 0px));
  background: transparent;
  pointer-events: none;
}

.site-header--static {
  position: relative;
  align-self: center;
  width: 100%;
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.site-header__gutter {
  min-width: 0;
}

.site-header__nav {
  justify-self: end;
  pointer-events: auto;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.25rem 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.65));
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: var(--cursor-hand-action);
}

.site-header__link:hover {
  color: var(--accent);
}

.site-header__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-header__link[aria-current="page"] {
  color: var(--text);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.2rem 0.35rem;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s;
  pointer-events: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.65));
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.site-header__brand:hover {
  opacity: 0.88;
}

.site-header__brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-header__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}

.site-header__wordmark {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* App Store badge (Apple Marketing guidelines — asset unmodified) */
.btn-app-store {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  border: none;
  padding: 0;
  background: transparent;
  cursor: var(--cursor-hand-action);
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-app-store:hover {
  opacity: 0.9;
}

.btn-app-store:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.btn-app-store__badge {
  display: block;
  height: 40px;
  width: auto;
}

@media (min-width: 480px) {
  .btn-app-store__badge {
    height: 44px;
  }
}

a.btn-app-store--hero .btn-app-store__badge {
  height: 48px;
}

@media (min-width: 480px) {
  a.btn-app-store--hero .btn-app-store__badge {
    height: 56px;
  }
}

/* App Store badge — coming soon overlay + waitlist */
.store-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.store-badge-wrap.is-coming-soon {
  z-index: 0;
  isolation: isolate;
}

.store-badge-wrap.is-coming-soon .app-store-badge {
  position: relative;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(0.35);
  opacity: 0.86;
  cursor: not-allowed;
  vertical-align: middle;
}

.store-badge-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  pointer-events: none;
}

.store-badge-overlay__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 2.2vw, 1.05rem);
  color: #ef4444;
  justify-self: center;
  align-self: center;
  text-align: center;
  line-height: 1;
  max-width: 95%;
  padding-inline: 0.15rem;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.75),
    0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero .store-badge-overlay__pill {
  font-size: clamp(1.15rem, 4.5vw, 1.68rem);
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  width: 100%;
  max-width: 22rem;
  margin: 1rem auto 0;
}

.waitlist-form--footer {
  margin-top: 1.25rem;
}

.waitlist-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-form__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form__input::placeholder {
  color: var(--text-dim);
}

.waitlist-form__input:focus {
  border-color: rgba(255, 59, 48, 0.45);
}

.waitlist-form__btn {
  flex-shrink: 0;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 59, 48, 0.2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: var(--cursor-hand-action);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.waitlist-form__btn:hover {
  background: rgba(255, 59, 48, 0.32);
}

.footer-cta .waitlist-form__btn {
  background: rgba(255, 59, 48, 0.22);
}

.footer-cta .waitlist-form__input {
  background: rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .waitlist-form__btn {
    transition: none;
  }

  .store-badge-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(0, 0, 0, 0.55);
  }
}

.waitlist-form__status {
  flex-basis: 100%;
  width: 100%;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  text-align: center;
  color: #86efac;
  line-height: 1.35;
}

.waitlist-form__status[hidden] {
  display: none !important;
}

.waitlist-form__status--error {
  color: #fca5a5;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 max(1rem, env(safe-area-inset-right, 0px)) var(--section-pad)
    max(1rem, env(safe-area-inset-left, 0px));
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(80, 15, 15, 0.45), transparent 55%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 52rem;
  padding-top: clamp(1.75rem, 5vw, 3rem);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__accent {
  color: var(--accent);
  text-shadow:
    0 0 20px var(--accent-glow),
    0 0 40px rgba(255, 59, 48, 0.25);
}

.hero__tagline {
  margin: 0 0 2.5rem;
  min-height: 1.5em;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-style: italic;
  color: var(--text-muted);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.hero__tagline.is-fading {
  opacity: 0;
  transform: translateY(0.25em);
}

.hero__phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  width: 100%;
}

.hero__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: min(900px, 100%);
  height: auto;
  border-radius: 0;
}

/* Compare strip */
.compare {
  padding: 0 1rem 3rem;
  position: relative;
  z-index: 1;
}

.compare__grid {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .compare__grid {
    grid-template-columns: 1fr 1fr;
    max-width: 52rem;
  }
}

.compare__card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.compare__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.compare__card--other .compare__label {
  color: var(--text-muted);
}

.compare__card--mock .compare__label {
  color: var(--accent);
}

.compare__quote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.compare__card--mock .compare__quote {
  color: #fff;
}

.hero__cta {
  margin-top: 0.5rem;
}

.hero__cta-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 4vw, 1.25rem);
}

.hero__chevrons {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3.5vw, 18px);
}

.hero__chevron {
  flex-shrink: 0;
  width: 0.72rem;
  height: 0.72rem;
  border-right: 1px solid var(--accent);
  border-top: 1px solid var(--accent);
  transform: rotate(45deg);
  animation: hero-chevron-pulse 1.35s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255, 59, 48, 0.28);
}

.hero__chevrons .hero__chevron:nth-child(1) {
  animation-delay: 0s;
}

.hero__chevrons .hero__chevron:nth-child(2) {
  animation-delay: 0.18s;
}

.hero__chevrons .hero__chevron:nth-child(3) {
  animation-delay: 0.36s;
}

/*
 * Right column DOM is [near badge][middle][far]. Same delays as left would pulse
 * far→near (away from button). Mirror delays so the wave runs far→near visually
 * toward the badge, and outer/mid/inner stay in sync with the left column.
 */
.hero__chevrons--right .hero__chevron:nth-child(1) {
  animation-delay: 0.36s;
}

.hero__chevrons--right .hero__chevron:nth-child(2) {
  animation-delay: 0.18s;
}

.hero__chevrons--right .hero__chevron:nth-child(3) {
  animation-delay: 0s;
}

@keyframes hero-chevron-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: rotate(45deg) scale(0.92);
  }

  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1.05);
  }
}

/* Same pulse timing as left; only rotation differs */
@keyframes hero-chevron-pulse-right {
  0%,
  100% {
    opacity: 0.35;
    transform: rotate(225deg) scale(0.92);
  }

  50% {
    opacity: 1;
    transform: rotate(225deg) scale(1.05);
  }
}

.hero__chevrons--right .hero__chevron {
  animation-name: hero-chevron-pulse-right;
}

.hero__cta-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section headings */
.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head .accent {
  color: var(--accent);
}

.section-head p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Notifications */
.section--notifications {
  padding: var(--section-pad) 1rem;
  background: var(--bg);
}

.notifications__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.notification {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  text-align: left;
  cursor: var(--cursor-hand);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.notification--revealable {
  cursor: var(--cursor-hand-action);
  -webkit-tap-highlight-color: rgba(255, 59, 48, 0.15);
  touch-action: manipulation;
}

.notification--revealable:hover {
  border-color: rgba(255, 59, 48, 0.35);
}

.notification--revealable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.notification--hidden .notification__body {
  filter: blur(8px);
  user-select: none;
  opacity: 0.65;
}

.notification__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.notification__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.notification__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notification__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.notification__app {
  font-weight: 700;
  font-size: 0.95rem;
}

.notification__time {
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.notification__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.reveal-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1.25rem;
}

/* Habits grid */
.section--habits {
  padding: var(--section-pad) 1rem;
  position: relative;
  overflow: hidden;
}

.section--habits::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 50%;
  background: radial-gradient(ellipse at center top, rgba(80, 15, 15, 0.35), transparent 65%);
  pointer-events: none;
}

.section--habits .container {
  position: relative;
  z-index: 1;
}

.habits-grid {
  position: relative;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .habits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .habits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.habit-card {
  padding: 1.35rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.habit-card:hover {
  border-color: rgba(255, 59, 48, 0.2);
  transform: translateY(-2px);
}

.habit-card__emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.habit-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.habit-card__quote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.habits-grid__more,
.badges-grid__more {
  text-align: center;
  margin: 1.75rem 0 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Badges */
.section--badges {
  padding: var(--section-pad) 1rem;
}

.badges-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.badge-card {
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(120, 30, 30, 0.45);
  background: linear-gradient(165deg, rgba(40, 10, 10, 0.9), rgba(15, 8, 8, 0.95));
  transition: box-shadow 0.25s, border-color 0.25s;
}

.badge-card:hover {
  box-shadow: 0 0 28px rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.35);
}

.badge-card--neutral {
  background: var(--surface-elevated);
  border-color: rgba(255, 255, 255, 0.08);
}

.badge-card--neutral:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
}

.badge-card__img {
  display: block;
  width: 8rem;
  max-width: min(8rem, 52vw);
  height: auto;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

.badge-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.badge-card__desc {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

/* How it works */
.section--how {
  padding: var(--section-pad) 1rem;
}

.how-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.how-step {
  text-align: center;
  position: relative;
  padding: 1.5rem 0.5rem;
}

.how-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(90, 20, 20, 0.25), transparent 55%);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.how-step > * {
  position: relative;
}

.how-step__emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.how-step__num {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-dark);
  text-shadow: 0 0 40px rgba(74, 14, 14, 0.6);
  margin-bottom: 0.75rem;
}

.how-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.how-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.section-head--how h2 .accent {
  color: var(--accent);
}

/* Testimonials marquee */
.section--reviews {
  padding-top: var(--section-pad);
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.reviews-marquee {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.reviews-marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.reviews-track {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.review-card {
  flex: 0 0 auto;
  width: min(300px, 85vw);
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.review-card__stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}

.review-card__quote {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.review-card__author {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Footer CTA — epic closer */
.footer-cta {
  position: relative;
  padding: clamp(2.25rem, 8.5vw, 5.5rem) 0 clamp(3.5rem, 10vw, 6rem);
  text-align: center;
  overflow: hidden;
}

.footer-cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(120, 25, 25, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(255, 59, 48, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #060606 50%, var(--bg) 100%);
  pointer-events: none;
}

.footer-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, transparent 0%, rgba(0, 0, 0, 0.45) 75%);
  pointer-events: none;
}

.footer-cta__inner {
  position: relative;
  z-index: 1;
}

.footer-cta__epic {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(0.4rem, 1.25vw, 0.85rem);
}

.footer-cta__headline {
  margin: 0;
  max-width: min(36rem, 92vw);
  /* Reserve vertical space so line-count changes don’t shift the download button */
  min-height: clamp(10.25rem, 30vw, 16rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(2rem, 7.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

@supports (width: 1lh) {
  .footer-cta__headline {
    min-height: max(4lh, clamp(9.5rem, 28vw, 15rem));
  }
}

.footer-cta__headline.is-fading {
  opacity: 0;
  transform: translateY(0.35em) scale(0.98);
}

.footer-cta__sub {
  margin: 0 0 clamp(0.75rem, 2vw, 1.2rem);
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.footer-cta__fine {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.site-footer {
  padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
}

.site-footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer__nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}

.site-footer .site-footer__footnote {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-dim);
  font-style: italic;
}

.footnote-ref {
  font-style: normal;
  font-weight: inherit;
}

.footnote-ref a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.footnote-ref a:hover,
.footnote-ref a:focus-visible {
  text-decoration: underline;
}

.site-footer a {
  color: var(--text-muted);
}

/* Legal / policy pages */
.legal-page {
  padding: 2rem 0 calc(3rem + env(safe-area-inset-bottom, 0px));
  min-height: 50vh;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: clip;
}

.faq-item__summary {
  list-style: none;
  cursor: var(--cursor-hand-action);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  color: var(--text);
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__q {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq-item__icon {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  position: relative;
  opacity: 0.9;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.85rem;
  height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(255, 59, 48, 0.25);
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon::after {
  opacity: 0;
}

.faq-item__a {
  padding: 0 1.1rem 1.05rem;
  color: var(--text-muted);
}

.faq-item__a p {
  margin: 0.2rem 0 0;
}

.faq-item[open] {
  border-color: rgba(255, 59, 48, 0.22);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.faq-item__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.legal-page__inner {
  max-width: 40rem;
}

.legal-page__back {
  margin: 0 0 1.75rem;
}

.legal-page__back a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-page__back a:hover {
  color: var(--accent);
}

.legal-page h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal-page__updated {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.legal-page__lead {
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-page__section {
  margin-bottom: 1.65rem;
}

.legal-page__section:last-of-type {
  margin-bottom: 0;
}

.legal-page h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.legal-page p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-page p:last-child {
  margin-bottom: 0;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.legal-page a:hover {
  color: #ff6b62;
}

.legal-page a.contact-page__app-card,
.legal-page a.contact-page__app-card:hover {
  text-decoration: none;
  color: inherit;
}

/* Contact page */
.contact-page h1 {
  margin-bottom: 0.65rem;
}

.contact-page__lede {
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  font-style: italic;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-page__body {
  margin-bottom: 2rem;
}

.contact-page__body p {
  margin: 0 0 1.05rem;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-muted);
}

.contact-page__body p:last-child {
  margin-bottom: 0;
}

.contact-page__signoff {
  font-style: italic;
  color: var(--text-dim);
}

.contact-page__cta-wrap {
  margin: 0;
  text-align: center;
}

.contact-page__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000 !important;
  background: #fff;
  border-radius: 999px;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: var(--cursor-hand-action);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.contact-page__email:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 59, 48, 0.32);
  color: #000 !important;
}

.contact-page__email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-page__credit {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.contact-page__credit a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-page__credit a:hover {
  text-decoration: underline;
}

.contact-page__more {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-page__more-title {
  margin: 0 0 1.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.contact-page__app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-page__app-list > li {
  margin: 0;
}

.contact-page__app-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.45rem 1.55rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  cursor: var(--cursor-hand-action);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.contact-page__app-card:hover {
  border-color: rgba(255, 59, 48, 0.28);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
}

.contact-page__app-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-page__app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.contact-page__app-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.contact-page__app-name {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.contact-page__app-card:hover .contact-page__app-name {
  color: var(--accent);
}

.contact-page__app-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__chevron {
    animation: none;
    opacity: 0.85;
    transform: rotate(45deg) scale(1);
  }

  .hero__chevrons--right .hero__chevron {
    transform: rotate(225deg) scale(1);
  }

  .reviews-marquee {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    padding: 0 1rem;
  }

  .btn-app-store:hover {
    opacity: 1;
  }

  .contact-page__email:hover {
    transform: none;
  }

  .contact-page__app-card:hover {
    transform: none;
  }

  .footer-cta__headline {
    transition: none;
  }

  .footer-cta__headline.is-fading {
    opacity: 1;
    transform: none;
  }

  .hero__tagline {
    transition: none;
  }

  .hero__tagline.is-fading {
    opacity: 1;
    transform: none;
  }
}
