/* Ryze Alarm — Lunera template recreation */
:root {
  --blue: #4686fe;
  --blue-soft: #e8f1ff;
  --ink: #1a1a1a;
  --ink-soft: #6d6d6d;
  --ink-faint: #9a9a9a;
  --line: #ebebeb;
  --surface: #f7f7f7;
  --surface-2: #f3f3f3;
  --white: #ffffff;
  --green: #22c55e;
  --star: #fac020;
  --radius-pill: 40px;
  --radius-card: 20px;
  --radius-lg: 28px;
  --shadow-nav: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 16px 50px rgba(26, 26, 26, 0.12);
  --max: 1180px;
  --font: "Poppins", system-ui, sans-serif;
  --font-tight: "Poppins", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 40px, 1300px);
  margin-inline: auto;
}

/* Nav — fixed; transparent at top, thin white when scrolled */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-wrap.is-scrolled {
  background: var(--white);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 72px;
  margin: 0;
  padding: 0 28px;
  gap: 24px;
  box-sizing: border-box;
  transition: height 0.25s ease;
}

.nav-wrap.is-scrolled .nav {
  height: 56px;
}

.nav .brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.nav .brand img,
.nav .brand svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav > .btn,
.nav > .app-store-badge {
  justify-self: end;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 0;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.44, 0, 0.56, 1);
}

.app-store-badge:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.app-store-badge:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.app-store-badge img {
  display: block;
  height: 40px;
  width: auto;
}

.app-store-badge--hero img {
  height: 52px;
}

.app-store-badge--compact img {
  height: 36px;
}

/* Footer / shared brand defaults */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand img,
.brand svg {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.25s cubic-bezier(0.44, 0, 0.56, 1),
    background 0.2s, box-shadow 0.25s, opacity 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.is-pressed {
  transform: scale(0.97);
}

.btn-black {
  background: #000;
  color: #fff;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-blue:hover {
  box-shadow: 0 8px 24px rgba(70, 134, 254, 0.35);
}

/* Hero — matched to Lunera metrics @ 1920 */
.hero {
  position: relative;
  padding: 140px 0 40px;
  text-align: center;
  overflow: clip;
  background: #fff;
  min-height: 934px;
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  /* Lunera: clouds fade out toward the bottom */
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0.4) 10%, rgba(0, 0, 0, 0) 80%);
  mask-image: linear-gradient(rgba(0, 0, 0, 0.4) 10%, rgba(0, 0, 0, 0) 80%);
}

.hero-clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 1;
  /* Nudge cloud field slightly upward */
  transform: translateY(-32px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1300px);
}

/* Lunera: mask fades the stage (copy + phone) into white; proof sits below */
.hero-stage {
  position: relative;
  -webkit-mask-image: linear-gradient(#000 85%, transparent 100%);
  mask-image: linear-gradient(#000 85%, transparent 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto 56px;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #1a1a1a;
  margin: 0 auto 24px;
  max-width: 12em;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: #605f5f;
  max-width: 34ch;
  margin: 0 auto;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.hero-visual {
  position: relative;
  z-index: 5;
  width: min(100%, 1140px);
  /* Crop viewport tracks phone: prior 474 × 0.9 */
  height: 427px;
  margin: 0 auto;
  overflow: visible;
  /* Desktop: shift phone + mission floats left as one cluster */
  transform: translateX(-32px);
}

.phone-wrap {
  position: absolute;
  left: 50%;
  top: -20px;
  /* Prior 479 × 0.9 — another 10% smaller, no mockup shadow */
  width: 431px;
  margin-left: -216px;
  z-index: 2;
  /*
   * Bottom-crop the mockup via clip-path (not overflow:hidden) so scroll
   * parallax can rise above the wrap and paint over .hero-copy.
   * Negative top inset ≈ max parallax travel (−70px) + float slack.
   */
  overflow: visible;
  clip-path: inset(-90px 0 0 0);
  max-height: calc(100% + 20px);
  will-change: transform, opacity;
}

.phone-parallax {
  will-change: transform;
}

.phone {
  width: 100%;
  max-height: none;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
  background: transparent;
}

.hero-proof {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 48px auto 0;
  padding: 8px 0 0;
  width: 302px;
}

.float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 14px 16px;
  text-align: left;
  z-index: 4;
  will-change: transform;
  box-sizing: border-box;
}

.mission-float {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
}

.mission-float .amount {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mission-float .label {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9a9a9a;
}

.mission-float-art {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.mission-float-art img {
  width: 120%;
  height: 120%;
  object-fit: cover;
}

.mission-float.mf-a {
  left: calc(50% - 476px);
  top: 65px;
  width: 210px;
}

.mission-float.mf-b {
  left: calc(50% + 240px);
  top: 43px;
  width: 200px;
}

.mission-float.mf-c {
  left: calc(50% - 466px);
  top: 194px;
  width: 210px;
}

.mission-float.mf-d {
  left: calc(50% + 238px);
  top: 208px;
  width: 200px;
}

@keyframes floatY {
  0%,
  100% { translate: 0 0; }
  50% { translate: 0 calc(var(--float-amp, 8px) * -1); }
}

.is-floating {
  animation: floatY var(--float-dur, 6s) ease-in-out var(--float-delay, 0s) infinite;
}

.avatars {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
}

.avatar-stack { display: flex; }

.avatar-stack img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -10px;
}

.avatar-stack img:first-child { margin-left: 0; }

.stars {
  display: flex;
  gap: 2px;
  height: 14px;
}

.stars img {
  width: 14px;
  height: 14px;
}

.proof-copy {
  font-size: 13px;
  color: #605f5f;
  margin-top: 4px;
  text-align: left;
  line-height: 1.2;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-ctas .app-store-badge {
  min-width: 0;
}

/* Logo strip */
.logo-strip {
  padding: 48px 0 64px;
  overflow: hidden;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 56px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.45;
  filter: grayscale(1);
}

.logo-track img {
  height: 28px;
  width: auto;
}

/* Section shared */
.section {
  padding: 100px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2,
.section-side h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.section-head p,
.section-side p.lead {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 46ch;
  margin-inline: auto;
}

/* Beyond the alarm — grey shell + white inner (matches how-cards) */
.features-section {
  background: var(--white);
}

.consistency-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.consistency-card {
  background: #ececec;
  border-radius: 28px;
  padding: 14px;
  text-align: left;
}

.consistency-card-inner {
  background: var(--white);
  border-radius: 20px;
  height: 100%;
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consistency-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 4px;
  display: grid;
  place-items: center;
}

.consistency-icon img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.consistency-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.consistency-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1100px) {
  .consistency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .consistency-grid {
    grid-template-columns: 1fr;
  }

  .consistency-card-inner {
    padding: 24px 20px 28px;
  }
}

/* How it works — grey shell, white face, faded mockups */
.how-section {
  overflow: visible;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.how-card {
  background: #ececec;
  border-radius: 28px;
  padding: 14px;
  text-align: center;
}

.how-card-inner {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.how-visual {
  position: relative;
  /* Mockups are 765×1024; taller crop window, still ~75% of scaled image */
  aspect-ratio: 765 / 860;
  overflow: hidden;
  background: var(--white);
}

.how-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 55%,
    #fff 100%
  );
  pointer-events: none;
  z-index: 1;
}

.how-mockup {
  width: 112%;
  max-width: none;
  height: auto;
  display: block;
  margin-inline: -6%;
  transform: translateY(-6%);
}

.how-body {
  padding: 8px 22px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.how-num {
  width: 32px;
  height: 32px;
  border-radius: 40px;
  background: #ececec;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 12px;
}

.how-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.how-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  max-width: 28ch;
}

/* FAQ — centered */
.faq-centered {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.faq-centered .section-head {
  margin-bottom: 36px;
}

.faq-centered .section-head .lead {
  margin-inline: auto;
}

.faq-centered .faq-list {
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq-item .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s;
  font-size: 18px;
  color: var(--ink-soft);
}

.faq-item.open .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.faq-cta {
  margin-top: 28px;
}

/* Testimonials */
.testimonials-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}

.testimonials-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.testimonials-head .right {
  max-width: 320px;
  text-align: right;
}

.testimonials-head .right p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 14px;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.review-card {
  flex: 0 0 min(100%, 360px);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 24px;
  min-height: 280px;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.review-top img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.review-top strong {
  display: block;
  font-size: 14px;
}

.review-top span {
  font-size: 12px;
  color: var(--ink-soft);
}

.review-card h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.review-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.carousel-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.carousel-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.carousel-nav button:hover {
  background: var(--surface);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: center;
}

.stat {
  padding: 28px 16px;
  background: var(--surface);
  border-radius: var(--radius-card);
}

.stat .num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat .label {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* CTA */
.cta {
  padding: 40px 0 80px;
}

.cta-panel {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  color: #fff;
}

.cta-panel img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.35), rgba(10, 20, 40, 0.55));
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 auto 24px;
}

/* Footer */
.footer {
  padding: 60px 0 40px;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.72);
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  max-width: 28ch;
}

.footer h4 {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  margin-bottom: 14px;
  text-transform: none;
}

.footer-col a {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 4px;
  padding: 8px 0;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Mobile bottom bar */
.mobile-bar {
  display: none;
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-nav);
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
}

.mobile-bar .links {
  display: flex;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
  flex: 1;
}

.mobile-bar .links::-webkit-scrollbar {
  display: none;
}

.mobile-bar .links a {
  white-space: nowrap;
  padding: 10px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mobile-bar .app-store-badge {
  flex-shrink: 0;
}

/* Inner pages */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #cfe6ff 0%, #fff 80%);
}

.page-hero .container {
  width: min(100% - 40px, var(--max));
}

.page-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}

.page-hero p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 42ch;
  margin: 0 auto;
  padding-inline: 4px;
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  color: var(--ink);
}

/* Download page — same hero sky / type / CTA as homepage */
.download-page {
  background: #fff;
  min-height: 100dvh;
  padding-bottom: 0;
}

.download-page .mobile-bar {
  display: none;
}

.hero--download {
  min-height: 100dvh;
  padding-bottom: 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero--download .hero-copy {
  margin-bottom: 40px;
}

.hero--download .hero-proof {
  width: min(100%, 420px);
  margin-top: 8px;
  gap: 18px;
}

.hero--download .download-progress {
  width: min(180px, 55%);
  height: 3px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.08);
  overflow: hidden;
}

.hero--download .download-progress-bar {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--ink);
  animation: downloadBar 1.15s ease-in-out infinite;
}

.hero--download .download-hint {
  font-size: 14px;
  color: #605f5f;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center;
}

.hero--download .download-hint a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero--download .download-home {
  font-size: 14px;
  font-weight: 500;
  color: #9a9a9a;
  letter-spacing: -0.02em;
}

.hero--download .download-home:hover {
  color: var(--ink);
}

.download-page--soon .download-progress {
  display: none;
}

@keyframes downloadBar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--download .download-progress-bar {
    animation: none;
    width: 100%;
    transform: none;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 80px;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 16px;
}

.contact-card a {
  color: var(--blue);
  font-weight: 500;
  font-size: 15px;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 100px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal h2 {
  font-size: clamp(18px, 4.5vw, 22px);
  margin: 32px 0 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal a {
  color: var(--blue);
  font-weight: 500;
}

.legal ul {
  padding-left: 1.25em;
  list-style: disc;
  margin-bottom: 16px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 960px) {
  .container {
    width: min(100% - 32px, 1300px);
  }

  .nav-links {
    display: none;
  }

  .nav {
    grid-template-columns: 1fr auto;
    width: 100%;
    height: 64px;
    padding: 0 16px;
    gap: 12px;
  }

  .nav-wrap.is-scrolled .nav {
    height: 52px;
  }

  .nav .brand {
    font-size: 20px;
  }

  .nav .brand img {
    width: 36px;
    height: 36px;
  }

  .nav > .app-store-badge img {
    height: 36px;
  }

  .contact-grid,
  .stats,
  .how-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 48px 0 32px;
  }

  .footer-grid {
    gap: 28px;
    margin-bottom: 36px;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .how-card {
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }

  .testimonials-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonials-head .right {
    text-align: left;
  }

  .mission-float {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 112px;
  }

  .hero h1 {
    max-width: 12em;
  }

  .hero-copy {
    margin-bottom: 36px;
  }

  .hero-visual {
    height: 323px;
    width: 100%;
    transform: none;
  }

  .phone-wrap {
    width: 294px;
    margin-left: -147px;
    top: -6px;
    max-height: calc(100% + 6px);
  }

  .hero-proof {
    margin-top: 28px;
    width: auto;
  }

  .page-hero {
    padding: 120px 0 40px;
  }

  .page-hero .container {
    width: min(100% - 32px, var(--max));
  }

  .legal {
    padding: 28px 0 80px;
  }

  .faq-item button {
    min-height: 52px;
    padding: 18px 0;
  }

  .mobile-bar {
    display: flex;
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .download-page {
    padding-bottom: 0;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1300px);
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 108px;
  }

  .hero-visual {
    height: 249px;
  }

  .phone-wrap {
    width: 246px;
    margin-left: -123px;
    max-height: calc(100% + 6px);
  }

  .hero-ctas {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-ctas .app-store-badge--hero img {
    height: 44px;
  }

  .nav {
    padding: 0 12px;
  }

  .nav > .app-store-badge img {
    height: 32px;
  }

  .page-hero {
    padding: 110px 0 32px;
  }

  .page-hero h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .page-hero p {
    font-size: 15px;
  }

  .legal {
    padding: 20px 0 72px;
  }

  .legal p,
  .legal li {
    font-size: 14px;
    line-height: 1.65;
  }

  .legal h2 {
    margin-top: 28px;
  }

  .how-body {
    padding: 8px 16px 28px;
  }

  .section-head h2 {
    font-size: clamp(26px, 7vw, 40px);
  }

  .mobile-bar {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    padding: 8px 10px;
  }

  .mobile-bar .links {
    gap: 0;
    font-size: 12px;
  }

  .mobile-bar .links a {
    padding: 10px 6px;
  }

  .app-store-badge--compact img {
    height: 32px;
  }
}
