/* site.css — landing, auth, dashboard */

* { box-sizing: border-box }
:root {
  --bg: #f8fafc;
  --panel: #fff;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0f172a;
  --accent: #fbbf24;
  --good: #047857;
  --bad: #dc2626;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none }

/* ================ HEADER ================ */
.siteHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
}
.siteHeader nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.siteHeader nav a:not(.btn) {
  padding: 8px 14px;
  color: var(--muted);
  font-weight: 600;
}
.siteHeader nav a:not(.btn):hover { color: var(--text) }

/* ================ BUTTONS ================ */
.btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn.primary { background: var(--primary); color: white }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.2) }
.btn.ghost { background: white; color: var(--text); border-color: var(--line) }
.btn.ghost:hover { background: #f1f5f9 }
.btn.big { padding: 14px 28px; font-size: 16px }
.btn.block { display: block; width: 100%; text-align: center; justify-content: center }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none }

/* ================ HERO ================ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px 80px;
  align-items: center;
}
.kicker {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 540px;
}
.heroCta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.reassure { font-size: 13px; color: var(--muted); margin: 0 }

.heroVisual { display: flex; justify-content: center }
.screenshotFrame {
  width: 100%;
  max-width: 540px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.25);
  overflow: hidden;
}
.dotbar {
  background: #f1f5f9;
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.dotbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}
.dotbar span:first-child { background: #ef4444 }
.dotbar span:nth-child(2) { background: #f59e0b }
.dotbar span:last-child { background: #10b981 }
.screenshotFrame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ================ FEATURES ================ */
.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
}
.features h2 {
  font-size: 36px;
  text-align: center;
  margin: 0 0 48px;
  letter-spacing: -.02em;
}
.featGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.featIcon {
  font-size: 32px;
  margin-bottom: 14px;
}
.feat h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ================ PRICING ================ */
.pricing {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
}
.pricing h2 {
  font-size: 36px;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.subhead { color: var(--muted); margin: 0 0 48px; font-size: 17px }
.planGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  text-align: left;
  position: relative;
}
.plan.featured {
  border-color: var(--primary);
  border-width: 2px;
}
.plan h3 {
  font-size: 20px;
  margin: 0 0 8px;
}
.price {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -.02em;
}
.price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.plan li {
  padding: 8px 0;
  font-size: 14px;
}
.badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 1px;
}

/* ================ CTA ================ */
.cta {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 80px 32px;
}
.cta h2 {
  font-size: 32px;
  margin: 0 0 28px;
  letter-spacing: -.02em;
}

/* ================ FOOTER ================ */
.siteFooter {
  border-top: 1px solid var(--line);
  background: white;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.siteFooter p { color: var(--muted); font-size: 13px; margin: 4px 0 0 }
.siteFooter nav { display: flex; gap: 24px }
.siteFooter nav a { color: var(--muted); font-size: 14px }
.siteFooter nav a:hover { color: var(--text) }

/* ================ AUTH PAGES ================ */
.authWrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.authCard {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.2);
}
.authCard .brand {
  justify-content: center;
  margin-bottom: 24px;
}
.authCard h1 {
  font-size: 24px;
  text-align: center;
  margin: 0 0 8px;
}
.authCard .sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.field input:focus {
  outline: 2px solid #93c5fd;
  border-color: #2563eb;
}
.authCard .btn { width: 100%; justify-content: center; padding: 13px }
.authAlt {
  text-align: center;
  font-size: 13px;
  margin-top: 20px;
  color: var(--muted);
}
.authAlt a {
  color: #2563eb;
  font-weight: 700;
}
.authMessage {
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.authMessage.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.authMessage.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ================ DASHBOARD ================ */
.dashWrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}
.dashHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.dashHeader h1 { font-size: 28px; margin: 0; letter-spacing: -.02em }
.dashHeader .userMenu { display: flex; align-items: center; gap: 12px }
.userMenu .userEmail { color: var(--muted); font-size: 14px }
.projectGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.projectCard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.projectCard:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.projectCard h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.projectCard p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.projectCard .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.projectCard.newCard {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  min-height: 140px;
}
.projectCard.newCard:hover { color: var(--text) }

.emptyState {
  text-align: center;
  padding: 80px 32px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.emptyState h2 { margin: 0 0 8px; font-size: 22px }
.emptyState p { color: var(--muted); margin: 0 0 24px }

/* ================ RESPONSIVE ================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px }
  .hero h1 { font-size: 32px }
  .featGrid { grid-template-columns: 1fr }
  .planGrid { grid-template-columns: 1fr }
  .siteHeader { padding: 14px 16px; flex-wrap: wrap; gap: 8px }
  .siteHeader nav { gap: 4px; flex-wrap: wrap }
  .siteHeader nav a:not(.btn) { padding: 6px 8px; font-size: 13px }
  .features, .pricing, .cta { padding: 56px 24px }
}
