/* AutomateLab — services. Dark "instrumented" identity per .impeccable.md.
   Scoped to the static /services section. Not loaded by the Ghost theme. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;

  --void: #09090b;
  --void-deep: #050507;
  --gunmetal: #1c1c1e;
  --gunmetal-2: #232326;
  --electric: #e4e4e7;
  --alloy: #a1a1aa;
  --steel: #71717a;
  --iron: #52525b;

  --led-green: #22c55e;
  --led-amber: #f59e0b;

  /* Warm accent — H2 bars, panel top-edges, focus rings, asterisks, the cursor-glow
     spotlight, the "Flagship" status. Dominant non-neutral colour on the site. */
  --ember: #e8743a;
  --ember-soft: rgba(232, 116, 58, 0.12);
  --ember-glow: 0 0 12px rgba(232, 116, 58, 0.55);
  --ember-glow-strong: 0 0 24px rgba(232, 116, 58, 0.4);

  --panel-border: hsla(240, 6%, 90%, 0.08);
  --panel-border-strong: hsla(240, 6%, 90%, 0.15);
  --panel-highlight: hsla(240, 6%, 90%, 0.06);
  --panel-bg: linear-gradient(135deg, rgba(35, 35, 38, 0.9), rgba(20, 20, 22, 0.95));

  --shadow-panel: 0 0 40px rgba(0, 0, 0, 0.6), inset 1px 1px 0 var(--panel-highlight);
  --shadow-panel-hover: 0 0 60px rgba(0, 0, 0, 0.8), inset 1px 1px 0 hsla(240, 6%, 90%, 0.1);
  --shadow-glow-led: 0 0 6px rgba(34, 197, 94, 0.8);

  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Fira Code', Menlo, Consolas, monospace;

  --tracking-tight: -0.04em;
  --tracking-wide: 0.05em;
  --tracking-widest: 0.12em;
  --tracking-widest2: 0.2em;

  --max-prose: 720px;
  --max-content: 1100px;

  --header-h: 64px;

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);

  --scanline: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    hsla(240, 6%, 90%, 0.012) 2px,
    hsla(240, 6%, 90%, 0.012) 4px
  );
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--electric);
  background: var(--void);
  background-image:
    radial-gradient(ellipse at top, rgba(232, 116, 58, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(35, 35, 38, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(232, 116, 58, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(35, 35, 38, 0.35) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background: var(--scanline);
  mix-blend-mode: overlay;
  opacity: 0.6;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Cursor-following ember glow — synth-style spotlight that tracks the pointer.
   Updated by the tiny mousemove handler in script.js.
   Hidden on touch devices via @media (hover: none). */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 720px; height: 720px;
  margin-left: -360px; margin-top: -360px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle,
    rgba(232, 116, 58, 0.11) 0%,
    rgba(232, 116, 58, 0.05) 22%,
    rgba(232, 116, 58, 0.02) 45%,
    transparent 70%
  );
  transform: translate3d(50vw, 50vh, 0);
  will-change: transform;
  mix-blend-mode: screen;
  opacity: 0.475;
  transition: opacity 240ms ease;
}
@media (hover: none) {
  .cursor-glow { display: none; }
}

header, main, footer { position: relative; z-index: 2; }

::selection { background: rgba(228, 228, 231, 0.2); color: #fff; }

/* ============== HEADER ============== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--panel-border);
  z-index: 50;
}
.header-inner {
  height: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
  height: 100%;
}
.brand img {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(232, 116, 58, 0.25));
  transition: filter var(--transition);
}
.brand:hover img { filter: drop-shadow(0 0 22px rgba(232, 116, 58, 0.5)); }

.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--alloy);
  text-decoration: none;
  transition: color var(--transition);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--electric); }

/* ============== SECTIONS ============== */
main { padding-top: var(--header-h); }

.section {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 4rem 2rem;
}
.section-narrow {
  max-width: var(--max-prose);
}

.section + .section { padding-top: 0; }

/* Headings */
h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: var(--electric);
}

h1.display {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  margin: 0 0 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
  position: relative;
  padding-left: 1rem;
}
h2::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  height: 0.5em; width: 3px;
  background: var(--ember);
  box-shadow: var(--ember-glow);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

p { margin: 0 0 1rem; color: var(--alloy); max-width: var(--max-prose); }
.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--alloy);
  max-width: var(--max-prose);
  margin: 0 0 2.5rem;
}

a.inline {
  color: var(--electric);
  border-bottom: 1px solid var(--panel-border-strong);
  text-decoration: none;
  transition: border-color var(--transition);
}
a.inline:hover { border-bottom-color: var(--electric); }

ul.bullets { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: var(--max-prose); }
ul.bullets li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  color: var(--alloy);
  line-height: 1.6;
}
ul.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.95em;
  width: 8px; height: 1px;
  background: var(--steel);
}

/* ============== HERO ============== */
.hero { padding-top: 6rem; padding-bottom: 4rem; }

.cta-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--electric);
  color: var(--void);
  box-shadow: 0 0 24px rgba(228, 228, 231, 0.18), inset 0 -2px 0 var(--ember);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 32px rgba(232, 116, 58, 0.35), inset 0 -2px 0 var(--ember);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--alloy);
  border-color: var(--panel-border-strong);
}
.btn-ghost:hover {
  color: var(--electric);
  border-color: var(--electric);
  background: rgba(228, 228, 231, 0.04);
}

/* ============== PANEL CARDS ============== */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: var(--shadow-panel);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  color: inherit;
  text-decoration: none;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0.45;
  transition: opacity var(--transition);
}
.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(228, 228, 231, 0.35);
  box-shadow: var(--shadow-panel-hover);
}
.panel:hover::before { opacity: 0.85; background: linear-gradient(90deg, transparent, var(--electric), transparent); }
/* Clickable panels (whole-tile link) — show a discreet arrow corner on hover */
a.panel { cursor: pointer; }
a.panel::after {
  content: '↗';
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--steel);
  opacity: 0.4;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}
a.panel:hover::after {
  color: var(--electric);
  opacity: 1;
  transform: translate(2px, -2px);
}

.panel-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest2);
  margin-bottom: 0.75rem;
}
.panel-status.live { color: var(--led-green); }
.panel-status.live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--led-green);
  box-shadow: var(--shadow-glow-led);
}
.panel-status.flagship { color: var(--ember); }
.panel-status.flagship::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: var(--ember-glow);
}
.panel-status.queued { color: var(--steel); }
.panel-status.queued::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--steel);
}

.panel h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.panel p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  color: var(--alloy);
}
.panel-price {
  display: block;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--panel-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--electric);
  letter-spacing: var(--tracking-wide);
}
.panel-price .price-label {
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest2);
  font-size: 0.625rem;
  display: block;
  margin-bottom: 0.25rem;
}
.panel-price .price-value { font-size: 0.9375rem; font-weight: 500; }
.panel-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--ember);
  text-decoration: none;
  transition: gap var(--transition);
}
.panel-link::after { content: '→'; }
.panel-link:hover { gap: 0.7rem; color: #ff8a52; }

/* ============== ICP / AUDIENCE TILES (compact, non-clickable) ============== */
.icp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.875rem;
  margin: 1.75rem 0 1rem;
}
.icp-tile {
  position: relative;
  padding: 1.125rem 1.25rem 1.25rem;
  background: linear-gradient(135deg, rgba(35, 35, 38, 0.7), rgba(20, 20, 22, 0.85));
  border: 1px solid var(--panel-border);
  border-left: 2px solid var(--ember);
  border-radius: 3px;
  transition: border-color var(--transition), background var(--transition);
}
.icp-tile:hover {
  border-color: rgba(228, 228, 231, 0.3);
  border-left-color: var(--ember);
  background: linear-gradient(135deg, rgba(228, 228, 231, 0.04), rgba(20, 20, 22, 0.9));
}
.icp-tile h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.125rem;
  letter-spacing: -0.01em;
  color: var(--electric);
}
.icp-tile .icp-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest2);
  color: var(--ember);
  margin-bottom: 0.625rem;
}
.icp-tile p {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 0;
  color: var(--alloy);
}

/* ============== FEATURE PANEL (highlighted CTA) ============== */
.feature-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: var(--shadow-panel);
  position: relative;
  overflow: hidden;
}
.feature-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0.7;
  box-shadow: 0 0 18px rgba(232, 116, 58, 0.3);
}
.feature-panel h2 { padding-left: 0; margin-bottom: 0.75rem; }
.feature-panel h2::before { display: none; }
.feature-panel .lead { margin-bottom: 1.5rem; font-size: 1.125rem; }

/* ============== METRIC ROW (for audit page) ============== */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}
.metric {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-panel);
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest2);
  color: var(--steel);
  display: block;
  margin-bottom: 0.5rem;
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--electric);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ============== TIMELINE (week-by-week) ============== */
.timeline { margin: 2rem 0 3rem; }
.timeline-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--panel-border);
}
.timeline-step:last-child { border-bottom: 1px solid var(--panel-border); }
.timeline-week {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest2);
  color: var(--steel);
  padding-top: 0.25rem;
}
.timeline-body h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}
.timeline-body p {
  font-size: 0.9375rem;
  margin: 0;
}

/* ============== FAQ (accordion via <details>) ============== */
.faq { margin: 2rem 0; }
.faq-item {
  border-top: 1px solid var(--panel-border);
}
.faq-item:last-child { border-bottom: 1px solid var(--panel-border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--electric);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--steel);
  transition: transform var(--transition), color var(--transition);
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--electric);
}
.faq-item p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--alloy);
  margin: 0 0 1.25rem;
  padding-right: 2.5rem;
  max-width: var(--max-prose);
}

/* ============== DISCLAIMER / FOOTNOTE ============== */
.disclaimer {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--steel);
  letter-spacing: var(--tracking-wide);
  margin: 2rem 0 0;
  font-style: normal;
  display: block;
  clear: both;
  max-width: var(--max-prose);
}
.disclaimer::before { content: '* '; color: var(--ember); }

/* ============== CONTACT FORM ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: var(--shadow-panel);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0.6;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest2);
  color: var(--steel);
}
.field input,
.field textarea {
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid var(--panel-border-strong);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--electric);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ember);
  background: rgba(9, 9, 11, 0.85);
  box-shadow: 0 0 0 1px var(--ember-soft);
}
.field textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { align-self: flex-start; margin-top: 0.5rem; }

.contact-aside {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: var(--shadow-panel);
}
.contact-aside h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.75rem;
}
.contact-aside p {
  font-size: 0.9375rem;
  margin: 0 0 1rem;
}
.contact-aside .email-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--electric);
  text-decoration: none;
  border-bottom: 1px solid var(--panel-border-strong);
  padding-bottom: 2px;
  margin-top: 0.25rem;
  transition: border-color var(--transition);
}
.contact-aside .email-link:hover { border-bottom-color: var(--electric); }
.contact-aside .meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--panel-border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--steel);
  letter-spacing: var(--tracking-wide);
  line-height: 1.6;
}

/* ============== FOOTER ============== */
.site-footer {
  border-top: 1px solid var(--panel-border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
  margin-top: 6rem;
  padding: 2.5rem 2rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-mark {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest2);
  color: var(--steel);
}
.footer-links {
  display: flex; gap: 1.5rem;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--alloy);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--electric); }

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .header-inner { padding: 0 1.25rem; gap: 1rem; }
  .site-nav { gap: 1rem; }
  .site-nav a:not(.is-cta) { display: none; }
  .section { padding: 3rem 1.25rem; }
  .hero { padding-top: 4rem; padding-bottom: 3rem; }
  .feature-panel { padding: 1.75rem; }
  .timeline-step { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-form, .contact-aside { padding: 1.5rem; }
  .brand img { height: 28px; }
}
