/* style.css — shared across the entire OffPeak AI website */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #181d28;
  color: #a8abb0;
  min-height: 100vh;
}

/* ---------- Nav bar ---------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid #2a313d;
  background: #1f2530;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: 26px; border-radius: 6px; overflow: hidden; }
.logo-mark img { width: 100%; height: 100%; display: block; }
.nav-title { font-size: 14px; color: #d4c5b0; font-weight: 500; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: #9ca0a5; text-decoration: none; font-size: 13px; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: #d4c5b0; }

/* ---------- Page layout ---------- */
.page-content { padding: 40px 20px; }
.container { max-width: 640px; margin: 0 auto; }

.page-header {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px 20px;
  text-align: center;
}
.page-header h1 { font-size: 28px; color: #d4c5b0; font-weight: 500; margin-bottom: 12px; }
.page-header p { font-size: 15px; color: #8a93a0; line-height: 1.6; }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.header h1 { font-size: 20px; color: #d4c5b0; font-weight: 500; }
.header .sub { font-size: 13px; color: #6e7887; margin-top: 4px; }
#status-line { font-size: 13px; color: #6e7887; }

/* ---------- Cards ---------- */
.card {
  background: #1f2530;
  border: 1px solid #2a313d;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 16px;
}
.section-title { font-size: 14px; color: #d4c5b0; font-weight: 500; margin-bottom: 16px; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; gap: 16px; }
.stat-label {
  font-size: 11px; color: #6e7887; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.stat-value { font-size: 28px; color: #d4c5b0; font-weight: 600; }
.stat-sub { font-size: 12px; color: #575f73; margin-top: 4px; }

/* ---------- Forms ---------- */
label { font-size: 13px; display: block; margin-bottom: 8px; color: #a8abb0; }
input, select {
  padding: 8px 10px;
  background: #181d28;
  border: 1px solid #2a313d;
  border-radius: 4px;
  color: #d4c5b0;
  font-size: 13px;
  font-family: inherit;
}

/* ---------- Buttons ---------- */
button, .btn {
  padding: 9px 18px;
  background: #5a5248;
  color: #e8e0d5;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  display: inline-block;
  text-align: center;
}
button:hover, .btn:hover { background: #655b50; }
button:disabled { opacity: 0.6; cursor: default; }
.btn-secondary {
  background: transparent;
  border: 1px solid #2a313d;
  color: #9ca0a5;
}
.btn-secondary:hover { background: #232a35; color: #a8abb0; }

/* ---------- Activity log rows ---------- */
.log-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #2a313d;
  font-size: 13px;
}
.log-row:last-child { border-bottom: none; }
.tag {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.tag-offpeak { background: rgba(127, 168, 126, 0.15); color: #7fa87e; }
.tag-bypass { background: rgba(201, 166, 97, 0.15); color: #c9a661; }

/* ---------- Department breakdown bars (admin) ---------- */
.dept-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #2a313d; font-size: 13px;
}
.dept-row:last-child { border-bottom: none; }
.dept-name { color: #a8abb0; min-width: 120px; }
.dept-bar-bg {
  flex: 1; height: 5px; background: #2a313d; border-radius: 3px;
  margin: 0 16px; overflow: hidden;
}
.dept-bar-fill { height: 100%; background: #5a5248; }
.dept-value { color: #d4c5b0; font-weight: 600; min-width: 55px; text-align: right; }

/* ---------- Sign-in view ---------- */
#sign-in-view { text-align: center; padding: 60px 20px; }
#sign-in-view button { padding: 12px 28px; font-size: 14px; }

.error-msg { color: #b5533f; font-size: 13px; }

/* ---------- Home page hero + features ---------- */
.hero { max-width: 680px; margin: 0 auto; padding: 100px 24px 60px; text-align: center; }
.hero h1 { font-size: 34px; color: #d4c5b0; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 18px; line-height: 1.3; }
.hero p { font-size: 16px; color: #8a93a0; line-height: 1.7; margin-bottom: 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; }
.features { max-width: 900px; margin: 40px auto 100px; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #1f2530; border: 1px solid #2a313d; border-radius: 8px; padding: 24px; }
.feature-card h3 { font-size: 15px; color: #d4c5b0; font-weight: 500; margin-bottom: 10px; }
.feature-card p { font-size: 13px; color: #8a93a0; line-height: 1.6; }

/* ---------- Pricing page ---------- */
.plans { max-width: 980px; margin: 40px auto 100px; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card { background: #1f2530; border: 1px solid #2a313d; border-radius: 8px; padding: 28px 24px; display: flex; flex-direction: column; }
.plan-card.featured { border-color: #5a5248; box-shadow: 0 0 0 1px #5a5248; }
.plan-name { font-size: 16px; color: #d4c5b0; font-weight: 500; margin-bottom: 6px; }
.plan-price { font-size: 30px; color: #f0ede6; font-weight: 600; margin-bottom: 4px; }
.plan-price span { font-size: 13px; color: #575f73; font-weight: 400; }
.plan-tagline { font-size: 12px; color: #575f73; margin-bottom: 22px; }
.plan-features { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.plan-features li {
  font-size: 13px; color: #9ca0a5; padding: 8px 0; border-bottom: 1px solid #242a35;
  display: flex; align-items: flex-start; gap: 8px;
}
.plan-features li:last-child { border-bottom: none; }
.check { color: #7fa87e; flex-shrink: 0; }
.note { max-width: 700px; margin: 0 auto 80px; padding: 0 24px; text-align: center; font-size: 12px; color: #575f73; }

@media (max-width: 800px) {
  .plans, .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}