/* HeatSync public site — palette aligned with v2 dashboard */
:root {
  --hs-green: #7FD11B;
  --hs-navy: #1E3A8A;
  --hs-grey: #5A5A5A;
  --sidebar-bg: #0c1a3a;
  --page-bg: #eef1f6;
  --text: #0c1a3a;
  --text-muted: #6b7a99;
  --accent-blue: #3b82f6;
  --cta-orange: #e4572e;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --sidebar-w: 240px;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--page-bg);
}

a { color: inherit; }

/* Layout */
.hs-site {
  display: flex;
  min-height: 100vh;
}

.hs-site-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: #c8d4e8;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  padding: 1.25rem 0;
}

.hs-site-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

/* Brand */
.hs-site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}

.hs-site-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.hs-site-brand-tag {
  font-size: 0.65rem;
  color: #8fa3c4;
  line-height: 1.3;
  margin-top: 0.1rem;
}

/* Platform / admin access button */
.hs-platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0.85rem 1.25rem;
  padding: 0.7rem 1rem;
  background: var(--cta-orange);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(228, 87, 46, 0.4);
  transition: background 0.2s, transform 0.15s;
}

.hs-platform-btn:hover {
  background: #d04a24;
  transform: translateY(-1px);
  color: #fff;
}

.hs-platform-btn-sm {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
}

/* Nav */
.hs-site-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hs-site-nav a {
  padding: 0.6rem 1.15rem;
  font-size: 0.82rem;
  color: #a8b8d4;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.hs-site-nav a:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
}

.hs-site-nav a.active {
  background: rgba(59, 130, 246, 0.15);
  color: #fff;
  border-left-color: var(--accent-blue);
  font-weight: 600;
}

.hs-site-sidebar-foot {
  padding: 1rem;
  font-size: 0.72rem;
  color: #6b84a8;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Top bar (mobile + duplicate platform link) */
.hs-site-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.hs-site-topbar-title {
  font-weight: 700;
  color: var(--hs-navy);
  font-size: 0.95rem;
}

/* Content sections */
.hs-section {
  background: #fff;
  margin: 1.25rem 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(12, 26, 58, 0.06);
}

.hs-section h1,
.hs-section h2 {
  color: var(--hs-navy);
  margin: 0 0 0.75rem;
}

.hs-section h1 { font-size: 1.75rem; }
.hs-section h2 { font-size: 1.35rem; }

.hs-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.hs-section p {
  line-height: 1.65;
  color: var(--hs-grey);
  margin: 0 0 1rem;
}

.hs-hero {
  margin-top: 1.5rem;
}

/* CTA */
.hs-landing-cta {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--cta-orange);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(228, 87, 46, 0.3);
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}

.hs-landing-cta:hover {
  background: #d04a24;
  transform: translateY(-1px);
  color: #fff;
}

/* Features */
.hs-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.hs-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--page-bg);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
}

.hs-features i {
  color: var(--accent-blue);
  width: 1.25rem;
  text-align: center;
}

.hs-steps {
  padding-left: 1.25rem;
  line-height: 1.7;
  color: var(--hs-grey);
}

.hs-steps li { margin-bottom: 0.65rem; }

/* Contact form */
.hs-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 560px;
}

.hs-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hs-contact-form input,
.hs-contact-form textarea {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  width: 100%;
}

.hs-contact-form input:focus,
.hs-contact-form textarea:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 0;
}

.hs-site-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.hs-site-footer a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hs-site-sidebar { display: none; }
  .hs-site-main { margin-left: 0; }
  .hs-site-topbar { display: flex; }
  .hs-section { margin: 1rem; padding: 1.5rem; }
  .hs-form-row { grid-template-columns: 1fr; }
}
