/* Zippy marketing + support — static pages for zippyai.app */
:root {
  --bg: #0b0f14;
  --bg-elevated: #121922;
  --text: #e8edf4;
  --muted: #8b98a8;
  --accent: #3b9eff;
  /* Slightly lighter than --accent for small UI text on dark bg (kicker, labels) */
  --accent-kicker: #6eb8ff;
  --accent-dim: rgba(59, 158, 255, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  /* Match iOS: SF / system UI; rounded display stack reads closer to .system(.largeTitle, design: .rounded) */
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(59, 158, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(59, 158, 255, 0.05), transparent 50%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent) 0%, #1e5f99 100%);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 24px var(--accent-dim);
}

.brand-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 24px var(--accent-dim);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 4rem;
}

.hero-kicker {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-kicker);
  margin: 0 0 1rem;
  max-width: none;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  -webkit-font-smoothing: antialiased;
}

.hero-kicker-line1,
.hero-kicker-line2 {
  display: inline;
}

.hero-kicker-sep {
  display: inline;
}

@media (min-width: 641px) {
  .hero-kicker {
    text-wrap: balance;
  }
}

@media (max-width: 640px) {
  .hero-kicker {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
  }

  .hero-kicker-sep {
    display: none;
  }

  .hero-kicker-line1,
  .hero-kicker-line2 {
    display: block;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 22ch;
}

.lede {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 48ch;
  margin: 0 0 0.85rem;
}

.lede-secondary {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.subtle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #041018;
  box-shadow: 0 4px 28px var(--accent-dim);
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  text-decoration: none;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Feature grid */
.section {
  padding: 3rem 0 4rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section > .wrap > p.section-intro {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 50ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.section-split {
  padding-top: 1rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.split-prose p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 52ch;
}

/* Marketing screenshots (Simulator captures in /images/marketing/) */
.marketing-shots {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.marketing-shots-row {
  display: grid;
  /* Three shots on one row on desktop; stack on narrow viewports */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .marketing-shots-row {
    grid-template-columns: 1fr;
  }
}

.marketing-shot {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.marketing-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.marketing-shot figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.5rem 0.65rem 0.65rem;
  line-height: 1.35;
  /* Two explicit lines via <br />; fixed block height keeps columns aligned */
  min-height: calc(2 * 1.35 * 0.82rem + 0.15rem);
  text-align: center;
  text-wrap: balance;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 960px) {
  .grid-features {
    grid-template-columns: 1fr;
  }
}

.card-feature .svg-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card-icon {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  opacity: 0.95;
}

/* Support page */
.page-title {
  padding: 3rem 0 1rem;
}

.page-title h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.page-title p {
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

.article {
  padding: 1rem 0 4rem;
}

.article-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.article-block h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.article-block p,
.article-block ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.article-block ul {
  padding-left: 1.2rem;
}

.article-block li {
  margin-bottom: 0.4rem;
}

.mail {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  font-size: 0.88rem;
  color: var(--muted);
}

footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 1rem;
  }
}
