/* ============================================================
   haltai.app landing-page styles
   Layered on top of /assets/style.css (tokens + @font-face)
   ============================================================ */

/* Reset margins inherited from style.css for landing page only */
body.landing { font-feature-settings: 'ss01', 'cv11'; }
body.landing main.landing-main { display: block; max-width: none; padding: 0; }

/* ============================================================
   Sticky nav
   ============================================================ */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 32px;
  padding-top: max(18px, env(safe-area-inset-top));
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 250ms cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 250ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-nav.is-scrolled {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}

.landing-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.landing-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.landing-nav__brand:hover { text-decoration: none; }
.landing-nav__brand img { width: 28px; height: 28px; display: block; }

.landing-nav__links {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  justify-self: center;
}
.landing-nav__links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}
.landing-nav__links a:hover { color: var(--text-1); text-decoration: none; }

.landing-nav__cta {
  justify-self: end;
  display: inline-block;
  line-height: 0;
}
.landing-nav__cta img {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.92;
  transition: opacity 150ms ease, transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.landing-nav__cta:hover img { opacity: 1; transform: translateY(-1px); }
.landing-nav__cta[aria-disabled="true"] { cursor: default; }
.landing-nav__cta[aria-disabled="true"]:hover img { transform: none; }

/* Mobile nav */
.landing-nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-1);
  padding: 0;
  justify-self: end;
}
.landing-nav__toggle:hover { border-color: var(--border-hover); }
.landing-nav__toggle svg { width: 18px; height: 18px; }

.landing-nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  padding: 24px 32px 32px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 49;
}
.landing-nav__mobile.is-open { display: block; }
.landing-nav__mobile a {
  display: block;
  color: var(--text-1);
  font-size: 18px;
  font-weight: 500;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.landing-nav__mobile a:last-of-type { border-bottom: none; }

@media (max-width: 820px) {
  .landing-nav {
    padding: 14px 20px;
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .landing-nav__inner { grid-template-columns: 1fr auto; }
  .landing-nav__links,
  .landing-nav__cta { display: none; }
  .landing-nav__toggle { display: inline-flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 152px 32px 96px;
  overflow: hidden;
  min-height: 720px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(45, 184, 119, 0.10) 0%, transparent 55%);
  filter: blur(40px);
  animation: glowDrift 12s ease-in-out infinite;
}

.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 0%, transparent 80%);
}

@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-40px, 30px); }
}

.hero__grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}

.hero__copy {
  padding-right: 16px;
}

.hero__headline {
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 24px;
  opacity: 0;
  animation: heroFade 500ms cubic-bezier(0.4, 0, 0.2, 1) 0ms forwards;
}

.hero__subhead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 36px;
  max-width: 30em;
  opacity: 0;
  animation: heroFade 500ms cubic-bezier(0.4, 0, 0.2, 1) 80ms forwards;
}

.hero__cta-row {
  opacity: 0;
  animation: heroFade 500ms cubic-bezier(0.4, 0, 0.2, 1) 160ms forwards;
}

.appstore-cta {
  display: inline-block;
  line-height: 0;
  filter: drop-shadow(0 8px 24px rgba(45, 184, 119, 0.10));
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.appstore-cta img {
  height: 56px;
  width: auto;
  display: block;
}
.appstore-cta:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 12px 32px rgba(45, 184, 119, 0.18));
}
.appstore-cta:active { transform: scale(0.97); }
.appstore-cta[aria-disabled="true"] {
  cursor: default;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  opacity: 0.65;
}
.appstore-cta[aria-disabled="true"]:hover {
  transform: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.appstore-caption {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero__sub-cta {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-3);
  opacity: 0;
  animation: heroFade 500ms cubic-bezier(0.4, 0, 0.2, 1) 240ms forwards;
}
.hero__sub-cta strong {
  color: var(--text-2);
  font-weight: 500;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero phone */
.hero__phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 56px;
  opacity: 0;
  animation: heroPhoneIn 700ms cubic-bezier(0.4, 0, 0.2, 1) 200ms forwards;
}

@keyframes heroPhoneIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)     scale(1.0); }
}

/* ============================================================
   Reusable phone frame component
   ============================================================ */
.phone {
  --phone-w: 320px;
  --phone-radius: 44px;
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 1 / 2.17;
  background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 50%, #1a1a1a 100%);
  border-radius: var(--phone-radius);
  padding: 8px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 32px rgba(45, 184, 119, 0.08);
  animation: phoneFloat 5s ease-in-out infinite;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.phone:hover {
  box-shadow:
    0 36px 72px -24px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 48px rgba(45, 184, 119, 0.18);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--phone-radius) - 8px);
  background: #000;
  overflow: hidden;
}
.phone__screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.phone__island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 14px;
  background: #000;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ============================================================
   Scroll-reveal (generic, IntersectionObserver-driven)
   ============================================================ */
.reveal-group:not(.in-view) > * {
  opacity: 0;
  transform: translateY(14px);
}
.reveal-group.in-view > *:nth-child(1) { transition-delay: 0ms;   }
.reveal-group.in-view > *:nth-child(2) { transition-delay: 80ms;  }
.reveal-group.in-view > *:nth-child(3) { transition-delay: 160ms; }
.reveal-group.in-view > *:nth-child(4) { transition-delay: 240ms; }
.reveal-group.in-view > *:nth-child(5) { transition-delay: 320ms; }
.reveal-group.in-view > *:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-group:not(.in-view) > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Section primitives (shared by how-it-works, features, faq, etc.)
   ============================================================ */
.section {
  position: relative;
  padding: clamp(96px, 12vw, 160px) 32px;
}
.section--quiet { background: transparent; }

.section__shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 16px;
}

.section__headline {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 24px;
  max-width: 16ch;
}

.section__lead {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 64px;
  max-width: 32em;
}

@media (max-width: 640px) {
  .section { padding: 80px 20px; }
  .section__lead { margin-bottom: 48px; }
}

/* ============================================================
   How it works (3-step cards)
   ============================================================ */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hiw-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px 32px;
  overflow: hidden;
  transition: border-color 280ms cubic-bezier(0.4, 0, 0.2, 1),
              transform   400ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow  280ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity     400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hiw-card::after {
  content: '';
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hiw-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6),
              0 0 0 1px var(--accent-glow) inset;
}
.hiw-card:hover::after { opacity: 0.7; }

.hiw-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.hiw-card__num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-3);
  letter-spacing: -0.02em;
  transition: color 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hiw-card:hover .hiw-card__num { color: var(--text-2); }

.hiw-card__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(45, 184, 119, 0.04);
  transition: background 280ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hiw-card:hover .hiw-card__icon {
  background: rgba(45, 184, 119, 0.10);
  border-color: rgba(45, 184, 119, 0.30);
}

.hiw-card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
  margin: 0 0 10px;
  line-height: 1.2;
}

.hiw-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* Step 1 — Record button: pulsing inner dot */
.hiw-icon-record__dot {
  transform-origin: center;
  animation: recordPulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes recordPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(0.78); opacity: 0.65; }
}

/* Step 2 — Live waveform: 5 bars, offset */
.hiw-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.hiw-wave span {
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  animation: waveBar 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: center;
}
.hiw-wave span:nth-child(1) { height: 30%; animation-delay: 0ms;   }
.hiw-wave span:nth-child(2) { height: 70%; animation-delay: 110ms; }
.hiw-wave span:nth-child(3) { height: 95%; animation-delay: 220ms; }
.hiw-wave span:nth-child(4) { height: 55%; animation-delay: 330ms; }
.hiw-wave span:nth-child(5) { height: 40%; animation-delay: 440ms; }
@keyframes waveBar {
  0%, 100% { transform: scaleY(0.40); }
  50%      { transform: scaleY(1.00); }
}

/* Step 3 — Grade arc */
.hiw-icon-grade__arc {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: gradeDraw 1.8s cubic-bezier(0.4, 0, 0.2, 1) 200ms forwards;
}
@keyframes gradeDraw {
  to { stroke-dashoffset: 18; }
}

@media (max-width: 1024px) {
  .hiw-grid { grid-template-columns: 1fr; gap: 16px; }
  .hiw-card { padding: 28px 24px; }
  .hiw-card__num { font-size: 40px; }
  .hiw-card__head { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hiw-icon-record__dot,
  .hiw-wave span,
  .hiw-icon-grade__arc { animation: none !important; }
  .hiw-icon-grade__arc { stroke-dashoffset: 18; }
}

/* ============================================================
   Showcase strip (four phones)
   ============================================================ */
.showcase {
  position: relative;
  padding: clamp(80px, 10vw, 128px) 32px clamp(96px, 12vw, 160px);
  overflow: hidden;
}

.showcase__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.showcase__glow {
  position: absolute;
  top: 30%;
  left: -10%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(45, 184, 119, 0.06) 0%, transparent 55%);
  filter: blur(50px);
  animation: glowDrift 14s ease-in-out infinite reverse;
}

.showcase__shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase__header {
  text-align: center;
  margin-bottom: 56px;
}
.showcase__header .section__headline { margin: 0 auto 16px; }
.showcase__header .section__lead { margin: 0 auto; max-width: 36em; }

.showcase-strip {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  perspective: 1200px;
}

.showcase-phone {
  margin: 0;
  text-align: center;
  flex: 0 0 auto;

  /* Entrance state (toggled by IntersectionObserver in script.js) */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.showcase-phone.in-view {
  opacity: 1;
  transform: translateY(0);
}
.showcase-strip.in-view .showcase-phone:nth-child(1) { transition-delay: 0ms;   }
.showcase-strip.in-view .showcase-phone:nth-child(2) { transition-delay: 80ms;  }
.showcase-strip.in-view .showcase-phone:nth-child(3) { transition-delay: 160ms; }
.showcase-strip.in-view .showcase-phone:nth-child(4) { transition-delay: 240ms; }

.showcase-phone__float {
  display: inline-block;
  animation: var(--float-anim, none) 4.6s ease-in-out infinite;
  will-change: transform;
}

.showcase-phone__tilt {
  display: inline-block;
  transform: rotate(var(--rot, 0deg))
             perspective(900px)
             rotateX(var(--tilt-x, 0deg))
             rotateY(var(--tilt-y, 0deg));
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.showcase-phone .phone {
  --phone-w: 240px;
  animation: none;
  cursor: default;
}
.showcase-phone:hover .phone {
  box-shadow:
    0 44px 88px -28px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 56px rgba(45, 184, 119, 0.22);
}
.showcase-phone:hover .showcase-phone__float {
  transform: translateY(-6px);
}

.showcase-phone__caption {
  display: block;
  margin: 28px auto 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  max-width: 16ch;
  line-height: 1.5;
}

@keyframes showcaseFloat1 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes showcaseFloat2 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes showcaseFloat3 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes showcaseFloat4 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Layouts */
@media (min-width: 1025px) {
  .showcase-phone:nth-child(1) { --rot: -1.5deg; --float-anim: showcaseFloat1; transform: translateY(0); }
  .showcase-phone:nth-child(2) { --rot: -0.5deg; --float-anim: showcaseFloat2; }
  .showcase-phone:nth-child(3) { --rot: 0.5deg;  --float-anim: showcaseFloat3; }
  .showcase-phone:nth-child(4) { --rot: 1.5deg;  --float-anim: showcaseFloat4; }
  .showcase-phone:nth-child(2) .showcase-phone__float,
  .showcase-phone:nth-child(3) .showcase-phone__float { margin-top: 16px; }
  .showcase-phone:nth-child(3) .showcase-phone__float { margin-top: 24px; }
}

/* Tablet — 2x2 grid */
@media (max-width: 1024px) and (min-width: 641px) {
  .showcase-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 56px 32px;
  }
  .showcase-phone .phone { --phone-w: 200px; }
  .showcase-phone:nth-child(odd) { --rot: -0.5deg; }
  .showcase-phone:nth-child(even) { --rot: 0.5deg; }
  .showcase-phone:nth-child(1) { --float-anim: showcaseFloat1; }
  .showcase-phone:nth-child(2) { --float-anim: showcaseFloat2; }
  .showcase-phone:nth-child(3) { --float-anim: showcaseFloat3; }
  .showcase-phone:nth-child(4) { --float-anim: showcaseFloat4; }
}

/* Mobile — snap scroll */
@media (max-width: 640px) {
  .showcase { padding: 64px 0 96px; }
  .showcase__header { padding: 0 20px; margin-bottom: 40px; }
  .showcase-strip {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 20px 24px;
    gap: 16px;
    perspective: none;
  }
  .showcase-strip::-webkit-scrollbar { display: none; }
  .showcase-phone {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
  .showcase-phone .phone { --phone-w: 240px; }
  .showcase-phone:nth-child(1) { --float-anim: showcaseFloat1; }
  .showcase-phone:nth-child(2) { --float-anim: showcaseFloat2; }
  .showcase-phone:nth-child(3) { --float-anim: showcaseFloat3; }
  .showcase-phone:nth-child(4) { --float-anim: showcaseFloat4; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase__glow,
  .showcase-phone__float { animation: none !important; }
  .showcase-phone {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .showcase-phone__tilt { transition: none !important; }
}

/* ============================================================
   Feature grid (six tiles with cursor-aware glow)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 280ms cubic-bezier(0.4, 0, 0.2, 1),
              transform   400ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity     400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cursor-aware glow layer — sits above bg, below content */
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, -100%),
    rgba(45, 184, 119, 0.10) 0%,
    rgba(45, 184, 119, 0.05) 25%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.feature:hover { border-color: var(--border-hover); }
.feature:hover::before { opacity: 1; }

.feature__inner {
  position: relative;
  z-index: 1;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-2);
  margin-bottom: 18px;
  transition: color 240ms cubic-bezier(0.4, 0, 0.2, 1),
              background 240ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.feature__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}
.feature:hover .feature__icon {
  color: var(--accent);
  background: rgba(45, 184, 119, 0.06);
  border-color: rgba(45, 184, 119, 0.25);
}

.feature__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 0 0 6px;
  line-height: 1.3;
}

.feature__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature { padding: 24px 20px; }
}

@media (hover: none) {
  .feature::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .feature,
  .feature__icon,
  .feature::before { transition: none !important; }
}

/* ============================================================
   Who it's for (chips)
   ============================================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: border-color 220ms cubic-bezier(0.4, 0, 0.2, 1),
              color      220ms cubic-bezier(0.4, 0, 0.2, 1),
              background 220ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity    400ms cubic-bezier(0.4, 0, 0.2, 1),
              transform  400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.chip:hover {
  border-color: var(--border-hover);
  color: var(--text-1);
  background: var(--surface-elevated);
}

@media (max-width: 640px) {
  .chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: none;
    margin: 0 -20px;
    padding: 4px 20px 4px 20px;
  }
  .chips::-webkit-scrollbar { display: none; }
}

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: opacity   400ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-1);
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { color: var(--text-1); }

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-2);
  border-radius: 2px;
  transition: background 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: var(--accent);
}

.faq-body {
  padding: 0 4px 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 60ch;
}
.faq-body p { margin: 0; color: inherit; }
.faq-body a { color: var(--accent); text-decoration: none; }
.faq-body a:hover { text-decoration: underline; }

/* Smooth open via CSS-only details with content-visibility trick:
   Native <details> doesn't animate, so we soften with a wrapper. */
.faq-item .faq-body { animation: faqOpen 280ms cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .faq-summary { font-size: 16px; padding: 20px 4px; gap: 16px; }
  .faq-body { font-size: 15px; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item .faq-body { animation: none; }
  .faq-icon,
  .faq-icon::before,
  .faq-icon::after { transition: none !important; }
}

/* ============================================================
   Closing CTA strip
   ============================================================ */
.cta-strip {
  position: relative;
  padding: clamp(96px, 12vw, 144px) 32px;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-strip__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.cta-strip__glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1000px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(45, 184, 119, 0.07) 0%, transparent 55%);
  filter: blur(40px);
  animation: glowDrift 12s ease-in-out infinite;
}

.cta-strip__shell {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-strip__headline {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 32px;
}

.cta-strip__sub {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--text-3);
}
.cta-strip__sub strong { color: var(--text-2); font-weight: 500; }

@media (max-width: 640px) {
  .cta-strip { padding: 80px 20px; }
}

/* ============================================================
   Footer (landing) — slightly different from /assets/style.css default
   ============================================================ */
.landing-footer {
  position: relative;
  padding: 64px 32px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}
.landing-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.landing-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
}
.landing-footer__brand:hover { text-decoration: none; }
.landing-footer__brand img { width: 24px; height: 24px; }
.landing-footer nav {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.landing-footer nav a {
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 150ms ease;
}
.landing-footer nav a:hover { color: var(--text-1); text-decoration: none; }
.landing-footer__legal {
  color: var(--text-3);
  font-size: 13px;
}
.landing-footer__legal a { color: var(--text-2); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero { padding: calc(128px + env(safe-area-inset-top, 0px)) 24px 80px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; text-align: left; }
  .hero__phone-wrap { padding-top: 0; }
  .phone { --phone-w: 280px; }
}

@media (max-width: 640px) {
  .hero { padding: calc(96px + env(safe-area-inset-top)) 20px 64px; }
  .hero__headline { font-size: clamp(40px, 11vw, 56px); }
  .hero__subhead { font-size: 16px; }
  .appstore-cta img { height: 52px; }
  .phone { --phone-w: 240px; }
}

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__headline,
  .hero__subhead,
  .hero__cta-row,
  .hero__sub-cta,
  .hero__phone-wrap {
    opacity: 1;
    animation: none;
    transform: none;
  }
  .hero__glow,
  .phone {
    animation: none !important;
  }
  .landing-nav,
  .landing-nav__cta img,
  .appstore-cta,
  .phone,
  .landing-nav__links a,
  .landing-footer nav a {
    transition: none !important;
  }
}
