/* SitePilot marketing site — shared layout + components. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

/* ─── Layout helpers ─────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--s-6); }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--s-6); }
.section { padding: var(--s-24) 0; }
.section-tight { padding: var(--s-16) 0; }
.section-muted { background: var(--bg-muted); }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 18px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-tile {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--tile);
  color: white; font-weight: 800; font-size: 10px;
  letter-spacing: -0.3px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; align-items: center; gap: var(--s-6); }
.nav-links a {
  color: var(--ink-2); font-size: var(--fs-small); font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { margin-left: var(--s-2); }
@media (max-width: 720px) {
  .nav-links a:not(.btn):not(.brand) { display: none; }
  .nav-links a.brand-pricing-sm { display: inline; }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 10px 18px;
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: white;
}
.btn-primary:hover { background: var(--brand-hover); color: white; }
.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--bg-muted); color: var(--ink); border-color: var(--ink-3); }
.btn-ghost {
  background: transparent; color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 12px 22px; font-size: 15px; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: var(--s-32) 0 var(--s-16);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -10% 0 auto 0; height: 70%;
  background: var(--glow);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--brand-soft); color: var(--brand);
  font-size: var(--fs-small); font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: var(--s-6);
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 800;
  color: var(--ink);
  max-width: 16ch;
  margin: 0 auto var(--s-6);
}
.hero p.subline {
  font-size: 19px;
  line-height: var(--lh-body);
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto var(--s-10);
}
.hero-cta {
  display: inline-flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center;
}

/* ─── Section heading ────────────────────────────────────── */
.section-eyebrow {
  text-align: center;
  font-size: var(--fs-small); font-weight: 600;
  color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
}
.section-h {
  text-align: center;
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto var(--s-4);
}
.section-sub {
  text-align: center;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto var(--s-16);
}

/* ─── Feature grid (3-up) ────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 880px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  transition: border-color 120ms ease, transform 120ms ease;
}
.feature-card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.feature-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: var(--s-4);
}
.feature-card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ─── Feature row (image + text alternating) ─────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
  padding: var(--s-16) 0;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--s-8); }
  .feature-row.reverse { direction: ltr; }
}
.feature-row .copy h2 {
  font-size: 36px;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-4);
}
.feature-row .copy p {
  font-size: 17px; color: var(--ink-2); margin-bottom: var(--s-6);
}
.feature-row .copy ul {
  list-style: none;
}
.feature-row .copy ul li {
  display: flex; align-items: start; gap: var(--s-3);
  font-size: 15px; color: var(--ink-2);
  padding: 6px 0;
}
.feature-row .copy ul li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Faux app screenshot panel (until real screenshots ship) */
.shot {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
}
.shot::before {
  content: ""; display: block;
  background: linear-gradient(135deg, #1b1e2e 0%, #0f1219 100%);
  border-radius: var(--r-md);
  aspect-ratio: 16 / 10;
}
.shot-label {
  position: absolute; left: var(--s-6); top: var(--s-6);
  color: var(--ink-3); font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.shot-body {
  position: absolute; inset: var(--s-8) var(--s-6) var(--s-6) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.shot-row {
  display: flex; gap: var(--s-3); align-items: center;
}
.shot-row .pill {
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.72);
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
}
.shot-row .pill.indigo { background: rgba(79, 70, 229, 0.18); color: #c7d2fe; }
.shot-row .pill.amber  { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.shot-row .pill.green  { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.shot-bar {
  height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  flex: 1;
}
.shot-bar.fill {
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  max-width: 60%;
}

/* ─── Social proof ───────────────────────────────────────── */
.proof {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s-12);
  padding: var(--s-8) 0;
  filter: grayscale(100%);
  opacity: 0.45;
}
.proof span {
  color: var(--ink-2); font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em;
}

/* ─── CTA band ───────────────────────────────────────────── */
.cta-band {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: var(--s-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(79, 70, 229, 0.5), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-size: 36px;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  color: white;
  max-width: 22ch; margin: 0 auto var(--s-3);
}
.cta-band p {
  font-size: 17px; color: rgba(255,255,255,0.72);
  max-width: 520px; margin: 0 auto var(--s-8);
}
.cta-band .btn-primary {
  background: white; color: var(--ink);
}
.cta-band .btn-primary:hover {
  background: rgba(255,255,255,0.9); color: var(--ink);
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s-12) 0 var(--s-8);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-8);
  margin-bottom: var(--s-10);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  font-size: var(--fs-tiny);
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-3);
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-grid li a {
  font-size: var(--fs-small); color: var(--ink-2);
}
.footer-grid li a:hover { color: var(--ink); }
.footer-blurb {
  font-size: var(--fs-small);
  color: var(--ink-2);
  max-width: 28ch;
  margin-top: var(--s-3);
}
.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-tiny); color: var(--ink-3);
}
.footer-meta a { color: var(--ink-3); }
.footer-meta a:hover { color: var(--ink-2); }

/* ─── Pricing ────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-10);
}
@media (max-width: 880px) {
  .price-grid { grid-template-columns: 1fr; }
}
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.price-card.featured {
  border-color: var(--brand);
  position: relative;
  box-shadow: var(--shadow-2);
}
.price-card.featured::after {
  content: "Most popular";
  position: absolute; top: -12px; right: var(--s-6);
  background: var(--brand); color: white;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.price-tier-name {
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--brand);
}
.price-amount {
  display: flex; align-items: baseline; gap: 4px;
}
.price-amount .num {
  font-size: 44px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1;
}
.price-amount .per {
  font-size: var(--fs-small); color: var(--ink-3);
}
.price-card h3 {
  font-size: var(--fs-h3); font-weight: 700; color: var(--ink); letter-spacing: -0.01em;
}
.price-card .desc {
  font-size: 15px; color: var(--ink-2); flex: 1;
}
.price-features {
  list-style: none;
  display: flex; flex-direction: column; gap: var(--s-2);
  font-size: 14px; color: var(--ink-2);
}
.price-features li {
  display: flex; gap: var(--s-2); align-items: start;
}
.price-features li::before {
  content: "✓"; color: var(--brand); flex-shrink: 0; font-weight: 700;
}

/* ─── Legal pages (terms / privacy) ──────────────────────── */
.legal-header {
  padding: var(--s-24) 0 var(--s-10);
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg-muted);
}
.legal-header h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--s-2);
}
.legal-header p { font-size: var(--fs-small); color: var(--ink-3); }
.legal-body { padding: var(--s-16) 0; }
.legal-body h2 {
  font-size: 22px; font-weight: 700; color: var(--ink);
  margin: var(--s-10) 0 var(--s-3);
  letter-spacing: -0.01em;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { font-size: 15px; color: var(--ink-2); margin-bottom: var(--s-3); line-height: 1.7; }
.legal-body ul, .legal-body ol { margin: 0 0 var(--s-3) var(--s-6); }
.legal-body li { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; line-height: 1.7; }
.legal-body strong { color: var(--ink); font-weight: 600; }
