/* Wheech marketing site — layout on top of wheech-lz.css */

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--wh-bg);
  color: var(--wh-ink);
  font-family: var(--wh-font);
  font-size: var(--wh-size-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

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

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

/* ── Layout ── */

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--wh-space-6);
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--wh-faint);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__lead {
  font-size: 17px;
  font-weight: 500;
  color: var(--wh-muted);
  line-height: 1.55;
  max-width: 560px;
}

/* ── Nav ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--wh-stroke) solid var(--wh-line);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wh-space-4);
  padding: 14px var(--wh-space-6);
  max-width: 1100px;
  margin: 0 auto;
}

.site-nav .wh-wordmark {
  font-size: 28px;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-nav__stores {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 10px 18px;
  background: var(--wh-lime);
  border: var(--wh-stroke) solid var(--wh-ink);
  border-radius: var(--wh-radius-pill);
  box-shadow: var(--wh-shadow-sm);
  font-size: 13px;
  font-weight: 800;
  color: var(--wh-ink);
}

@media (max-width: 640px) {
  .site-nav__inner {
    padding: 12px var(--wh-space-4);
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .site-nav .wh-wordmark {
    font-size: 24px;
  }

  .site-nav__actions {
    gap: 8px;
  }

  .site-nav__stores {
    gap: 6px;
  }

  .site-nav .store-badge--nav .store-badge__text {
    display: none;
  }

  .site-nav .store-badge--nav {
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .site-nav__cta {
    padding: 10px 12px;
    font-size: 11px;
    min-height: 44px;
  }
}

/* ── Hero hook ── */

.hook-stat {
  width: 100%;
  max-width: 960px;
  text-align: center;
  padding: 28px 32px;
  background: var(--wh-orange-lt);
  border: var(--wh-stroke) solid var(--wh-ink);
  border-radius: var(--wh-radius-xl);
  box-shadow: 6px 6px 0 var(--wh-ink);
}

.hook-stat__headline {
  font-family: var(--wh-font-display);
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
  color: var(--wh-ink);
}

.hook-stat__proj {
  color: var(--wh-muted);
}

.hook-stat__actual {
  color: var(--wh-orange);
}

.hook-stat__body {
  margin: 0 0 12px;
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--wh-ink);
}

.hook-stat__body strong {
  font-weight: 800;
}

.hook-stat__source {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--wh-muted);
  line-height: 1.4;
}

/* ── Hero ── */

.hero {
  padding: 32px 0 56px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-art {
  margin: 0;
  width: 100%;
  max-width: 960px;
  border: var(--wh-stroke) solid var(--wh-ink);
  border-radius: var(--wh-radius-xl);
  box-shadow: 6px 6px 0 var(--wh-ink);
  overflow: hidden;
  background: var(--wh-surface);
}

.hero-art__img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: var(--wh-stroke) solid var(--wh-ink);
  border-radius: var(--wh-radius-pill);
  box-shadow: var(--wh-shadow-md);
  font-size: 15px;
  font-weight: 800;
  color: var(--wh-ink);
  background: var(--wh-lime);
  transition: box-shadow var(--wh-dur-fast) var(--wh-ease),
    transform var(--wh-dur-fast) var(--wh-ease);
}

.hero__cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--wh-ink);
}

.hero__cta--ghost {
  background: var(--wh-surface);
}

/* ── Phone screenshot frames ── */

.phone-frame {
  margin: 0;
  max-width: 280px;
  width: 100%;
}

.phone-frame--lg {
  max-width: 320px;
}

.phone-frame__shell {
  border: var(--wh-stroke) solid var(--wh-ink);
  border-radius: 28px;
  box-shadow: var(--wh-shadow-md);
  background: var(--wh-surface);
  padding: 12px 10px;
  overflow: hidden;
}

.phone-frame__screen {
  border-radius: 18px;
  overflow: hidden;
  background: var(--wh-bg);
  aspect-ratio: 390 / 844;
  position: relative;
}

.screenshot-slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-slot .screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screenshot-slot.has-image .screenshot-placeholder {
  display: none;
}

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  border: var(--wh-stroke) dashed var(--wh-faint);
  border-radius: var(--wh-radius-lg);
  padding: 16px;
  text-align: center;
}

.screenshot-placeholder__label {
  font-size: 13px;
  font-weight: 800;
  color: var(--wh-muted);
}

.screenshot-placeholder__file {
  font-size: 11px;
  font-weight: 600;
  color: var(--wh-faint);
  font-family: ui-monospace, monospace;
}

/* ── How it works ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--wh-lime);
  border: var(--wh-stroke) solid var(--wh-ink);
  border-radius: 50%;
  box-shadow: var(--wh-shadow-sm);
  font-size: 16px;
  font-weight: 900;
}

.step__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

.step__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--wh-muted);
  line-height: 1.55;
}

.step .phone-frame {
  margin-top: auto;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Why Wheech ── */

.why-wheech {
  background: var(--wh-lime-lt);
  border-bottom: var(--wh-stroke) solid var(--wh-ink);
  position: relative;
  overflow: hidden;
}

.why-wheech::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 82, 25, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 88% 72%, rgba(27, 163, 232, 0.1) 0%, transparent 38%);
  pointer-events: none;
}

.why-wheech .container {
  position: relative;
}

.why-wheech .section__lead {
  margin-bottom: 0;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 36px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(6, 1fr);
  }

  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) {
    grid-column: span 2;
  }

  .feature-card:nth-child(5) {
    grid-column: 2 / 4;
  }

  .feature-card:nth-child(6) {
    grid-column: 4 / 6;
  }
}

.feature-card {
  border: var(--wh-stroke) solid var(--wh-ink);
  border-radius: var(--wh-radius-xl);
  box-shadow: var(--wh-shadow-md);
  padding: 22px 24px;
  background: var(--wh-surface);
  transition: transform var(--wh-dur-fast) var(--wh-ease),
    box-shadow var(--wh-dur-fast) var(--wh-ease);
}

.feature-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--wh-ink);
}

.feature-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  background: var(--wh-orange);
}

.feature-card--featured .feature-card__text {
  color: var(--wh-ink);
}

.feature-card--featured .feature-card__source {
  color: color-mix(in srgb, var(--wh-ink) 60%, var(--wh-orange));
}

.feature-card--featured .feature-card__stat {
  color: var(--wh-orange);
}

.feature-card:nth-child(2),
.feature-card:nth-child(4),
.feature-card:nth-child(6) {
  background: var(--wh-lime-mid);
}

.feature-card:nth-child(3),
.feature-card:nth-child(5) {
  background: var(--wh-surface);
}

.feature-card__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 2px solid var(--wh-ink);
  border-radius: var(--wh-radius-pill);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.feature-card__badge--orange {
  background: var(--wh-orange);
  color: var(--wh-surface);
}

.feature-card__badge--lime {
  background: var(--wh-lime);
  color: var(--wh-ink);
}

.feature-card__badge--blue {
  background: var(--wh-blue);
  color: var(--wh-surface);
}

.feature-card__stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 220px;
  padding: 20px 20px;
  background: var(--wh-surface);
  border: var(--wh-stroke) solid var(--wh-ink);
  border-radius: var(--wh-radius-lg);
  box-shadow: 4px 4px 0 var(--wh-ink);
}

.feature-card__stat {
  font-family: var(--wh-font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--wh-orange);
  white-space: nowrap;
}

.feature-card__stat-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  color: var(--wh-muted);
}

.feature-card__title {
  font-family: var(--wh-font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-card__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--wh-muted);
  line-height: 1.55;
  margin: 0;
}

.feature-card__text strong {
  color: var(--wh-ink);
  font-weight: 800;
}

.feature-card__source {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--wh-faint);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .feature-card--featured {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
    text-align: center;
  }

  .feature-card__stat-block {
    margin: 0 auto;
    width: min(100%, 260px);
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .feature-card:nth-child(6) {
    grid-column: 1 / -1;
    max-width: calc(50% - 9px);
    justify-self: center;
  }
}


/* ── Screenshots gallery ── */

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.screenshots-grid .phone-frame {
  margin: 0 auto;
}

.screenshots-grid__caption {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wh-muted);
}

.screenshots-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
  .screenshots-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .screenshots-grid,
  .screenshots-grid--5 {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Get the app ── */

.get-app {
  text-align: center;
}

.get-app .section__lead {
  margin: 0 auto 32px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--wh-surface);
  border: var(--wh-stroke) solid var(--wh-ink);
  border-radius: var(--wh-radius-lg);
  box-shadow: var(--wh-shadow-md);
  min-width: 200px;
  cursor: default;
}

.store-badge__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--wh-ink);
}

.store-badge__text {
  text-align: left;
}

.store-badge__small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--wh-faint);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.store-badge__label {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.site-nav .store-badge--nav {
  min-width: 0;
  padding: 8px 12px;
  gap: 8px;
  box-shadow: var(--wh-shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--wh-dur-fast) var(--wh-ease),
    transform var(--wh-dur-fast) var(--wh-ease);
}

.site-nav .store-badge--nav:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--wh-ink);
}

.site-nav .store-badge--nav .store-badge__icon {
  width: 20px;
  height: 20px;
}

.site-nav .store-badge--nav .store-badge__label {
  font-size: 13px;
}

.get-app__note {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wh-faint);
}

/* ── Footer ── */

.site-footer {
  margin-top: auto;
  border-top: var(--wh-stroke) solid var(--wh-ink);
  background: var(--wh-surface);
  padding: 32px 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__copy {
  font-size: 13px;
  font-weight: 600;
  color: var(--wh-muted);
}

.site-footer__links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wh-faint);
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
}

.site-footer__links a:hover {
  color: var(--wh-ink);
  text-decoration: underline;
}

.site-footer__legal {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--wh-faint);
  line-height: 1.55;
}

.site-footer__disclaimer {
  width: 100%;
  margin: 12px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--wh-line);
  font-size: 11px;
  font-weight: 500;
  color: var(--wh-faint);
  line-height: 1.6;
  max-width: 720px;
}

/* ── Mobile ── */

@media (max-width: 640px) {
  .container {
    padding-left: max(var(--wh-space-4), env(safe-area-inset-left));
    padding-right: max(var(--wh-space-4), env(safe-area-inset-right));
  }

  .section {
    padding: 48px 0;
  }

  .section--tight {
    padding: 40px 0;
  }

  .section__title {
    font-size: 26px;
  }

  .section__lead {
    font-size: 16px;
  }

  .hero {
    padding: 20px 0 40px;
  }

  .hero__inner {
    gap: 20px;
  }

  .hook-stat {
    padding: 22px 20px;
    border-radius: var(--wh-radius-lg);
    box-shadow: 4px 4px 0 var(--wh-ink);
  }

  .hero-art {
    border-radius: var(--wh-radius-lg);
    box-shadow: 4px 4px 0 var(--wh-ink);
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta {
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
  }

  .feature-card {
    padding: 20px;
  }

  .step .phone-frame {
    margin-left: auto;
    margin-right: auto;
  }

  .store-badge {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .site-footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__links {
    justify-content: center;
  }
}

/* Screenshots: horizontal scroll on phones */
@media (max-width: 767px) {
  .screenshots-grid--5 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-top: 32px;
    margin-left: calc(-1 * max(var(--wh-space-4), env(safe-area-inset-left)));
    margin-right: calc(-1 * max(var(--wh-space-4), env(safe-area-inset-right)));
    padding: 4px max(var(--wh-space-4), env(safe-area-inset-right)) 12px
             max(var(--wh-space-4), env(safe-area-inset-left));
    max-width: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .screenshots-grid--5::-webkit-scrollbar {
    display: none;
  }

  .screenshots-grid--5 > div {
    flex: 0 0 min(72vw, 260px);
    scroll-snap-align: start;
  }

  #screenshots .section__lead::after {
    content: " Swipe to browse.";
    color: var(--wh-faint);
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .screenshots-grid--5 > div {
    flex-basis: min(44vw, 240px);
  }
}
