/* Sitewide.ca marketing — Linear/Stripe density, brand navy + teal. No purple glow. */

:root {
  --bg: #070a12;
  --bg-elev: #0c1220;
  --bg-band: #0a101c;
  --surface: #101827;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #2ec4b6;
  --accent-dim: rgba(46, 196, 182, 0.14);
  --accent-hover: #3dd4c6;
  --ink-on-accent: #041016;
  --radius: 10px;
  --radius-lg: 14px;
  --header-h: 56px;
  --max: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  font-feature-settings: "ss01" on, "cv11" on;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--ink-on-accent);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.logo:hover { color: var(--text); }

.logo-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent);
  flex-shrink: 0;
}

.logo-text {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.5rem;
  flex: 1;
}

.nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  transition: color 0.12s, background 0.12s;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta-mobile { display: none !important; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 9px;
}
.nav-toggle-bar {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.05rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink-on-accent);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--ink-on-accent);
  border-color: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8125rem; border-radius: 7px; }
.btn-lg { padding: 0.75rem 1.2rem; font-size: 0.9375rem; }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 1.15rem;
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 38rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.hero-meta a {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-strong);
}
.hero-meta a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Product frame — tool chrome, not toy window */
.product-frame {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 32px 64px -24px rgba(0, 0, 0, 0.7);
}

.product-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.chrome-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.chrome-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(46, 196, 182, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.chrome-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}

.product-body {
  display: grid;
  grid-template-columns: 44px 1fr;
  min-height: 260px;
}

.product-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.rail-item {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.rail-item.is-active {
  background: var(--accent-dim);
  border-color: rgba(46, 196, 182, 0.35);
}

.product-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.8rem;
  min-width: 0;
}

.panel-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.panel-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.panel-list li:last-child { border-bottom: none; }
.panel-list span {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-list em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.6875rem;
  flex-shrink: 0;
  color: var(--text);
}
.status-ok { color: var(--text); }
.status-accent { color: var(--accent); }
.status-idle { color: var(--text-muted); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-band {
  background: var(--bg-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { margin-bottom: 2.25rem; max-width: 40rem; }
.section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Feature table */
.feature-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.feature-row {
  padding: 1.5rem 1.35rem;
  border-right: 1px solid var(--border);
}
.feature-row:last-child { border-right: none; }
.feature-row h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
}
.feature-row p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Automation */
.split {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.routine-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.routine-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.routine-list li:last-child { border-bottom: none; }
.routine-num {
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  padding-top: 0.15rem;
}
.routine-list h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}
.routine-list p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.principle {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.principle-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.principle-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.trust-item {
  padding: 1.5rem 1.5rem 0 0;
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
  margin-right: 1.5rem;
}
.trust-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.trust-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.45rem;
}
.trust-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* CTA */
.section-cta { padding-top: 2.5rem; padding-bottom: 4rem; }
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  background: var(--bg-elev);
}
.cta-copy .section-lead { margin-top: 0.5rem; max-width: 32rem; }
.cta-copy h2 { max-width: 20ch; margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #05070e;
  padding: 2.75rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.footer-brand strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.footer-brand p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 28ch;
  line-height: 1.5;
}
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h3 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.footer-col a { font-size: 0.875rem; color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.legal-stub { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Responsive */
@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { max-width: none; }
  .feature-table, .trust-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .feature-row { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-row:last-child { border-bottom: none; }
  .trust-item {
    border-right: none;
    margin-right: 0;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
  }
  .trust-item:last-child { border-bottom: none; }
  .trust-grid { border-top: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: rgba(7, 10, 18, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
  }
  .nav-cta-mobile { display: block !important; }
  .header-actions .btn-sm { display: none; }
  .hide-sm { display: none !important; }
  .hero { padding: 2.75rem 0 2.5rem; }
  .section { padding: 3.25rem 0; }
  .container, .header-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .product-panels { grid-template-columns: 1fr; }
  .product-body { min-height: 0; }
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
}
