/* StrataOps — shared styles */

:root {
  --st-bg: #F8F7F4;
  --st-ink: #1F2124;
  --st-body: #2E3136;
  --st-muted: #55595F;
  --st-border: #A9ADB3;
  --st-purple: #5E45D9;
  --st-purple-deep: #4C33B8;
  --st-lavender: #ECE8FA;
  --st-lavender-alt: #ECE8FC;
  --st-purple-light: #A896F5;
  --st-purple-pale: #D9D2F5;
  --st-footer: #17181A;
  --st-sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --st-display: 'Space Grotesk', 'Inter', sans-serif;
  --st-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--st-bg);
  color: var(--st-body);
  font-family: var(--st-sans);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--st-purple-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.st-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--st-ink);
  color: var(--st-bg);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* Wordmark */
.st-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.st-brand img {
  display: block;
}

.st-brand-name {
  font-family: var(--st-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--st-ink);
}

.st-brand-name em {
  font-style: normal;
  color: var(--st-purple-deep);
}

/* Nav */
.st-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.st-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15.5px;
  font-weight: 500;
}

.st-nav-links a {
  color: var(--st-body);
}

.st-nav-links a[aria-current="page"] {
  color: var(--st-purple-deep);
}

.st-nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--st-body);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.st-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--st-ink);
  transition: transform 120ms ease, opacity 120ms ease;
}

.st-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.st-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.st-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.st-btn-outline {
  display: inline-block;
  color: var(--st-body);
  border: 1.5px solid var(--st-body);
  padding: 8.5px 18.5px;
  border-radius: 8px;
}

.st-btn-outline:hover {
  border-color: var(--st-ink);
  text-decoration: none;
}

/* Buttons */
.st-btn-primary {
  display: inline-block;
  background: var(--st-purple);
  color: #FFFFFF;
  font-weight: 500;
  font-size: 17px;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--st-sans);
}

.st-btn-primary:hover {
  background: var(--st-purple-deep);
  text-decoration: none;
}

.st-btn-secondary {
  display: inline-block;
  color: var(--st-body);
  font-weight: 500;
  font-size: 17px;
  padding: 12.5px 26px;
  border-radius: 8px;
  border: 1.5px solid var(--st-body);
}

.st-btn-secondary:hover {
  border-color: var(--st-ink);
  text-decoration: none;
}

.st-btn-inverse {
  display: inline-block;
  color: var(--st-ink);
  font-weight: 600;
  font-size: 17px;
  padding: 13px 28px;
  border-radius: 8px;
  background: var(--st-bg);
  border: 1.5px solid var(--st-bg);
}

.st-btn-inverse:hover {
  background: #FFFFFF;
  text-decoration: none;
}

.st-btn-ghost-light {
  display: inline-block;
  color: var(--st-bg);
  font-weight: 500;
  font-size: 17px;
  padding: 12.5px 26px;
  border-radius: 8px;
  border: 1.5px solid rgba(248, 247, 244, 0.6);
}

.st-btn-ghost-light:hover {
  border-color: var(--st-bg);
  text-decoration: none;
}

/* Type */
.st-h1 {
  font-family: var(--st-display);
  font-weight: 700;
  font-size: 47px;
  line-height: 1.12;
  color: var(--st-ink);
  margin: 0 0 24px;
  text-wrap: pretty;
}

.st-h2 {
  font-family: var(--st-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: var(--st-ink);
  margin: 0 0 20px;
  text-wrap: pretty;
}

.st-h3 {
  font-family: var(--st-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--st-ink);
  margin: 0;
}

.st-kicker {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-muted);
  font-weight: 500;
}

.st-lede {
  font-size: 19px;
  color: var(--st-muted);
  margin: 0 0 32px;
  max-width: 62ch;
  text-wrap: pretty;
}

.st-mono {
  font-family: var(--st-mono);
  font-size: 14px;
  color: var(--st-muted);
}

/* Sections */
.st-section {
  border-top: 2px solid var(--st-border);
}

.st-section-inner {
  padding-top: 72px;
  padding-bottom: 72px;
}

/* Hero (home) */
.st-hero-section {
  border-bottom: 2px solid var(--st-border);
  background-color: var(--st-bg);
  background-image: radial-gradient(circle, rgba(94, 69, 217, 0.13) 1.15px, transparent 1.15px);
  background-size: 24px 24px;
}

.st-hero {
  padding-top: 76px;
  padding-bottom: 84px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.st-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.st-hero-art {
  background: #FFFFFF;
  border: 1px solid rgba(169, 173, 179, 0.55);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(23, 24, 26, 0.05), 0 22px 48px rgba(23, 24, 26, 0.10);
  padding: 26px 24px;
}

.st-hero-art-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.st-hero-art-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--st-purple);
}

.st-hero-art-label {
  font-family: var(--st-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--st-muted);
}

/* Page hero (inner pages) */
.st-page-hero {
  padding-top: 64px;
  padding-bottom: 56px;
}

/* Card grids */
.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.st-grid--tight {
  gap: 20px;
}

.st-card {
  background: var(--st-bg);
  border: 1px solid rgba(169, 173, 179, 0.4);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.st-card p {
  margin: 0;
  font-size: 16px;
  color: var(--st-body);
}

.st-card-white {
  background: #FFFFFF;
  border: 1px solid rgba(169, 173, 179, 0.4);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(23, 24, 26, 0.04), 0 14px 34px rgba(23, 24, 26, 0.07);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.st-card-white p {
  margin: 0;
  font-size: 16px;
  color: var(--st-body);
}

.st-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--st-lavender);
}

.st-card-icon--lg {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.st-card-tag {
  font-family: var(--st-mono);
  font-size: 13px;
  color: var(--st-purple-deep);
}

.st-card-result {
  margin: 4px 0 0 !important;
  font-size: 15px !important;
  color: var(--st-purple-deep) !important;
}

.st-card-result strong {
  font-weight: 500;
}

/* Dash bullet rows */
.st-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px 48px;
  max-width: 1000px;
}

.st-dash-grid--narrow {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.st-dash-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.st-dash-row .st-dash {
  flex: none;
  width: 16px;
  height: 3px;
  background: var(--st-purple);
  margin-top: 12px;
}

.st-dash-row p {
  margin: 0;
  font-size: 16.5px;
}

.st-dash-row strong {
  color: var(--st-ink);
  font-weight: 700;
}

/* Split two-column */
.st-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
}

/* Quote card */
.st-quote {
  margin: 0;
  background: var(--st-ink);
  border-radius: 16px;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.st-quote-mark {
  font-family: var(--st-display);
  font-size: 40px;
  line-height: 0.6;
  color: var(--st-purple-light);
}

.st-quote blockquote {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--st-bg);
  font-style: italic;
}

.st-quote figcaption {
  font-size: 14px;
  color: var(--st-border);
}

.st-quote--sm {
  padding: 28px 26px;
  gap: 14px;
}

.st-quote--sm .st-quote-mark {
  font-size: 36px;
}

.st-quote--sm blockquote {
  font-size: 16.5px;
  line-height: 1.5;
}

.st-quote--sm figcaption {
  font-size: 13px;
}

/* Case studies */
.st-case {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.st-case-num {
  font-family: var(--st-mono);
  font-size: 14px;
  color: var(--st-purple-deep);
}

.st-case-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.st-case-label {
  font-family: var(--st-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin: 0 0 8px;
}

.st-case-result {
  border-left: 3px solid var(--st-purple);
  padding-left: 20px;
}

.st-case-result .st-case-label {
  color: var(--st-purple-deep);
}

.st-case-result p:last-child {
  margin: 0;
  max-width: 62ch;
  color: var(--st-ink);
  font-weight: 500;
}

/* Callout */
.st-callout {
  background: var(--st-lavender-alt);
  border-radius: 12px;
  padding: 24px 28px;
  max-width: 66ch;
}

.st-callout p {
  margin: 0;
  color: var(--st-purple-deep);
  font-weight: 500;
}

/* Article */
.st-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 48px 24px;
  box-sizing: border-box;
  line-height: 1.65;
}

.st-article .st-h2 {
  font-size: 27px;
  margin: 40px 0 16px;
}

.st-article p {
  margin: 0 0 16px;
}

.st-article strong {
  color: var(--st-ink);
}

.st-article-kicker {
  margin: 0 0 20px;
  font-family: var(--st-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--st-muted);
}

.st-article-cta {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 48px;
  box-sizing: border-box;
}

.st-article-date {
  font-family: var(--st-mono);
  font-size: 13px;
  color: var(--st-muted);
  margin: 0 0 28px;
}

/* Markdown-rendered article body (generated by scripts/build-insights.mjs) */
.st-article-body > p:first-child {
  font-size: 19px;
  color: var(--st-muted);
}

.st-article-body h2 {
  font-family: var(--st-display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--st-ink);
  margin: 40px 0 16px;
  text-wrap: pretty;
}

.st-article-body h3 {
  font-family: var(--st-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--st-ink);
  margin: 28px 0 10px;
}

.st-article-body ul,
.st-article-body ol {
  margin: 0 0 16px;
  padding-left: 26px;
}

.st-article-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--st-purple);
  color: var(--st-muted);
  font-style: italic;
}

.st-article-body blockquote p {
  margin: 0;
}

.st-article-body code {
  font-family: var(--st-mono);
  font-size: 0.85em;
  background: var(--st-lavender-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

.st-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.st-article-body .st-table-wrap {
  margin: 24px 0;
}

/* Foot-of-article FAQ */
.st-faq {
  margin-top: 48px;
  padding-top: 8px;
  border-top: 1px solid rgba(169, 173, 179, 0.4);
}

.st-faq-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(169, 173, 179, 0.4);
}

.st-faq-item:last-child {
  border-bottom: none;
}

.st-faq-item h3 {
  margin: 0 0 8px;
}

.st-faq-item p {
  margin: 0;
  color: var(--st-muted);
}

/* Insights index listing */
.st-post-item {
  border-bottom: 1px solid rgba(169, 173, 179, 0.4);
  padding-bottom: 40px;
}

.st-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.st-post-date {
  font-family: var(--st-mono);
  font-size: 13px;
  color: var(--st-muted);
  margin: 0 0 10px;
}

/* Comparison table */
.st-table-wrap {
  overflow-x: auto;
  margin: 0 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(169, 173, 179, 0.5);
}

.st-ctable {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  background: #FFFFFF;
}

.st-ctable thead tr {
  background: var(--st-ink);
}

.st-ctable th {
  text-align: left;
  padding: 16px 18px;
  color: var(--st-bg);
  font-weight: 700;
  font-family: var(--st-display);
}

.st-ctable tbody tr {
  border-top: 1px solid rgba(169, 173, 179, 0.4);
}

.st-ctable td {
  padding: 15px 18px;
  color: var(--st-body);
  vertical-align: top;
}

.st-ctable td:first-child {
  color: var(--st-ink);
  font-weight: 500;
}

/* Forms */
.st-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
}

.st-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-field label {
  font-size: 14px;
  color: var(--st-muted);
  font-weight: 500;
}

.st-field input,
.st-field textarea {
  font-family: var(--st-sans);
  font-size: 16px;
  color: var(--st-body);
  background: #FFFFFF;
  border: 1px solid var(--st-border);
  border-radius: 8px;
  padding: 12px 14px;
  outline-color: var(--st-purple);
}

.st-field textarea {
  resize: vertical;
}

.st-field input::placeholder,
.st-field textarea::placeholder {
  color: var(--st-border);
}

/* Photo */
.st-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  height: auto;
}

/* Photo slot */
.st-photo-slot {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: var(--st-lavender);
  border: 1px dashed var(--st-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--st-mono);
  font-size: 13px;
  color: var(--st-muted);
  box-sizing: border-box;
}

.st-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* About hero */
.st-about-hero {
  padding-top: 64px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: 48px;
  align-items: start;
}

/* Footer */
.st-footer {
  background: var(--st-footer);
  color: var(--st-bg);
}

.st-footer-inner {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}

.st-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-footer-brand .st-brand-name {
  font-size: 19px;
  color: var(--st-bg);
}

.st-footer-brand .st-brand-name em {
  color: var(--st-purple-light);
}

.st-footer-meta {
  font-size: 14.5px;
  color: var(--st-border);
}

.st-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
}

.st-footer-nav a {
  color: var(--st-purple-light);
}

/* Responsive */
@media (max-width: 860px) {
  .st-hero {
    grid-template-columns: 1fr;
  }
  .st-hero-art {
    display: none;
  }
}

@media (max-width: 760px) {
  .st-header {
    position: relative;
  }
  .st-nav-toggle {
    display: inline-flex;
  }
  .st-nav-links {
    display: none;
  }
  .st-nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: #FFFFFF;
    border-top: 1px solid rgba(169, 173, 179, 0.4);
    border-bottom: 2px solid var(--st-border);
    box-shadow: 0 18px 38px rgba(23, 24, 26, 0.12);
    padding: 14px 24px 22px;
    gap: 14px;
    font-size: 17px;
  }
  .st-nav-links.open .st-btn-outline {
    text-align: center;
    margin-top: 4px;
  }
  .st-h1 {
    font-size: 34px;
  }
  .st-h2 {
    font-size: 27px;
  }
  .st-container,
  .st-article,
  .st-article-cta {
    padding-left: 24px;
    padding-right: 24px;
  }
  .st-case {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .st-about-hero {
    grid-template-columns: 1fr;
  }
  .st-article .st-h2 {
    font-size: 25px;
  }
  .st-ctable {
    font-size: 14px;
  }
  .st-ctable th,
  .st-ctable td {
    padding: 12px 12px;
  }
}
