/**
 * Nitya Digital Hub — How We Work page styles
 * Reuses the existing brand tokens defined in css/style.css
 * (--navy-900, --navy-700, --navy-500, --green-600, --green-500,
 *  --white, --mist, --line, --font-display, --font-body).
 * The block below only ADDS semantic aliases on top of those —
 * it does not introduce a single new color.
 */

:root {
  --nity-primary: var(--navy-700);         /* #16324F */
  --nity-primary-dark: var(--navy-900);    /* #0F2136 */
  --nity-primary-light: var(--navy-500);   /* #2C5578 */
  --nity-accent: var(--green-600);         /* #5AA02C */
  --nity-accent-light: var(--green-500);   /* #7BC24A */
  --nity-background: var(--white);         /* #FFFFFF */
  --nity-surface: var(--mist);             /* #F3F7F3 */
  --nity-text: var(--navy-900);            /* #0F2136 */
  --nity-muted: rgba(15, 33, 54, 0.62);    /* navy-900 at reduced opacity */
  --nity-border: var(--line);              /* #E2E8E4 */
}

.hw-page { background: var(--nity-background); }

.hw-page section { padding: 6.5rem 0; }
.hw-page section + section { border-top: 1px solid var(--nity-border); }

.hw-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hw-container--narrow { max-width: 760px; }

.hw-kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--nity-accent);
  margin-bottom: 1.1rem;
}

.hw-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.14;
  color: var(--nity-primary-dark);
  max-width: 15ch;
  margin: 0 0 1.4rem;
}

.hw-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
  color: var(--nity-primary-dark);
  max-width: 20ch;
  margin: 0 0 1rem;
}

.hw-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--nity-primary-dark);
  margin: 0 0 0.6rem;
}

.hw-lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--nity-primary);
  max-width: 58ch;
  margin: 0 0 2rem;
}

.hw-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--nity-primary);
  max-width: 62ch;
}

.hw-muted { color: var(--nity-muted); }

.hw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* ---------- Hero ---------- */
.hw-hero { padding-top: 5rem; }
.hw-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: start;
}

.hw-process-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--nity-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--nity-surface);
}

.hw-process-diagram__step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.4rem;
  position: relative;
  background: var(--nity-background);
  transition: background 0.2s ease;
}

.hw-process-diagram__step + .hw-process-diagram__step { border-top: 1px solid var(--nity-border); }

.hw-process-diagram__step:hover,
.hw-process-diagram__step.is-active {
  background: var(--nity-surface);
}

.hw-process-diagram__step:hover .hw-process-diagram__num,
.hw-process-diagram__step.is-active .hw-process-diagram__num {
  color: var(--nity-accent);
  border-color: var(--nity-accent);
}

.hw-process-diagram__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--nity-primary-light);
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border: 1px solid var(--nity-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hw-process-diagram__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--nity-primary-dark);
}

.hw-process-diagram__loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.85rem;
  color: var(--nity-muted);
  border-top: 1px dashed var(--nity-border);
  background: var(--nity-surface);
}

/* ---------- Overview timeline ---------- */
.hw-timeline {
  display: flex;
  flex-direction: column;
}

.hw-timeline__row {
  display: grid;
  grid-template-columns: 5rem 1fr 1fr;
  gap: 2.25rem;
  padding: 2.25rem 0;
  position: relative;
}

.hw-timeline__row + .hw-timeline__row { border-top: 1px solid var(--nity-border); }

.hw-timeline__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--nity-accent);
  line-height: 1;
}

.hw-timeline__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--nity-primary-dark);
  margin: 0 0 0.5rem;
}

.hw-timeline__desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--nity-primary);
}

.hw-timeline__meta {
  display: grid;
  gap: 0.9rem;
}

.hw-timeline__meta-item h5 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--nity-muted);
  margin: 0 0 0.3rem;
}

.hw-timeline__meta-item p {
  font-size: 0.94rem;
  color: var(--nity-primary);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Stage sections (Discover, Research, Strategy, Build, Launch, Measure, Optimize) ---------- */
.hw-stage { background: var(--nity-background); }
.hw-stage--tint { background: var(--nity-surface); }

.hw-stage__head {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hw-stage__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--nity-accent);
}

.hw-stage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.hw-list {
  display: grid;
  gap: 0.9rem;
}

.hw-list li {
  padding: 0.8rem 0 0.8rem 1.4rem;
  border-bottom: 1px solid var(--nity-border);
  position: relative;
  font-size: 0.98rem;
  color: var(--nity-primary);
}

.hw-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nity-accent);
}

.hw-panel {
  border: 1px solid var(--nity-border);
  border-radius: 6px;
  padding: 1.75rem;
  background: var(--nity-surface);
}

.hw-panel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: var(--nity-primary-dark);
  margin: 0 0 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--nity-border);
}

/* Vertical flow visual: RESEARCH -> PATTERNS -> INSIGHTS, Business Goal -> ... etc */
.hw-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hw-flow__node {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--nity-primary-dark);
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--nity-border);
  border-radius: 6px;
  background: var(--nity-background);
  min-width: 220px;
}

.hw-flow__node--accent {
  border-color: var(--nity-accent);
  color: var(--nity-accent);
}

.hw-flow__connector {
  width: 1px;
  height: 1.75rem;
  background: var(--nity-border);
  margin-left: 1.5rem;
  position: relative;
}

.hw-flow__connector::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--nity-primary-light);
  border-bottom: 1px solid var(--nity-primary-light);
  transform: rotate(45deg);
}

/* Workflow row: PLAN -> CREATE -> REVIEW -> APPROVE -> EXECUTE */
.hw-workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--nity-border);
  border-radius: 6px;
  overflow: hidden;
}

.hw-workflow__step {
  flex: 1 1 140px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  background: var(--nity-background);
  position: relative;
}

.hw-workflow__step + .hw-workflow__step { border-left: 1px solid var(--nity-border); }

.hw-workflow__step--approve {
  background: var(--nity-surface);
}

.hw-workflow__step--approve .hw-workflow__label { color: var(--nity-accent); }

.hw-workflow__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--nity-primary-dark);
}

/* Checklist for Launch */
.hw-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2.5rem;
}

.hw-checklist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.98rem;
  color: var(--nity-primary);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--nity-border);
}

.hw-checklist__mark {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--nity-accent);
  color: var(--white);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Illustrative dashboard */
.hw-dashboard {
  border: 1px solid var(--nity-border);
  border-radius: 6px;
  background: var(--nity-background);
  padding: 1.75rem;
}

.hw-dashboard__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--nity-muted);
  border: 1px solid var(--nity-border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.4rem;
}

.hw-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.hw-dashboard__metric {
  border: 1px solid var(--nity-border);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
}

.hw-dashboard__metric h5 {
  font-size: 0.82rem;
  color: var(--nity-muted);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.hw-dashboard__metric .hw-dashboard__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--nity-primary-dark);
}

.hw-dashboard__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 46px;
  margin-top: 0.7rem;
}

.hw-dashboard__bars span {
  flex: 1;
  background: var(--nity-accent-light);
  border-radius: 2px 2px 0 0;
}

.hw-dashboard__foot {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--nity-muted);
}

/* Optimize loop */
.hw-loop-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hw-loop-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--nity-border);
}

.hw-loop-list__item:last-child {
  border-bottom: none;
  color: var(--nity-accent);
  font-weight: 600;
}

.hw-loop-list__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nity-primary-light);
  flex-shrink: 0;
}

.hw-loop-list__item:last-child .hw-loop-list__dot { background: var(--nity-accent); }

/* ---------- Client experience status flow ---------- */
.hw-status-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0;
}

.hw-status-flow__pill {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--nity-border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--nity-primary);
  background: var(--nity-surface);
}

.hw-status-flow__pill--done {
  border-color: var(--nity-accent);
  color: var(--nity-accent);
  background: var(--nity-background);
}

.hw-status-flow__arrow {
  align-self: center;
  color: var(--nity-border);
  font-size: 1.1rem;
}

.hw-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.5rem;
}

.hw-examples span {
  font-size: 0.92rem;
  color: var(--nity-muted);
  position: relative;
  padding-left: 1rem;
}

.hw-examples span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nity-primary-light);
}

/* ---------- Transparency comparison ---------- */
.hw-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.hw-compare__col {
  border: 1px solid var(--nity-border);
  border-radius: 6px;
  padding: 1.75rem;
}

.hw-compare__col--nitya {
  border-color: var(--nity-accent);
  background: var(--nity-surface);
}

.hw-compare__head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--nity-muted);
  margin: 0 0 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--nity-border);
}

.hw-compare__col--nitya .hw-compare__head { color: var(--nity-accent); }

.hw-compare__steps { display: flex; flex-direction: column; gap: 0; }

.hw-compare__step {
  padding: 0.65rem 0;
  font-size: 0.96rem;
  color: var(--nity-primary);
  border-bottom: 1px dashed var(--nity-border);
}

.hw-compare__step:last-child { border-bottom: none; }

/* ---------- AI + Human ---------- */
.hw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.hw-split__col {
  border: 1px solid var(--nity-border);
  border-radius: 6px;
  padding: 1.9rem;
}

.hw-split__col--human {
  border-color: var(--nity-primary);
}

.hw-split__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--nity-muted);
  margin: 0 0 1.2rem;
}

.hw-split__col--human .hw-split__eyebrow { color: var(--nity-primary); }
.hw-split__col--ai .hw-split__eyebrow { color: var(--nity-accent); }

.hw-split ul li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--nity-border);
  font-size: 0.98rem;
  color: var(--nity-primary);
}

.hw-split ul li:last-child { border-bottom: none; }

.hw-split__message {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--nity-primary-dark);
  margin: 3rem auto 0;
  max-width: 34ch;
  line-height: 1.5;
}

/* ---------- Continuous growth loop (strongest visual section) ---------- */
.hw-loop-section {
  background: var(--nity-primary-dark);
  color: var(--white);
}

.hw-loop-section .hw-h2,
.hw-loop-section .hw-h3 { color: var(--white); }

.hw-loop-section .hw-lede { color: rgba(255,255,255,0.78); }

.hw-loop-ring {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.hw-loop-ring__cell {
  background: var(--nity-primary-dark);
  padding: 1.9rem 1.6rem;
  transition: background 0.25s ease;
}

.hw-loop-ring__cell:hover,
.hw-loop-ring__cell.is-active {
  background: rgba(122, 194, 74, 0.14);
}

.hw-loop-ring__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--nity-accent-light);
  margin-bottom: 0.6rem;
}

.hw-loop-ring__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
}

.hw-loop-ring__final {
  grid-column: 1 / -1;
  text-align: center;
  background: rgba(122, 194, 74, 0.12);
  color: var(--nity-accent-light);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 1.1rem;
}

/* ---------- Buttons (match existing btn system) ---------- */
.hw-page .btn-primary { background: var(--nity-accent); color: var(--white); }
.hw-page .btn-primary:hover { background: #4C8A24; }
.hw-page .btn-ghost { border-color: var(--nity-primary); color: var(--nity-primary); }
.hw-page .btn-ghost:hover { background: var(--nity-primary); color: var(--white); }
.hw-loop-section .btn-ghost { border-color: var(--white); color: var(--white); }
.hw-loop-section .btn-ghost:hover { background: var(--white); color: var(--nity-primary-dark); }

/* ---------- Final CTA ---------- */
.hw-final-cta { text-align: left; }
.hw-final-cta .hw-container { text-align: left; max-width: 760px; }

/* ---------- Reveal-on-scroll (subtle, respects reduced motion) ---------- */
.hw-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hw-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hw-reveal { opacity: 1; transform: none; transition: none; }
  .hw-process-diagram__step,
  .hw-loop-ring__cell,
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hw-hero__grid,
  .hw-stage__grid,
  .hw-split,
  .hw-compare { grid-template-columns: 1fr; gap: 2.5rem; }

  .hw-timeline__row { grid-template-columns: 1fr; gap: 0.75rem; }
  .hw-timeline__num { font-size: 1.4rem; }

  .hw-dashboard__grid { grid-template-columns: 1fr 1fr; }
  .hw-loop-ring { grid-template-columns: 1fr; }
  .hw-checklist { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hw-page section { padding: 4rem 0; }
  .hw-stage__head { grid-template-columns: 1fr; gap: 0.5rem; }
  .hw-workflow { flex-direction: column; }
  .hw-workflow__step + .hw-workflow__step { border-left: none; border-top: 1px solid var(--nity-border); }
  .hw-dashboard__grid { grid-template-columns: 1fr; }
  .hw-status-flow { flex-direction: column; align-items: flex-start; }
  .hw-status-flow__arrow { display: none; }
}