/* ══════════════════════════════════════════════════════════════
   how_it_works.css — page-specific styles for /how-it-works
   Requires disa.css + marketing.css loaded first
   ══════════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────── */
.hiw-hero {
  position: relative; overflow: hidden;
  background: var(--color-navy);
  padding: 80px 24px 88px;
}
.hiw-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(41, 184, 176, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 184, 176, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hiw-hero-bloom { position: absolute; border-radius: 50%; pointer-events: none; }
.hiw-hero-bloom-1 {
  top: 5%; right: 5%; width: 420px; height: 420px;
  background: rgba(41, 184, 176, 0.10); filter: blur(90px);
}
.hiw-hero-bloom-2 {
  bottom: 0; left: 8%; width: 300px; height: 300px;
  background: rgba(232, 168, 32, 0.05); filter: blur(80px);
}
.hiw-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.hiw-hero .mkt-section-title { color: var(--color-white); }
.hiw-hero .mkt-section-sub   { color: rgba(255, 255, 255, 0.62); }
.hiw-hero-actions { margin-top: 32px; margin-bottom: 12px; }
.hiw-hero-note { font-size: 12px; color: rgba(255, 255, 255, 0.35); margin: 0; }

/* ── HERO VIZ ─────────────────────────────────────────────── */
.hiw-viz {
  position: relative;
  width: 100%; max-width: 440px; height: 390px;
  margin: 0 auto;
}

.hiw-viz-svg {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; overflow: visible; pointer-events: none;
}
.hiw-viz-svg line {
  stroke: rgba(41, 184, 176, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  animation: hiw-dash-flow 2.5s linear infinite;
}
@keyframes hiw-dash-flow { to { stroke-dashoffset: -27; } }

/* Cards */
.hiw-viz-card {
  position: absolute; z-index: 2;
  width: 170px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px; padding: 14px 16px;
  backdrop-filter: blur(10px);
}
.hiw-viz-team {
  top: 0; left: 50%; transform: translateX(-50%);
  animation: hiw-float-team 4s ease-in-out infinite;
}
.hiw-viz-clients {
  bottom: 0; left: 0;
  animation: hiw-float-card 4s ease-in-out infinite 1.4s;
}
.hiw-viz-tasks {
  bottom: 0; right: 0;
  animation: hiw-float-card 4s ease-in-out infinite 2.8s;
}
@keyframes hiw-float-team {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-7px); }
}
@keyframes hiw-float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

.hiw-viz-card-hdr {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.hiw-viz-ico {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: rgba(41, 184, 176, 0.15); border: 1px solid rgba(41, 184, 176, 0.28);
  display: flex; align-items: center; justify-content: center;
}
.hiw-viz-ico i { font-size: 14px; color: var(--color-primary); }
.hiw-viz-card-title { font-size: 12px; font-weight: 700; color: var(--color-white); }
.hiw-viz-card-sub { font-size: 10px; color: rgba(255, 255, 255, 0.42); margin-top: 7px; }

/* Team card */
.hiw-viz-avatars { display: flex; align-items: center; gap: 3px; }
.hiw-viz-av {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--color-white);
}
.hiw-viz-av-a { background: var(--color-primary); }
.hiw-viz-av-b { background: var(--color-slate); }
.hiw-viz-av-c { background: rgba(255, 255, 255, 0.2); }
.hiw-viz-av-more { font-size: 9px; font-weight: 600; color: rgba(255, 255, 255, 0.45); margin-left: 3px; }


/* Clients card */
.hiw-viz-client-row {
  font-size: 10px; color: rgba(255, 255, 255, 0.60);
  padding: 4px 0; border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
}
.hiw-viz-client-more { font-size: 10px; font-weight: 600; color: var(--color-primary); margin-top: 5px; }

/* Tasks card */
.hiw-viz-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.hiw-viz-tags span {
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  background: rgba(41, 184, 176, 0.13); color: var(--color-primary);
  border: 0.5px solid rgba(41, 184, 176, 0.28);
}

/* Center DISA badge */
.hiw-viz-badge {
  position: absolute; z-index: 3;
  top: 165px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 14px;
  background: var(--color-navy);
  border: 1.5px solid rgba(41, 184, 176, 0.35);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 0 10px rgba(41, 184, 176, 0.10),
    0 0 0 20px rgba(41, 184, 176, 0.05),
    0 8px 28px rgba(41, 184, 176, 0.30);
  animation: hiw-badge-pulse 3s ease-in-out infinite;
}
.hiw-viz-badge-img { width: 42px; height: 42px; }
@keyframes hiw-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(41,184,176,0.10), 0 0 0 20px rgba(41,184,176,0.05), 0 8px 28px rgba(41,184,176,0.30); }
  50%       { box-shadow: 0 0 0 14px rgba(41,184,176,0.14), 0 0 0 28px rgba(41,184,176,0.06), 0 8px 36px rgba(41,184,176,0.40); }
}

/* Mobile three-pillar chips */
.hiw-hero-chips { display: none; }

/* ── STEP SECTIONS ────────────────────────────────────────── */
.hiw-step-section { padding: 88px 24px; background: var(--color-white); }
.hiw-step-section-alt { background: var(--color-surface); }

.hiw-step-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.hiw-step-row-rev .hiw-step-text { order: 2; }
.hiw-step-row-rev .hiw-step-mock { order: 1; }

.hiw-step-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-slate); margin-bottom: 16px;
}
.hiw-step-num-badge {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--color-primary); color: var(--color-white);
  font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hiw-step-title {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 800;
  color: var(--color-navy); letter-spacing: -0.6px;
  line-height: 1.2; margin-bottom: 28px;
}
.hiw-step-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.hiw-step-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--color-slate); line-height: 1.55;
}
.hiw-step-bullets li i {
  font-size: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 5px;
}

/* ── MOCK PANEL (shared wrapper) ──────────────────────────── */
.hiw-step-mock { display: flex; align-items: center; justify-content: center; }
.hiw-mock-panel {
  width: 100%; max-width: 420px;
  background: var(--color-white); border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 40px var(--color-shadow); overflow: hidden;
}

/* ── MOCK 01: Team ────────────────────────────────────────── */
.hiw-m1-hdr {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--color-border);
}
.hiw-m1-firm-ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--color-primary); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}
.hiw-m1-firm-name { font-size: 13px; font-weight: 700; color: var(--color-navy); }
.hiw-m1-firm-ok {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; color: var(--color-success); margin-top: 2px;
}
.hiw-m1-firm-ok i { font-size: 11px; }
.hiw-m1-lbl {
  padding: 10px 20px 6px;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-slate);
}
.hiw-m1-member {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-top: 0.5px solid var(--color-border);
}
.hiw-m1-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--color-white);
}
.hiw-av-a { background: var(--color-primary); }
.hiw-av-b { background: var(--color-slate); }
.hiw-av-c { background: var(--color-navy); }
.hiw-m1-info { flex: 1; min-width: 0; }
.hiw-m1-name {
  font-size: 11px; font-weight: 600; color: var(--color-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hiw-m1-email { font-size: 9px; color: var(--color-slate); }
.hiw-m1-badge {
  font-size: 9px; font-weight: 700; padding: 3px 8px;
  border-radius: 5px; white-space: nowrap; flex-shrink: 0;
}
.hiw-badge-admin   { background: rgba(41, 184, 176, 0.10); color: var(--color-primary); }
.hiw-badge-manager { background: rgba(232, 168, 32, 0.12); color: var(--color-warning); }
.hiw-badge-standard{ background: rgba(41, 184, 176, 0.10); color: var(--color-primary); }
.hiw-badge-limited { background: var(--color-surface); color: var(--color-slate); border: 0.5px solid var(--color-border); }
.hiw-av-d { background: #8FA3B5; }
.hiw-m1-invite {
  display: flex; align-items: center; gap: 7px;
  margin: 10px 20px 16px; padding: 9px 14px; border-radius: 8px;
  border: 1.5px dashed var(--color-border);
  font-size: 11px; font-weight: 600; color: var(--color-primary); cursor: default;
}
.hiw-m1-invite i { font-size: 13px; }

/* ── MOCK 02: Import ──────────────────────────────────────── */
.hiw-m2-hdr {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 20px; border-bottom: 1px solid var(--color-border);
  font-size: 12px; font-weight: 700; color: var(--color-navy);
}
.hiw-m2-hdr i { font-size: 16px; color: var(--color-primary); }
.hiw-m2-upload {
  margin: 16px 20px; padding: 20px;
  border: 1.5px dashed var(--color-primary); border-radius: 10px;
  background: rgba(41, 184, 176, 0.04); text-align: center;
}
.hiw-m2-upload > i { font-size: 28px; color: var(--color-primary); display: block; margin-bottom: 7px; }
.hiw-m2-fname { font-size: 11px; font-weight: 700; color: var(--color-navy); margin-bottom: 4px; }
.hiw-m2-ok {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; color: var(--color-success);
}
.hiw-m2-ok i { font-size: 11px; }
.hiw-m2-result { padding: 0 20px; }
.hiw-m2-found {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--color-success);
  padding: 8px 12px; background: rgba(76, 175, 122, 0.08);
  border-radius: 8px; margin-bottom: 10px;
}
.hiw-m2-found i { font-size: 13px; }
.hiw-m2-client {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; color: var(--color-navy);
  padding: 7px 0; border-bottom: 0.5px solid var(--color-border);
}
.hiw-m2-client i { font-size: 13px; color: var(--color-slate); }
.hiw-m2-more { font-size: 10px; color: var(--color-slate); padding: 7px 0; text-align: right; }
.hiw-m2-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 12px 20px 16px; padding: 9px 14px; border-radius: 8px;
  background: var(--color-primary); color: var(--color-white);
  font-size: 11px; font-weight: 700; cursor: default;
}
.hiw-m2-btn i { font-size: 13px; }

/* ── MOCK 03: Single client config ────────────────────────── */
.hiw-m3-hdr {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-bottom: 1px solid var(--color-border);
  font-size: 12px; font-weight: 700; color: var(--color-navy);
}
.hiw-m3-hdr i { font-size: 15px; color: var(--color-primary); flex-shrink: 0; }
.hiw-m3-field {
  padding: 12px 20px; border-bottom: 0.5px solid var(--color-border);
}
.hiw-m3-field-last { border-bottom: none; }
.hiw-m3-field-lbl {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--color-slate); margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.hiw-m3-optional {
  font-size: 9px; font-weight: 500; text-transform: none; letter-spacing: 0;
  color: var(--color-slate); opacity: 0.6;
}
.hiw-m3-select {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; color: var(--color-navy);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 7px; padding: 7px 10px;
}
.hiw-m3-select i { font-size: 13px; color: var(--color-slate); }
.hiw-m3-select i.ti-chevron-down { margin-left: auto; font-size: 11px; }
.hiw-m3-av {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; line-height: 1; color: var(--color-white);
  background: var(--color-slate);
}
.hiw-m3-note-val {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--color-warning);
  background: rgba(232, 168, 32, 0.08); border: 0.5px solid rgba(232, 168, 32, 0.22);
  border-radius: 6px; padding: 6px 10px;
}
.hiw-m3-note-val i { font-size: 13px; }
.hiw-m3-footer {
  display: flex; justify-content: flex-end;
  padding: 12px 20px; border-top: 1px solid var(--color-border);
}
.hiw-m3-save {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 7px 16px; border-radius: 7px;
  background: var(--color-primary); color: var(--color-white); border: none; cursor: default;
}
.hiw-m3-save i { font-size: 13px; }

/* ── MOCK 04: Task cards ──────────────────────────────────── */
.hiw-m4-cards { padding: 14px 16px 16px; }

/* ── RHYTHM SECTION (navy dark) ───────────────────────────── */
.hiw-rhythm {
  position: relative; overflow: hidden;
  background: var(--color-navy); padding: 88px 24px;
}
.hiw-rhythm-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(41, 184, 176, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hiw-rhythm-inner { position: relative; z-index: 1; }
.hiw-rhythm-h { margin-bottom: 56px; }
.hiw-rhythm-h2 {
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 800;
  color: var(--color-white); letter-spacing: -0.8px;
  line-height: 1.15; margin-bottom: 0;
}
.hiw-rhythm-grid {
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: 64px;
}
.hiw-rhythm-div { background: rgba(255, 255, 255, 0.08); }
.hiw-rhythm-col-hdr {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.hiw-rhythm-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(41, 184, 176, 0.12); border: 1px solid rgba(41, 184, 176, 0.2);
  display: flex; align-items: center; justify-content: center;
}
.hiw-rhythm-ico i { font-size: 22px; color: var(--color-primary); }
.hiw-rhythm-role { font-size: 17px; font-weight: 700; color: var(--color-white); }
.hiw-rhythm-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.hiw-rhythm-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: rgba(255, 255, 255, 0.62); line-height: 1.5;
}
.hiw-rhythm-list li i {
  font-size: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px;
}

/* ── FEATURE CALLOUTS ─────────────────────────────────────── */
.hiw-features { background: var(--color-white); padding: 88px 24px; }
.hiw-features-hdr { margin-bottom: 48px; }
.hiw-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.hiw-feature-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 32px 28px; border-radius: 16px;
  border: 1px solid var(--color-border); background: var(--color-white);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.hiw-feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 40px var(--color-shadow);
  transform: translateY(-4px);
}
.hiw-feature-ico {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(41, 184, 176, 0.08); border: 1px solid rgba(41, 184, 176, 0.15);
  display: flex; align-items: center; justify-content: center;
}
.hiw-feature-ico i { font-size: 24px; color: var(--color-primary); }
.hiw-feature-ttl { font-size: 17px; font-weight: 700; color: var(--color-navy); margin: 0; }
.hiw-feature-desc { font-size: 14px; color: var(--color-slate); line-height: 1.6; flex: 1; margin: 0; }
.hiw-feature-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--color-primary); margin-top: 4px;
}
.hiw-feature-link i { font-size: 14px; transition: transform 0.2s; }
.hiw-feature-card:hover .hiw-feature-link i { transform: translateX(3px); }

/* ── CTA ──────────────────────────────────────────────────── */
.hiw-cta { background: var(--color-surface); padding: 96px 24px; }
.hiw-cta-inner { text-align: center; max-width: 580px; margin: 0 auto; }
.hiw-cta-title {
  font-size: clamp(24px, 3vw, 38px); font-weight: 800;
  color: var(--color-navy); letter-spacing: -0.5px; margin-bottom: 14px;
}
.hiw-cta-sub { font-size: 17px; color: var(--color-slate); line-height: 1.65; margin-bottom: 36px; }
.hiw-cta-actions {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hiw-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hiw-viz { max-width: 360px; height: 320px; }
  .hiw-viz-badge { top: 132px; }
  .hiw-viz-svg { display: none; }
  .hiw-step-section { padding: 60px 16px; }
  .hiw-step-row { grid-template-columns: 1fr; gap: 40px; }
  .hiw-step-row-rev .hiw-step-text { order: 0; }
  .hiw-step-row-rev .hiw-step-mock { order: 0; }
  .hiw-rhythm { padding: 60px 16px; }
  .hiw-rhythm-grid { grid-template-columns: 1fr; gap: 40px; }
  .hiw-rhythm-div { display: none; }
  .hiw-features { padding: 60px 16px; }
  .hiw-features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .hiw-viz { display: none; }
  .hiw-hero-chips {
    display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap;
  }
  .hiw-hero-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.82);
  }
  .hiw-hero-chip i { font-size: 15px; color: var(--color-primary); }
  .hiw-features-grid { grid-template-columns: 1fr; }
  .hiw-cta-actions { flex-direction: column; }
  .hiw-m4-name { flex: 0 0 100px; }
}
