/* Honest World — product home page */

:root {
  --bg: oklch(0.1 0.02 35);
  --bg-elevated: oklch(0.14 0.02 35);
  --ink: oklch(0.97 0.01 90);
  --muted: oklch(0.72 0.02 50);
  --coral: oklch(0.7 0.18 30);
  --coral-hot: oklch(0.74 0.19 28);
  --trust: oklch(0.84 0.22 130);
  --verify: oklch(0.88 0.14 95);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --pad: clamp(20px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  scroll-padding-top: 12px;
}

/* anchor targets: keep section headings readable after jump */
#top,
#how,
#trust,
#roles,
#community,
#get-app,
#download {
  scroll-margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Hero — 4 depth planes from redrawn cutouts */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0a0706;
}

.parallax-layer {
  position: absolute;
  /* extra width for parallax drift; crop is locked to the right edge */
  inset: -8% -4% -8% -18%;
  background-size: auto 120%;
  background-position: right 42%;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.04);
}

.parallax-far {
  z-index: 1;
}

.parallax-mid {
  z-index: 2;
}

.parallax-ground {
  z-index: 3;
}

.parallax-near {
  z-index: 4;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* left dark for copy; keep the right light enough to read the silhouette */
  background:
    linear-gradient(
      95deg,
      oklch(0.08 0.02 30 / 0.88) 0%,
      oklch(0.08 0.02 30 / 0.62) 38%,
      oklch(0.08 0.02 30 / 0.22) 68%,
      oklch(0.08 0.02 30 / 0.1) 100%
    ),
    linear-gradient(
      180deg,
      oklch(0.08 0.02 30 / 0.45) 0%,
      transparent 38%,
      oklch(0.08 0.02 30 / 0.55) 72%,
      oklch(0.08 0.02 30 / 0.9) 100%
    );
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: rise 0.8s var(--ease) both;
}

.hero-body {
  position: relative;
  z-index: 2;
}

.nav-brand img {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 8px 20px oklch(0 0 0 / 0.45));
}

.hero-logo {
  width: clamp(100px, 18vw, 148px);
  height: auto;
  margin: 0 0 20px;
  filter: drop-shadow(0 14px 32px oklch(0.5 0.15 30 / 0.45));
  animation: rise 0.85s var(--ease) both;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: oklch(0.9 0.01 90 / 0.85);
}

.nav-links a {
  position: relative;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero-body {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 12vh, 120px) var(--pad) clamp(56px, 10vh, 96px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: min(var(--max), 100%);
}

.hero-body .lead {
  max-width: 42ch;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-hot);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  max-width: 12ch;
  animation: rise 0.9s 0.08s var(--ease) both;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.lead {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 48ch;
  text-wrap: pretty;
  animation: rise 0.9s 0.16s var(--ease) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: rise 0.9s 0.24s var(--ease) both;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 28px;
  animation: rise 0.9s 0.24s var(--ease) both;
}

.store-row-center {
  justify-content: center;
  margin-top: 28px;
  animation: none;
}

.store-link {
  display: inline-flex;
  line-height: 0;
  transition: transform 0.2s var(--ease), opacity 0.2s;
  filter: drop-shadow(0 8px 20px oklch(0 0 0 / 0.35));
}

.store-link:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.store-link:active {
  transform: scale(0.98);
}

.store-link img {
  height: 48px;
  width: auto;
  display: block;
}

.store-link img[src*="google-play"] {
  height: 48px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(145deg, var(--coral-hot), var(--coral));
  color: oklch(0.14 0.03 30);
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 32px oklch(0.5 0.15 30 / 0.35);
  transition: transform 0.2s var(--ease), filter 0.2s;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.85rem;
  border-radius: 12px;
}

.btn-ghost {
  background: oklch(1 0 0 / 0.08);
  color: var(--ink);
  border: 1px solid oklch(1 0 0 / 0.14);
  box-shadow: none;
}

.btn-ghost:hover {
  background: oklch(1 0 0 / 0.12);
  filter: none;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 120px) var(--pad);
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head .lead {
  animation: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 28px);
}

.feature h3 {
  margin-top: 18px;
}

.feature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32ch;
}

.feature-art {
  aspect-ratio: 1;
  border-radius: 20px;
  background-color: #050505;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border: 1px solid oklch(1 0 0 / 0.08);
  box-shadow: 0 20px 50px oklch(0 0 0 / 0.35);
  transition: transform 0.45s var(--ease);
}

.feature:hover .feature-art {
  transform: translateY(-4px);
}

/* Trust split */
.section-trust {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: linear-gradient(180deg, transparent, oklch(0.12 0.02 35), transparent);
}

.section-split {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.checklist {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: oklch(0.84 0.22 130 / 0.15);
  color: var(--trust);
  font-size: 0.7rem;
  font-weight: 700;
}

.trust-card {
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background-color: #111;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid oklch(1 0 0 / 0.1);
  box-shadow: 0 30px 80px oklch(0 0 0 / 0.45);
  min-height: 280px;
}

/* Status lifecycle */
.status-slider {
  width: 100%;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.status-tile {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  /* match original product art (subject + color field are landscape) */
  aspect-ratio: 5 / 4;
  border: 1px solid oklch(1 0 0 / 0.08);
  background: #0a0a0a;
}

.status-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* props sit on the right; leave color field readable on the left */
  object-position: 88% center;
  transition: transform 0.5s var(--ease);
}

.status-tile:hover img {
  transform: scale(1.04);
}

.status-tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 14px 14px;
  background: linear-gradient(180deg, transparent, oklch(0.08 0.02 30 / 0.95));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-tile strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.status-tile span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.status-ui {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.status-arrow {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid oklch(1 0 0 / 0.14);
  background: oklch(1 0 0 / 0.06);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.status-arrow:hover:not(:disabled) {
  background: oklch(1 0 0 / 0.1);
  border-color: oklch(0.7 0.18 30 / 0.45);
}

.status-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.status-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: oklch(1 0 0 / 0.22);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.2s;
}

.status-dot.is-on {
  width: 20px;
  background: var(--coral);
}

/* People */
.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: oklch(1 0 0 / 0.04);
  border: 1px solid oklch(1 0 0 / 0.07);
  transition: background 0.25s, transform 0.3s var(--ease);
}

.person:hover {
  background: oklch(1 0 0 / 0.07);
  transform: translateY(-3px);
}

.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 14px;
  background: #1a1a1a;
}

.person strong {
  display: block;
  font-size: 1rem;
}

.person .trust {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--trust);
}

/* CTA band */
.cta-band {
  position: relative;
  max-width: none;
  padding: clamp(80px, 12vw, 120px) var(--pad);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* planet & light sit on the right of contacts art */
  background-position: 70% center;
  background-repeat: no-repeat;
  z-index: 0;
  filter: saturate(0.85);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: oklch(0.08 0.02 30 / 0.78);
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  margin: 0 auto;
}

.cta-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 28px oklch(0.5 0.15 30 / 0.4));
}

.cta-inner h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.cta-inner .lead {
  margin-inline: auto;
  animation: none;
}

.cta-inner .btn {
  margin-top: 28px;
}

.cta-inner .store-row {
  margin-top: 28px;
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad) 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid oklch(1 0 0 / 0.06);
}

.footer img {
  width: 48px;
  height: auto;
  opacity: 0.9;
}

.footer-brand {
  display: inline-flex;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-brand:hover {
  opacity: 1;
}

.footer-brand img {
  width: 48px;
  height: auto;
  opacity: 1;
}

.footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-in {
  from {
    opacity: 0.6;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-art {
    aspect-ratio: 16 / 10;
    background-size: contain;
    background-position: center;
  }

  .feature p {
    max-width: none;
  }

  .section-split {
    grid-template-columns: 1fr;
  }

  .trust-card {
    order: -1;
    min-height: 200px;
    aspect-ratio: 16 / 10;
    background-position: center center;
  }

  .status-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-tile:last-child {
    grid-column: span 2;
  }

  .status-tile,
  .status-tile:last-child {
    aspect-ratio: 16 / 10;
  }

  .status-tile img {
    object-position: 80% center;
  }

  /* horizontal lifecycle slider */
  .status-slider.is-slider .status-strip {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-inline: calc(var(--pad, 20px) * -1);
    padding-inline: var(--pad, 20px);
    touch-action: pan-x;
  }

  .status-slider.is-slider .status-strip::-webkit-scrollbar {
    display: none;
  }

  .status-slider.is-slider .status-tile,
  .status-slider.is-slider .status-tile:last-child {
    flex: 0 0 min(82vw, 340px);
    grid-column: auto;
    aspect-ratio: 4 / 3;
    scroll-snap-align: center;
    border-radius: 16px;
  }

  .status-slider.is-slider .status-tile img {
    object-position: 85% center;
  }

  .status-slider.is-slider .status-tile:hover img {
    transform: none;
  }

  .status-slider.is-slider .status-ui {
    display: flex;
  }

  .people {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --pad: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --pad-x: max(16px, env(safe-area-inset-left, 0px));
  }

  .nav {
    padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
    gap: 12px;
  }

  .nav-brand img {
    width: 42px;
  }

  .nav-links {
    display: none;
  }

  .btn-sm {
    padding: 9px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .hero {
    min-height: 100svh;
  }

  .parallax-layer {
    /* portrait: tighter zoom, stick to right so the figure stays in frame */
    background-position: right 40%;
    background-size: auto 112%;
    inset: -6% -6% -6% -8%;
  }

  .section-trust {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-veil {
    background:
      linear-gradient(
        180deg,
        oklch(0.08 0.02 30 / 0.55) 0%,
        oklch(0.08 0.02 30 / 0.28) 35%,
        oklch(0.08 0.02 30 / 0.42) 62%,
        oklch(0.08 0.02 30 / 0.92) 100%
      ),
      linear-gradient(
        90deg,
        oklch(0.08 0.02 30 / 0.72) 0%,
        oklch(0.08 0.02 30 / 0.28) 45%,
        oklch(0.08 0.02 30 / 0.08) 100%
      );
  }

  /* one brand mark on first viewport: keep nav, drop oversized hero logo */
  .hero-logo {
    display: none;
  }

  .hero-body {
    padding:
      28px max(16px, env(safe-area-inset-right, 0px))
      max(28px, env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
    justify-content: flex-end;
  }

  .eyebrow {
    letter-spacing: 0.1em;
    font-size: 0.72rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2rem, 9.5vw, 2.6rem);
    line-height: 1.08;
  }

  .lead {
    font-size: 0.98rem;
    max-width: none;
    margin-top: 12px;
  }

  .hero-body .lead {
    max-width: none;
  }

  .store-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 10px;
    margin-top: 22px;
    width: 100%;
  }

  .store-row-center {
    justify-content: center;
  }

  .store-link {
    justify-content: center;
    width: auto;
    flex: 0 1 auto;
    filter: none;
  }

  .store-link img {
    height: 40px;
    width: auto;
    max-width: min(148px, 46vw);
    margin: 0;
  }

  .store-link img[src*="google-play"] {
    height: 40px;
    margin: 0;
  }

  .section {
    padding: 56px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
  }

  .section-split {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    gap: 22px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .status-tile,
  .status-tile:last-child {
    border-radius: 14px;
  }

  .status-slider.is-slider .status-tile,
  .status-slider.is-slider .status-tile:last-child {
    flex-basis: min(86vw, 320px);
    aspect-ratio: 5 / 4;
  }

  .status-tile figcaption {
    padding: 12px;
  }

  .status-tile strong {
    font-size: 0.95rem;
  }

  .status-tile span {
    font-size: 0.74rem;
  }

  .status-ui {
    margin-top: 14px;
  }

  .people {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .person {
    padding: 10px 10px 12px;
    border-radius: 14px;
  }

  .person strong {
    font-size: 0.9rem;
  }

  .person .trust {
    font-size: 0.78rem;
  }

  .cta-band {
    padding: 64px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px));
  }

  .cta-bg {
    background-position: 65% center;
  }

  .cta-logo {
    width: 88px;
  }

  .cta-inner h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    max-width: 14ch;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    padding: 28px max(16px, env(safe-area-inset-right, 0px)) max(32px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    gap: 12px;
  }

  .footer img {
    width: 40px;
  }

  .footer p {
    font-size: 0.75rem;
    max-width: 28ch;
  }

  .checklist li {
    font-size: 0.92rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 1.85rem;
  }

  .store-link img {
    height: 36px;
    max-width: min(140px, 45vw);
  }

  .store-link img[src*="google-play"] {
    height: 36px;
  }

  .btn-sm {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .nav-brand img {
    width: 38px;
  }

  .parallax-layer {
    background-position: right 38%;
    background-size: auto 108%;
  }
}
