/* =========================================================
   Testonax — visuell identitet
   Palett: lys / mettet blå / sølv / grafitt / mørk is / dyp blågrå
   ========================================================= */

:root {
  /* Farger */
  --tx-ink: #071a33;          /* mørkeblå, basis */
  --tx-ink-soft: #0e2748;
  --tx-graphite: #232b36;
  --tx-slate: #4e5a69;
  --tx-silver: #c6cfd8;
  --tx-silver-soft: #dfe5ec;
  --tx-ice: #e4f0f8;
  --tx-paper: #f7fafc;
  --tx-white: #ffffff;
  --tx-blue: #1a56d6;         /* mettet blå */
  --tx-blue-deep: #123fa3;
  --tx-ember: #2f5470;        /* mørk is — aksent */
  --tx-ember-deep: #16293a;   /* dyp vulkansk blågrå */

  /* Typografi */
  --tx-face: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  --tx-face-quote: Georgia, "Times New Roman", "Nimbus Roman", serif;

  /* Rom */
  --tx-gutter: clamp(20px, 4vw, 40px);
  --tx-block: clamp(60px, 8vw, 116px);
  --tx-shell: 1200px;

  /* Form */
  --tx-radius: 14px;
  --tx-radius-lg: 22px;
  --tx-line: 1px solid rgba(7, 26, 51, .10);
  --tx-shadow-s: 0 2px 10px rgba(7, 26, 51, .06);
  --tx-shadow-m: 0 14px 40px -20px rgba(7, 26, 51, .35);
  --tx-shadow-l: 0 30px 80px -40px rgba(7, 26, 51, .55);
}

/* ---------- Grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--tx-white);
  color: var(--tx-ink);
  font-family: var(--tx-face);
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

/* height:auto er avgjørende: uten den slår width/height-attributtene i
   HTML-en inn som fast høyde og bildene blir strukket. */
img { display: block; max-width: 100%; height: auto; }
a { color: var(--tx-blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tx-ember-deep); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--tx-ink);
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.02em; }
p  { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--tx-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.tx-shell {
  width: 100%;
  max-width: var(--tx-shell);
  margin-inline: auto;
  padding-inline: var(--tx-gutter);
}

.tx-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tx-ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
}
.tx-skip:focus { left: 12px; top: 12px; }

/* ---------- Signatur: ryggstripe ---------- */
.tx-ridge {
  width: 74px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--tx-ice), var(--tx-blue) 46%, var(--tx-graphite));
  margin-bottom: 22px;
}
.tx-ridge--center { margin-inline: auto; }

.tx-eyebrow {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tx-blue);
  margin-bottom: 14px;
}
.tx-eyebrow--pale { color: var(--tx-silver); }

.tx-lead {
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
  color: var(--tx-slate);
  max-width: 62ch;
}

.tx-section { padding-block: var(--tx-block); }
.tx-section--paper { background: var(--tx-paper); }
.tx-section--ice {
  background: linear-gradient(180deg, var(--tx-ice), #f3f9fd 70%, var(--tx-white));
}
.tx-section--ink {
  background: var(--tx-ink);
  color: var(--tx-ice);
}
.tx-section--ink h2, .tx-section--ink h3 { color: var(--tx-white); }
.tx-section--ink .tx-lead { color: rgba(228, 240, 248, .78); }

.tx-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 56px); }
.tx-head--center { margin-inline: auto; text-align: center; }

/* ---------- Knapper ---------- */
.tx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background-color .2s ease,
              border-color .2s ease, color .2s ease;
}
.tx-btn--primary {
  background: linear-gradient(135deg, #2f5470, #12253a);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(7, 26, 51, .85);
}
.tx-btn--primary:hover {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(135deg, #3a648a, #16293a);
  box-shadow: 0 18px 34px -14px rgba(7, 26, 51, .9);
}
.tx-btn--primary:active { transform: translateY(0); }

.tx-btn--ghost {
  background: transparent;
  border-color: rgba(7, 26, 51, .22);
  color: var(--tx-ink);
}
.tx-btn--ghost:hover { border-color: var(--tx-ink); background: rgba(7, 26, 51, .04); color: var(--tx-ink); }

.tx-btn--light {
  background: var(--tx-white);
  color: var(--tx-ink);
  border-color: rgba(255, 255, 255, .4);
}
.tx-btn--light:hover { transform: translateY(-2px); color: var(--tx-ink); }

.tx-btn--outline-light {
  background: transparent;
  border-color: rgba(228, 240, 248, .4);
  color: var(--tx-ice);
}
.tx-btn--outline-light:hover { border-color: var(--tx-ice); color: #fff; background: rgba(255,255,255,.07); }

.tx-btn--block { width: 100%; }
.tx-btn--sm { padding: 11px 20px; font-size: .88rem; }

/* ---------- Topplinje og navigasjon ---------- */
.tx-topbar {
  background: var(--tx-ink);
  color: rgba(228, 240, 248, .8);
  font-size: .8rem;
  letter-spacing: .01em;
}
.tx-topbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: center;
  padding-block: 9px;
}
.tx-topbar__row span { display: inline-flex; align-items: center; gap: 8px; }
.tx-topbar a { color: inherit; text-decoration: none; }
.tx-topbar a:hover { color: #fff; }

.tx-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: var(--tx-line);
}
.tx-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.tx-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--tx-ink);
}
.tx-logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--tx-blue), var(--tx-ink) 62%, var(--tx-graphite));
  position: relative;
  flex: none;
}
.tx-logo__mark::after {
  content: "";
  position: absolute;
  inset: 11px 8px;
  border-left: 2px solid rgba(255, 255, 255, .85);
  border-bottom: 2px solid rgba(255, 255, 255, .85);
  transform: skewX(-12deg);
}
.tx-logo__text { font-weight: 700; letter-spacing: -0.04em; font-size: 1.32rem; }
.tx-logo__text small {
  display: block;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--tx-slate);
  text-transform: uppercase;
  margin-top: -2px;
}

.tx-nav { display: flex; align-items: center; gap: 28px; }
.tx-nav__link {
  text-decoration: none;
  color: var(--tx-graphite);
  font-size: .95rem;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.tx-nav__link:hover, .tx-nav__link[aria-current="page"] {
  color: var(--tx-ink);
  border-bottom-color: var(--tx-ember);
}

.tx-burger {
  display: none;
  width: 46px;
  height: 42px;
  border: var(--tx-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.tx-burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--tx-ink);
  transition: transform .22s ease, opacity .22s ease;
}
.tx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.tx-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, var(--tx-ice) 58%, #d7e7f3 100%);
}
.tx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.tx-hero h1 { margin-bottom: .35em; }
.tx-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--tx-blue), var(--tx-graphite));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 26px;
}
.tx-hero__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: .95rem;
  color: var(--tx-graphite);
}
.tx-hero__points li { display: flex; gap: 11px; align-items: flex-start; }
.tx-hero__points svg { flex: none; margin-top: 4px; }

.tx-hero__stage { position: relative; }
.tx-hero__scene {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--tx-radius-lg);
  overflow: hidden;
  box-shadow: var(--tx-shadow-l);
}
.tx-hero__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tx-hero__product {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 46%;
  max-width: 260px;
  height: auto;
  filter: drop-shadow(0 30px 45px rgba(7, 26, 51, .35));
}
.tx-hero__badge {
  position: absolute;
  left: 20px;
  top: 20px;
  background: var(--tx-white);
  border-radius: 14px;
  padding: 13px 18px;
  box-shadow: var(--tx-shadow-m);
  font-size: .82rem;
  line-height: 1.35;
  max-width: 190px;
}
.tx-hero__badge strong { display: block; font-size: .95rem; }

/* ---------- Tillitsstripe ---------- */
.tx-strip { border-bottom: var(--tx-line); background: var(--tx-white); }
.tx-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(7, 26, 51, .09);
}
.tx-strip__item {
  background: var(--tx-white);
  padding: 26px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tx-strip__item svg { flex: none; margin-top: 2px; }
.tx-strip__item strong { display: block; font-size: .96rem; }
.tx-strip__item span { font-size: .86rem; color: var(--tx-slate); }

/* ---------- To-kolonners tekst/bilde ---------- */
.tx-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.tx-split--reverse .tx-split__media { order: 2; }

.tx-split__media {
  position: relative;
  border-radius: var(--tx-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--tx-shadow-m);
}
.tx-split__media img { width: 100%; height: 100%; object-fit: cover; }

.tx-split__note {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
  background: rgba(255, 255, 255, .93);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: .85rem;
  color: var(--tx-graphite);
  backdrop-filter: blur(6px);
}

.tx-principles { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.tx-principles li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.tx-principles b { display: block; }
.tx-principles p { margin: 2px 0 0; color: var(--tx-slate); font-size: .95rem; }
.tx-principles__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--tx-ice);
  display: grid;
  place-items: center;
}
.tx-section--ink .tx-principles__icon { background: rgba(255, 255, 255, .09); }
.tx-section--ink .tx-principles p { color: rgba(228, 240, 248, .74); }

/* ---------- Produktoversikt ---------- */
.tx-product__frame {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: var(--tx-radius-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, #ffffff 0%, var(--tx-ice) 60%, #cfe2ef 100%);
  display: grid;
  place-items: center;
  height: clamp(340px, 40vw, 520px);
  padding: clamp(24px, 4vw, 46px);
  box-shadow: inset 0 0 0 1px rgba(7, 26, 51, .07);
}
.tx-product__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 40px rgba(7, 26, 51, .3));
}
.tx-spec {
  list-style: none;
  margin: 26px 0 30px;
  padding: 0;
  border-top: var(--tx-line);
}
.tx-spec li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: var(--tx-line);
  font-size: .95rem;
}
.tx-spec span:first-child { color: var(--tx-slate); }
.tx-spec span:last-child { font-weight: 600; text-align: right; }

/* ---------- Kortrutenett ---------- */
.tx-grid {
  display: grid;
  gap: clamp(18px, 2.2vw, 26px);
}
.tx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tx-card {
  background: var(--tx-white);
  border: var(--tx-line);
  border-radius: var(--tx-radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.tx-card:hover { transform: translateY(-3px); box-shadow: var(--tx-shadow-m); border-color: rgba(26, 86, 214, .3); }
.tx-card h3 { margin-bottom: .4em; }
.tx-card p { color: var(--tx-slate); font-size: .95rem; margin-bottom: 0; }
.tx-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--tx-ice), #ffffff);
  border: 1px solid rgba(26, 86, 214, .16);
  margin-bottom: 18px;
}
.tx-card__tag {
  display: inline-block;
  margin-top: 16px;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tx-slate);
}

.tx-card--dark {
  background: linear-gradient(155deg, var(--tx-ink-soft), var(--tx-ink));
  border-color: rgba(255, 255, 255, .12);
  color: var(--tx-ice);
}
.tx-card--dark h3 { color: #fff; }
.tx-card--dark p { color: rgba(228, 240, 248, .76); }

/* ---------- Rutinesteg (ekte rekkefølge) ---------- */
.tx-steps { counter-reset: step; display: grid; gap: 2px; background: rgba(7, 26, 51, .1); border-radius: var(--tx-radius); overflow: hidden; }
.tx-step {
  counter-increment: step;
  background: var(--tx-white);
  padding: 26px clamp(20px, 3vw, 34px);
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.tx-step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--tx-blue);
  line-height: 1;
  padding-top: 4px;
}
.tx-step h3 { margin-bottom: .25em; }
.tx-step p { margin: 0; color: var(--tx-slate); font-size: .95rem; }

/* ---------- Bånd med bakgrunnsbilde ---------- */
.tx-band { position: relative; overflow: hidden; color: var(--tx-ice); }
.tx-band__bg { position: absolute; inset: 0; }
.tx-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.tx-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 26, 51, .93) 20%, rgba(7, 26, 51, .68));
}
.tx-band__inner {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
  max-width: 720px;
}
.tx-band h2 { color: #fff; }
.tx-band p { color: rgba(228, 240, 248, .82); }

.tx-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.tx-tile {
  border-radius: var(--tx-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 150px;
  box-shadow: var(--tx-shadow-m);
}
.tx-tile--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.tx-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pakker ---------- */
.tx-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.tx-pack {
  background: var(--tx-white);
  border: 1px solid rgba(7, 26, 51, .12);
  border-radius: var(--tx-radius-lg);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .22s ease, transform .18s ease, border-color .22s ease;
}
.tx-pack:hover { box-shadow: var(--tx-shadow-m); transform: translateY(-3px); }
.tx-pack--featured { border-color: var(--tx-blue); box-shadow: var(--tx-shadow-m); }
.tx-pack__flag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--tx-blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.tx-pack__media {
  /* Fast høyde i stedet for aspect-ratio: gir identisk bildeflate i alle tre
     kortene og kan ikke kollapse eller vokse ut av kortet. */
  height: 230px;
  overflow: hidden;
  min-width: 0;
  display: grid;
  place-items: center;
  border-radius: var(--tx-radius);
  background: linear-gradient(170deg, var(--tx-paper), var(--tx-ice));
  margin-bottom: 20px;
  padding: 18px;
}
/* object-fit: contain med faste 100 % gjør at flasken alltid skaleres ned
   til rammen, uansett hvor stor kildefilen er. */
.tx-pack__media img { width: 100%; height: 100%; object-fit: contain; }
.tx-pack h3 { margin-bottom: .2em; }
.tx-pack__sub { color: var(--tx-slate); font-size: .9rem; margin-bottom: 16px; }
.tx-pack__price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.tx-pack__unit { font-size: .86rem; color: var(--tx-slate); margin-bottom: 18px; }
.tx-pack__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; font-size: .92rem; }
.tx-pack__list li { display: flex; gap: 10px; align-items: flex-start; }
.tx-pack__list svg { flex: none; margin-top: 5px; }
.tx-pack .tx-btn { margin-top: auto; }

/* ---------- Uttalelser ---------- */
.tx-quote {
  background: var(--tx-white);
  border: var(--tx-line);
  border-radius: var(--tx-radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tx-quote blockquote {
  margin: 0 0 20px;
  font-family: var(--tx-face-quote);
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--tx-graphite);
}
.tx-quote__by { margin-top: auto; display: flex; align-items: center; gap: 13px; }
.tx-quote__ini {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tx-ink);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  flex: none;
}
.tx-quote__by b { display: block; font-size: .95rem; }
.tx-quote__by span { font-size: .82rem; color: var(--tx-slate); }

/* ---------- FAQ ---------- */
.tx-faq { max-width: 860px; margin-inline: auto; border-top: var(--tx-line); }
.tx-faq__item { border-bottom: var(--tx-line); }
.tx-faq__q {
  width: 100%;
  background: none;
  border: 0;
  padding: 22px 44px 22px 0;
  text-align: left;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tx-ink);
  cursor: pointer;
  position: relative;
}
.tx-faq__q::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--tx-blue);
  border-bottom: 2px solid var(--tx-blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s ease;
}
.tx-faq__q[aria-expanded="true"]::after { transform: translateY(-25%) rotate(-135deg); }
.tx-faq__a { display: none; padding: 0 40px 24px 0; color: var(--tx-slate); }
.tx-faq__a.is-open { display: block; }
.tx-faq__a p:last-child { margin-bottom: 0; }

/* ---------- Skjema ---------- */
.tx-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}
.tx-form {
  background: var(--tx-white);
  border: var(--tx-line);
  border-radius: var(--tx-radius-lg);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--tx-shadow-m);
}
.tx-field { margin-bottom: 18px; }
.tx-field label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--tx-graphite);
}
.tx-field input,
.tx-field select,
.tx-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(7, 26, 51, .18);
  border-radius: 11px;
  background: var(--tx-white);
  font: inherit;
  font-size: .97rem;
  color: var(--tx-ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tx-field textarea { min-height: 108px; resize: vertical; }
.tx-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx-slate) 50%), linear-gradient(135deg, var(--tx-slate) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 42px; }
.tx-field input:focus, .tx-field select:focus, .tx-field textarea:focus {
  outline: none;
  border-color: var(--tx-blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 214, .15);
}
.tx-field.has-error input,
.tx-field.has-error select,
.tx-field.has-error textarea { border-color: var(--tx-ember-deep); box-shadow: 0 0 0 3px rgba(22, 41, 58, .14); }

.tx-field__error {
  display: none;
  margin-top: 6px;
  font-size: .82rem;
  color: var(--tx-ember-deep);
}
.tx-field.has-error .tx-field__error { display: block; }

.tx-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }

.tx-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  font-size: .87rem;
  color: var(--tx-slate);
}
.tx-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tx-blue); }
.tx-check.has-error { color: var(--tx-ember-deep); }

.tx-form__note { font-size: .82rem; color: var(--tx-slate); margin: 16px 0 0; }
.tx-form__status {
  display: none;
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 11px;
  background: rgba(22, 41, 58, .07);
  color: var(--tx-ember-deep);
  font-size: .9rem;
}
.tx-form__status.is-visible { display: block; }

.tx-aside {
  background: linear-gradient(160deg, var(--tx-ink-soft), var(--tx-ink));
  color: var(--tx-ice);
  border-radius: var(--tx-radius-lg);
  overflow: hidden;
}
.tx-aside__media { aspect-ratio: 16 / 10; }
.tx-aside__media img { width: 100%; height: 100%; object-fit: cover; }
.tx-aside__body { padding: 28px 26px 30px; }
.tx-aside h3 { color: #fff; }
.tx-aside p { color: rgba(228, 240, 248, .78); font-size: .95rem; }
.tx-aside__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; font-size: .93rem; }
.tx-aside__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.tx-aside__list a { color: #fff; }

/* ---------- Kontakt ---------- */
.tx-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 26px); }
.tx-contact-card {
  border: var(--tx-line);
  border-radius: var(--tx-radius);
  padding: 26px 24px;
  background: var(--tx-white);
  height: 100%;
}
.tx-contact-card h3 { font-size: 1.05rem; }
.tx-contact-card p { font-size: .95rem; color: var(--tx-slate); margin-bottom: 0; }
.tx-contact-card a { font-weight: 600; }

/* ---------- Bunntekst ---------- */
.tx-footer { background: var(--tx-ink); color: rgba(228, 240, 248, .74); padding-block: clamp(48px, 6vw, 74px) 0; font-size: .93rem; }
.tx-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(26px, 3.5vw, 48px);
  padding-bottom: 44px;
}
.tx-footer h4 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.tx-footer a { color: rgba(228, 240, 248, .82); text-decoration: none; }
.tx-footer a:hover { color: #fff; text-decoration: underline; }
.tx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tx-footer .tx-logo__text { color: #fff; }
.tx-footer .tx-logo__text small { color: rgba(228, 240, 248, .6); }
.tx-footer__about { max-width: 34ch; margin-top: 18px; }
.tx-footer__disclosure {
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding-block: 22px;
  font-size: .82rem;
  color: rgba(228, 240, 248, .6);
}
.tx-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding-block: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: .84rem;
}
.tx-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: rgba(228, 240, 248, .82);
  cursor: pointer;
  text-decoration: underline;
}
.tx-linkbtn:hover { color: #fff; }

/* ---------- Underside / juridiske sider ---------- */
.tx-pagehead {
  background: linear-gradient(160deg, var(--tx-ink), var(--tx-ink-soft));
  color: var(--tx-ice);
  padding-block: clamp(48px, 6vw, 88px);
}
.tx-pagehead h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.tx-pagehead p { color: rgba(228, 240, 248, .78); max-width: 62ch; margin-bottom: 0; }
.tx-crumbs { font-size: .84rem; color: rgba(228, 240, 248, .6); margin-bottom: 18px; }
.tx-crumbs a { color: rgba(228, 240, 248, .8); text-decoration: none; }

.tx-doc { max-width: 820px; margin-inline: auto; }
.tx-doc h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-top: 2em; }
.tx-doc h2:first-of-type { margin-top: 0; }
.tx-doc h3 { margin-top: 1.6em; font-size: 1.1rem; }
.tx-doc ul, .tx-doc ol { padding-left: 22px; color: var(--tx-slate); }
.tx-doc li { margin-bottom: 9px; }
.tx-doc p { color: var(--tx-slate); }
.tx-doc__meta {
  border-left: 3px solid var(--tx-blue);
  background: var(--tx-paper);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 34px;
  font-size: .92rem;
}
.tx-doc__meta p { margin-bottom: 0; color: var(--tx-graphite); }
.tx-table { width: 100%; border-collapse: collapse; margin: 20px 0 26px; font-size: .93rem; }
.tx-table th, .tx-table td { text-align: left; padding: 13px 14px; border-bottom: var(--tx-line); vertical-align: top; }
.tx-table th { background: var(--tx-paper); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-graphite); }
.tx-table td { color: var(--tx-slate); }

/* ---------- Suksess-side ---------- */
.tx-success { display: grid; place-items: center; text-align: center; padding-block: clamp(60px, 9vw, 130px); }
.tx-success__seal {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--tx-blue), var(--tx-ink));
  margin-bottom: 26px;
}
.tx-success__box {
  max-width: 640px;
  background: var(--tx-white);
  border: var(--tx-line);
  border-radius: var(--tx-radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--tx-shadow-m);
}
.tx-success__next { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 12px; text-align: left; }
.tx-success__next li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--tx-slate); font-size: .95rem; }

/* ---------- Artikkel ---------- */
.tx-article { max-width: 780px; margin-inline: auto; }
.tx-article h2 { margin-top: 1.9em; }
.tx-article p { color: var(--tx-graphite); }
.tx-article__figure {
  margin: 34px 0;
  border-radius: var(--tx-radius-lg);
  overflow: hidden;
  box-shadow: var(--tx-shadow-m);
}
.tx-article__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tx-article__figure figcaption {
  background: var(--tx-paper);
  padding: 14px 20px;
  font-size: .85rem;
  color: var(--tx-slate);
}
.tx-callout {
  background: var(--tx-ice);
  border-radius: var(--tx-radius);
  padding: 24px 26px;
  margin: 32px 0;
}
.tx-callout p:last-child { margin-bottom: 0; }

/* ---------- Samtykkebanner ---------- */
.tx-consent {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(140%);
  width: min(1060px, calc(100% - 32px));
  background: var(--tx-white);
  border: 1px solid rgba(7, 26, 51, .14);
  border-radius: 18px;
  box-shadow: 0 26px 70px -26px rgba(7, 26, 51, .6);
  padding: 24px clamp(20px, 3vw, 30px);
  z-index: 120;
  transition: transform .35s cubic-bezier(.22, .8, .3, 1), opacity .3s ease;
  opacity: 0;
  visibility: hidden;
}
.tx-consent.is-open { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.tx-consent h2 { font-size: 1.15rem; margin-bottom: .4em; }
.tx-consent p { font-size: .9rem; color: var(--tx-slate); margin-bottom: 18px; }
.tx-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tx-consent__actions .tx-btn { flex: 1 1 200px; }

.tx-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 26, 51, .55);
  backdrop-filter: blur(3px);
}
.tx-modal.is-open { display: flex; }
.tx-modal__panel {
  background: var(--tx-white);
  border-radius: 20px;
  width: min(680px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--tx-shadow-l);
}
.tx-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.tx-modal__close {
  border: var(--tx-line);
  background: var(--tx-white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--tx-graphite);
  flex: none;
}
.tx-modal__close:hover { background: var(--tx-paper); }

.tx-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: var(--tx-line);
}
.tx-toggle p { margin: 4px 0 0; font-size: .88rem; color: var(--tx-slate); }
.tx-toggle b { font-size: .98rem; }
.tx-switch { position: relative; display: inline-flex; align-items: center; }
.tx-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tx-switch span {
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: var(--tx-silver);
  position: relative;
  transition: background-color .2s ease;
}
.tx-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
  box-shadow: var(--tx-shadow-s);
}
.tx-switch input:checked + span { background: var(--tx-blue); }
.tx-switch input:checked + span::after { transform: translateX(22px); }
.tx-switch input:disabled + span { background: var(--tx-blue-deep); opacity: .5; cursor: not-allowed; }
.tx-switch input:focus-visible + span { outline: 3px solid var(--tx-blue); outline-offset: 3px; }
.tx-modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tx-modal__actions .tx-btn { flex: 1 1 180px; }

/* ---------- Responsivt ---------- */
@media (max-width: 1000px) {
  .tx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .tx-nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--tx-white);
    padding: 92px var(--tx-gutter) 30px;
    box-shadow: var(--tx-shadow-l);
    transform: translateY(-102%);
    transition: transform .3s ease;
    z-index: 80;
  }
  .tx-nav.is-open { transform: translateY(0); }
  .tx-nav__link { padding: 15px 0; border-bottom: var(--tx-line); }
  .tx-nav .tx-btn { margin-top: 20px; }
  .tx-burger { display: block; position: relative; z-index: 95; }
  .tx-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .tx-hero__stage { order: -1; max-width: 460px; }
  .tx-hero__scene { aspect-ratio: 5 / 4; }
  .tx-hero__product { width: 46%; right: 0; bottom: -6%; }
  .tx-split { grid-template-columns: minmax(0, 1fr); }
  .tx-split--reverse .tx-split__media { order: 0; }
  .tx-form-wrap { grid-template-columns: minmax(0, 1fr); }
  .tx-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .tx-grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .tx-grid--2, .tx-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .tx-strip__grid { grid-template-columns: minmax(0, 1fr); }
  .tx-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .tx-packs { grid-template-columns: minmax(0, 1fr); }
  .tx-field-row { grid-template-columns: minmax(0, 1fr); }
  .tx-step { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tx-consent__actions .tx-btn { flex: 1 1 100%; }
  .tx-hero__badge { position: static; margin-bottom: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Reservehøyder ----------
   Sikrer at bildeflatene beholder høyde også i eldre nettlesere som ikke
   støtter aspect-ratio. Påvirker ikke moderne visning. */
.tx-hero__scene { min-height: 360px; }
.tx-split__media { min-height: 260px; }
.tx-aside__media { min-height: 190px; }
.tx-article__figure img { min-height: 200px; }

@media (max-width: 620px) {
  .tx-hero__scene { min-height: 260px; }
  .tx-split__media { min-height: 220px; }
  .tx-product__frame { height: 320px; }
  .tx-pack__media { height: 210px; }
}


/* ---------- Overflytsdisiplin ----------
   Hindrer at kort, bilder og lange ord sprenger kolonnene sine. */
.tx-shell, .tx-split, .tx-grid, .tx-packs, .tx-form-wrap, .tx-contact-grid { min-width: 0; }
.tx-card, .tx-pack, .tx-quote, .tx-contact-card, .tx-form, .tx-aside, .tx-step { min-width: 0; }
.tx-card p, .tx-quote blockquote, .tx-doc p, .tx-article p { overflow-wrap: break-word; }
.tx-split__media img, .tx-tile img, .tx-aside__media img, .tx-band__bg img { max-width: 100%; }
.tx-hero__stage { min-width: 0; }
.tx-spec span { min-width: 0; overflow-wrap: anywhere; }

/* Bilder som skal fylle en flate beholder full høyde (overstyrer height:auto). */
.tx-hero__scene img,
.tx-split__media img,
.tx-tile img,
.tx-aside__media img,
.tx-band__bg img { height: 100%; }
.tx-product__frame img,
.tx-pack__media img { width: 100%; height: 100%; object-fit: contain; }
.tx-article__figure img { height: auto; width: 100%; }
