/* ============================================================
   ORON — BASE  v2
   Reset · fonts · typography · layout · buttons · motion primitives
   Everything shared. Section files must not redefine these.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable, no FOUT) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/PlusJakartaSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/PlusJakartaSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  text-size-adjust: 100%;
}
body {
  font-family: var(--or-font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--or-ink-700);
  background: var(--or-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  font-variant-numeric: proportional-nums;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
img { border-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; border-spacing: 0; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
::selection { background: var(--or-orange); color: #fff; }
:target { scroll-margin-top: calc(var(--nav-h) + 32px); }

/* ---------- Focus — visible, branded, never removed ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--or-orange);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.on-dark :focus-visible { outline-color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--sp-section); position: relative; }
.section--lg { padding-block: var(--sp-section-lg); }
.section--tight { padding-block: clamp(56px, 3vw + 40px, 88px); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* Surface bands — used to build the light→dark→light rhythm */
.surface-white { background: var(--or-white); }
.surface-gray  { background: var(--or-gray-50); }
.surface-sand  { background: var(--or-sand-50); }
.surface-ink   { background: var(--or-black); color: var(--or-on-dark); }
.surface-ink h1, .surface-ink h2, .surface-ink h3, .surface-ink h4 { color: #fff; }

/* Hairline top/bottom rules that never double up */
.rule-top { border-top: 1px solid var(--or-border); }
.rule-bottom { border-bottom: 1px solid var(--or-border); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  color: var(--or-ink-900);
  font-weight: var(--fw-bold);
  text-wrap: balance;
}
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-bold);
}
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-h1); }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); letter-spacing: var(--ls-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: var(--ls-h3); font-weight: var(--fw-bold); }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.015em; font-weight: var(--fw-semi); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--or-ink-500);
  letter-spacing: -0.014em;
  text-wrap: pretty;
  max-width: 60ch;
}
.surface-ink .lead, .on-dark .lead { color: var(--or-on-dark-muted); }

.muted { color: var(--or-ink-500); }
.small { font-size: var(--fs-small); }
.caption { font-size: var(--fs-caption); color: var(--or-ink-500); }
.micro { font-size: var(--fs-micro); }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* Orange emphasis inside headings — the single accent move */
.hl { color: var(--or-orange); }
.hl-underline {
  position: relative;
  color: var(--or-ink-900);
  background-image: linear-gradient(transparent 62%, rgba(242,85,51,.22) 62%);
  background-size: 100% 100%;
  padding-inline: 0.04em;
}

/* Eyebrow — the section label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  /* Brand orange is only 3.43:1 on white — too low for 13px text. The deep
     tone reads as the same accent and clears AA on white, gray-50 and sand.
     The dot keeps full brand orange: it is a graphic, not text. */
  color: var(--or-orange-deep);
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--or-orange);
  flex: none;
  box-shadow: 0 0 0 3px rgba(242,85,51,.16);
}
.surface-ink .eyebrow, .on-dark .eyebrow { color: #FF8A63; }
.surface-ink .eyebrow::before, .on-dark .eyebrow::before { box-shadow: 0 0 0 3px rgba(255,138,99,.18); }

/* Section header block — consistent everywhere */
.section-head { max-width: 720px; }
.section-head .eyebrow { margin-bottom: var(--s-5); }
.section-head h2 { margin-bottom: var(--sp-stack); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 28px; padding-inline: 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-micro); font-weight: var(--fw-bold);
  letter-spacing: .01em;
  background: var(--or-orange-tint);
  color: var(--or-orange-deep);
  border: 1px solid var(--or-orange-tint-2);
  white-space: nowrap;
}
.badge--neutral { background: var(--or-gray-100); color: var(--or-ink-700); border-color: var(--or-border); }
.badge--green { background: var(--or-mint-50); color: #05795A; border-color: var(--or-mint-200); }
.badge--dark { background: rgba(255,255,255,.08); color: #fff; border-color: var(--or-on-dark-line-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h);
  padding-inline: 26px;
  border-radius: var(--r-pill);
  font-size: 15.5px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.011em;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition: transform var(--t-fast) var(--e-out),
              box-shadow var(--t-base) var(--e-out),
              background-color var(--t-base) var(--e-out),
              border-color var(--t-base) var(--e-out),
              color var(--t-base) var(--e-out);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.988); transition-duration: 60ms; }
.btn__arrow { transition: transform var(--t-base) var(--e-spring); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Primary — the money button */
.btn--primary {
  background: var(--or-grad-cta);
  color: #fff;
  box-shadow: var(--sh-cta);
  border: 1px solid rgba(160,54,8,.5);
}
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%);
  opacity: .9;
  pointer-events: none;
  z-index: -1;
}
.btn--primary:hover { box-shadow: var(--sh-cta-hover); transform: translateY(-1px); }

/* Secondary — ink outline on light */
.btn--secondary {
  background: var(--or-white);
  color: var(--or-ink-900);
  border: 1px solid var(--or-border-strong);
  box-shadow: var(--sh-xs);
}
.btn--secondary:hover { border-color: var(--or-ink-900); box-shadow: var(--sh-sm); transform: translateY(-1px); }

/* Ink — solid dark */
.btn--ink { background: var(--or-ink-900); color: #fff; border: 1px solid var(--or-ink-900); }
.btn--ink:hover { background: var(--or-black); transform: translateY(-1px); box-shadow: var(--sh-md); }

/* On dark surfaces */
.btn--light { background: #fff; color: var(--or-ink-900); border: 1px solid #fff; }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(0,0,0,.5); }
.btn--ghost-dark {
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid var(--or-on-dark-line-2);
  backdrop-filter: blur(8px);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }

/* Sizes */
.btn--sm { --btn-h: 40px; padding-inline: 18px; font-size: 14px; }
.btn--lg { --btn-h: 58px; padding-inline: 32px; font-size: 16.5px; }
.btn--block { width: 100%; }

/* Text link with sweep underline */
.link {
  color: var(--or-ink-900);
  font-weight: var(--fw-semi);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--t-base) var(--e-out), color var(--t-base) var(--e-out);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1.5px; color: var(--or-orange); }
.link--orange { color: var(--or-orange); }

/* ---------- Brand lockup (nav + footer share this exactly) ---------- */
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1;
  color: var(--or-ink-900);
}
.brandmark__mark { width: 30px; height: 30px; flex: none; }
.brandmark__word {
  font-size: 22px;
  font-weight: var(--fw-black);
  letter-spacing: -0.045em;
  color: currentColor;
  transform: translateY(0.5px);
}
.brandmark--light { color: #fff; }
.brandmark--sm .brandmark__mark { width: 26px; height: 26px; }
.brandmark--sm .brandmark__word { font-size: 19px; }

/* ---------- Cards ---------- */
.card {
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--e-out),
              box-shadow var(--t-base) var(--e-out),
              border-color var(--t-base) var(--e-out);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--or-border-strong); }
.card--dark {
  background: linear-gradient(180deg, #17110F 0%, #120D0C 100%);
  border-color: var(--or-on-dark-line);
  color: var(--or-on-dark);
}

/* ---------- Textures ---------- */
/* Fine grain — 1.6% opacity, kills banding on gradients */
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .028;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Dot grid — background structure */
.dotgrid {
  background-image: radial-gradient(circle at 1px 1px, rgba(15,10,10,.055) 1px, transparent 0);
  background-size: 28px 28px;
}
.dotgrid--dark {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0);
  background-size: 28px 28px;
}
/* Edge fade for grids/marquees */
.fade-x {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity var(--t-reveal) var(--e-out), transform var(--t-reveal) var(--e-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="scale"] { transform: translate3d(0, 20px, 0) scale(.985); }
[data-reveal="left"]  { transform: translate3d(-20px, 0, 0); }
[data-reveal="right"] { transform: translate3d(20px, 0, 0); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Stagger helper: parent sets --stagger, children auto-delay via nth-child */
[data-stagger] > * { --reveal-delay: 0ms; }
[data-stagger] > *:nth-child(1) { --reveal-delay: 0ms; }
[data-stagger] > *:nth-child(2) { --reveal-delay: 80ms; }
[data-stagger] > *:nth-child(3) { --reveal-delay: 160ms; }
[data-stagger] > *:nth-child(4) { --reveal-delay: 240ms; }
[data-stagger] > *:nth-child(5) { --reveal-delay: 320ms; }
[data-stagger] > *:nth-child(6) { --reveal-delay: 400ms; }
[data-stagger] > *:nth-child(7) { --reveal-delay: 480ms; }
[data-stagger] > *:nth-child(8) { --reveal-delay: 560ms; }

/* ---------- Keyframes ---------- */
@keyframes or-float   { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes or-pulse   { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
@keyframes or-spin    { to { transform: rotate(360deg) } }
@keyframes or-marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes or-blink   { 0%,45% { opacity: 1 } 50%,95% { opacity: 0 } 100% { opacity: 1 } }
@keyframes or-rise    { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
@keyframes or-sheen   { from { transform: translateX(-120%) } to { transform: translateX(220%) } }
@keyframes or-ping    { 0% { transform: scale(.9); opacity: .7 } 70%,100% { transform: scale(2.2); opacity: 0 } }

/* Live dot — used for "publiserer nå"-type states */
.livedot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--or-green); flex: none; }
.livedot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--or-green); animation: or-ping 2s var(--e-out) infinite;
}

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: var(--flow, 1rem); }
.flex { display: flex; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--s-2) } .gap-3 { gap: var(--s-3) } .gap-4 { gap: var(--s-4) }
.gap-5 { gap: var(--s-5) } .gap-6 { gap: var(--s-6) } .gap-8 { gap: var(--s-8) }
.mt-4 { margin-top: var(--s-4) } .mt-6 { margin-top: var(--s-6) }
.mt-8 { margin-top: var(--s-8) } .mt-10 { margin-top: var(--s-10) }
.mt-12 { margin-top: var(--s-12) } .mt-16 { margin-top: var(--s-16) }
.text-center { text-align: center }
.relative { position: relative }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: var(--z-modal);
  background: var(--or-ink-900); color: #fff; padding: 12px 20px;
  border-radius: var(--r-sm); font-weight: var(--fw-bold); font-size: 14px;
  transition: top var(--t-base) var(--e-out);
}
.skip-link:focus { top: 16px; }
.no-scroll { overflow: hidden; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .livedot::after { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-nav, .btn, .final-cta { display: none !important; }
  body { color: #000; background: #fff; }
}
