/* ───────────────────────────────────────────────────────────
   systemutvikling.css — kun for systemutvikling.html.
   Delt designsystem ligger i sider.css og må lastes først.

   Heroen er et systemkart: det kundene ser på toppen, logikken vi
   bygger i midten, dataene og tjenestene under — med strøm som
   renner gjennom ledningene mellom lagene. Selve «strømmen» er en
   animert background-position på tynne striper, ikke SVG, så det
   holder seg lett.
   ─────────────────────────────────────────────────────────── */

/* Skallet til heroen ligger i sider.css. Her er bare objektet den viser. */

/* ═══ Systemkartet i heroen ═══ */
.sd-map { text-align: center; }
.sd-map .sd-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.sd-map .sd-row span { border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(8,9,9,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 12px 6px; font-size: 12.5px; color: rgba(255,255,255,.92); }
.sd-wires { display: grid; grid-template-columns: repeat(3,1fr); padding: 9px 0; }
.sd-wires i { justify-self: center; width: 2px; height: 30px; border-radius: 2px;
  background-image: repeating-linear-gradient(180deg, rgb(212,255,61) 0 6px, rgba(212,255,61,.08) 6px 13px); background-size: 2px 13px;
  animation: sdFlow 1.05s linear infinite; }
.sd-up i { animation-name: sdFlowUp; }
.sd-wires i:nth-child(2){animation-delay:-.3s} .sd-wires i:nth-child(3){animation-delay:-.6s}
@keyframes sdFlow { to { background-position-y: 13px; } }
@keyframes sdFlowUp { to { background-position-y: -13px; } }
.sd-core { border-radius: 12px; background: var(--lime); color: #0a0a0a; padding: 14px; font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; }
@media (prefers-reduced-motion: reduce) { .sd-wires i { animation: none; } }



/* ═══════════════════════════════════════════════════════════
   BYGGEKLOSSER
   ═══════════════════════════════════════════════════════════ */
.sy-blocks { background: #fff; padding: 130px 0 110px; }
.bk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
}
.bk {
  position: relative;
  border-radius: 18px;
  padding: 28px 28px 26px;
  min-height: 262px;
  display: flex;
  flex-direction: column;
  background: #f1f1ef;
  color: #0a0a0a;
  transition:
    transform 0.5s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.4s cubic-bezier(0.22,1,0.36,1),
    opacity 0.6s cubic-bezier(0.22,1,0.36,1);
}
a.bk:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(10,10,10,0.13); }
.bk-cta { background: var(--lime); }

/* Lite skjematisk merke øverst i hvert kort */
.bk-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: #0a0a0a;
  display: grid;
  place-items: center;
  margin-bottom: auto;
}
.bk-cta .bk-mark { background: #0a0a0a; }
.bk-mark svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bk h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.18;
  margin: 26px 0 9px;
  color: inherit;
}
.bk p { font-size: 14.5px; line-height: 1.6; color: rgba(10,10,10,0.64); }
.bk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.bk-tags span {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(10,10,10,0.06);
  border-radius: 999px;
  padding: 6px 11px;
  color: rgba(10,10,10,0.6);
}
.bk-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 1.5px solid currentColor;
  align-self: flex-start;
}
.bk-go .pf-link-arrow { transition: transform 0.22s ease; }
a.bk:hover .pf-link-arrow { transform: translateX(4px); }

@media (max-width: 980px) {
  .sy-blocks { padding: 90px 0 70px; }
  .bk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bk-grid { grid-template-columns: 1fr; }
  .bk { min-height: 0; }
}


/* ═══════════════════════════════════════════════════════════
   BYGGET PÅ — stacken, og hvorfor
   ═══════════════════════════════════════════════════════════ */
.sy-stack { background: #fff; padding: 20px 0 120px; }
.st-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
  border-top: 1px solid rgba(10,10,10,0.12);
}
.st-cell {
  padding: 30px 26px 30px 0;
  border-right: 1px solid rgba(10,10,10,0.12);
}
.st-cell:last-child { border-right: 0; padding-right: 0; }
.st-cell:not(:first-child) { padding-left: 26px; }
.st-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.028em;
  margin-bottom: 8px;
  color: #0a0a0a;
}
.st-role {
  display: block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.42);
  margin-bottom: 14px;
}
.st-cell p { font-size: 14px; line-height: 1.58; color: rgba(10,10,10,0.62); }

.st-foot {
  max-width: 1290px;
  margin: 0 auto;
  padding: 34px 24px 0;
}
.st-foot p {
  font-size: 15.5px;
  line-height: 1.62;
  color: rgba(10,10,10,0.66);
  max-width: 640px;
}
.st-foot strong { color: #0a0a0a; font-weight: 600; }

@media (max-width: 900px) {
  .sy-stack { padding: 0 0 90px; }
  .st-strip { grid-template-columns: 1fr 1fr; }
  .st-cell { padding: 26px 20px 26px 0; border-bottom: 1px solid rgba(10,10,10,0.12); }
  .st-cell:nth-child(2n) { border-right: 0; padding-right: 0; }
  .st-cell:nth-child(2n+1) { padding-left: 0; }
  .st-cell:nth-child(2n) { padding-left: 20px; }
  .st-cell:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .st-strip { grid-template-columns: 1fr; }
  .st-cell,
  .st-cell:nth-child(2n),
  .st-cell:nth-child(2n+1) {
    padding: 24px 0;
    border-right: 0;
    padding-left: 0;
  }
  .st-cell:last-child { border-bottom: 0; }
  .st-cell:nth-last-child(-n+2) { border-bottom: 1px solid rgba(10,10,10,0.12); }
  .st-cell:last-child { border-bottom: 0; }
}


/* ═══════════════════════════════════════════════════════════
   PRIS
   ═══════════════════════════════════════════════════════════ */
.sy-price { background: #fff; padding: 20px 0 130px; }
.sp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: stretch;
}
.sp-card { border-radius: 20px; padding: 40px 42px 36px; }
.sp-main {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  color: #fff;
  display: flex;
  flex-direction: column;
}
/* Boksen er med vilje mye større enn selve gløden, slik at gradienten
   rekker å bli helt gjennomsiktig før elementkanten — ellers gir kanten
   en synlig loddrett skjøt over kortet. */
.sp-main::before {
  content: "";
  position: absolute;
  width: 130%; height: 190%;
  right: -34%; top: -58%;
  background: radial-gradient(ellipse 34% 30% at 62% 48%, rgba(60,180,220,0.26) 0%, rgba(60,180,220,0.06) 46%, transparent 72%);
  pointer-events: none;
}
.sp-main > * { position: relative; z-index: 1; }
.sp-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.sp-main h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin-bottom: 18px;
  color: #fff;
}
.sp-main p {
  font-size: 15.5px;
  line-height: 1.62;
  color: rgba(255,255,255,0.64);
  margin-bottom: 14px;
  max-width: 520px;
}
.sp-rule { height: 1px; background: rgba(255,255,255,0.13); margin: 24px 0; }
.sp-rows { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.sp-rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
}
.sp-rows li span:last-child { color: #fff; font-weight: 600; white-space: nowrap; }
.sp-btn {
  --cap: 40px;
  --pad: 6px;
  gap: 16px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-top: auto;
}

.sp-note {
  background: #f1f1ef;
  color: #0a0a0a;
  display: flex;
  flex-direction: column;
}
.sp-note .sp-label { color: rgba(10,10,10,0.5); }
.sp-note h3 {
  margin-bottom: 14px;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: #0a0a0a;
}
.sp-note p {
  font-size: 15px;
  line-height: 1.62;
  color: rgba(10,10,10,0.66);
  margin-bottom: 14px;
}
.sp-note-cap {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.45);
  margin: 24px 0 14px !important;
}
.sp-note-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.sp-note-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(10,10,10,0.72);
}
.sp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0a0a0a;
  flex-shrink: 0;
  margin-top: 7px;
}
.sp-note .pf-link { margin-top: auto; padding-top: 28px; align-self: flex-start; }

@media (max-width: 980px) {
  .sy-price { padding: 0 0 90px; }
  .sp-grid { grid-template-columns: 1fr; }
  .sp-card { padding: 32px 26px 30px; }
}


/* ═══════════════════════════════════════════════════════════
   Bevegelse av
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  a.bk:hover { transform: none; }
}
