/* ZapYaw marketing site — self-contained styles (no external fonts/CDNs). */

:root {
  --cyan: #19C1F0;
  --teal: #1E6383;
  --ink: #14202b;
  --muted: #54616d;
  --bg: #ffffff;
  --bg-soft: #f3f8fb;
  --border: #dce6ec;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Wordmark (pure CSS, no image) ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 1.6rem;
  line-height: 1;
}
.wordmark .zap { color: var(--teal); }
.wordmark .yaw { color: var(--cyan); }
.wordmark.large { font-size: clamp(2.6rem, 8vw, 4.2rem); letter-spacing: -2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav-links a {
  margin-left: 22px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #fff;
  box-shadow: 0 6px 18px rgba(25, 193, 240, 0.35);
}
.btn-ghost {
  background: #fff;
  color: var(--teal);
  border-color: var(--border);
}

/* Google Play style button */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
}
.btn-play:hover { text-decoration: none; transform: translateY(-1px); }
.btn-play .play-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--cyan);
}
.btn-play .play-text { display: flex; flex-direction: column; line-height: 1.15; }
.btn-play .play-text small { font-size: 0.7rem; opacity: 0.8; font-weight: 500; }
.btn-play .play-text span { font-size: 1.15rem; font-weight: 700; }

/* ---------- Brand logo ---------- */
.brand { display: inline-flex; align-items: center; }
.logo-img { height: 30px; display: block; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(25, 193, 240, 0.22), transparent),
    url('img/hero-bg.png') center / cover no-repeat,
    var(--bg-soft);
  padding: 70px 0 78px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
}
.hero-text { text-align: left; }
.hero-logo { height: 56px; display: block; margin: 0 0 18px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 5vw, 3.1rem); }
.hero .pitch {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 30px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
}
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 470px;
}
.phone {
  width: 212px;
  border: 9px solid #14202b;
  border-radius: 34px;
  overflow: hidden;
  background: #14202b;
  box-shadow: 0 22px 48px rgba(20, 32, 43, 0.30);
}
.phone img { width: 100%; display: block; }
.phone-front { position: relative; z-index: 2; }
.phone-back {
  position: absolute;
  z-index: 1;
  transform: translate(70px, -30px) rotate(6deg) scale(0.9);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin: 0 0 8px;
}
.section .subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 44px;
  max-width: 560px;
}

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 14px 30px rgba(30, 99, 131, 0.12);
  transform: translateY(-3px);
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(25, 193, 240, 0.16), rgba(30, 99, 131, 0.16));
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 800;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; }
.cta-band .subtitle { color: rgba(255, 255, 255, 0.9); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c6d2dc;
  padding: 40px 0;
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a { color: #fff; margin-left: 18px; }
.site-footer .footer-links { display: flex; }
.site-footer .footer-links a:first-child { margin-left: 0; }

/* ---------- Legal / document pages ---------- */
.doc { padding: 56px 0 80px; }
.doc .container { max-width: 820px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 0.95rem; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 10px; color: var(--teal); }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .back { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-logo, .hero .pitch { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-phones { margin-top: 40px; min-height: 430px; }
}
@media (max-width: 620px) {
  .nav-links a { margin-left: 14px; font-size: 0.85rem; }
  .site-header .container { height: 58px; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 52px 0; }
}
