/* The CatChat Mobile concept page. It uses the tokens in styles.css. */

.gold { color: var(--gold); }

/* A phone: a dark frame around a screenshot. The screenshots have their own status bar. */
.phone {
  margin: 0;
  width: 260px;
  aspect-ratio: 1206 / 2622;
  padding: 9px;
  background: #0b1424;
  border-radius: 44px;
  box-shadow: 0 0 0 2px #2a3446, 0 30px 60px rgba(0, 56, 117, 0.25);
  flex-shrink: 0;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }

.m-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 32px;
  padding: clamp(40px, 7vw, 96px) var(--gutter);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.m-hero > * { min-width: 0; }
.m-hero .note { font: 400 13px var(--mono); color: var(--muted); }
.m-hero-phones { display: flex; justify-content: center; align-items: center; }
.m-hero-phones .phone { width: 230px; }
.m-hero-phones .tilt-l { transform: rotate(-8deg) translateX(40px) scale(0.88); }
.m-hero-phones .tilt-r { transform: rotate(8deg) translateX(-40px) scale(0.88); }
.m-hero-phones .front { position: relative; z-index: 1; }

.feature {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature.flip { flex-direction: row-reverse; }
.feature-text { max-width: 30em; }
.feature-text h2 { font-size: 30px; color: var(--blue); margin-bottom: 12px; }
.feature-text p { color: var(--muted); font-size: 18px; margin: 0; }
.feature-text .idx-label { font: 400 16px var(--mono); color: var(--gold); filter: brightness(0.85); margin-bottom: 6px; }

.m-cta { text-align: center; }
.m-cta p { color: var(--muted); max-width: 36em; margin: 0 auto 24px; }

@media (max-width: 760px) {
  .m-hero { grid-template-columns: 1fr; padding-top: 24px; }
  .m-hero-phones .phone { width: 118px; padding: 5px; border-radius: 22px; }
  .m-hero-phones .phone img { border-radius: 18px; }
  .m-hero-phones .tilt-l { transform: rotate(-8deg) translateX(22px) scale(0.85); }
  .m-hero-phones .tilt-r { transform: rotate(8deg) translateX(-22px) scale(0.85); }
  .feature, .feature.flip { flex-direction: column; text-align: center; }
  .feature .phone { width: min(70vw, 260px); }
}
