/* app.css — Human Design Offline App Promo Page */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: #1a1a2e;
  color: white;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-btn {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
  flex-shrink: 0;
}
.back-btn:hover { color: white; }

header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  font-size: 0.82rem;
}
.header-auth-email {
  color: rgba(255,255,255,0.7);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-auth a, .header-auth button {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.header-auth a:hover, .header-auth button:hover { background: rgba(255,255,255,0.22); }

/* ── Layout ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Hero ── */
.app-hero {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,26,46,0.3);
}

.app-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.app-hero-icon {
  width: 72px;
  height: 72px;
  background: white;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.3rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.app-hero-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.app-hero-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
}

.app-hero-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  position: relative;
}

.app-hero-headline {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  background: linear-gradient(90deg, #ffffff 0%, #a8c5f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.app-hero-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.75rem;
  position: relative;
}

/* ── Feature badges ── */
.app-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  position: relative;
}

.app-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 0.28rem 0.85rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.app-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4fc3f7;
  flex-shrink: 0;
}

/* ── Hero CTA ── */
.app-hero-cta {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.app-hero-cta .app-play-btn {
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.app-hero-cta .app-play-btn:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.6);
}
.app-hero-cta .app-play-sub  { color: #666; }
.app-hero-cta .app-play-main { color: #1a1a1a; }

/* ── Feature rows ── */
.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Each pair: screenshot + text block */
.feat-pair {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.feat-img-wrap {
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 280px;
  flex-shrink: 0;
}

.feat-img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

.feat-text {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
}

.feat-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.feat-desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
}

/* Text-first: reversed pair puts text above image */
.feat-pair--reversed {
  flex-direction: column-reverse;
}

/* ── CTA ── */
.app-cta {
  display: flex;
  justify-content: center;
  padding: 1rem 0 0.5rem;
}

.app-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: #1a1a2e;
  border-radius: 12px;
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(26,26,46,0.35);
}
.app-play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26,26,46,0.45);
}

.app-play-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.app-play-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.app-play-sub  { font-size: 0.62rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.app-play-main { font-size: 1.05rem; color: white; font-weight: 700; }

/* ── Mobile ── */
@media (max-width: 680px) {
  header { padding: 0.9rem 1.25rem; }
  main   { padding: 1.25rem 1rem; gap: 1rem; }
  .header-auth-email { display: none; }
  .app-hero { padding: 2rem 1.25rem; }
  .app-hero-headline { font-size: 1.4rem; }

  .feat-row {
    grid-template-columns: 1fr;
  }

  /* On mobile all pairs: image on top, text below */
  .feat-pair--reversed {
    flex-direction: column;
  }

  .feat-img-wrap { height: 220px; }
}
