/* Teknisk plattform (sak 27025, 2026-10-25). Egen stil: plattformen vist som lag som svever over hverandre i 3D
 * (Angular øverst, så .NET, SQL Server og Azure i bunnen), med datapulser som går opp og ned mellom lagene. */

.tp-hero { position: relative; overflow: hidden; overflow: clip; padding: 9.5rem 0 5rem; }
@media (max-width: 991.98px) { .tp-hero { padding: 8rem 0 3rem; } }
.tp-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 70% at 78% 55%, rgba(82,140,255,.16), transparent 70%), radial-gradient(40% 50% at 70% 20%, rgba(122,60,255,.14), transparent 70%); }
.tp-hero > .container { position: relative; z-index: 1; }
.tp-h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; margin: 0 0 1.2rem; }
.tp-lead { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 34rem; margin: 0; }

/* Stakken */
.tp-stakk { position: relative; height: 440px; max-width: 520px; margin: 0 auto; }
@media (max-width: 991.98px) { .tp-stakk { height: 360px; margin-top: 2rem; transform: scale(.85); transform-origin: top center; } }
.tp-lag { --c: 255,255,255; --a: 10; position: absolute; left: 0; right: 0; height: 160px; animation: tp-pust 7s ease-in-out infinite; }
.tp-lag.l1 { --c: 226,52,110; top: 0; --a: 16; animation-delay: -1s; }
.tp-lag.l2 { --c: 122,60,255; top: 85px; --a: 10; animation-delay: -1.6s; }
.tp-lag.l3 { --c: 82,140,255; top: 170px; --a: 5; animation-delay: -2.2s; }
.tp-lag.l4 { --c: 82,205,255; top: 255px; --a: 0; }
/* Selve flaten: en kvadratisk plate lagt ned i isometrisk vinkel */
.tp-lag::before { content: ""; position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; margin: -105px 0 0 -170px; border-radius: 16px;
    transform: rotateX(60deg) rotateZ(-45deg);
    background: linear-gradient(135deg, rgba(var(--c), .42), rgba(var(--c), .1) 60%, rgba(var(--c), .2));
    border: 1px solid rgba(var(--c), .7);
    box-shadow: 0 0 40px rgba(var(--c), .35), inset 0 0 24px rgba(var(--c), .3), inset 0 0 0 6px rgba(255,255,255,.04); }
/* Rutenett på flaten (som et kretskort) */
.tp-lag::after { content: ""; position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; margin: -105px 0 0 -170px; border-radius: 16px; pointer-events: none;
    transform: rotateX(60deg) rotateZ(-45deg); opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; }
@keyframes tp-pust { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--a) * -1px)); } }
/* Etiketten til høyre for hvert lag, med en tynn linje inn mot flaten */
.tp-navn { position: absolute; left: 62%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; padding-left: 1rem; }
.tp-navn::before { content: ""; position: absolute; right: 100%; top: 50%; width: 46px; height: 1px; background: linear-gradient(90deg, rgba(var(--c), 0), rgba(var(--c), .9)); }
.tp-navn b { font-size: 1.15rem; font-weight: 800; color: rgb(255,255,255); line-height: 1.2; }
.tp-navn small { font-size: .82rem; color: rgba(255,255,255,.62); }
/* Datapulser: små lys som går gjennom lagene, ned (forespørsler) og opp (svar) */
.tp-puls { position: absolute; left: calc(50% - 63px); top: 70px; width: 7px; height: 7px; border-radius: 50%; background: rgb(255,255,255); opacity: 0;
    box-shadow: 0 0 10px 3px rgba(255,200,150,.9), 0 0 24px 8px rgba(255,120,60,.45); animation: tp-ned 3.4s cubic-bezier(.5,0,.5,1) infinite; }
.tp-puls.p2 { left: calc(50% - 40px); animation-delay: -1.1s; animation-duration: 3s; }
.tp-puls.p3 { left: calc(50% - 85px); animation-name: tp-opp; animation-delay: -.6s; box-shadow: 0 0 10px 3px rgba(150,220,255,.9), 0 0 24px 8px rgba(82,140,255,.5); }
.tp-puls.p4 { left: calc(50% - 55px); animation-name: tp-opp; animation-delay: -2.2s; animation-duration: 3.8s; box-shadow: 0 0 10px 3px rgba(150,220,255,.9), 0 0 24px 8px rgba(82,140,255,.5); }
@keyframes tp-ned { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(260px) scale(1); opacity: 0; } }
@keyframes tp-opp { 0% { transform: translateY(260px) scale(.6); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tp-lag, .tp-puls { animation: none; } .tp-puls { opacity: 0; } }

/* Det Angular gir kundene (byttet fra kodevinduet 2026-10-25): samme løsning på PC og mobil, og en ny sak glir inn i
 * begge samtidig uten at siden lastes på nytt. Bare CSS; animasjonen går i løkke og står stille ved redusert bevegelse. */
.tp-enheter { position: relative; height: 360px; max-width: 520px; margin: 0 auto; }
.tp-enheter::before { content: ""; position: absolute; inset: 10% 5% 0; z-index: -1; border-radius: 40px; filter: blur(46px); opacity: .5; background: linear-gradient(135deg, rgb(226,52,110), rgb(122,60,255) 55%, rgb(82,140,255)); }
.tp-pc { position: absolute; left: 0; top: 10px; width: 82%; }
.tp-skjerm { height: 270px; padding: .8rem .9rem; border-radius: 12px 12px 4px 4px; background: rgb(250,251,253); box-shadow: 0 0 0 7px rgb(31,33,42), 0 30px 60px -28px rgba(17,24,39,.7); overflow: hidden; }
.tp-fot { width: 108%; height: 12px; margin: 7px 0 0 -4%; border-radius: 0 0 14px 14px; background: linear-gradient(rgb(200,204,214), rgb(160,165,178)); }
.tp-mobil { position: absolute; right: 0; bottom: 0; width: 34%; height: 255px; padding: .9rem .55rem .6rem; border-radius: 22px; background: rgb(250,251,253);
    box-shadow: 0 0 0 6px rgb(31,33,42), 0 30px 50px -20px rgba(17,24,39,.75); overflow: hidden; }
.tp-mobil::before { content: ""; position: absolute; left: 50%; top: 5px; width: 34%; height: 5px; margin-left: -17%; border-radius: 3px; background: rgb(31,33,42); }
.tp-app-topp { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; font: 800 .82rem Inter, Arial, sans-serif; color: rgb(31,41,55); }
.tp-mobil .tp-app-topp { font-size: .7rem; margin-top: .3rem; }
.tp-live { display: inline-flex; align-items: center; gap: .3rem; font-size: .62rem; font-weight: 700; color: rgb(16,150,110); }
.tp-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(16,150,110); animation: tp-live 2s ease-out infinite; }
@keyframes tp-live { 0% { box-shadow: 0 0 0 0 rgba(16,150,110,.5); } 100% { box-shadow: 0 0 0 6px rgba(16,150,110,0); } }
.tp-liste { display: flex; flex-direction: column; gap: .4rem; }
.tp-rad { display: flex; align-items: center; gap: .5rem; padding: .45rem .55rem; border-radius: 9px; background: rgb(255,255,255); box-shadow: 0 0 0 1px rgba(17,24,39,.06); font-family: Inter, Arial, sans-serif; }
.tp-rad i { flex: none; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, rgba(226,52,110,.18), rgba(122,60,255,.18)); }
.tp-rad span { flex: 1; min-width: 0; }
.tp-rad b { display: block; font-size: .72rem; color: rgb(31,41,55); }
.tp-rad small { display: block; font-size: .64rem; color: rgb(107,114,128); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-rad em { flex: none; font-style: normal; font-size: .58rem; font-weight: 700; padding: .12rem .45rem; border-radius: 99px; }
.tp-rad em.ok { color: rgb(16,150,110); background: rgba(16,150,110,.1); }
.tp-rad em.ny { color: rgb(255,255,255); background: rgb(226,52,110); }
.tp-mobil .tp-rad { padding: .35rem .4rem; gap: .35rem; }
.tp-mobil .tp-rad i { width: 16px; height: 16px; }
.tp-mobil .tp-rad b { font-size: .6rem; } .tp-mobil .tp-rad small { font-size: .54rem; } .tp-mobil .tp-rad em { display: none; }
/* Den nye saken: glir inn øverst i begge samtidig, lyser opp, og blir stående før løkken starter igjen */
.tp-rad.ny { overflow: hidden; animation: tp-ny 7s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes tp-ny {
    0%, 12% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -.4rem; opacity: 0; box-shadow: 0 0 0 1px rgba(226,52,110,0); }
    20% { max-height: 3rem; padding-top: .45rem; padding-bottom: .45rem; margin-bottom: 0; opacity: 1; box-shadow: 0 0 0 2px rgba(226,52,110,.55), 0 8px 20px -8px rgba(226,52,110,.6); }
    45%, 92% { max-height: 3rem; opacity: 1; box-shadow: 0 0 0 1px rgba(17,24,39,.06); }
    100% { max-height: 3rem; opacity: 0; } }
.tp-mobil .tp-rad.ny { animation-name: tp-ny-m; }
@keyframes tp-ny-m {
    0%, 12% { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -.4rem; opacity: 0; }
    20% { max-height: 3rem; padding-top: .35rem; padding-bottom: .35rem; margin-bottom: 0; opacity: 1; box-shadow: 0 0 0 2px rgba(226,52,110,.55); }
    45%, 92% { max-height: 3rem; opacity: 1; box-shadow: 0 0 0 1px rgba(17,24,39,.06); }
    100% { max-height: 3rem; opacity: 0; } }
.tp-merke { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 99px; font: 700 .74rem Inter, Arial, sans-serif;
    color: rgb(255,255,255); background: rgb(31,33,42); box-shadow: 0 12px 26px -10px rgba(17,24,39,.6); }
.tp-merke::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; font-size: .6rem; background: rgb(16,150,110); }
.tp-merke.m1 { left: -4%; top: 62%; animation: tp-flyt 6s ease-in-out infinite; }
.tp-merke.m2 { right: 20%; top: -4%; animation: tp-flyt 6s ease-in-out -3s infinite; }
@keyframes tp-flyt { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tp-tag { position: absolute; left: 0; bottom: -1.6rem; font: 700 .62rem Inter, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgb(107,114,128); }
@media (max-width: 575.98px) { .tp-enheter { height: 330px; } .tp-skjerm { height: 240px; } .tp-merke.m1 { left: 0; } }
@media (prefers-reduced-motion: reduce) { .tp-rad.ny, .tp-merke, .tp-live::before { animation: none; } }
