/* Landing page styles. Tokens, buttons, brand and toast come from /theme.css. */

body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap {
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; }
.hero-inner { display: grid; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }

.eyebrow {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
.lead { font-size: 18px; color: var(--text-muted); max-width: 34em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cta-row .btn { min-height: 50px; padding: 0 22px; }
.cta-note { font-size: 13px; color: var(--text-muted); }

/* ---------- Chat preview ---------- */
.preview { display: flex; justify-content: center; }
.phone {
  width: 100%; max-width: 340px;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 28px;
  background: var(--bg); box-shadow: var(--shadow), 0 24px 60px rgba(16, 24, 40, 0.10);
  overflow: hidden;
}
.phone-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.phone-code { font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }
.phone-sub { font-size: 11px; color: var(--text-muted); }
.phone-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700;
}
.phone-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; min-height: 260px; justify-content: flex-end; }
.p-system {
  align-self: center; margin-bottom: 6px;
  font-size: 11px; color: var(--text-muted);
  padding: 3px 10px; border-radius: 99px; background: var(--bg-subtle);
}
.p-msg { display: flex; flex-direction: column; max-width: 80%; }
.p-msg.mine { align-self: flex-end; align-items: flex-end; }
.p-msg.other { align-self: flex-start; }
.p-name { font-size: 11px; color: var(--text-muted); margin: 4px 10px 2px; }
.p-bubble { padding: 8px 12px; border-radius: 16px; font-size: 14px; line-height: 1.35; }
.mine .p-bubble { background: var(--bubble-mine); color: var(--bubble-mine-text); border-bottom-right-radius: 5px; }
.other .p-bubble { background: var(--bubble-other); color: var(--bubble-other-text); border-bottom-left-radius: 5px; }
.phone-composer {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 12px 14px; padding: 6px 6px 6px 16px;
  border: 1px solid var(--border); border-radius: 99px; background: var(--bg-subtle);
  font-size: 14px; color: var(--text-muted);
}
.phone-send { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); opacity: 0.85; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-subtle { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 26px; letter-spacing: -0.015em; margin-bottom: 24px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step, .feature, .platform {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.step h3, .feature h3, .platform h3 { font-size: 17px; }
.step p, .feature p, .platform > p { font-size: 15px; color: var(--text-muted); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: 4px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}

.features { display: grid; gap: 14px; }
.feature svg { color: var(--accent); margin-bottom: 4px; }

.platforms { display: grid; gap: 14px; }
.platform .btn { margin-top: 6px; }
.platform.highlight { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.platform-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.apk-size { font-weight: 400; opacity: 0.7; margin-left: 6px; }
.ios-steps { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ios-steps svg { vertical-align: -2px; margin-left: 2px; }

.share-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.share-band .section-title { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .steps, .platforms { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .hero { padding: 88px 0 96px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; }
  .features { grid-template-columns: repeat(4, 1fr); }
}
