/* ============================================================
   Ziza marketing site — styles.css
   Colors come from the app's locked Brand Sheet (Bible §5c).
   Mobile-first: base styles are for phones; @media (min-width)
   blocks add the desktop layout.
   ============================================================ */

:root {
  --bg: #0F0F0F;
  --surface1: #171717;
  --surface2: #1E1E1E;
  --accent: #6B6FD4;
  --accent-soft: rgba(107, 111, 212, 0.14);
  --text-primary: #F5F5F5;
  --text-body: #D0D0D0;
  --text-secondary: #A0A0A0;
  --text-meta: #717171;
  --success: #52C48A;
  --border: #2A2A2A;
  --border-strong: #3A3A3A;
  --radius: 16px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo img { height: 26px; width: auto; }
.nav-cta {
  background: var(--accent);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(107, 111, 212, 0.4);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(107,111,212,0.22), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero-wordmark { width: 180px; height: auto; }
.hero h1 {
  color: var(--text-primary);
  font-size: clamp(34px, 8vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 640px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 4vw, 19px);
  color: var(--text-secondary);
  max-width: 520px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(107,111,212,0.35);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Email signup */
.signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}
.signup input[type="email"] {
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  padding: 14px 20px;
  width: 100%;
}
.signup input::placeholder { color: var(--text-meta); }
.signup button {
  background: var(--accent);
  border: none;
  border-radius: 999px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.signup button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(107,111,212,0.45);
}
.signup-note { font-size: 13px; color: var(--text-meta); }
.signup-success {
  display: none;
  color: var(--success);
  font-weight: 600;
  font-size: 15px;
}

/* Store badges */
.stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface1);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px 18px;
  opacity: 0.55;
  cursor: default;
}
.store-badge svg { width: 22px; height: 22px; fill: var(--text-secondary); flex-shrink: 0; }
.store-badge .lines { text-align: left; line-height: 1.2; }
.store-badge .small { font-size: 10px; color: var(--text-meta); text-transform: uppercase; letter-spacing: 0.06em; }
.store-badge .big { font-size: 15px; font-weight: 700; color: var(--text-secondary); }

/* ---------- Phone showcase ---------- */
.showcase {
  position: relative;
  padding: 24px 0 64px;
  display: flex;
  justify-content: center;
}
.float-card {
  position: absolute;
  background: var(--surface1);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none; /* hidden on mobile; shown on desktop */
  width: 170px;
}
.float-card .emoji { font-size: 34px; }
.float-card .fc-name { color: var(--text-primary); font-weight: 700; font-size: 15px; margin-top: 8px; }
.float-card .fc-sub { color: var(--text-meta); font-size: 12px; }
.fc-left  { left: calc(50% - 380px); top: 60px; transform: rotate(-8deg); animation: floaty 6s ease-in-out infinite; }
.fc-right { left: calc(50% + 215px); top: 150px; transform: rotate(7deg); animation: floaty 7s ease-in-out infinite reverse; }
@keyframes floaty {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}

.phone {
  width: 300px;
  background: #050505;
  border: 3px solid var(--border-strong);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 120px rgba(107,111,212,0.12);
}
.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  padding: 18px 14px 14px;
}
.ps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.ps-title { color: var(--text-primary); font-weight: 700; font-size: 18px; }
.ps-flame { font-size: 16px; }
.match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.match-row .thumb {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: var(--surface2);
  flex-shrink: 0;
}
.match-row .info { flex: 1; min-width: 0; }
.match-row .name { color: var(--text-primary); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-row .meta { color: var(--text-meta); font-size: 12px; }
.match-pct {
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.match-row.hero-row { border-color: rgba(107,111,212,0.5); background: linear-gradient(135deg, rgba(107,111,212,0.12), var(--surface1)); }
.ps-tabbar {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-strong);
  padding-top: 10px;
  margin-top: 6px;
}
.ps-tab { font-size: 11px; color: var(--text-meta); text-align: center; }
.ps-tab.active { color: var(--accent); font-weight: 700; }
.ps-tab .ico { font-size: 16px; display: block; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--surface1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.section h2 {
  color: var(--text-primary);
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 560px;
}
.section-lead { color: var(--text-secondary); max-width: 560px; margin-bottom: 40px; }

/* How it works steps */
.steps { display: grid; gap: 16px; }
.step {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.section.alt .step { background: var(--bg); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.step h3 { color: var(--text-primary); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 15px; }

/* Feature grid */
.features { display: grid; gap: 16px; }
.feature {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: rgba(107,111,212,0.5); transform: translateY(-2px); }
.feature .f-ico {
  font-size: 26px;
  margin-bottom: 12px;
}
.feature h3 { color: var(--text-primary); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--text-secondary); font-size: 15px; }

/* Screenshot strip */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.shot {
  aspect-ratio: 9 / 19;
  background: var(--surface2);
  border: 1px dashed var(--border-strong);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-meta);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}
.shot .s-ico { font-size: 28px; opacity: 0.6; }
/* When real screenshots exist, replace a .shot div with:
   <img class="shot-img" src="images/screen-foryou.png" alt="For You screen">  */
.shot-img { border-radius: 22px; border: 1px solid var(--border-strong); }

/* Final CTA */
.cta-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-block h2 { max-width: none; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-logo img { height: 22px; width: auto; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }
.footer-fine { color: var(--text-meta); font-size: 13px; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.legal h1 {
  color: var(--text-primary);
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 700;
  margin-bottom: 6px;
}
.legal .updated { color: var(--text-meta); font-size: 14px; margin-bottom: 36px; }
.legal h2 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
}
.legal h3 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.legal p { margin-bottom: 14px; font-size: 15.5px; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 8px; font-size: 15.5px; }
.legal strong { color: var(--text-primary); }
.legal .backlink { display: inline-block; margin-bottom: 28px; font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .pill .dot { animation: none; }
  * { transition: none !important; }
}

/* ---------- Desktop layout ---------- */
@media (min-width: 720px) {
  .hero { padding: 88px 0 40px; }
  .signup { flex-direction: row; }
  .signup input[type="email"] { flex: 1; }
  .signup button { flex-shrink: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(4, 1fr); }
  .float-card { display: block; }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
