/* ============================================================
   Peek — landing page stylesheet (index.html)
   Requires base.css to be loaded first.
   ============================================================ */

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

.hero {
  padding: 88px 0 72px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.3rem);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 32px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 10px 20px;
  min-width: 190px;
  cursor: default;
}

.store-badge img {
  width: 26px;
  height: 26px;
  flex: none;
  /* Store glyphs are black-on-transparent; flip to white for the dark badge */
  filter: invert(1);
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.store-badge .badge-text small {
  font-size: 0.72rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-badge .badge-text strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -12% 0;
  background: radial-gradient(closest-side, var(--primary-soft), transparent 72%);
  z-index: 0;
}

.hero-shot {
  position: relative;
  z-index: 1;
  width: 320px;
  height: auto;
  /* The image contains its own device frame on a transparent
     background, so the shadow must follow its silhouette */
  filter: drop-shadow(0 22px 28px rgba(27, 42, 34, 0.25));
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .kicker {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Feature bento grid */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.bento-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(27, 42, 34, 0.16);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.bento-icon img {
  width: 20px;
  height: 20px;
}

.bento-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.bento-dark {
  background: var(--primary);
  border-color: transparent;
}

.bento-dark h3 {
  color: #fff;
}

.bento-dark p {
  color: rgba(232, 237, 226, 0.72);
}

/* Micro-UI screenshots inside wide cards */

.budget-shot {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.mylist-shot {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* How it works */

.how {
  background: var(--surface-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin: 0;
}

/* For You / personalization */

.foryou .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.foryou .section-head {
  margin-bottom: 0;
}

.foryou-visual {
  display: flex;
  justify-content: center;
}

.foryou-visual img {
  width: 320px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(27, 42, 34, 0.25));
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.check-list li svg {
  width: 22px;
  height: 22px;
  color: var(--secondary);
  flex: none;
  margin-top: 3px;
}

.check-list li strong {
  color: var(--text);
}

/* Privacy teaser */

.privacy-teaser .panel {
  background: var(--primary);
  color: #E8EDE2;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}

.privacy-teaser .shield {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: rgba(232, 237, 226, 0.12);
  display: grid;
  place-items: center;
}

.privacy-teaser .shield svg {
  width: 34px;
  height: 34px;
  color: var(--accent-soft);
}

.privacy-teaser h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.privacy-teaser p {
  margin: 0;
  color: rgba(232, 237, 226, 0.78);
  max-width: 42em;
}

/* Download */

.download {
  text-align: center;
  padding-bottom: 96px;
}

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

.download .note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

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

@media (max-width: 1020px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .hero .container,
  .foryou .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero {
    padding-top: 56px;
    text-align: left;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .privacy-teaser .panel {
    grid-template-columns: 1fr;
    padding: 44px 32px;
    gap: 24px;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  section {
    padding: 56px 0;
  }

  .hero-shot {
    width: 270px;
  }
}
