/* Shared styles for /solutions/{slug}/ pages.
   Linked from each solution page; keeps bundle size small via HTTP/2 multiplexing. */
:root {
  --bg: #08080d;
  --bg2: #0e0e16;
  --bg3: #14141f;
  --surface: #1a1a2a;
  --border: #2a2a3a;
  --text: #e8e6e3;
  --text2: #9a9aaa;
  --text3: #6a6a7a;
  --amber: #f0a830;
  --amber-dim: rgba(240, 168, 48, 0.12);
  --green: #4ade80;
  --blue: #60a5fa;
  --red: #f87171;
  --purple: #a78bfa;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--amber);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, #1a0a2e 0%, #0a1a2e 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(240, 168, 48, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.crumbs {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text3);
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}
.crumbs a {
  color: var(--text2);
}
.crumbs .sep {
  margin: 0 0.5rem;
  color: var(--text3);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 1rem;
}
.hero .lede {
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  max-width: 740px;
  font-style: italic;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text3);
  margin-bottom: 1rem;
}
.byline span {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.byline a {
  color: var(--text2);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.hero-stats .stat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text3);
  padding: 0.4rem 0.8rem;
  background: rgba(240, 168, 48, 0.05);
  border: 1px solid rgba(240, 168, 48, 0.2);
  border-radius: 5px;
}
.hero-stats .stat strong {
  color: var(--amber);
  font-weight: 600;
}

/* Section base */
.section {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section h2 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--amber);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.section h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}
.section p {
  margin-bottom: 1rem;
  color: var(--text2);
  font-size: 1rem;
}
.section a {
  color: var(--amber);
}
.section ul,
.section ol {
  margin: 0 0 1.2rem 1.5rem;
  color: var(--text2);
}
.section ul li,
.section ol li {
  margin-bottom: 0.5rem;
}

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.trust-people {
  display: flex;
  align-items: center;
}
.trust-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: transparent;
  border: 2px solid var(--bg2);
  margin-left: -10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.trust-avatar:first-child {
  margin-left: 0;
}
.trust-avatar.jw {
  background-image: url('/shared/authors/john-williams.png');
}
.trust-avatar.km {
  background-image: url('/shared/authors/kristy-morgan.png');
}
.trust-avatar.sm {
  background-image: url('/shared/authors/sandeep-muley.png');
}
.trust-text {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.trust-text strong {
  color: var(--text);
}

/* Showcase grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.showcase {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.showcase-img {
  display: block;
  margin: -1.25rem -1.25rem 1rem;
  overflow: hidden;
  background: #0a0a14;
  border-bottom: 1px solid var(--border);
}
.showcase-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s;
}
.showcase-img:hover img {
  transform: scale(1.03);
}
.showcase-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.showcase-tag.portfolio {
  color: var(--amber);
}
.showcase-tag.benchmark {
  color: var(--blue);
}
.showcase-tag.local {
  color: var(--green);
}
.showcase h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}
.showcase p {
  font-size: 0.86rem;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}
.showcase a.ext {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text3);
  text-decoration: none;
  border-bottom: 1px dotted var(--text3);
}
.showcase a.ext:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}
.showcase a.case-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px dotted var(--amber);
  margin-top: auto;
}
.showcase a.case-link:hover {
  color: #f5b340;
}

/* Framework steps */
.steps {
  counter-reset: step;
  margin-top: 1rem;
}
.step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  margin: 0.25rem 0 0.5rem;
  color: var(--text);
}
.step p {
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
}

/* Blog pulls */
.blog-pulls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.blog-pull {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: block;
}
.blog-pull:hover {
  border-color: var(--amber);
  text-decoration: none;
  transform: translateY(-2px);
}
.blog-pull-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.blog-pull-title {
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

/* FAQ */
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  padding: 1rem 1.25rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-q::-webkit-details-marker {
  display: none;
}
.faq-q::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 1.25rem 1rem;
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Cross-links */
.cross-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.cross-link {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--text2);
  font-size: 0.88rem;
  transition: all 0.2s;
}
.cross-link:hover {
  border-color: var(--amber);
  color: var(--amber);
  text-decoration: none;
}
.cross-link strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #1a0a2e 0%, #0a1a2e 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--text);
  margin-bottom: 0.75rem;
  border: none;
  padding: 0;
  font-weight: 700;
}
.cta-band p {
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.cta-band .btn {
  display: inline-block;
  background: var(--amber);
  color: #0e0e16;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  margin-right: 0.5rem;
}
.cta-band .btn:hover {
  background: #f5b340;
  transform: translateY(-1px);
  text-decoration: none;
}
.cta-band .btn-secondary {
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber);
  box-shadow: none;
}
.cta-band .btn-secondary:hover {
  background: var(--amber-dim);
}

/* Inline contact form (landing-page best practice: 4 fields, single CTA, trust signal, honeypot) */
.lead-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  margin-top: 1.5rem;
}
.lead-form-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.lead-form-people {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.lead-form-text {
  flex: 1;
  min-width: 220px;
}
.lead-form-text strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.lead-form-text span {
  font-size: 0.84rem;
  color: var(--text2);
  line-height: 1.5;
}
.lead-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.lead-form .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}
.lead-form label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.lead-form input,
.lead-form textarea,
.lead-form select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s;
  width: 100%;
}
.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--amber);
}
.lead-form textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--font-body);
}
.lead-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.lead-form-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}
.lead-form-submit {
  background: var(--amber);
  color: #0e0e16;
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.lead-form-submit:hover:not([disabled]) {
  background: #f5b340;
  transform: translateY(-1px);
}
.lead-form-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.lead-form-trust {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text3);
  line-height: 1.5;
}
.lead-form-result {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  min-height: 1.4em;
}
.lead-form-success {
  display: none;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  color: var(--text);
}
.lead-form-success strong {
  color: var(--green);
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.lead-form-success p {
  font-size: 0.9rem;
  color: var(--text2);
  margin: 0;
}
@media (max-width: 640px) {
  .lead-form .row {
    grid-template-columns: 1fr;
  }
}

/* AI disclosure */
.ai-disclosure {
  max-width: 860px;
  margin: 1.5rem auto;
  padding: 0.85rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text3);
  line-height: 1.5;
}
.ai-disclosure strong {
  color: var(--text2);
}

/* Footer */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  color: var(--text3);
  font-size: 0.82rem;
  text-align: center;
}
footer p {
  margin: 0.5rem 0;
  line-height: 1.6;
}
footer a {
  color: var(--text2);
}
footer a:hover {
  color: var(--amber);
}
.parent-tieback {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text3);
  background: var(--surface);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 0.75rem;
}
.parent-tieback a {
  color: var(--amber);
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 16px 40px;
  }
  .section {
    padding: 2rem 1rem;
  }
  .trust {
    flex-direction: column;
    align-items: flex-start;
  }
  .step {
    padding-left: 2.5rem;
  }
}
