/* stefanpressconsulting.com - runs.php's infographic (owner 2026-10-28: "make a how it works/runs/executes/operates
   infographic similar to the others"). The sibling of assets/crew.css and assets/ats.css: the same glass, type and
   motion, markup + this file only (no script, nothing inline - strict CSP). Left to right: the apps, the myLanai hub,
   KapuLanai, the outside providers; packets run along the links. Planned parts are dashed and badged "Coming". Every
   animation stops for prefers-reduced-motion, showing its end state. The status lamps are demos.css's. */

  .runs { --ok: #5dffb0; --soon: #ffc857; }   /* the badges are used in the figure AND in the lists under it */
  .rn {
    --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015));
    --glass-line: rgba(255, 255, 255, 0.09);
    position: relative;
    margin: 18px 0 30px;
    padding: 34px 30px 30px;
    border-radius: 28px;
    border: 1px solid var(--glass-line);
    background:
      radial-gradient(90% 70% at 40% 30%, rgba(74, 240, 255, 0.10), transparent 60%),
      radial-gradient(80% 80% at 100% 100%, rgba(160, 107, 255, 0.14), transparent 60%),
      rgba(8, 11, 22, 0.78);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
  }

  /* ---- the headline ---------------------------------------------------------------------------------------------- */
  .rn-head { text-align: center; margin: 0 auto 26px; max-width: 56ch; }
  .how .rn-kicker {
    margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--cyan);
  }
  .rn-kicker .lanai-mark { letter-spacing: 0.02em; text-transform: none; font-size: 15px; color: #fff; }
  .page .how .rn-title {
    margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
    background: linear-gradient(92deg, #ffffff 0%, #cfe9ff 40%, var(--cyan) 72%, var(--violet) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  /* ---- badges ---------------------------------------------------------------------------------------------------- */
  .b-live, .b-soon {
    display: inline-block; padding: 1px 7px; border-radius: 999px; font: 700 10px/1.6 ui-monospace, Menlo, monospace;
    font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle;
  }
  .b-live { color: #052014; background: var(--ok); }
  .b-soon { color: var(--soon); border: 1px dashed rgba(255, 200, 87, 0.6); }

  /* ---- the map: apps -> hub -> back end -> providers ---------------------------------------------------------------- */
  .rn-map {
    display: grid; align-items: center; gap: 0;
    grid-template-columns: minmax(0, 1.2fr) 58px minmax(0, 1.25fr) 58px minmax(0, 1.15fr) 58px minmax(0, 0.95fr);
  }
  .rn-col {
    position: relative; min-width: 0; padding: 16px 16px; border-radius: 20px;
    background: var(--glass), rgba(8, 11, 22, 0.7); border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .how .rn-label {
    margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted);
  }
  .rn-label .lanai-mark { letter-spacing: 0.02em; text-transform: none; color: var(--text); }
  .rn-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .rn-apps li, .rn-out li {
    display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px;
    font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06); overflow-wrap: normal; word-break: keep-all;
  }
  .rn-out { border-style: dashed; border-color: rgba(255, 200, 87, 0.35); }
  .rn-out li { color: var(--text); font-weight: 500; border-style: dashed; }

  .rn-hub, .rn-back { text-align: center; padding: 22px 18px 18px; }
  .rn-hub {
    background: linear-gradient(160deg, rgba(74, 240, 255, 0.18), rgba(160, 107, 255, 0.18)), rgba(10, 14, 28, 0.9);
    border-color: rgba(74, 240, 255, 0.35);
    box-shadow: 0 0 60px -10px rgba(74, 240, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  .rn-back {
    background: linear-gradient(160deg, rgba(160, 107, 255, 0.20), rgba(20, 24, 44, 0.6)), rgba(10, 12, 24, 0.92);
    border-color: rgba(160, 107, 255, 0.4);
    box-shadow: 0 0 50px -14px rgba(160, 107, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .how .rn-name { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
  .how .rn-role { margin: 0 0 14px; font-size: 12.5px; line-height: 1.45; color: var(--text); }
  .rn-chips { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px !important; }
  .rn-chips li {
    padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #fff;
    background: rgba(74, 240, 255, 0.10); border: 1px solid rgba(74, 240, 255, 0.28);
  }
  .rn-back .rn-chips li { background: rgba(160, 107, 255, 0.12); border-color: rgba(160, 107, 255, 0.35); }
  .rn-chips li.soon { color: var(--soon); background: none; border: 1px dashed rgba(255, 200, 87, 0.55); }

  .rn-rings { position: absolute; inset: 0; pointer-events: none; }
  .rn-rings i {                           /* the hub's signal, rippling out */
    position: absolute; inset: 0; border-radius: 20px; border: 1px solid rgba(74, 240, 255, 0.5); opacity: 0;
    animation: rn-ping 3.6s ease-out infinite;
  }
  .rn-rings i:nth-child(2) { animation-delay: 1.8s; }
  @keyframes rn-ping { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.2); } }
  .rn-lock {                              /* a small padlock over KapuLanai: the keys stay in here */
    position: absolute; top: 12px; right: 14px; width: 14px; height: 10px; border-radius: 3px;
    background: rgba(160, 107, 255, 0.8);
  }
  .rn-lock::before {
    content: ""; position: absolute; left: 3px; top: -7px; width: 8px; height: 8px; border-radius: 5px 5px 0 0;
    border: 2px solid rgba(160, 107, 255, 0.8); border-bottom: 0; box-sizing: border-box;
  }

  /* the links between the columns: a wire, packets on it, a label above */
  .rn-link { position: relative; height: 100%; min-height: 60px; }
  .rn-link .wire {
    position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(74, 240, 255, 0.55), rgba(160, 107, 255, 0.55));
  }
  .rn-link.soon .wire { background: none; border-top: 2px dashed rgba(255, 200, 87, 0.5); height: 0; }
  .rn-link .pkt {
    position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 12px var(--cyan);
  }
  .rn-link .pkt.a { animation: rn-ab 2.6s ease-in-out infinite; }
  .rn-link .pkt.b { animation: rn-ba 2.6s ease-in-out 1.3s infinite; box-shadow: 0 0 12px var(--violet); }
  .rn-link.l2 .pkt.a { animation-delay: .6s; box-shadow: 0 0 12px var(--violet); }
  .rn-link.soon .pkt.a { animation-delay: 1.2s; background: var(--soon); box-shadow: 0 0 10px var(--soon); }
  @keyframes rn-ab { 0% { left: 4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 4px); opacity: 0; } }
  @keyframes rn-ba { 0% { left: calc(100% - 4px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 4px; opacity: 0; } }
  .rn-link em {
    position: absolute; left: 50%; bottom: calc(50% + 8px); transform: translateX(-50%); width: 64px;
    font: 600 9.5px/1.25 ui-monospace, Menlo, monospace; font-style: normal; letter-spacing: 0.04em;
    text-align: center; color: var(--cyan);
  }
  .rn-link.soon em { color: var(--soon); }

  /* ---- apps working together + the levels ------------------------------------------------------------------------ */
  .rn-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 22px; align-items: start; }
  .rn-row > * { min-width: 0; }
  .rn-p2p, .rn-levels {
    padding: 18px 20px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .rn-p2p { border-style: dashed; border-color: rgba(255, 200, 87, 0.3); }
  .p2p { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto; align-items: center; gap: 8px; }
  .p2p-app, .p2p-hub {
    padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .p2p-hub { border-color: rgba(74, 240, 255, 0.4); background: rgba(74, 240, 255, 0.10); }
  .p2p-wire { position: relative; height: 2px; border-top: 2px dashed rgba(255, 200, 87, 0.5); }
  .p2p-wire .pkt {
    position: absolute; top: -5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
    background: var(--soon); box-shadow: 0 0 10px var(--soon);
  }
  .p2p-wire .pkt.a { animation: rn-ab 2.8s ease-in-out infinite; }
  .p2p-wire .pkt.b { animation: rn-ba 2.8s ease-in-out 1.4s infinite; }
  .how .rn-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

  .rn-levels ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .rn-levels li {
    display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 7px 10px;
    border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12.5px; line-height: 1.35; color: var(--text);
  }
  .rn-levels b {
    display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    font: 700 12px/1 ui-monospace, Menlo, monospace; color: #04131a; background: var(--cyan);
  }
  .rn-levels i { font-weight: 700; color: #fff; }
  .rn-levels .lv-on { border-color: rgba(74, 240, 255, 0.4); background: rgba(74, 240, 255, 0.08); }
  .rn-levels .lv-soon { border-style: dashed; border-color: rgba(255, 200, 87, 0.35); }
  .rn-levels .lv-soon b { color: var(--soon); background: none; border: 1px dashed var(--soon); }

  /* ---- the three lists under the figure ---------------------------------------------------------------------------- */
  .rn-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 8px; }
  .rn-lists h3 .lanai-mark { color: #fff; }
  .rn-svc { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
  .rn-svc li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
  .rn-svc b { font-size: 14px; font-weight: 700; color: #fff; }
  .rn-svc span { flex: 1 0 100%; font-size: 13px; line-height: 1.5; color: var(--muted); }

  /* ---- narrower screens: the map stands up, the links turn downward ------------------------------------------------ */
  @media (max-width: 1000px) {
    .rn-map { grid-template-columns: minmax(0, 1fr); }
    .rn-link { height: 56px; min-height: 0; }
    .rn-link .wire { left: 50%; right: auto; top: 4px; bottom: 4px; width: 2px; height: auto; margin: 0 0 0 -1px;
      background: linear-gradient(180deg, rgba(74, 240, 255, 0.55), rgba(160, 107, 255, 0.55)); }
    .rn-link.soon .wire { border-top: 0; border-left: 2px dashed rgba(255, 200, 87, 0.5); width: 0; height: auto; background: none; }
    .rn-link .pkt { left: 50%; top: 4px; margin: -4px 0 0 -4px; }
    .rn-link .pkt.a { animation-name: rn-down; }
    .rn-link .pkt.b { animation-name: rn-up; }
    @keyframes rn-down { 0% { top: 4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 4px); opacity: 0; } }
    @keyframes rn-up { 0% { top: calc(100% - 4px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 4px; opacity: 0; } }
    .rn-link em { left: calc(50% + 14px); bottom: auto; top: 50%; transform: translateY(-50%); width: auto; text-align: left; }
    .rn-apps ul, .rn-out ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rn-row { grid-template-columns: minmax(0, 1fr); }
    .rn-lists { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  }
  @media (max-width: 560px) {
    .rn { padding: 26px 14px 18px; border-radius: 22px; }
    .p2p { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .p2p-wire { width: 2px; height: 22px; border-top: 0; border-left: 2px dashed rgba(255, 200, 87, 0.5); }
    .p2p-wire .pkt { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .rn-rings i { animation: none; opacity: 0; }
    .rn-link .pkt, .p2p-wire .pkt { animation: none; opacity: 0; }
  }
