/* Blixtflow – branschnavet (svenska): hjälte med branschikoner i en bana runt Blixten, kort per bransch
   med egen accentfärg, det gemensamma för alla och "hittar du inte din bransch?". Prefix ih-. */

/* ==========================================================================
   Hjälten
   ========================================================================== */
.ih-hero { background: radial-gradient(70% 70% at 80% 20%, rgba(155, 93, 229, .35), transparent 60%), var(--natt); }
.ih-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ih-hero__bg i { position: absolute; border-radius: 50%; filter: blur(70px); }
.ih-hero__bg i:nth-child(1) { right: -10%; top: -20%; width: 44vw; height: 44vw; background: rgba(155, 93, 229, .3); }
.ih-hero__bg i:nth-child(2) { left: -10%; bottom: -40%; width: 36vw; height: 36vw; background: rgba(242, 250, 163, .07); }
.motion .ih-hero__bg i:nth-child(1) { animation: drift-a 18s ease-in-out infinite alternate; }
.ih-hero__grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 1000px) { .ih-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.ih-count { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 22px; padding: 10px 18px; border-radius: 999px; font-weight: 700; color: var(--on-dark-muted); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--on-dark-line); }
.ih-count b { font-size: 1.6rem; line-height: 1; color: var(--gnista); }
.ih-orbit { --r: min(200px, 39vw); position: relative; width: min(440px, 86vw); aspect-ratio: 1; margin-inline: auto; }
.ih-orbit::before, .ih-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.ih-orbit::before { inset: 4%; border: 2px dashed rgba(200, 168, 242, .3); }
.ih-orbit::after { inset: 26%; background: radial-gradient(circle, rgba(155, 93, 229, .35), transparent 70%); }
.ih-orbit > span { --a: calc(360deg / var(--n) * var(--i)); position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 16px; color: var(--natt); background: #fff; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7); transform: rotate(var(--a)) translate(var(--r)) rotate(calc(var(--a) * -1)); }
.ih-orbit > span:nth-child(3n + 1) { background: var(--gnista); }
.ih-orbit > span:nth-child(3n + 2) { color: #fff; background: var(--primar-ink); }
.ih-orbit .ic { width: 24px; height: 24px; }
.motion .ih-orbit > span { animation: ih-spin 60s linear infinite; }
.ih-orbit__bx { position: absolute; left: 50%; top: 50%; z-index: 1; width: 42%; transform: translate(-50%, -52%); }
@media (max-width: 599px) { .ih-orbit > span { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 12px; } .ih-orbit .ic { width: 19px; height: 19px; } }
@media (prefers-reduced-motion: reduce) { .ih-orbit > span { animation: none; } }

/* ==========================================================================
   Korten
   ========================================================================== */
.ih-list { padding-bottom: calc(clamp(76px, 10vw, 136px) + var(--sheet-r)); }
.ih-list__h { margin-bottom: 26px; text-align: center; }
.ih-cards { display: grid; gap: 16px; max-width: 1180px; margin-inline: auto; }
@media (min-width: 680px) { .ih-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .ih-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ih-card { --a: var(--primar-ink); --b: #F1E9FC; position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; height: 100%; overflow: hidden; padding: 26px; border-radius: 28px; color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); transition: transform .5s var(--spring), box-shadow .5s; }
.ih-card::before { content: ""; position: absolute; right: -70px; top: -70px; z-index: -1; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--b), transparent 70%); transition: transform .7s var(--ease-out); }
.ih-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--a), 0 30px 60px -30px rgba(44, 14, 61, .5); }
.ih-card:hover::before { transform: scale(1.6); }
.ih-card__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; color: #fff; background: linear-gradient(135deg, var(--a), var(--natt)); box-shadow: 0 14px 26px -14px var(--a); }
.ih-card__ic .ic { width: 25px; height: 25px; }
.ih-card__eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--a); }
.ih-card h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.ih-card__chips { display: grid; gap: 6px; align-content: start; }
.ih-card__chips li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.ih-card__chips .ic { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: var(--natt); background: var(--b); stroke-width: 3; }
.ih-card__go { display: inline-flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line-2); font-weight: 800; color: var(--a); }
.ih-card__go .ic { width: 16px; height: 16px; transition: transform .3s var(--spring); }
.ih-card:hover .ih-card__go .ic { transform: translateX(5px); }
/* Accent per bransch – samma stämning som branschsidan */
.ih-card--skonhetskliniker { --a: #B4527F; --b: #F7E6EF; }
.ih-card--frisorer { --a: #7E45C9; --b: #EFE6FB; }
.ih-card--bilverkstader { --a: #3D3A4A; --b: #E9E7EF; }
.ih-card--hantverkare { --a: #7A6100; --b: #F7F9C9; }
.ih-card--e-handel { --a: #7E45C9; --b: #F1E9FC; }
.ih-card--tandvard-och-kliniker { --a: #2A6F6A; --b: #E3F4F2; }
.ih-card--fastighetsforvaltning { --a: #4B3F8F; --b: #E8E5F7; }
.ih-card--bilhandlare { --a: #2C0E3D; --b: #ECE6F1; }
.ih-card--trafikskolor { --a: #2A6D2E; --b: #E5F4E6; }
.ih-card--byraer { --a: #A63E61; --b: #FBE7EE; }
.ih-card--gym { --a: #6A33B0; --b: #F2FAA3; }

/* ==========================================================================
   Gemensamt
   ========================================================================== */
.ih-common__grid { display: grid; gap: 14px; max-width: 1100px; margin-inline: auto; }
@media (min-width: 640px) { .ih-common__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .ih-common__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ih-common__grid a { display: grid; align-content: start; gap: 8px; height: 100%; padding: 22px; border-radius: 24px; color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--on-dark-line); transition: background-color .3s, transform .4s var(--spring); }
.ih-common__grid a:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.ih-common__grid span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--natt); background: var(--gnista); }
.ih-common__grid .ic { width: 21px; height: 21px; }
.ih-common__grid h3 { font-size: 1.05rem; font-weight: 800; }
.ih-common__grid p { font-size: .9rem; color: var(--on-dark-muted); }
.ih-missing { display: grid; gap: 18px; align-items: center; max-width: 1100px; margin: 40px auto 0; padding: clamp(22px, 3vw, 32px); border-radius: 26px; color: var(--ink); background: #fff; box-shadow: var(--shadow-3); }
@media (min-width: 860px) { .ih-missing { grid-template-columns: 1fr auto; } }
.ih-missing h3 { font-size: 1.3rem; font-weight: 800; }
.ih-missing p { color: var(--muted); }
.ih-missing > p { display: flex; flex-wrap: wrap; gap: 10px; }
.ih-missing .btn--ghost { color: var(--natt); box-shadow: inset 0 0 0 1.5px var(--line); }
.ih-missing .btn .ic { width: 16px; height: 16px; }
.ih-common { padding-bottom: calc(clamp(76px, 10vw, 136px) + var(--sheet-r)); }

@keyframes ih-spin { to { transform: rotate(calc(var(--a) + 360deg)) translate(var(--r)) rotate(calc(var(--a) * -1 - 360deg)); } }
