/* The pages under the front page. The same rooms as the front page, in the same order: dark at the top, a white arch, lime
   at the end. Loaded after side.css and felles.css. Components are named u-… */
.under{background:var(--natt)}
.under main{position:relative;z-index:1}
.under :focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* ---- The top: heading, lead and a piece of the product, on halftone ---- */
.u-helt{position:relative;display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:clamp(28px,4vw,72px);align-items:center;min-height:min(88svh,900px);padding:clamp(124px,17vh,170px) var(--marg) clamp(110px,16vh,180px);color:var(--tekst);isolation:isolate;overflow:hidden}
.u-helt::before{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(circle,rgba(198,244,50,.5) 1px,transparent 1.6px);background-size:10px 10px;-webkit-mask-image:radial-gradient(60% 70% at 78% 55%,#000,transparent 72%);mask-image:radial-gradient(60% 70% at 78% 55%,#000,transparent 72%)}
.u-helt::after{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(circle,rgba(255,255,255,.07) 1px,transparent 1.6px);background-size:10px 10px}
.u-helt.smal{grid-template-columns:minmax(0,1fr);min-height:0;padding-bottom:clamp(120px,18vh,190px)}
.u-helt.smal::before{-webkit-mask-image:radial-gradient(50% 80% at 92% 30%,#000,transparent 72%);mask-image:radial-gradient(50% 80% at 92% 30%,#000,transparent 72%)}
.u-helt-tekst{position:relative;z-index:1}
.u-tittel{max-width:11em;font-size:clamp(46px,6.1vw,100px);line-height:.98;letter-spacing:-.045em}
.u-helt.smal .u-tittel{max-width:14em;font-size:clamp(44px,5.4vw,88px)}
.u-ingress{margin-top:24px;max-width:31em;font-size:clamp(18px,1.55vw,22px);line-height:1.45;color:var(--svak)}
.u-knapper{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:34px}
.knapp.omriss{background:transparent;color:inherit;box-shadow:inset 0 0 0 1px rgba(127,127,127,.45)}
.knapp.omriss:hover{box-shadow:inset 0 0 0 1px currentColor}
.u-helt-bilde{position:relative;min-width:0}
.u-sti{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:22px;font-size:14px;color:var(--svak)}
.u-sti a{color:var(--tekst);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* The heading rises word by word when the page opens, and the dot drops in last */
.u-ml{display:inline-block;overflow:hidden;vertical-align:top;padding:0 .02em .14em;margin:0 -.02em -.14em}
.u-mo{display:inline-block;transform:translateY(108%);animation:u-stig .9s cubic-bezier(.2,.75,.2,1) forwards;animation-delay:calc(.08s + var(--i) * 70ms)}
.u-tittel .punkt.u-fall{opacity:0;animation:u-fall .7s cubic-bezier(.3,1.5,.5,1) forwards;animation-delay:calc(.35s + var(--n) * 70ms)}
@keyframes u-stig{to{transform:none}}
@keyframes u-fall{0%{opacity:1;transform:translateY(-1.2em)}100%{opacity:1;transform:none}}

/* ---- The white arch: a flatter arch than on the front page, so it does not leave a dome of nothing ---- */
.u-dag{position:relative;z-index:2;margin-top:-1px;padding:clamp(88px,10vw,150px) var(--marg) clamp(90px,13vh,150px);color:var(--blekk);background:var(--papir);background-image:radial-gradient(circle,rgba(17,18,20,.085) 1px,transparent 1.5px);background-size:11px 11px;border-radius:50% 50% 0 0/clamp(70px,9vw,150px) clamp(70px,9vw,150px) 0 0}
.u-helt + .u-dag{margin-top:clamp(-150px,-9vw,-70px)}
.u-innhold{max-width:1360px;margin:0 auto}

/* Sections in the white */
.u-seksjon{padding:clamp(56px,9vh,112px) 0;border-top:1px solid rgba(17,18,20,.11)}
.u-seksjon:first-child,.u-kapitler + .u-seksjon{padding-top:0;border-top:0}
.u-topp{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:18px 56px;align-items:end;margin-bottom:clamp(32px,5vh,58px)}
.u-topp.alene{grid-template-columns:minmax(0,1fr)}
.u-h2{font-size:clamp(34px,4.1vw,64px);line-height:1.02;letter-spacing:-.04em;max-width:13em}
.u-h3{font-size:clamp(22px,1.9vw,28px);line-height:1.1;letter-spacing:-.025em}
.u-tekst{max-width:34em;font-size:clamp(17px,1.35vw,19.5px);line-height:1.5;color:#4C4D4A}
.u-tekst + .u-tekst{margin-top:14px}
.u-tekst a,.u-kort a.lenke,.u-prosa a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* Text beside a picture. .snu puts the picture first */
.u-rad{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(28px,5vw,96px);align-items:center}
.u-rad + .u-rad{margin-top:clamp(64px,10vh,120px)}
.u-rad.snu{grid-template-columns:minmax(0,6fr) minmax(0,5fr)}
.u-rad.snu>:first-child{order:2}
.u-rad .u-h3 + .u-tekst,.u-rad .u-h2 + .u-tekst{margin-top:16px}

/* A list with the dot from the logo */
.u-punkter{list-style:none;margin-top:22px;border-top:1px solid rgba(17,18,20,.11)}
.u-punkter li{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid rgba(17,18,20,.11);font-size:16.5px;line-height:1.45}
.u-punkter li::before{content:"";flex:none;width:7px;height:7px;margin-top:.55em;border-radius:50%;background:var(--lime);box-shadow:0 0 0 1px var(--blekk)}
.natt .u-punkter,.u-flate .u-punkter{border-color:var(--strek)}
.natt .u-punkter li,.u-flate .u-punkter li{border-color:var(--strek)}
.natt .u-punkter li::before,.u-flate .u-punkter li::before{box-shadow:none}

.u-punkter.u-tre{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:28px;margin-top:28px}
@media (max-width:760px){.u-punkter.u-tre{grid-template-columns:minmax(0,1fr)}}

/* Cards */
.u-rutenett{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.u-rutenett.to{grid-template-columns:repeat(2,minmax(0,1fr))}
.u-rutenett.fire{grid-template-columns:repeat(4,minmax(0,1fr))}
.u-kort{position:relative;display:flex;flex-direction:column;padding:24px 24px 26px;border-radius:20px;background:#fff;box-shadow:0 0 0 1px rgba(17,18,20,.07),0 30px 60px -46px rgba(17,18,20,.4)}
.u-kort .u-h3{font-size:clamp(20px,1.6vw,23px)}
.u-kort p{margin-top:9px;font-size:16px;line-height:1.5;color:#4C4D4A}
.u-kort .u-ikon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:20px;border-radius:12px;background:var(--blekk);color:var(--lime)}
.u-kort .u-ikon svg{width:21px;height:21px}
a.u-kort{transition:transform .25s cubic-bezier(.3,.8,.3,1),box-shadow .25s}
a.u-kort:hover{transform:translateY(-3px);box-shadow:0 0 0 1px rgba(17,18,20,.12),0 36px 70px -40px rgba(17,18,20,.45)}
.u-kort .pil{margin-top:auto;padding-top:18px;font-weight:600;font-size:15px}

/* The dark surface the product stands on, as on the front page */
.u-flate{position:relative;min-height:340px;border-radius:26px;background:var(--blekk);color:var(--tekst);overflow:hidden;isolation:isolate}
.u-flate::before{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(circle,rgba(198,244,50,.55) 1px,transparent 1.6px);background-size:9px 9px;-webkit-mask-image:radial-gradient(70% 90% at 92% 100%,#000,transparent 72%);mask-image:radial-gradient(70% 90% at 92% 100%,#000,transparent 72%)}
.u-flate.midt{display:grid;place-items:center;padding:clamp(24px,3vw,44px)}

/* Numbers in a row */
.u-tall{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;border-top:1px solid rgba(17,18,20,.14)}
.u-tall div{padding:20px 0 0}
.u-tall dt{font-size:clamp(34px,3.6vw,54px);font-weight:500;letter-spacing:-.045em;line-height:1}
.u-tall dd{margin-top:10px;font-size:15px;line-height:1.4;color:#5A5B58;max-width:16em}

/* Questions and answers in the white */
.u-faq{border-top:1px solid rgba(17,18,20,.14)}
.u-faq details{border-bottom:1px solid rgba(17,18,20,.14)}
.u-faq summary{display:flex;justify-content:space-between;gap:20px;padding:20px 0;font-size:clamp(18px,1.55vw,22px);line-height:1.3;letter-spacing:-.01em;font-weight:500;cursor:pointer;list-style:none}
.u-faq summary::-webkit-details-marker{display:none}
.u-faq summary::after{content:"";flex:none;width:13px;height:13px;margin-top:.4em;background:linear-gradient(currentColor,currentColor) center/100% 1.5px no-repeat,linear-gradient(currentColor,currentColor) center/1.5px 100% no-repeat;transition:transform .25s}
.u-faq details[open] summary::after{transform:rotate(45deg)}
.u-faq details>div{max-width:40em;padding:0 34px 24px 0;font-size:17px;line-height:1.55;color:#4C4D4A}
.u-faq details>div p + p{margin-top:10px}

/* Long text: terms, privacy. Readable measure, quiet headings, tables that scroll on a phone */
.u-dok{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,8fr);gap:clamp(28px,5vw,88px);align-items:start}
.u-innhold-liste{position:sticky;top:100px;font-size:15px}
.u-innhold-liste p{margin-bottom:12px;color:#6E6F6C}
.u-innhold-liste ol{list-style:none;display:flex;flex-direction:column;gap:2px;border-left:1px solid rgba(17,18,20,.14)}
.u-innhold-liste a{display:block;padding:5px 0 5px 14px;margin-left:-1px;border-left:2px solid transparent;color:#4C4D4A;transition:color .2s,border-color .2s}
.u-innhold-liste a:hover{color:var(--blekk)}
.u-innhold-liste a.aktiv{color:var(--blekk);border-left-color:var(--blekk)}
.u-prosa{max-width:46em;font-size:17.5px;line-height:1.65;color:#2E2F2D}
.u-prosa>*+*{margin-top:16px}
.u-prosa h2{margin-top:56px;font-size:clamp(26px,2.3vw,34px);line-height:1.1;letter-spacing:-.03em;color:var(--blekk);scroll-margin-top:110px}
.u-prosa h2:first-child{margin-top:0}
.u-prosa h3{margin-top:32px;font-size:20px;line-height:1.25;letter-spacing:-.015em;color:var(--blekk);scroll-margin-top:110px}
.u-prosa ul,.u-prosa ol{padding-left:22px}
.u-prosa li+li{margin-top:6px}
.u-prosa strong{font-weight:600;color:var(--blekk)}
.u-tabell{overflow-x:auto;margin-top:20px;border-radius:14px;box-shadow:0 0 0 1px rgba(17,18,20,.1);background:#fff;-webkit-overflow-scrolling:touch}
.u-tabell table{width:100%;min-width:560px;border-collapse:collapse;font-size:15px;line-height:1.45}
.u-tabell th,.u-tabell td{padding:12px 14px;text-align:left;vertical-align:top;border-bottom:1px solid rgba(17,18,20,.08)}
.u-tabell th{font-weight:600;color:var(--blekk);background:#FAFAF8}
.u-tabell tr:last-child td{border-bottom:0}
.u-merk{display:flex;gap:12px;align-items:flex-start;padding:16px 18px;border-radius:14px;background:var(--lime-myk);box-shadow:inset 3px 0 0 var(--lime);font-size:15.5px;line-height:1.5;color:var(--blekk)}
.u-merk::before{content:"";flex:none;width:8px;height:8px;margin-top:.5em;border-radius:50%;background:var(--blekk)}
.u-helt .u-merk{margin-top:28px;max-width:40em;background:rgba(198,244,50,.12);color:var(--tekst);box-shadow:inset 3px 0 0 var(--lime)}
.u-helt .u-merk::before{background:var(--lime)}
.u-fylles{padding:1px 5px;border-radius:5px;background:#F1EFE8;font-family:var(--mono);font-size:.86em;color:#6E5A1E}

/* ---- The end: lime, as on the front page, with the symbol in dots ---- */
.u-slutt{position:relative;z-index:2;padding:clamp(90px,14vh,160px) var(--marg) 0;background:var(--lime);color:var(--blekk);overflow:hidden;isolation:isolate}
.u-slutt::before{content:"";position:absolute;right:-6vw;top:clamp(30px,6vh,70px);z-index:-1;width:min(46vw,620px);aspect-ratio:1;background:radial-gradient(circle,rgba(17,18,20,.85) 1.4px,transparent 2px) 0 0/11px 11px;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M7 34V20a13 13 0 0 1 26 0v8q0 5 4 7' fill='none' stroke='%23000' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='20' cy='26' r='4.2'/%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 40 40'%3E%3Cpath d='M7 34V20a13 13 0 0 1 26 0v8q0 5 4 7' fill='none' stroke='%23000' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='20' cy='26' r='4.2'/%3E%3C/svg%3E") center/contain no-repeat;opacity:.9}
.u-slutt-inn{max-width:1360px;margin:0 auto}
.u-slutt h2{max-width:11em;font-size:clamp(44px,6vw,96px);line-height:.98;letter-spacing:-.045em}
.u-slutt p{margin-top:20px;max-width:28em;font-size:clamp(18px,1.5vw,22px);line-height:1.45}
.u-slutt .u-knapper{margin-top:30px}
.u-slutt + .fot{padding-top:clamp(80px,13vh,140px)}

/* ---- Coming in as you scroll ---- */
[data-vis]{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--d,0) * 80ms)}
[data-vis].vist{opacity:1;transform:none}

/* Tabs */
.u-faner{display:flex;flex-wrap:wrap;gap:6px;padding:5px;border-radius:14px;background:rgba(17,18,20,.06);width:fit-content;max-width:100%}
.u-faner button{height:38px;padding:0 15px;border:0;border-radius:10px;background:transparent;font-weight:500;font-size:15px;cursor:pointer;transition:background-color .2s,color .2s}
.u-faner button[aria-selected="true"]{background:var(--blekk);color:#fff}
.natt .u-faner,.u-flate .u-faner{background:rgba(255,255,255,.08)}
.natt .u-faner button[aria-selected="true"],.u-flate .u-faner button[aria-selected="true"]{background:var(--lime);color:var(--blekk)}
[role="tabpanel"][hidden]{display:none}

/* Code */
.u-kode{position:relative;margin-top:18px;border-radius:14px;background:#141517;color:#C9CAC5;font:400 14px/1.7 var(--mono);box-shadow:0 0 0 1px rgba(255,255,255,.06)}
.u-kode pre{margin:0;padding:16px 18px;overflow-x:auto;white-space:pre}
.u-kode .k{color:var(--lime)}
.u-kode .s{color:#E6E7E2}
.u-kode .m{color:#7D7E7A}
.u-kode button{position:absolute;right:10px;top:10px;height:30px;padding:0 11px;border:1px solid rgba(255,255,255,.22);border-radius:8px;background:#1B1C1F;color:#F2F2EF;font:500 13px/1 var(--sans);cursor:pointer}

/* A chat on the page, as a picture of the real one. Plum: the example company Tallvik Regnskap */
.u-chat{position:relative;right:auto;bottom:auto;z-index:auto;font-family:var(--sans);--k:#4A2545;--kt:#fff;--kd:#4A2545;--kdt:#fff;--kkant:#4A2545}
.u-chat .sw-panel{display:flex;width:100%!important;height:var(--hc,560px)!important;max-height:none!important;border-radius:18px!important;animation:none;box-shadow:0 0 0 1px rgba(255,255,255,.1),0 40px 90px -30px rgba(0,0,0,.85)}
.u-chat .sw-logg{position:relative;display:flex;flex-direction:column;gap:10px;padding:16px;overflow:hidden}
.u-chat .sw-logg>*{animation:sw-fram .32s ease-out both}
.u-chat textarea{resize:none}
.u-chat .sw-send{display:grid;place-items:center}
.u-chat .sw-send svg{width:18px;height:18px}
.u-helt .u-chat{width:min(420px,100%);margin-left:auto}

/* A card from the front page, playing its feature, on the dark surface */
.u-demo{width:min(440px,100%);margin:0 auto}
.u-demo .vin{height:172px}
@media (min-width:761px){.u-demo{zoom:1.15}}

/* Chapters: a bar that stays under the top while you read, and marks where you are */
.u-kapitler{position:sticky;top:84px;z-index:5;display:flex;gap:3px;width:fit-content;max-width:100%;margin:0 auto clamp(56px,8vh,96px);padding:5px;border-radius:14px;background:rgba(255,255,255,.82);box-shadow:inset 0 0 0 1px rgba(17,18,20,.08),0 14px 30px -20px rgba(17,18,20,.35);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);overflow-x:auto;scrollbar-width:none}
.u-kapitler::-webkit-scrollbar{display:none}
.u-kapitler ol{display:flex;gap:3px;list-style:none}
.u-kapitler a{display:block;flex:none;padding:8px 13px;border-radius:10px;font-size:14.5px;font-weight:500;color:#4C4D4A;white-space:nowrap;transition:background-color .2s,color .2s}
.u-kapitler a:hover{color:var(--blekk)}
.u-kapitler a.aktiv{background:var(--blekk);color:#fff}
[id].u-seksjon{scroll-margin-top:150px}

/* Notifications, as they arrive on a phone or in a work chat */
.u-varsler{display:flex;flex-direction:column;gap:10px;width:min(420px,100%);margin:0 auto}
.u-varsel{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border-radius:18px;background:rgba(244,244,240,.95);color:var(--blekk);font-size:14px;line-height:1.35;box-shadow:0 22px 44px -26px rgba(0,0,0,.8)}
.u-varsel>i{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:var(--blekk);color:#fff;font-style:normal;font-weight:600;font-size:15px}
.u-varsel>i svg{width:26px;height:26px}
.u-varsel b{display:block;font-weight:600}
.u-varsel small{align-self:start;color:#6E6F6C;font-size:12.5px}

/* ---- Tablets ---- */
@media (max-width:1100px){
  .u-helt{grid-template-columns:minmax(0,1fr);min-height:0}
  .u-topp,.u-rad,.u-rad.snu,.u-dok{grid-template-columns:minmax(0,1fr)}
  .u-rad.snu>:first-child{order:0}
  .u-rutenett,.u-rutenett.fire{grid-template-columns:repeat(2,minmax(0,1fr))}
  .u-tall{grid-template-columns:repeat(2,minmax(0,1fr))}
  .u-innhold-liste{position:static}
  .u-innhold-liste ol{flex-direction:row;flex-wrap:wrap;gap:6px;border:0}
  .u-innhold-liste a{padding:6px 11px;margin:0;border:0;border-radius:99px;background:rgba(17,18,20,.06)}
  .u-innhold-liste a.aktiv{background:var(--blekk);color:#fff}
}

/* ---- Phones ---- */
@media (max-width:760px){
  .u-helt{gap:36px;padding:116px 16px 116px}
  .u-helt.smal{padding-bottom:110px}
  .u-tittel,.u-helt.smal .u-tittel{font-size:clamp(40px,11vw,52px);line-height:1}
  .u-ingress{margin-top:16px;font-size:17px}
  .u-knapper{margin-top:26px}
  .u-dag{padding:64px 16px 72px;border-radius:50% 50% 0 0/46px 46px 0 0}
  .u-helt + .u-dag{margin-top:-46px}
  .u-seksjon{padding:52px 0}
  .u-h2{font-size:clamp(32px,8.6vw,40px)}
  .u-topp{margin-bottom:28px}
  .u-rutenett,.u-rutenett.to,.u-rutenett.fire{grid-template-columns:minmax(0,1fr);gap:10px}
  .u-kort{padding:20px 20px 22px;border-radius:18px}
  .u-tall{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
  .u-tall dt{font-size:34px}
  .u-flate{border-radius:20px;min-height:0}
  .u-prosa{font-size:16.5px}
  .u-prosa h2{margin-top:44px}
  .u-slutt{padding:84px 16px 0}
  .u-slutt::before{right:-24vw;top:auto;bottom:-30px;width:76vw;opacity:.5}
  .u-slutt h2{font-size:clamp(40px,11vw,54px)}
  .u-faner{width:auto}
  .u-faner button{height:36px;padding:0 12px;font-size:14px}
  .u-kode{font-size:12.5px}
  .u-kapitler{top:72px;margin-bottom:44px}
  .u-kapitler a{padding:7px 11px;font-size:14px}
  .u-chat .sw-panel{height:var(--hcm,500px)!important}
}
@media (prefers-reduced-motion: reduce){
  [data-vis]{opacity:1;transform:none;transition:none}
  .u-mo{transform:none;animation:none}
  .u-tittel .punkt.u-fall{opacity:1;animation:none}
}
