/* ============================================================
   SPARK AI: for Small Businesses
   Shared stylesheet. Built on the Spark AI brand system:
   Signal Navy / Spark Coral / Steady Gray / Cloud White.
   ============================================================ */

:root {
  --navy: #323E54;
  --navy-dark: #262F41;
  --coral: #F45A3A;
  --coral-dark: #DB4A2C;
  --gray: #6F7170;
  --cloud: #F4F5F6;
  --white: #FFFFFF;
  --line: #E4E6E8;
  --navy-08: rgba(50, 62, 84, 0.08);
  --navy-12: rgba(50, 62, 84, 0.12);
  --coral-12: rgba(244, 90, 58, 0.12);

  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
h2 { font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.005em; }
h4 { font-weight: 600; font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: inherit; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--gray);
  max-width: 62ch;
  line-height: 1.65;
}

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

section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.bg-cloud { background: var(--cloud); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy .lede { color: rgba(244,245,246,0.78); }

/* Eyebrow label: matches the brand system's page-header pattern
   (BRAND IDEA / PRIMARY LOGO / SPARK SESSIONS ...) used consistently
   across the approved Spark AI brand guidelines. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.9rem;
}
.bg-navy .eyebrow { color: var(--coral); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-primary:hover { background: var(--coral-dark); }
.btn-primary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.btn-outline {
  background: transparent;
  border-color: var(--navy-12);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--navy); background: var(--navy-08); }

.bg-navy .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.bg-navy .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--coral-dark); }
.bg-navy .link-arrow { color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
}
.brand .wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand .wordmark span { color: var(--coral); }
.brand .tagline-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: 2px;
}
.signal-mark { display: block; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-bottom-color: var(--coral);
}
.nav-cta { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 480px) {
  .brand .tagline-sub { display: none; }
  .brand .wordmark { font-size: 1.02rem; }
  .nav-cta .btn { padding: 0.7rem 1.1rem; font-size: 0.86rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.95rem var(--gutter); width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero signal mark animation ---------- */
.signal-mark .bar {
  transform-origin: center;
  animation: rise 0.7s cubic-bezier(.2,.8,.2,1) both;
}
.signal-mark.animated .bar:nth-child(1) { animation-delay: 0.05s; }
.signal-mark.animated .bar:nth-child(2) { animation-delay: 0.12s; }
.signal-mark.animated .bar:nth-child(3) { animation-delay: 0.02s; }
.signal-mark.animated .bar:nth-child(4) { animation-delay: 0.2s; }
.signal-mark.animated .bar:nth-child(5) { animation-delay: 0.28s; }
@keyframes rise {
  from { transform: scaleY(0.15); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .signal-mark .bar { animation: none; }
}

/* ---------- Pulse divider (brand "Pulse Field" motif) ---------- */
.pulse-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.2vw, 10px);
  height: 44px;
  margin: 0 auto;
}
.pulse-divider span {
  width: 4px;
  border-radius: 3px;
  background: var(--navy-12);
}
.pulse-divider span.accent { background: var(--coral); }
.bg-navy .pulse-divider span { background: rgba(255,255,255,0.18); }
.bg-navy .pulse-divider span.accent { background: var(--coral); }

/* ---------- Signal grid texture (dark sections) ---------- */
.signal-grid-bg {
  background-image:
    radial-gradient(rgba(244,90,58,0.55) 1.4px, transparent 1.4px),
    radial-gradient(rgba(255,255,255,0.14) 1.4px, transparent 1.4px);
  background-size: 96px 96px, 32px 32px;
  background-position: 0 0, 16px 16px;
}

/* ---------- Eyebrow + heading block ---------- */
.head-block { max-width: 760px; }
.head-block.center { margin: 0 auto; text-align: center; }

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Strip card (brand "Digital Applications" card treatment) ---------- */
.strip-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.6rem;
  position: relative;
}
.strip-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--coral);
  margin-bottom: 1.1rem;
}
.strip-card.navy::before { background: var(--navy); }
.strip-card .meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.35rem;
}
.strip-card p { color: var(--gray); margin-bottom: 0; font-size: 0.95rem; }
.strip-card p:not(:last-child) { margin-bottom: 0.6em; }

/* ---------- Numbered process steps (legitimate sequence: lifecycle phases) ---------- */
.step-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.step-row:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--coral);
}
.step-row h3 { margin-bottom: 0.35rem; }
.step-row p { color: var(--gray); margin: 0; max-width: 60ch; }

/* ---------- Table-style comparison ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
}
.compare th, .compare td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.compare th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray);
}
.compare td.emph { font-weight: 700; color: var(--navy); }

/* ---------- Cards with icons (lifecycle) ---------- */
.life-card {
  padding: 1.5rem 0 0.25rem;
}
.life-card .life-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--coral-12);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.life-card h4 { margin-bottom: 0.4rem; }
.life-card p { color: var(--gray); font-size: 0.93rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-band h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.cta-soft {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(244,245,246,0.65);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(244,245,246,0.75);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.75rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
.footer-brand .wordmark { color: var(--white); }
.footer-brand p { color: rgba(244,245,246,0.6); font-size: 0.9rem; max-width: 32ch; margin-top: 0.9rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { text-decoration: none; color: rgba(244,245,246,0.75); font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(244,245,246,0.5);
}
.footer-bottom .presented { display: flex; align-items: center; gap: 0.4rem; }
.footer-bottom .presented strong { color: rgba(244,245,246,0.75); }

/* ---------- Misc content components ---------- */
.kicker-block { display: flex; align-items: flex-start; gap: 1rem; }
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
  margin-top: 0.55em; flex-shrink: 0;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}
.quote-block {
  border-left: 3px solid var(--coral);
  padding-left: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--navy);
  line-height: 1.35;
  max-width: 46ch;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cloud);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.event-card {
  background: var(--navy);
  color: var(--white);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.event-card .eyebrow { color: var(--coral); }
.event-card h2 { color: var(--white); }
.event-meta {
  color: var(--coral);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}

.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  color: var(--navy);
  font-size: 0.96rem;
  border-top: 1px solid var(--line);
}
.icon-list li:first-child { border-top: none; }
.icon-list svg { flex-shrink: 0; margin-top: 4px; color: var(--coral); }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coral);
}
.form-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 1rem;
}
.form-success {
  display: none;
  background: var(--coral-12);
  border: 1px solid var(--coral);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.form-success.show { display: block; }

/* ---------- Page hero padding variants ---------- */
.hero {
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; top: 0; }
