/*
Theme Name: RSX Regnskap
Description: Landingsside for RSX Regnskap (tidligere Cazh), regnskapsprogrammet fra IXU. Samme formspråk som forsiden på ixu.no.
Author: IXU
Version: 2.0
Text Domain: rsx
*/

/* Verdiene er hentet fra forsiden på ixu.no, så de to sidene ser like ut. */
:root {
  --bg: #121212;
  --boks: #0A0A0A;
  --kort: #121212;
  --flate: #1B1B1B;
  --tekst: #F5F5F5;
  --dempet: rgba(245,245,245,0.6);
  --svak: rgba(245,245,245,0.55);
  --green: #35CE8D;
  --green-mork: #2EBD7E;
  --lilla: #5438DC;
  --gull: #F1A208;
  --lys: #EEE5E5;
  --max: 1140px;
  --topp: 70px;
  --innrykk: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topp) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tekst);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.cz-container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* --- Toppmenyen: flat, full bredde, lenkene midt på ------------------- */
.cz-topp {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--topp);
  padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
}
.cz-merke img { display: block; height: 34px; width: auto; }
.cz-meny {
  position: absolute; inset: 0; width: max-content; margin: 0 auto;
  display: flex; align-items: center; gap: 4px;
}
.cz-meny a {
  padding: 8px 14px; border-radius: 50px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--tekst);
}
.cz-meny a:hover { background: rgba(255,255,255,0.07); }
.cz-topp-knapp {
  position: relative;
  padding: 9px 18px; border-radius: 50px;
  background: var(--green-mork); color: #0A0A0A;
  font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.cz-topp-knapp:hover { background: var(--green); }

/* --- Boksene ------------------------------------------------------------ */
main > section {
  position: relative;
  margin: var(--innrykk);
  border-radius: 32px;
  background: var(--boks);
}

/* --- Hero --------------------------------------------------------------- */
.cz-hero {
  margin-top: calc(var(--topp) + var(--innrykk)) !important;
  min-height: calc(100svh - var(--topp) - 2 * var(--innrykk));
  display: flex; align-items: center;
  padding: 80px 80px 120px;
  overflow: hidden;
}
.cz-hero-media { position: absolute; inset: 0; pointer-events: none; }
.cz-hero-media img {
  position: absolute; top: 50%; right: -4%;
  height: 118%; width: auto; max-width: none;
  transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}
.cz-hero-innhold { position: relative; z-index: 2; width: 100%; max-width: 760px; }

.cz-status {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 26px; padding: 6px 14px; border-radius: 50px;
  background: rgba(46,189,126,0.14); color: var(--green);
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
}
.cz-status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(53,206,141,0.8);
  animation: cz-puls 2.4s ease-in-out infinite;
}
@keyframes cz-puls { 50% { opacity: .35; } }

.cz-hero h1 {
  margin: 0 0 30px;
  font-size: clamp(60px, 10.5vw, 136px); font-weight: 800;
  line-height: 1; letter-spacing: -0.02em;
  color: var(--tekst);
  text-rendering: optimizeLegibility;
}
.cz-hero h1 span { color: var(--green-mork); }
.cz-hero h1 .tg { color: inherit; }
.cz-hero h1.skriver .tg { visibility: hidden; }
.cz-hero h1.skriver .tg.vis { visibility: visible; }
.cz-markor { position: relative; display: inline-block; width: 0; height: 0.78em; vertical-align: -0.04em; }
.cz-markor::after {
  content: ""; position: absolute; left: 0.05em; top: 0; bottom: 0; width: 0.07em;
  border-radius: 2px; background: var(--green-mork);
  animation: cz-blink 1s steps(1) infinite;
}
.cz-markor.borte { display: none; }
@keyframes cz-blink { 50% { opacity: 0; } }

.cz-hero p { max-width: 520px; margin: 0 0 34px; font-size: 19px; line-height: 1.6; color: rgba(245,245,245,0.72); }

.cz-knapper { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.cz-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 50px;
  background: var(--green-mork); color: #0A0A0A;
  font-size: 15px; font-weight: 700; line-height: 1.6; text-decoration: none;
  transition: background .2s;
}
.cz-btn:hover { background: var(--green); }
.cz-btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s; }
.cz-btn:hover svg { transform: translateX(3px); }
.cz-btn--rolig { background: var(--flate); color: var(--tekst); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.cz-btn--rolig:hover { background: #242424; }
.cz-merknad { font-size: 13px; color: rgba(245,245,245,0.4); }

.cz-ned {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: var(--tekst); opacity: 0.28; transition: opacity .25s;
  animation: cz-hopp 2.5s ease-in-out infinite;
}
.cz-ned:hover { opacity: 0.7; }
.cz-ned svg { display: block; fill: currentColor; }
@keyframes cz-hopp { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* --- Seksjonene ------------------------------------------------------- */
.cz-seksjon { padding: 96px 0; }
.cz-hode { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.cz-etikett {
  display: inline-block; margin-bottom: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green);
}
.cz-hode h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
}
.cz-hode p { max-width: 600px; margin: 0 auto; font-size: 17px; line-height: 1.65; color: var(--dempet); }

/* Kortene, som sikkerhetskortene på ixu.no */
.cz-kort-rad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1080px; margin: 0 auto; }
.cz-kort {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 24px; border-radius: 24px; background: var(--kort);
}
.cz-kort > b { margin: 18px 0 6px; font-size: 16px; font-weight: 800; }
.cz-kort > p { font-size: 14px; line-height: 1.55; color: var(--svak); }

.cz-ikon {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 13px;
  background: rgba(46,189,126,0.14); color: var(--green-mork);
}
.cz-ikon.lilla { background: rgba(84,56,220,0.2); color: #A994FF; }
.cz-ikon.gull { background: rgba(241,162,8,0.15); color: var(--gull); }
.cz-ikon svg { width: 21px; height: 21px; }
.cz-ikon--liten { width: 34px; height: 34px; border-radius: 11px; }
.cz-ikon--liten svg { width: 18px; height: 18px; }

/* Flyten: tre kilder inn i ett regnskap */
.cz-flyt-figur {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  max-width: 860px; margin: 0 auto;
  padding: 40px 48px; border-radius: 24px; background: var(--kort);
}
.cz-kilder { display: grid; gap: 12px; }
.cz-kilde {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 16px;
  background: var(--flate); font-size: 14.5px; font-weight: 700;
}
/* Linjene tar høyden fra kildene ved siden av, ikke fra SVG-en selv. */
.cz-linjer { position: relative; align-self: stretch; min-width: 40px; margin: 0 12px; }
.cz-linjer svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cz-linjer path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.cz-linje { stroke: rgba(46,189,126,0.35); stroke-width: 1.5; }
.cz-puls { stroke: #CFF7E4; stroke-width: 2; stroke-dasharray: 14 86; stroke-dashoffset: 100; animation: cz-strom 2.6s linear infinite; }
@keyframes cz-strom { to { stroke-dashoffset: 0; } }
.cz-mal { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--green); }
.cz-mal img { display: block; height: 40px; width: auto; }

/* --- Avslutningen: åpen, venstrestilt, som på ixu.no ------------------- */
main > .cz-cta { background: transparent; border-radius: 0; }
.cz-cta-boks {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px;
  max-width: 1200px; margin: 0 auto; padding: 90px 32px 100px;
}
.cz-cta-merke {
  display: inline-block; margin-bottom: 18px; padding: 5px 14px; border-radius: 50px;
  background: rgba(84,56,220,0.2); color: #A796FF;
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
}
.cz-cta h2 { margin: 0 0 18px; font-size: 56px; font-weight: 800; line-height: 1.04; letter-spacing: -2.2px; }
.cz-cta p { max-width: 440px; margin: 0 0 30px; font-size: 16.5px; line-height: 1.75; color: var(--dempet); }
.cz-cta-bilde { display: flex; justify-content: center; }
.cz-cta-bilde img { display: block; width: min(330px, 80%); height: auto; }

/* --- Bunnen ------------------------------------------------------------- */
.cz-bunn { background: var(--boks); }
.cz-bunn-container { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.cz-bunn-topp {
  display: grid; grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); gap: 14px;
  padding: 72px 0 28px;
}
.cz-bunn-merke { padding: 6px 28px 0 0; }
.cz-bunn-merke img { display: block; height: 40px; width: auto; margin-bottom: 18px; }
.cz-bunn-merke p { max-width: 300px; margin: 0 0 20px; font-size: 14px; line-height: 1.7; color: rgba(232,240,255,0.45); }
.cz-bunn-knapp {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 50px;
  background: var(--green-mork); color: #0A0A0A;
  font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.cz-bunn-knapp:hover { background: var(--green); }
.cz-bunn-knapp svg { width: 15px; height: 15px; transition: transform .2s; }
.cz-bunn-knapp:hover svg { transform: translateX(3px); }
.cz-bunn-kol { padding: 18px 22px 20px; border-radius: 22px; background: var(--kort); }
.cz-bunn-kol h4 { margin: 0 0 14px; font-size: 12px; font-weight: 500; color: rgba(232,240,255,0.4); }
.cz-bunn-kol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.cz-bunn-kol a, .cz-bunn-kol span { font-size: 14px; line-height: 1.4; color: rgba(232,240,255,0.75); text-decoration: none; transition: color .2s; }
.cz-bunn-kol a:hover { color: var(--green); }
.cz-bunn-linje {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px;
  padding: 22px 0 30px;
}
.cz-bunn-linje p, .cz-bunn-linje a { font-size: 13px; color: rgba(232,240,255,0.58); text-decoration: none; }
.cz-bunn-linje a:hover { color: var(--green); }

/* --- Mindre skjermer ---------------------------------------------------- */
@media (max-width: 1024px) {
  .cz-topp { padding: 0 32px; }
  .cz-meny a:last-child { display: none; }
  .cz-hero { padding: 80px 48px 110px; }
  .cz-bunn-topp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cz-bunn-merke { grid-column: 1 / -1; padding: 0 0 18px; }
}
@media (max-width: 900px) {
  .cz-meny { display: none; }
  .cz-kort-rad { grid-template-columns: 1fr; max-width: 560px; }
  .cz-cta-boks { grid-template-columns: 1fr; padding: 64px 24px 40px; }
  .cz-cta h2 { font-size: 38px; letter-spacing: -1.4px; }
  .cz-cta-bilde { display: none; }
}
@media (max-width: 767px) {
  :root { --topp: 62px; --innrykk: 8px; }
  .cz-container { padding: 0 16px; }
  .cz-topp { padding: 0 16px 0 20px; }
  .cz-merke img { height: 30px; }
  .cz-topp-knapp { padding: 8px 14px; font-size: 12.5px; }
  main > section { border-radius: 24px; }
  main > .cz-cta { border-radius: 0; }
  .cz-hero { padding: 56px 24px 96px; text-align: center; align-items: flex-start; }
  .cz-hero-media img {
    top: 0; right: 50%; height: auto; width: 130%;
    transform: translate(50%, -12%); opacity: 0.55;
  }
  .cz-hero-innhold { max-width: 100%; padding-top: 22svh; }
  .cz-hero h1 { font-size: clamp(44px, 14.5vw, 84px); line-height: 1.02; margin-bottom: 22px; }
  .cz-hero p { font-size: 16.5px; margin: 0 auto 28px; }
  .cz-hero .cz-knapper { justify-content: center; }
  .cz-hero .cz-btn { width: 100%; justify-content: center; }
  .cz-btn { font-size: 14px; padding: 14px 26px; }
  .cz-ned { display: inline-grid; place-items: center; width: 44px; height: 44px; bottom: 20px; }
  .cz-seksjon { padding: 64px 0; }
  .cz-hode { margin-bottom: 32px; }
  .cz-hode h2 br { display: none; }
  .cz-hode p { font-size: 15.5px; }
  .cz-kort { padding: 20px; border-radius: 20px; }
  .cz-kort > b { margin-top: 14px; font-size: 15px; }
  .cz-kort > p { font-size: 13.5px; }
  .cz-flyt-figur { padding: 24px 16px; border-radius: 20px; }
  .cz-kilde { gap: 9px; padding: 8px 12px 8px 8px; font-size: 13px; }
  .cz-linjer { min-width: 24px; margin: 0 8px; }
  .cz-mal img { height: 28px; }
  .cz-cta-boks { padding: 48px 16px 32px; }
  .cz-cta h2 { font-size: 32px; }
  .cz-cta h2 br { display: none; }
  .cz-cta p { font-size: 15px; }
  .cz-bunn-container { padding: 0 20px; }
  .cz-bunn-topp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 56px 0 20px; }
  .cz-bunn-kol { border-radius: 20px; }
  .cz-bunn-kol:last-child { grid-column: 1 / -1; }
  .cz-bunn-linje { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .cz-topp-knapp { font-size: 0; padding: 0; width: 40px; height: 40px; display: grid; place-items: center; }
  .cz-topp-knapp::after {
    content: ""; width: 16px; height: 16px; background: #0A0A0A;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .cz-flyt-figur { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .cz-kilder { width: 100%; }
  .cz-linjer { display: none; }
  .cz-mal { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cz-status i, .cz-puls, .cz-ned, .cz-markor::after { animation: none; }
  .cz-puls { display: none; }
}
