/* Public site chrome: the header and footer shared by the homepage (/) and, next, /contact.
   Built by js/site-chrome.js. Uses the tokens from style.css (--accent, --border, ...). */

body.site-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 16px;
}

/* Sign-in card inside the site chrome */
.site-main > .auth-wrap { margin: 24px auto; }

/* Contact form */
.contact-card {
  max-width: 520px;
  margin: 24px auto;
  padding: 32px;
}

.contact-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.contact-card textarea.form-control {
  height: auto;
  min-height: 130px;
  padding: 10px 12px;
  resize: vertical;
}

/* Honeypot: off-screen rather than display:none, which some bots detect and skip. */
.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-card .form-hint { min-height: 18px; margin-bottom: 10px; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header-inner,
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header-inner { height: 60px; }

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.site-brand img {
  display: block;
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover { color: var(--accent); }

.site-nav a.site-nav-login {
  background: var(--accent);
  color: #fff;
}

.site-nav a.site-nav-login:hover { color: #fff; opacity: 0.9; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer-links a:hover { color: var(--accent); }

/* ── Homepage (/) ──────────────────────────────────────────────────────────────
   Tints are mixed from var(--accent) rather than --accent-bg, so they follow the brand
   colour that /api/branding.js sets (blue for Slycup, green for GreenMDM). */

.home { padding-top: 56px; padding-bottom: 72px; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.home-title {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}

.home-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.home-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn.home-btn {
  height: 42px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  justify-content: center;
}

/* Decorative phone */
.home-phone {
  justify-self: center;
  width: 270px;
  padding: 12px;
  border-radius: 34px;
  background: var(--text);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.28);
}

.home-phone-screen {
  border-radius: 24px;
  background: var(--surface);
  padding: 26px 16px 20px;
  min-height: 360px;
}

.home-phone-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.home-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

.home-rule:last-child { border-bottom: none; }

.home-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.home-pill-on   { background: var(--success-bg); color: #15803d; }
.home-pill-off  { background: var(--danger-bg);  color: #b91c1c; }
.home-pill-time { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); }

/* Sections */
.home-section { margin-top: 96px; }

.home-h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
}

.home-sub {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 36px;
}

/* Features */
.home-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.home-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
}

/* Same drawing rules as js/icons.js: 24 grid, 1.8 stroke, round caps. */
.home-feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-feature h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.home-feature p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Pricing */
.home-prices {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.home-price {
  position: relative;
  flex: 1 1 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px 24px;
}

.home-price-best {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.home-price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.home-price-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.home-price-amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.home-price-per {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.home-price-note {
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
  margin: 10px 0 20px;
}

.home-price .home-btn { width: 100%; margin-top: auto; }

/* Fleet pricing: billing-period switch above the same price cards */
.home-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.home-tabs[hidden] { display: none; }
.home-tab {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.home-tab.is-on { background: var(--accent); color: #fff; }
.home-price-tier { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }

.home-prices-fallback {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}

/* Closing call to action */
.home-cta {
  margin-top: 96px;
  padding: 48px 24px;
  border-radius: 16px;
  text-align: center;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, #fff);
}

.home-cta h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.home-cta p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; gap: 40px; }
  .home-title { font-size: 34px; }
  .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .home { padding-top: 32px; }
  .home-title { font-size: 30px; }
  .home-features { grid-template-columns: 1fr; }
  .home-section, .home-cta { margin-top: 64px; }
  .home-phone { width: 250px; }
}

/* Fleet section */
.home-fleet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.home-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.home-h2.home-h2-left { text-align: left; }

.home-fleet-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.home-fleet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.home-fleet-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.home-fleet-list li strong { color: var(--text); font-weight: 600; }

/* Tick in the brand colour, drawn as a mask like about.html's chevrons. */
.home-fleet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 17px;
  height: 17px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6,12.6 L9.6,17.4 L19.4,6.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6,12.6 L9.6,17.4 L19.4,6.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home-fleet-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-fleet-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

.home-fleet-row-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: var(--bg);
}

.home-fleet-row.is-on { background: color-mix(in srgb, var(--accent) 6%, #fff); }

.home-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--text-dim);
}

.home-fleet-row-head .home-check { display: none; }

.home-fleet-row.is-on .home-check {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5,12.6 L10,17.2 L19,7.4'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.home-fleet-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--text);
}

.home-fleet-count {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-right: auto;
}

.home-fleet-act {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 860px) {
  .home-fleet { grid-template-columns: 1fr; gap: 32px; }
}

/* How it works + FAQ (homepage). */
.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.home-steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 22px 66px;
  counter-increment: step;
}

.home-steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-steps h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.home-steps p  { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }

.home-faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
}

.home-faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--text);
}

.home-faq details p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .home-steps { grid-template-columns: 1fr; }
}

.home-fleet-more { margin-top: 14px; font-size: 14px; }
