/* ==========================================================================
   Careers · 3 — How we work · a loop around the customer
                 ● Alongside our partners
               ╱                ╲         ┌ 01 / 03 ───────────────────┐
              │    ╭──────────╮   │        │ Alongside our partners     │
              │    │Customers │   │        │ We design Finflow with …   │
              │    ╰──────────╯   │        │ ♡ FOR OUR CUSTOMERS        │
               ╲                ╱          │ What they get works …      │
     ● Lean and quick ───── ● Built for real users └────────────────────┘
   The three practices sit on a ring around the customer. The selected one
   is filled in accent and a highlighted arc rests on it; the arc turns
   forward round the ring as the selection moves (--lp-rot, set by
   js/careers/loop.js). The panel beside the ring shows the practice and
   what it means for customers. Prefixed .lp- and scoped to .lp.
   (Earlier rows + panels version: backups/careers-how.v1-rows.css)
   ========================================================================== */

.lp {
  padding: clamp(72px, 9vw, 120px) var(--page-px);
  background: var(--surface-raised);
  border-top: 1px solid var(--border);
}
.lp-inner { max-width: var(--container); margin: 0 auto; }
.lp-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.lp-title { font-size: var(--fs-section-title); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
.lp-title em { font-style: normal; color: var(--accent); }
.lp-sub { margin-top: 14px; font-size: var(--fs-section-sub); line-height: 1.6; color: var(--text-secondary); text-wrap: balance; }

.lp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

/* ─── The ring ────────────────────────────────────────────────────────── */
.lp-ring {
  --lp-rot: -140deg;
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
  justify-self: center;
}
.lp-track { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lp-track circle { fill: none; }
.lp-track-base { stroke: var(--border-strong); stroke-width: 0.5; stroke-dasharray: 1.2 2.2; }
.lp-track-arc {
  stroke: var(--accent);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 100 260;
  transform-box: view-box;
  transform-origin: 50px 50px;
  transform: rotate(var(--lp-rot));
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

/* the customer at the centre */
.lp-core {
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  width: 36%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 0 10px var(--accent-soft), 0 24px 48px -30px rgba(10,47,107,0.45);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--accent-text);
}
.lp-core .ti { font-size: clamp(26px, 2.6vw, 32px); color: var(--accent); }

/* the practices */
.lp-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  transform: translate(-50%, -27px);   /* centre the dot on the ring */
}
.lp-node-dot {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--accent);
  font-size: 22px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.25s var(--ease-out);
}
.lp-node-label {
  padding: 3px 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
  background: var(--surface-raised);
  border-radius: 99px;
  transition: color 0.3s ease;
}
.lp-node:hover .lp-node-dot { border-color: var(--accent-line); transform: scale(1.05); }
.lp-node:hover .lp-node-label { color: var(--text-primary); }
.lp-node[aria-selected="true"] .lp-node-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); }
:root[data-theme="dark"] .lp-node[aria-selected="true"] .lp-node-dot { color: #061530; }
.lp-node[aria-selected="true"] .lp-node-label { font-weight: 600; color: var(--text-primary); }
.lp-node:focus-visible { outline: none; }
.lp-node:focus-visible .lp-node-dot { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ─── The panel ───────────────────────────────────────────────────────── */
.lp-panels { display: grid; }
.lp-panel {
  grid-area: 1 / 1;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 48px -36px rgba(10,47,107,0.35);
  animation: lp-in 0.45s var(--ease-out) both;
}
.lp-panel[hidden] { display: none; }
@keyframes lp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lp-t { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.025em; color: var(--text-primary); }
.lp-p { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--text-secondary); text-wrap: pretty; }
.lp-cx {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
}
.lp-cx-label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.lp-cx-label .ti { font-size: 16px; }
.lp-cx-p { margin-top: 8px; font-size: 15.5px; font-weight: 500; line-height: 1.55; color: var(--text-primary); text-wrap: pretty; }

@media (max-width: 900px) {
  .lp-stage { grid-template-columns: minmax(0, 1fr); }
  .lp-ring { width: min(380px, 100%); }
}
@media (max-width: 480px) {
  .lp-ring { width: calc(100% - 48px); }
  .lp-node-dot { width: 46px; height: 46px; font-size: 19px; }
  .lp-node { transform: translate(-50%, -23px); }
  .lp-node-label { font-size: 12.5px; padding: 2px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-track-arc, .lp-node-dot { transition: none; }
  .lp-panel { animation: none; }
}
