/* =========================================================================
   Sniffies SFW Landing Page
   Policy pages loads policy-pages.css instead
   ========================================================================= */

:root {
  --bg-black: #000000;
  --bg-navy: #182339;
  --bg-notch: #07101e;
  --text: #ffffff;
  --text-muted: #d4d9e4;
  --maxw: 1280px;
  --gutter: clamp(18px, 5vw, 72px);

  --font-heading: 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  --font-body: Arial, 'Helvetica Neue', Helvetica, 'Roboto', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  transition:
    color 0.25s,
    background-color 0.25s,
    border-color 0.25s,
    opacity 0.25s,
    text-shadow 0.25s,
    fill 0.25s;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-black);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.landing {
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* ---- Shared typography ---- */
.display {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-stretch: condensed;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  overflow-wrap: break-word;
  text-wrap: balance;
}

.lede {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1.25;
  color: var(--text);
}

/* ---- Sniffies wordmark ---- */
.wordmark {
  display: block;
  width: 100%;
  height: 100%;
  fill: #fff;
}

/* ---- Store badges (official Apple SVG + Google Play PNG) ---- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
}

.store-badge img {
  width: auto;
  display: block;
}

.store-badge[data-store='ios'] img,
.store-badge[data-store='android'] img {
  height: 48px;
}

/* hide until Android app is live */
.store-badge[data-store='android'] {
  display: none;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* =========================================================================
   MODULE 1 — HERO
   ========================================================================= */
.hero {
  position: relative;
  background: var(--bg-black);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
}

.hero__inner {
  position: relative;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 83vh;
  max-width: 100vw;
}

.hero__logo {
  position: absolute;
  top: clamp(28px, 4vw, 52px);
  left: var(--gutter);
  width: clamp(180px, 19vw, 276px);
  height: auto;
  aspect-ratio: 1000 / 218.3;
}

.hero__copy {
  width: min(46%, 520px);
}

/* =========================================================================
   MODULE 2 — FEATURES
   ========================================================================= */
.features {
  position: relative;
  background: var(--bg-navy);
  overflow: hidden;
}

.features__map {
  position: absolute;
  inset: 0;
  background-image: url('images/map.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.features__map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #000 0%, transparent 70%);
}

.features__map::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, transparent 55%);
}

.features__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    'intro     leadphone'
    'phone     features';
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 0;
  align-items: start;
}

.features__intro {
  grid-area: intro;
  align-self: center;
  max-width: 560px;
}

.features__lead-phone {
  grid-area: leadphone;
  justify-self: end;
  align-self: start;
}

.features__lead-phone .lead-phone {
  width: clamp(360px, 46vw, 620px);
  height: auto;
  /* lift the lead phone so it floats up toward the hero, as in the design */
  margin-top: clamp(-120px, -8vw, -40px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.lead-phone--mobile {
  display: none;
}

.features__phone {
  grid-area: phone;
  justify-self: center;
  align-self: center;
}

/* Rotating phone stack */
.phone-rotator {
  position: relative;
  width: clamp(240px, 26vw, 360px);
  aspect-ratio: 394 / 723;
}

.phone-rotator__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

.phone-rotator__slide.is-active {
  opacity: 1;
}

/* Feature list */
.feature-list {
  grid-area: features;
  align-self: center;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 44px);
  max-width: 560px;
}

.feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 18px;
  align-items: start;
}

.feature__icon {
  grid-row: 1 / span 2;
  font-size: 34px;
  line-height: 1;
  color: var(--text);
  width: 56px;
  text-align: center;
  margin-top: 2px;
}

.feature__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  font-size: clamp(1.9rem, 2.6vw, 3rem);
  color: var(--text);
}

.feature__text {
  margin: 8px 0 0;
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  line-height: 1.2;
  color: var(--text);
}

/* =========================================================================
   MODULE 3 — CURIOUS
   ========================================================================= */
.curious {
  aspect-ratio: 1200 / 659;
  background: var(--bg-black);
  position: relative;
  max-height: 840px;
  margin: auto;
}

.curious__media {
  position: absolute;
  inset: 0;
  background-image: url('images/park.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  aspect-ratio: 1200 / 659;
}

.curious__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-black) 0%, transparent 5%, transparent 95%, var(--bg-black) 100%);
}

.curious__copy {
  position: absolute;
  bottom: clamp(23px, 3vw, 196px);
  left: 50%;
  transform: translateX(-50%);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.curious .display {
  font-size: clamp(2.75rem, 5.5vw, 4rem);
}

.curious .lede {
  max-width: 520px;
}

.curious .store-badges {
  justify-content: center;
}

.curious__logo {
  width: 170px;
  height: 36px;
  margin-top: 32px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--bg-black);
  padding: clamp(50px, 5vw, 80px) var(--gutter);
}

.site-footer__inner {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__inner p {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.site-footer a {
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
}

.site-footer a:hover {
  color: #ffffff;
  opacity: 0.85;
}

/* =========================================================================
   RESPONSIVE — MOBILE
   ========================================================================= */
@media screen and (max-width: 767px) {
  /* ---- Sniffies wordmark ---- */
  .wordmark.curious__logo {
    display: none;
  }

  /* ---- Hero: photo on top, copy stacked below on black ---- */
  .hero {
    display: block;
  }

  .hero__media {
    background-image: url('images/hero-mobile.jpg');
    background-repeat: no-repeat;
    position: relative;
    inset: auto;
    width: 100%;
    max-height: 80vh;
    aspect-ratio: 600 / 949;
  }

  .hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.75) 2%,
      rgba(0, 0, 0, 0.35) 7%,
      rgba(0, 0, 0, 0.1) 23%,
      transparent 34%
    );
  }

  .hero__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      var(--bg-black) 0%,
      rgba(0, 0, 0, 0.75) 3%,
      rgba(0, 0, 0, 0.35) 6%,
      rgba(0, 0, 0, 0.1) 9%,
      transparent 12%
    );
  }

  .hero__inner {
    display: block;
    height: auto;
    padding: 0 var(--gutter) 44px;
    text-align: center;
  }

  .hero__logo {
    top: 30px;
    left: 30px;
    width: 181px;
  }

  .hero__copy {
    width: 100%;
    max-width: 100%;
  }

  .hero .display {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
  }

  .hero .store-badges,
  .curious .store-badges {
    justify-content: center;
  }

  /* ---- Features: single centered column ---- */
  .features__map {
    background-image: url('images/map-mobile.jpg');
    background-repeat: no-repeat;
  }

  .features__map::after {
    background: linear-gradient(to bottom, #000 0%, transparent 50%);
  }

  .features__map::before {
    background: linear-gradient(to top, #000 0%, transparent 80%);
  }

  .features__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px var(--gutter) 56px;
    gap: 36px;
  }

  .features__intro {
    order: 2;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .features .display {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
  }

  .features__lead-phone {
    order: 1;
    margin: 0 auto;
  }

  .lead-phone--desktop {
    display: none;
  }

  .lead-phone--mobile {
    display: block;
    width: min(86%, 360px);
    margin: 0 auto;
  }

  .features__lead-phone .lead-phone {
    margin-top: 0;
  }

  .features__phone {
    order: 3;
  }

  .phone-rotator {
    width: 250px;
  }

  .feature-list {
    order: 4;
    gap: 32px;
  }

  /* icon centered above the title, everything centered */
  .feature {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 10px;
  }

  .feature__icon {
    grid-row: auto;
    font-size: 28px;
  }

  .feature__title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .feature__text {
    max-width: 320px;
  }

  .curious {
    display: block;
    max-height: none;
  }

  .curious__media {
    position: relative;
    width: 100%;
    aspect-ratio: 400 / 401;
    background-image: url('images/park-mobile.jpg');
    background-repeat: no-repeat;
    background-position: top center;
  }

  .curious__copy {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 52px var(--gutter) 44px;
  }

  .curious .display {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .site-footer__inner {
    max-width: 300px;
  }
}

/* Small phones: let badges sit comfortably */
@media screen and (max-width: 380px) {
  .hero__media {
    aspect-ratio: 600 / 730;
  }

  .store-badge[data-store='ios'] img,
  .store-badge[data-store='android'] img {
    height: 42px;
  }
}

/* =========================================================================
   Tablet tuning (between mobile and full desktop)
   ========================================================================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .hero__copy {
    width: min(52%, 460px);
  }

  .features__lead-phone .lead-phone {
    width: clamp(320px, 44vw, 460px);
  }
}

/* Honour reduced-motion for the rotating phone (JS also checks this) */
@media (prefers-reduced-motion: reduce) {
  .phone-rotator__slide {
    transition: none;
  }
}
