/* Shared styles for the /industries/*.html landing pages. Tokens and components mirror the
   homepage's inline styles (index.html) so these pages look like part of the same site; the
   homepage keeps its own copy. If the homepage's look changes, update this file to match. */
:root {
  --bg: #F6F7F9;
  --bg-raised: #FFFFFF;
  --fg: #132A42;
  --fg-dim: #5B6B7A;
  --line: #DFE3E8;
  --accent: #2563EB;
  --accent-soft: #EFF6FF;
  --on-accent: #FFFFFF;
  --accent-text: #1D4ED8;
  --accent-on-dark: #60A5FA;
  --dark-surface: #0F172A;
  --on-dark-surface: #F8FAFC;
  --gold-soft: #FEF3C7;
  --green: #10B981;
  --green-soft: #ECFDF5;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 80px;
  --sp-8: 96px;
  --sp-9: 120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(24px, 6vw, 80px); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; display: block; object-fit: contain; }
.brand-text { font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--fg); }
.brand-text span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: var(--sp-3); }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--fg-dim); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--fg); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  gap: 6px;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--bg-raised); }
.btn-ghost:hover { border-color: var(--fg-dim); transform: translateY(-1px); }
.btn-accent {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 100%, white 10%), var(--accent));
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 18px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 10px 24px -6px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-on-dark { color: #fff; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.btn-on-dark:hover { border-color: rgba(255,255,255,0.45); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.ind-hero { padding-top: var(--sp-6); padding-bottom: var(--sp-7); }
.breadcrumb { font-size: 0.82rem; color: var(--fg-dim); margin-bottom: var(--sp-3); }
.breadcrumb a { color: var(--accent-text); }
.breadcrumb a:hover { text-decoration: underline; }
.ind-hero .eyebrow { margin-bottom: var(--sp-2); }
.ind-hero h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 var(--sp-3);
}
.ind-hero h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(110deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 40%, var(--fg)) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ind-hero .lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 62ch;
  margin-bottom: var(--sp-4);
}
.hero-ctas { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ---------- Sections ---------- */
section.band { padding: var(--sp-8) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: var(--sp-5); }
.section-head h2 { font-size: clamp(1.75rem, 2.7vw, 2.25rem); margin-top: var(--sp-1); letter-spacing: -0.015em; }
.section-head p { color: var(--fg-dim); margin-top: var(--sp-2); line-height: 1.6; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(19, 42, 66, 0.12);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.card h3 { font-family: var(--body); font-size: 1.12rem; font-weight: 700; margin: 10px 0 8px; }
.card p { color: var(--fg-dim); font-size: 0.94rem; line-height: 1.6; }
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.badge.gold { background: var(--gold-soft); color: #B45309; }
.badge.green { background: var(--green-soft); color: #047857; }

/* ---------- Field note -> write-up ---------- */
.transform-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--sp-3); }
.panel { border-radius: 16px; padding: var(--sp-4); border: 1px solid var(--line); background: var(--bg-raised); }
.panel-note { border-style: dashed; }
.panel-note p { font-family: var(--mono); font-size: 0.92rem; line-height: 1.7; color: var(--fg-dim); }
.panel-final { box-shadow: 0 4px 20px -6px rgba(0,0,0,0.06); }
.panel-final p { font-size: 0.98rem; line-height: 1.7; color: var(--fg); }
.panel-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: block;
  margin-bottom: var(--sp-2);
}
.panel-final .panel-label { color: var(--accent-text); font-weight: 600; }
.sample-caption { margin-top: var(--sp-3); font-size: 0.88rem; color: var(--fg-dim); line-height: 1.6; max-width: 80ch; }
.sample-caption strong { color: var(--fg); }

/* ---------- FAQ ---------- */
.faq { max-width: 80ch; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--fg-dim); line-height: 1.65; margin-top: 12px; font-size: 0.95rem; }
.faq details a { color: var(--accent-text); text-decoration: underline; }

/* ---------- Other industries ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.pill:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- CTA band ---------- */
section.cta-band {
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--accent-on-dark) 22%, transparent), transparent 45%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--accent-on-dark) 16%, transparent), transparent 50%),
    var(--dark-surface);
  color: var(--on-dark-surface);
  padding: var(--sp-8) 0;
  text-align: center;
}
section.cta-band .eyebrow { color: var(--accent-on-dark); justify-content: center; }
section.cta-band h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: var(--sp-2) auto var(--sp-3);
  max-width: 24ch;
}
section.cta-band p { color: #94A3B8; max-width: 52ch; margin: 0 auto var(--sp-4); font-size: 1.05rem; line-height: 1.6; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer.site { padding: var(--sp-6) 0 var(--sp-4); border-top: 1px solid var(--line); background: var(--bg); }
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand .brand img { height: 36px; }
.footer-tagline { font-size: 0.88rem; color: var(--fg-dim); line-height: 1.5; }
.footer-nav { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 100px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  margin: 0 0 4px;
}
.footer-col a { font-size: 0.86rem; color: var(--fg-dim); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: center; padding-top: var(--sp-4); text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--fg-dim); }
.footer-bottom p a { font-weight: 600; color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr; }
  .transform-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .footer-main { flex-direction: column; gap: var(--sp-4); }
  .footer-brand { max-width: 100%; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-row { gap: 8px; }
  .nav-right { gap: 8px; }
  .brand-text { font-size: 1.15rem; }
  .brand img { height: 34px; }
  .nav-links { display: none; }
  header.site .btn { padding: 7px 12px; font-size: 0.82rem; }
  .footer-nav { flex-direction: column; gap: var(--sp-3); }
  section.band { padding: var(--sp-6) 0; }
  .ind-hero { padding-top: var(--sp-5); padding-bottom: var(--sp-6); }
}
@media (max-width: 440px) {
  header.site .btn-ghost { display: none; }
  .ind-hero .lede { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
