/* ============================================================
   home.css — landing page (index.html) only
   Hero, trust strip, device screenshots, features,
   showcase, privacy callout.
   ============================================================ */

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-copy {
  max-width: 640px;
}

.hero-lede {
  max-width: 48ch;
  margin-bottom: 1.6rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--elev);
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.34rem 0.8rem;
}

.trust-strip li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Device screenshots ---------- */

.product-scene {
  position: relative;
  min-width: 0;
}

/* Screenshots already include their own device frame, so we just
   round the corners slightly and add a soft shadow. Until a real
   image is added, a branded gradient + label acts as a placeholder. */
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--primary) 22%, var(--surface)), var(--surface));
  box-shadow:
    0 0 0 1px var(--border),
    0 26px 60px rgba(0, 0, 0, 0.34);
}

.shot::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

[data-theme='dark'] .shot::after {
  color: var(--fg);
}

/* Once a real screenshot is present, drop the placeholder gradient and
   label so they don't show through any transparent areas of the image. */
.shot:has(img) {
  background: none;
}

.shot:has(img)::after {
  content: none;
}

.shot img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* Desktop screenshot is the base of the hero scene. The aspect-ratio
   only sizes the branded placeholder before a real image is added. */
.shot-desktop {
  aspect-ratio: 16 / 9;
}

/* Phone screenshot overlaps the bottom-right of the desktop shot. */
.shot-phone {
  position: absolute;
  right: 0;
  bottom: -28px;
  width: min(30%, 188px);
  aspect-ratio: 1080 / 2340;
  border-radius: 26px;
  z-index: 2;
}

.shot-phone-static {
  position: static;
  width: min(100%, 260px);
  margin-inline: auto;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-grid-six {
  gap: 1.1rem;
}

.feature-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 80%, var(--surface));
  padding: 1.5rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.feature-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(45, 19, 86, 0.1);
}

.feature-grid p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 13%, transparent);
  color: var(--primary);
}

.feature-icon-warm {
  background: color-mix(in srgb, var(--warm) 16%, transparent);
  color: var(--warm);
}

.feature-icon-green {
  background: color-mix(in srgb, var(--cyan) 14%, transparent);
  color: var(--cyan);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* ---------- Showcase ---------- */

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

/* ---------- Privacy callout ---------- */

.privacy-callout {
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.privacy-callout-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--primary) 12%, var(--bg)), var(--bg) 65%);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.privacy-callout-inner .eyebrow {
  margin-bottom: 0.6rem;
}

.privacy-callout-inner h2 {
  margin-bottom: 0.5rem;
}

.privacy-callout-inner p {
  margin: 0 auto;
  max-width: 40ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .hero,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .product-scene {
    padding-bottom: 2rem;
  }

  .showcase-grid .shot-phone-static {
    width: min(100%, 280px);
  }
}

@media (max-width: 980px) {
  .feature-grid,
  .feature-grid-six {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  .feature-grid-six {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .trust-strip {
    gap: 0.45rem;
  }

  .shot-phone {
    position: static;
    width: min(100%, 240px);
    margin: 1.25rem auto 0;
  }
}
