/* ============================================================
   MAINTENANCEIQ COMPONENTS -- shared pieces used by more than one page
   template, built from main.css's design tokens: the hero visual
   ("equipment vitals" scope + 4-stage rail, shared by Home and How It
   Works), the vertical-page teaser card, the step rail (How It Works
   detail + Contact), the proof/case-log, the FAQ accordion, and the
   contact form.
   ============================================================ */

/* Same content colour as every other paragraph/caption on the site --
   NOT --text-muted, which reads visibly lighter/different next to
   ordinary body copy. */
.text-dim{ color: var(--text-secondary); }
.mono{ font-family: 'Geist', monospace; }
.mb-0{ margin-bottom: 0 !important; }
.max-w{ max-width: 820px; margin-inline: auto; }

/* ============================================================
   EQUIPMENT VITALS DIAGRAM -- animated scope waveform + 4 clickable
   stage cards (Monitor / Detect / Act / Resolve). The one deliberately
   dark surface on an otherwise light page (same motif as the sibling
   accelerator microsites' dark hero-visual / scan-console). Shared by
   the Home hero and the How It Works page (template-parts/shared/
   vitals-diagram.php); assets/js/vitals-diagram.js drives the waveform
   animation and the click-to-step-through behaviour.
   ============================================================ */
.vitals{
  position: relative;
  background: linear-gradient(160deg, #06203f 0%, #01122b 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 24px 0;
  max-width: 1280px;
  margin: 0 auto;
}
.vitals-top{
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  font-family: var(--font-main); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}
.vitals-top .live{ display: inline-flex; align-items: center; gap: 6px; color: #4ee6c8; }
.vitals-top .live i{ width: 7px; height: 7px; border-radius: 50%; background: #4ee6c8; display: inline-block; animation: miqLivePulse 1.6s ease-in-out infinite; }
@keyframes miqLivePulse{ 0%,100%{ opacity: 1; } 50%{ opacity: 0.35; } }

.scope{ height: 150px; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
.scope svg{ width: 100%; height: 100%; display: block; }
.scope-grid line{ stroke: rgba(255,255,255,0.06); stroke-width: 1; }
.scope-line{ fill: none; stroke: url(#scopeGrad); stroke-width: 2.2; stroke-linecap: round; }

.vitals-stages{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.08);
}
.stage{
  background: #071b34; padding: 20px 18px 22px;
  cursor: pointer; border: none; text-align: left;
  transition: background var(--transition);
}
.stage:hover{ background: #0b2745; }
.stage.is-active{ background: #0d2e52; }
.stage.is-active::before{ content: ''; display: block; height: 3px; margin: -20px -18px 16px; background: linear-gradient(90deg, #38BDF8, #4ee6c8); }
.stage-time{ font-family: 'Geist', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: #4ee6c8; margin-bottom: 8px; }
.stage h4{ color: #fff; font-size: 16px; margin: 0 0 6px; }
.stage p{ color: rgba(255,255,255,0.62); font-size: 14px; line-height: 1.55; margin: 0; }
@media (max-width: 860px){
  .vitals-stages{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .vitals-stages{ grid-template-columns: 1fr; }
  .scope{ height: 110px; }
}

/* ============================================================
   VERTICAL TEASER CARD (home page "Built for regulated, high-consequence
   equipment" grid, linking to the 4 vertical pages)
   ============================================================ */
.vert-card{
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 28px 26px; text-decoration: none !important; color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.vert-card:hover{ transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,40,120,0.15); border-color: var(--border-active); }
.vert-card h3{ margin: 0; color: var(--text-primary); font-size: 22px; }
.vert-card p{ margin: 0; font-size: 16px; line-height: 1.6; flex: 1; color: var(--text-secondary); }
.vert-card .more{
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-family: var(--font-main); font-size: 15px; font-weight: 700; color: var(--btn-color);
}
.vert-card .more svg{ width: 15px; height: 15px; transition: transform var(--transition); }
.vert-card:hover .more svg{ transform: translateX(3px); }

/* ============================================================
   FLOW CARD NUM -- numbered circular badge inside a .feature-card,
   replacing the icon slot. Used by How It Works "The four stages, in
   detail" -- matches terra.klouddata.com/how-it-works/'s step cards
   exactly (a card grid, not a connecting-line timeline).
   ============================================================ */
.flow-card-num{
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  font-family: var(--font-main); font-weight: 700; font-size: 17px;
  color: #fff; background: linear-gradient(135deg, var(--btn-color), var(--accent-blue));
}

/* ============================================================
   PROOF / CASE-FILE LOG (home page "A failure that didn't happen")
   ============================================================ */
.case-file{
  max-width: 1280px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.case-head{
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  padding: 28px 32px; border-bottom: 1px solid var(--border);
}
.case-head-stats{ display: grid; grid-template-columns: repeat(2, auto); gap: 16px; }
.case-head-stats .stat{
  text-align: center; padding: 16px 24px;
  background: var(--bg-secondary); border-radius: var(--radius-md);
}
.case-log{ padding: 8px 0; }
.case-log .row{
  display: grid; grid-template-columns: 90px 1fr; gap: 20px;
  padding: 14px 32px; border-bottom: 1px solid var(--border);
}
.case-log .row:last-child{ border-bottom: none; }
.case-log .t{ font-family: 'Geist', monospace; font-size: 13px; font-weight: 700; color: var(--btn-color); }
.case-log .d{ font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.case-log .d b{ color: var(--text-primary); }
@media (max-width: 640px){
  .case-head{ padding: 22px 20px; }
  .case-log .row{ grid-template-columns: 1fr; gap: 4px; padding: 14px 20px; }
}
@media (max-width: 480px){
  /* Two auto-width stat pills side by side can outgrow a narrow phone
     screen -- stack them instead of letting them get cramped or clipped. */
  .case-head-stats{ grid-template-columns: 1fr; width: 100%; }
  .case-head-stats .stat{ padding: 14px 20px; }
}

/* ============================================================
   TRUST STRIP (badge row under a hero)
   ============================================================ */
.trust-strip{ display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-panel{
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 32px;
}
@media (max-width: 640px){ .form-panel{ padding: 24px 20px; } }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .field-row{ grid-template-columns: 1fr; } }
.field{ margin-bottom: 18px; }
.field label{ display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.field input,
.field select,
.field textarea{
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: #fff;
  font-family: var(--font-main); font-size: 15px; color: var(--text-primary);
  transition: border-color var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus{ outline: none; border-color: var(--accent-blue); }
.field textarea{ resize: vertical; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea{ border-color: #E23B3B; }
.field-error{ display: none; margin-top: 6px; font-size: 13px; color: #E23B3B; }
.field.has-error .field-error{ display: block; }
.form-note{ margin-top: 16px; font-size: 14px; color: var(--text-muted); text-align: center; }
.form-status{ margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; }
.form-status.success{ background: var(--accent-teal-glow); color: #036; border: 1px solid rgba(0,168,136,0.3); }
.form-status.error{ background: rgba(226,59,59,0.08); color: #a12; border: 1px solid rgba(226,59,59,0.3); }
.website-field{ position: absolute !important; left: -9999px !important; top: -9999px !important; }
.btn.is-loading{ opacity: 0.7; pointer-events: none; }
