/* «Slik fungerer det»: the three ways in and the one way out, and the scope
   labels on the detailed steps. Only Hosait's own tokens (hosait.css), so the
   dark and the light theme both work. Colour supports the reading, it never
   carries it: every label has its name and an icon. */

/* The three ways in, the place the code is kept, and the one way out, as three
   levels joined by arrows. Only Hosait's own tokens (hosait.css), so the light
   and the dark theme both work; a name and a mark say who does what, never
   colour alone. */
.hx-flow { display: flex; flex-direction: column; align-items: stretch; }
.hx-flow__intro { margin-bottom: clamp(24px, 3vw, 40px); }
.hx-flow__intro .hx-title { max-width: 22ch; }

/* First / and then / done */
.hx-flow__mark { display: flex; align-items: center; gap: 18px; margin: 0 0 var(--hx-s4); }
.hx-flow__mark .hx-eyebrow { margin: 0; white-space: nowrap; font-size: var(--hx-fs-subtitle); line-height: 1.2; letter-spacing: -0.014em; }
.hx-flow__mark::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hx-line-strong), transparent); }
.hx-flow__mark--then { justify-content: center; margin-top: var(--hx-s5); margin-bottom: 0; }
.hx-flow__mark--then::before { content: ""; flex: 1; height: 1px; background: linear-gradient(270deg, var(--hx-line-strong), transparent); }
.hx-flow__mark--done { margin-top: clamp(28px, 3vw, 40px); }
.hx-flow__mark--done .hx-eyebrow { color: var(--hx-live); }
.hx-flow__mark--done::after { background: linear-gradient(90deg, var(--hx-live), transparent); opacity: .6; }

/* Level 1: three equal cards */
.hx-flow__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hx-s4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .hx-flow__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hx-s5); } }
.hx-flow__card { display: flex; flex-direction: column; padding: var(--hx-s5); border-radius: var(--hx-r-lg); background: var(--hx-surface-1); border: 1px solid var(--hx-line); transition: transform var(--hx-med) var(--hx-ease-out), border-color var(--hx-fast) var(--hx-ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .hx-flow__card:hover { transform: translateY(-3px); border-color: var(--hx-line-strong); } }
.hx-flow__card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--hx-s3); margin-bottom: var(--hx-s5); min-height: 44px; }
.hx-flow__ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--hx-accent); background: var(--hx-accent-soft); }
.hx-flow__ico .material-symbols-outlined { font-size: 24px; }
.hx-flow__soon { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--hx-text-2); background: var(--hx-surface-3); border-radius: 8px; padding: 5px 10px; }
.hx-flow__card h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -0.016em; font-weight: 600; color: var(--hx-text); text-wrap: balance; }
.hx-flow__rows { list-style: none; margin: var(--hx-s4) 0 0; padding: 0; }
.hx-flow__rows li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--hx-line); font-size: 15px; line-height: 1.5; color: var(--hx-text-2); }
@media (max-width: 480px) { .hx-flow__rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Who does it: a name and a different mark each (dot, glowing dot, ring). */
.hx-role { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding-top: 3px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--hx-text-3); }
.hx-role i { width: 7px; height: 7px; border-radius: 50%; background: var(--hx-text-3); flex: none; }
.hx-role--hosa { color: var(--hx-accent); }
.hx-role--hosa i { background: var(--hx-accent); box-shadow: 0 0 8px var(--hx-accent); }
.hx-role--claude { color: var(--hx-text); }
.hx-role--claude i { width: 8px; height: 8px; box-sizing: border-box; background: none; border: 1.5px solid var(--hx-text); }

/* Arrows between the levels */
.hx-flow__link { display: flex; flex-direction: column; align-items: center; margin: var(--hx-s3) 0; }
.hx-flow__line { width: 1px; height: 28px; background: linear-gradient(180deg, transparent, var(--hx-accent)); opacity: .7; }
.hx-flow__line:last-child { background: linear-gradient(180deg, var(--hx-accent), transparent); }
.hx-flow__arrow { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin: -2px 0; color: var(--hx-accent); background: var(--hx-accent-soft); border: 1px solid var(--hx-line-strong); }
.hx-flow__arrow .material-symbols-outlined { font-size: 18px; }

/* Level 2: where the code is kept */
.hx-flow__store { align-self: center; width: 100%; max-width: 640px; box-sizing: border-box; text-align: center; padding: var(--hx-s5); border-radius: var(--hx-r-xl); background: var(--hx-surface-1); border: 1px solid var(--hx-line); }
.hx-flow__store h3 { margin: 0 0 var(--hx-s4); font-size: 21px; line-height: 1.25; letter-spacing: -0.016em; font-weight: 600; color: var(--hx-text); }
.hx-flow__provs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hx-flow__prov { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--hx-surface-3); color: var(--hx-text); font-size: 15px; font-weight: 600; }
.hx-flow__prov i { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* Level 3: the one way out */
.hx-flow__path { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hx-s3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .hx-flow__path { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hx-s4); } }
.hx-flow__step { padding: var(--hx-s4); border-radius: var(--hx-r-lg); background: var(--hx-surface-1); border: 1px solid var(--hx-line); }
.hx-flow__dot { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--hx-s4); font-size: 15px; font-weight: 600; color: var(--hx-accent); background: var(--hx-accent-soft); }
.hx-flow__dot .material-symbols-outlined { font-size: 20px; font-weight: 600; }
.hx-flow__step--live { border-color: var(--hx-live); }
.hx-flow__step--live .hx-flow__dot { color: var(--hx-on-accent); background: var(--hx-live); }
.hx-flow__step h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.012em; color: var(--hx-text); }
.hx-flow__step p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--hx-text-2); }

.hx-flow__foot { display: flex; flex-direction: column; gap: var(--hx-s4); margin-top: var(--hx-s4); }
.hx-flow__info { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: var(--hx-r-md); background: var(--hx-accent-soft); font-size: 15px; line-height: 1.5; color: var(--hx-text); max-width: 60ch; }
.hx-flow__info .material-symbols-outlined { font-size: 20px; color: var(--hx-accent); flex: none; margin-top: 1px; }
.hx-flow__key { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--hx-text-2); }
.hx-flow__key li { display: inline-flex; align-items: center; gap: 8px; }
.hx-flow__key .hx-role { padding-top: 0; }

/* The detailed steps are an example (publish existing code), not all three ways. */
.hx-example { margin: var(--hx-s5) 0 var(--hx-s8); max-width: 62ch; }
.hx-example .hx-body { margin: var(--hx-s3) 0 0; color: var(--hx-text-2); }
.hx-scope { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--hx-text); background: var(--hx-surface-3); border: 1px solid var(--hx-line-strong); }
.hx-scope .material-symbols-outlined { font-size: 18px; }
.hx-video-scope { margin: var(--hx-s3) 0 0; font-size: var(--hx-fs-small); color: var(--hx-text-2); }
