/* ============================================================
   BagWatch homepage — built to the Figma "BagWatch-Website"
   Sections: sticky nav · hero · how-it-works · testimonials
             · keep-in-touch · footer
   ============================================================ */

.fw {
  --ink: #14171a;
  --vermilion: #fe4e02;
  --link: #007aff;
  --gray-300: #d2d5da;
  --gray-500: #6d7280;
  --gray-600: #4b5563;
  --radius-64: 64px;
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.fw main { display: block; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

.g-italic { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.g-reg { font-family: Georgia, "Times New Roman", serif; font-style: normal; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- shared download button ---------- */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); text-decoration: none; }
.btn-download--light { background: #fff; color: var(--ink); }
.btn-download .apple { display: block; }

.dl-label-short { display: none; }

@media (max-width: 409px) {
  .dl-label-long { display: none; }
  .dl-label-short { display: inline; }
}

/* ============================================================
   NAV
   ============================================================ */
.fw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 24px 0 32px;
  pointer-events: none;
}
.fw-nav-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
  transition: opacity 0.35s ease;
}
.fw-nav[data-theme="dark"] .fw-nav-fade {
  background-image: url("../assets/site/nav-fade-dark.png");
}
/* light theme (over white panel) — Figma Nav/LightBG 86-1988 */
.fw-nav[data-theme="light"] {
  overflow: clip;
  padding-bottom: 24px;
}
.fw-nav[data-theme="light"] .fw-nav-fade {
  inset: 0;
  height: auto;
  background-image: url("../assets/site/nav-fade-light.png");
  background-size: cover;
}
.fw-nav[data-theme="light"] .fw-nav-logo img {
  filter: none;
  content: url("../assets/site/logo-dark.svg");
}
.fw-nav[data-theme="light"] .fw-nav-pill {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.6), inset -1px -1px 1px rgba(0, 0, 0, 0.08);
}
.fw-nav[data-theme="light"] .fw-nav-link {
  color: rgba(0, 0, 0, 0.7);
  line-height: 27px;
}
.fw-nav[data-theme="light"] .fw-nav-link:hover {
  color: #000;
  background: rgba(255, 255, 255, 0.45);
}
.fw-nav[data-theme="light"] .fw-nav-dl {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.fw-nav-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}
.fw-nav-logo { pointer-events: auto; display: inline-flex; }
.fw-nav-logo img { height: 22px; width: auto; display: block; transition: filter 0.3s ease; }

.fw-nav-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  overflow: clip;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.fw-nav-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}
.fw-nav-link:hover { text-decoration: none; }
.fw-nav-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
}
.fw-nav-dl:hover { transform: translateY(-1px); text-decoration: none; }
.fw-nav-dl .apple { display: block; }

/* dark theme (over hero / footer) */
.fw-nav[data-theme="dark"] .fw-nav-logo img { filter: brightness(0) invert(1); }
.fw-nav[data-theme="dark"] .fw-nav-pill {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.4), inset -1px -1px 1px rgba(255, 255, 255, 0.2);
}
.fw-nav[data-theme="dark"] .fw-nav-link { color: rgba(255, 255, 255, 0.85); }
.fw-nav[data-theme="dark"] .fw-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.fw-nav[data-theme="dark"] .fw-nav-dl { background: #000; color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.fw-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(20px, 6vw, 96px) clamp(64px, 9vh, 96px);
  overflow: hidden;
  background: #000;
}
.fw-hero-bg {
  position: absolute;
  inset: -2% 0 -10% 0;
  background-size: cover;
  background-position: center top;
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.fw-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.88) 100%);
}
.fw-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}
.fw-hero-title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(40px, 8.5vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  color: #fff;
}
.fw-hero-sub {
  margin: 0 auto;
  max-width: 620px;
  font-weight: 300;
  font-size: clamp(16px, 2.2vw, 19.2px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   WHITE ROUNDED PANEL (how-it-works + testimonials + keep)
   ============================================================ */
.fw-panel {
  position: relative;
  z-index: 3;
  background: #fff;
  border-radius: var(--radius-64);
  margin-top: calc(var(--radius-64) * -1);
}

/* ---------- HOW IT WORKS ---------- */
.fw-how { padding-top: 24px; }

.fw-how-desktop { display: none; }

/* desktop pinned scroller */
@media (min-width: 920px) {
  .fw-how-desktop {
    display: block;
    position: relative;
    width: min(100% - 96px, 1200px);
    margin-inline: auto;
  }
  .fw-how-phone-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
  }
  .fw-how-steps {
    position: relative;
    z-index: 2;
    margin-top: -100vh;
  }
  .fw-how-step {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  .fw-how-step--left { justify-content: flex-start; }
  .fw-how-step--right { justify-content: flex-end; }
  .fw-how-text { width: 384px; max-width: 38%; }
  .fw-how-mobile { display: none; }
}

.fw-how-text h2 {
  margin: 0 0 16px;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.0;
  letter-spacing: -0.2px;
  color: #000;
}
.fw-how-text p {
  margin: 0;
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.67;
  color: rgba(0, 0, 0, 0.65);
}

/* soft radial glow behind phone */
.fw-how-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 28% at 30% 34%, rgba(238, 228, 250, 0.7) 0%, rgba(238, 228, 250, 0) 72%),
    radial-gradient(42% 30% at 72% 70%, rgba(218, 232, 248, 0.75) 0%, rgba(218, 232, 248, 0) 72%);
  filter: blur(6px);
}

/* phone frame + screens */
.phone {
  position: relative;
  width: clamp(220px, 26vw, 300px);
  aspect-ratio: 230 / 480;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.18));
}
.phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.phone-screens {
  position: absolute;
  left: 4.32%;
  top: 2.99%;
  width: 91.62%;
  height: 95.6%;
  border-radius: 8% / 4%;
  overflow: hidden;
  z-index: 1;
  background: #fff;
}
.phone-screens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.phone-screens img.is-active { opacity: 1; }

/* mobile stacked how-it-works — hidden on desktop */
.fw-how-mobile { display: none; }

@media (max-width: 919px) {
  .fw-how-mobile {
    display: flex;
    flex-direction: column;
    gap: 72px;
    width: min(100% - 48px, 520px);
    margin: 0 auto;
    padding: 24px 0 8px;
  }
}
.fw-how-m { text-align: center; }
.fw-how-m .phone--m { width: clamp(190px, 56vw, 240px); margin: 0 auto 28px; }
.fw-how-m h2 {
  margin: 0 0 12px;
  font-weight: 300;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.2px;
  color: #000;
}
.fw-how-m p {
  margin: 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.65);
}

/* ---------- TESTIMONIALS ---------- */
.fw-testi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding-top: clamp(80px, 12vh, 128px);
  overflow: hidden;
}
.fw-testi-head { max-width: 672px; width: min(100% - 48px, 672px); text-align: center; }
.fw-testi-head h2 {
  margin: 0 0 19px;
  font-weight: 300;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.24px;
  color: #000;
}
.fw-testi-head p {
  margin: 0 auto;
  max-width: 576px;
  font-weight: 300;
  font-size: 17.6px;
  line-height: 1.66;
  color: rgba(0, 0, 0, 0.55);
}

.fw-marquee {
  width: 100%;
  padding-bottom: clamp(80px, 12vh, 128px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.fw-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-inline: 24px;
  animation: marquee 60s linear infinite;
}
.fw-marquee:hover .fw-marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.fw-card {
  flex: 0 0 auto;
  width: min(86vw, 420px);
  min-height: 320px;
  margin: 0;
  padding: 32px;
  border-radius: 40px;
  background: #fff;
  box-shadow:
    0 -4px 32px -12px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 12px 36px -14px rgba(0, 0, 0, 0.05),
    0 28px 60px -24px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fw-stars { display: flex; gap: 4px; }
.fw-stars img { width: 16px; height: 16px; }
.fw-card blockquote {
  margin: 24px 0 0;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.52;
  color: rgba(0, 0, 0, 0.85);
}
.fw-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 14.9px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.45);
}
.fw-card figcaption img { width: 17px; height: 17px; }

/* ---------- KEEP IN TOUCH ---------- */
.fw-keep {
  padding: clamp(80px, 12vh, 128px) clamp(20px, 6vw, 96px);
  display: flex;
  justify-content: center;
}
.fw-keep-inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.fw-keep h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.24px;
  color: #000;
  text-align: center;
}
.fw-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.fw-field { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.fw-field label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.28px;
  color: #000;
}
.fw-field input,
.fw-field textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fw-field input { height: 50px; }
.fw-field textarea { min-height: 152px; resize: vertical; }
.fw-field input::placeholder,
.fw-field textarea::placeholder { color: var(--gray-500); }
.fw-field input:focus,
.fw-field textarea:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}
.fw-send {
  height: 42px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.fw-send:hover { transform: translateY(-1px); }
.fw-form-status { margin: 0; font-size: 14px; min-height: 1em; color: var(--gray-600); text-align: center; }
.fw-form-status.is-error { color: var(--danger, #ff3b30); }
.fw-form-status.is-success { color: #007aff; }
.fw-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.fw-send:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.fw-keep-help {
  margin: 0;
  max-width: 600px;
  text-align: center;
  font-weight: 300;
  font-size: 17.6px;
  line-height: 1.66;
  color: rgba(0, 0, 0, 0.55);
}
.fw-keep-help a { color: var(--link); text-decoration: none; }
.fw-keep-help a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER (revealed beneath rounded panel)
   ============================================================ */
.fw-footer {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--radius-64) * -1);
  padding: 60px 24px;
  overflow: hidden;
  background: #1c1c1c;
}
.fw-footer-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.fw-footer-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(28, 28, 28, 0.8));
}
.fw-footer-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin-inline: auto;
}
.fw-footer-hero {
  min-height: 566px;
  max-width: 672px;
  margin: 0 auto;
  padding: 100px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 23px;
  text-align: center;
}
.fw-footer-icon {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 0 80px 10px rgba(255, 255, 255, 0.5);
}
.fw-footer-hero h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.52px;
  color: #fff;
}
.fw-footer-sub {
  margin: 0;
  font-weight: 300;
  font-size: clamp(16px, 2.3vw, 19.1px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.fw-footer-sub strong { font-weight: 700; }
.fw-footer-hero .btn-download { margin-top: 17px; }
.fw-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}
.fw-copy {
  font-size: 9.8px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 300;
}
.fw-footer-links { display: flex; gap: 24px; }
.fw-footer-links a {
  font-size: 11px;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  text-decoration: none;
}
.fw-footer-links a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* < 910px — nav shows Download App only */
@media (max-width: 909px) {
  .fw-nav-link { display: none; }
  .fw-nav-pill {
    gap: 0;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* < 600px — nav menu aligned right */
@media (max-width: 599px) {
  .fw-nav-pill {
    left: auto;
    right: 0;
    transform: none;
  }
  .fw-nav[data-theme="dark"] .fw-nav-dl { background: #000; }
  .fw-footer-hero {
    min-height: auto;
    padding: 64px 16px 32px;
    gap: 20px;
  }
  .fw-footer-icon {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    box-shadow: 0 0 60px 8px rgba(255, 255, 255, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fw-hero-bg { animation: none; }
  .fw-marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
