/* ============================================================
   How Axis Works — product tour page
   Loads on top of landing.css + demo-animator.css.
   Reuses da-* mockup components and lp-* / ft-* shell.
   Page-specific styles are prefixed hiw-.
   ============================================================ */

/* ── Hero ── */
.hiw-hero {
  position: relative;
  padding: 120px 0 64px;
  text-align: center;
  background: #fff;
  overflow: hidden;
}
.hiw-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(221,74,72,0.07), transparent 70%),
    radial-gradient(ellipse 44% 44% at 82% 14%, rgba(151,191,180,0.10), transparent 70%);
  pointer-events: none;
}
.hiw-hero > * { position: relative; z-index: 1; }
.hiw-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 16px;
}
.hiw-hero-h {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.07;
  margin: 0 auto 20px;
  max-width: 760px;
  color: var(--ink);
}
.hiw-hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 22px;
  line-height: 1.6;
}
.hiw-hero-note {
  font-size: 14px;
  color: var(--body);
  max-width: 520px;
  margin: 0 auto 30px;
}
.hiw-hero-note b { color: var(--ink); font-weight: 600; }
.hiw-hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Generic section scaffolding ── */
.hiw-section { padding: 96px 0; }
.hiw-section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.hiw-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.hiw-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 14px;
}
.hiw-h {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.15;
}
.hiw-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   Section 1 — The problem (before / after)
   ============================================================ */
.hiw-ba {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.hiw-ba-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
}
.hiw-ba-card.is-before { background: var(--bg-alt); }
.hiw-ba-card.is-after {
  border-color: var(--sage-dark);
  box-shadow: 0 12px 32px -14px rgba(123,168,157,0.45);
}
.hiw-ba-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.hiw-ba-card.is-before .hiw-ba-tag { background: #F0EAE0; color: var(--muted); }
.hiw-ba-card.is-after  .hiw-ba-tag { background: var(--sage-soft); color: var(--sage-dark); }
.hiw-ba-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 18px;
}
.hiw-ba-svg { width: 100%; height: auto; display: block; }
.hiw-ba-cap {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.hiw-ba-card.is-after .hiw-ba-cap { color: var(--body); }
.hiw-ba-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.hiw-ba-mid svg { width: 34px; height: 34px; }
.hiw-ba-foot {
  max-width: 720px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}
.hiw-ba-foot b { color: var(--ink); font-weight: 600; }

/* SVG node styling reused by both before/after illustrations */
.hiw-node-box { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.hiw-node-ic  { stroke: var(--muted); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hiw-node-t   { fill: var(--body); font-size: 11px; font-weight: 600; font-family: 'Inter', sans-serif; }
.hiw-link-broken { stroke: #C4B0B8; stroke-width: 1.6; stroke-dasharray: 4 5; fill: none; }
.hiw-link-solid  { stroke: var(--sage-dark); stroke-width: 2; fill: none; }
.hiw-hub { fill: var(--ink); }
.hiw-hub-t { fill: #fff; font-size: 13px; font-weight: 700; font-family: 'Inter', sans-serif; }
.hiw-after .hiw-node-box { stroke: var(--sage); }
.hiw-after .hiw-node-ic  { stroke: var(--sage-dark); }
.hiw-after .hiw-node-t   { fill: var(--ink); }

/* ============================================================
   Section 2 — Step-by-step
   ============================================================ */
.hiw-steps { display: flex; flex-direction: column; gap: 110px; }
.hiw-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 56px;
}
.hiw-step-copy { order: 1; }
.hiw-step-visual { order: 2; }
.hiw-step.flip .hiw-step-copy { order: 2; }
.hiw-step.flip .hiw-step-visual { order: 1; }

.hiw-step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.hiw-step-num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}
.hiw-step-h {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 14px;
}
.hiw-step-p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 22px;
}
.hiw-behind {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 15px 18px 16px;
}
.hiw-behind-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 7px;
}
.hiw-behind-label svg { width: 14px; height: 14px; }
.hiw-behind p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}
.hiw-behind p code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink);
}

/* Mockup window chrome shell (mirrors da-container but static) */
.hiw-mock {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 18px 44px -14px rgba(79,9,29,0.18),
    0 4px 14px -6px rgba(79,9,29,0.10),
    0 0 0 1px rgba(79,9,29,0.05);
}

/* Sheet / spreadsheet mini-mockup (Step 8) */
.hiw-ribbon {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: #FAF6ED;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.hiw-ribbon-tab {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 5px;
}
.hiw-ribbon-tab.active { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.hiw-ribbon-sep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
.hiw-ribbon-btn {
  width: 22px; height: 22px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--body);
  font-size: 11px;
  font-weight: 700;
}
.hiw-formula {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}
.hiw-formula-cell {
  font-family: ui-monospace, monospace;
  font-weight: 600;
  color: var(--muted);
  min-width: 34px;
}
.hiw-formula-fx { color: var(--muted); font-style: italic; }
.hiw-formula-input {
  font-family: ui-monospace, monospace;
  color: var(--ink);
}
.hiw-formula-input b { color: var(--accent); font-weight: 700; }
.hiw-sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.hiw-sheet th, .hiw-sheet td {
  border: 1px solid var(--line-soft);
  padding: 6px 9px;
  text-align: left;
}
.hiw-sheet thead th {
  background: #FAF6ED;
  font-weight: 600;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hiw-sheet td.num { text-align: right; font-variant-numeric: tabular-nums; }
.hiw-sheet .hiw-cell-formula { background: #FDF6F6; color: var(--accent); font-weight: 600; font-family: ui-monospace, monospace; }
.hiw-sheet tfoot td { font-weight: 700; color: var(--ink); background: #FAF6ED; }
.hiw-sheet .hiw-part { font-family: ui-monospace, monospace; font-weight: 600; color: var(--ink); }

/* Approval / notification mini elements (Step 4) */
.hiw-approve {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  margin-bottom: 10px;
}
.hiw-approve-ic {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
}
.hiw-approve-ic svg { width: 15px; height: 15px; }
.hiw-approve-body { flex: 1; min-width: 0; }
.hiw-approve-t { font-size: 12px; font-weight: 600; color: var(--ink); }
.hiw-approve-m { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ============================================================
   Section 3 — Connected workflow diagram
   ============================================================ */
.hiw-flow-track {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1040px;
  margin: 0 auto;
}
.hiw-flow-node {
  flex: 1 1 130px;
  max-width: 160px;
  min-width: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hiw-flow-node:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px -14px rgba(221,74,72,0.4);
}
.hiw-flow-ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.hiw-flow-ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hiw-flow-label { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.hiw-flow-sub { font-size: 11px; color: var(--muted); line-height: 1.35; }
.hiw-flow-arrow {
  display: flex;
  align-items: center;
  color: var(--soft);
  flex: 0 0 auto;
}
.hiw-flow-arrow svg { width: 26px; height: 18px; }
.hiw-flow-arrow .hiw-dash {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  fill: none;
  opacity: 0.65;
  stroke-dashoffset: 0;
  animation: hiw-flow-dash 1s linear infinite;
}
@keyframes hiw-flow-dash { to { stroke-dashoffset: -18; } }
.hiw-flow-foot {
  max-width: 760px;
  margin: 44px auto 0;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body);
}
.hiw-flow-foot b { color: var(--ink); font-weight: 600; }

/* ============================================================
   Section 4 — Day one capability grid
   ============================================================ */
.hiw-cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}
.hiw-cap {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 20px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hiw-cap:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px -14px rgba(79,9,29,0.2);
}
.hiw-cap-ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.hiw-cap-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hiw-cap h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}
.hiw-cap h3 .hiw-cap-arrow { color: var(--accent); opacity: 0; transform: translateX(-3px); transition: opacity .15s ease, transform .15s ease; }
.hiw-cap:hover h3 .hiw-cap-arrow { opacity: 1; transform: translateX(0); }
.hiw-cap p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ============================================================
   Section 5 — Final CTA + testimonial
   ============================================================ */
.hiw-final {
  padding: 96px 0;
  background: var(--ink);
  color: var(--bg-warm);
  text-align: center;
}
.hiw-final-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.hiw-final h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 16px;
}
.hiw-final p { font-size: 17px; line-height: 1.6; color: rgba(245,238,220,0.82); margin: 0 0 28px; }
.hiw-final-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hiw-final .lp-btn-primary { background: var(--accent); border-color: var(--accent); }
.hiw-final .lp-btn-ghost { color: var(--bg-warm); border-color: rgba(245,238,220,0.34); }
.hiw-final .lp-btn-ghost:hover { background: rgba(245,238,220,0.08); }
.hiw-final-trust {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hiw-final-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: rgba(245,238,220,0.8);
}
.hiw-final-trust svg { width: 15px; height: 15px; color: var(--sage); flex-shrink: 0; }
.hiw-quote {
  border-top: 1px solid rgba(245,238,220,0.16);
  padding-top: 40px;
  max-width: 640px;
  margin: 0 auto;
}
.hiw-quote blockquote {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hiw-quote figcaption { font-size: 13.5px; color: rgba(245,238,220,0.7); }
.hiw-quote figcaption b { display: block; color: var(--bg-warm); font-weight: 600; font-size: 14px; margin-bottom: 2px; }

/* ── Hero scroll-cue link variant on landing hero ── */
.lp-hero-howlink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.lp-hero-howlink svg { width: 14px; height: 14px; transition: transform .15s ease; }
.lp-hero-howlink:hover svg { transform: translateX(3px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hiw-section { padding: 68px 0; }
  .hiw-steps { gap: 72px; }
  .hiw-step {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* On mobile, copy always above the mockup regardless of flip */
  .hiw-step-copy, .hiw-step.flip .hiw-step-copy { order: 1; }
  .hiw-step-visual, .hiw-step.flip .hiw-step-visual { order: 2; }
  .hiw-head { margin-bottom: 40px; }
}
@media (max-width: 760px) {
  .hiw-hero { padding: 92px 0 48px; }
  .hiw-ba {
    grid-template-columns: 1fr;
  }
  .hiw-ba-mid { transform: rotate(90deg); padding: 4px 0; }
  .hiw-flow-arrow { transform: rotate(90deg); }
  .hiw-flow-node { max-width: none; width: 100%; }
  .hiw-flow-track { flex-direction: column; align-items: center; }
}
@media (max-width: 520px) {
  .hiw-cap-grid { grid-template-columns: 1fr; }
  .hiw-final { padding: 64px 0; }
  .hiw-final-trust { gap: 14px; }
}

/* ── Respect reduced-motion preferences ── */
@media (prefers-reduced-motion: reduce) {
  .hiw-flow-arrow .hiw-dash { animation: none !important; }
  .hiw-flow-node, .hiw-cap, .lp-hero-howlink svg, .hiw-cap h3 .hiw-cap-arrow { transition: none !important; }
}
