/* Zellap designsystem. Portert fra bundle.css, alt under .zds, så ingenting lekker til resten av zellap.com.
   Bevegelse har ingen token-familie i tokens.json, så varigheter og kurver står her. */
.zds {
  --dur-instant: 80ms;   /* press, toggle thumb */
  --dur-fast: 140ms;     /* hover, focus, colour change */
  --dur-base: 220ms;     /* tabs, menus, toast in */
  --dur-slow: 360ms;     /* dropdown panel, dialog, tile media */
  --dur-reveal: 900ms;   /* the one authored entrance of a section */
  --dur-story: 2400ms;   /* a 3D chapter */
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* default: fast start, long settle */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);  /* things that move across the frame and stay */
  --ease-exit: cubic-bezier(.4, 0, 1, 1);       /* things leaving */
}
@media (prefers-reduced-motion: reduce) {
  .zds { --dur-instant: 1ms; --dur-fast: 1ms; --dur-base: 1ms; --dur-slow: 1ms; --dur-reveal: 1ms; --dur-story: 1ms; }
}

.zds, .zds[data-theme="light"] { color-scheme: light; }
.zds[data-theme="dark"] { color-scheme: dark; }
.zds { background: var(--ground); color: var(--ink); font-family: var(--font-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.zds { margin: 0; font-size: 16px; line-height: 1.55; }
.zds, .zds *, .zds::before, .zds *::before, .zds::after, .zds *::after { box-sizing: border-box; }
.zds img { max-width: 100%; display: block; }
.zds :focus { outline: none; }
.zds :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Utilities */
.zds .z-tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.zds[data-theme="dark"] .z-only-light { display: none !important; }
.zds:not([data-theme="dark"]) .z-only-dark { display: none !important; }
.zds .z-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zds .z-demo-note { font-size: 13px; line-height: 1.4; color: var(--ink-3); margin: 0; }

/* Display-flatene (Plus Jakarta Sans fra 14.11.2026; var Geologica med skarphetsaksen). */
.zds .z-d-2xl, .zds .z-d-xl, .zds .z-d-lg, .zds .z-d-md, .zds .z-d-sm, .zds .z-h-lg, .zds .z-h-md, .zds .z-h-sm, .zds .z-tile__title, .zds .z-stat__value, .zds .z-step__title, .zds .z-dialog__title, .zds .display-2xl, .zds .display-xl, .zds .display-lg, .zds .display-md, .zds .display-sm, .zds .display-2xl-phone, .zds .display-xl-phone, .zds .display-lg-phone, .zds .display-md-phone, .zds .display-sm-phone, .zds .heading-lg, .zds .heading-md, .zds .heading-sm, .zds .stat-lg, .zds .stat-md { }

/* The cut: the 33.7 degree slope of the mark, taken out of a corner. Use on one stage per page. */
.zds .z-cut { --cut: clamp(48px, 9vw, 144px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut) * 1.5) 100%, 0 100%); }

/* Fluid display sizes: phone token at 400px, desktop token at 1280px. */
.zds .z-d-2xl, .zds .z-d-xl, .zds .z-d-lg, .zds .z-d-md, .zds .z-d-sm, .zds .z-h-lg, .zds .z-h-md, .zds .z-h-sm { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; hyphens: manual; }
.zds .z-d-2xl { font-size: clamp(76px, 10.45vw + 34.2px, 168px); line-height: .94; letter-spacing: -.04em; }
.zds .z-d-xl { font-size: clamp(60px, 6.82vw + 32.7px, 120px); line-height: .96; letter-spacing: -.04em; }
.zds .z-d-lg { font-size: clamp(44px, 5vw + 24px, 88px); line-height: 1; letter-spacing: -.035em; }
.zds .z-d-md { font-size: clamp(36px, 3.18vw + 23.3px, 64px); line-height: 1.04; letter-spacing: -.03em; }
.zds .z-d-sm { font-size: clamp(30px, 2.05vw + 21.8px, 48px); line-height: 1.08; letter-spacing: -.025em; }
.zds .z-h-lg { font-size: 36px; line-height: 1.12; letter-spacing: -.02em; }
.zds .z-h-md { font-size: 28px; line-height: 1.2; letter-spacing: -.015em; }
.zds .z-h-sm { font-size: 22px; line-height: 1.28; letter-spacing: -.01em; }
.zds .z-lead { font-size: clamp(18px, .45vw + 16.2px, 22px); line-height: 1.45; letter-spacing: -.005em; color: var(--ink-2); margin: 0; max-width: 34em; }

/* Layout */
.zds .z-container { width: min(var(--container), 100% - var(--gutter-phone) * 2); margin-inline: auto; }
.zds .z-section { padding-block: var(--section-phone); }
@media (min-width: 768px) { .zds .z-container { width: min(var(--container), 100% - var(--gutter-tablet) * 2); } .zds .z-section { padding-block: var(--section-tablet); } }
@media (min-width: 1024px) { .zds .z-container { width: min(var(--container), 100% - var(--gutter-desktop) * 2); } .zds .z-section { padding-block: var(--section-desktop); } }

/* Button */
.zds .z-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-5); border: 0; border-radius: var(--radius-md); font-family: var(--font-text); font-size: 15px; line-height: 1; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-out); }
.zds .z-btn:active:not(:disabled) { transform: translateY(1px); }
.zds .z-btn:disabled:not([aria-busy="true"]), .zds .z-btn[aria-disabled="true"] { cursor: not-allowed; background: var(--surface-sunken); color: var(--ink-3); box-shadow: none; }
.zds .z-btn[aria-busy="true"] { cursor: progress; }
.zds .z-btn--sm { height: var(--control-sm); padding: 0 var(--space-3); font-size: 14px; }
.zds .z-btn--lg { height: var(--control-lg); padding: 0 var(--space-8); font-size: 17px; }
.zds .z-btn--block { width: 100%; }
.zds .z-btn--primary { background: var(--accent); color: var(--on-accent); }
.zds .z-btn--primary:hover:not(:disabled) { background: var(--accent-hover); }
.zds .z-btn--primary:active:not(:disabled) { background: var(--accent-press); }
.zds .z-btn--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.zds .z-btn--secondary:hover:not(:disabled) { background: var(--surface-hover); }
.zds .z-btn--ghost { background: transparent; color: var(--ink); }
.zds .z-btn--ghost:hover:not(:disabled) { background: var(--surface-hover); }
.zds .z-btn--danger { background: var(--danger-fill); color: var(--on-danger-fill); }
.zds .z-btn--danger:hover:not(:disabled) { filter: brightness(1.08); }
.zds .z-btn--ink { background: var(--on-scene-mint); color: var(--mint-50); }
.zds .z-btn--ink:hover:not(:disabled) { background: var(--graphite-800); }
.zds .z-btn--outline-ink { background: transparent; color: var(--on-scene-mint); box-shadow: inset 0 0 0 1.5px var(--on-scene-mint); }
.zds .z-btn--outline-ink:hover:not(:disabled) { background: var(--on-scene-mint); color: var(--mint-50); }
.zds .z-btn--on-deep { background: var(--white); color: var(--graphite-975); }
.zds .z-btn--on-deep:hover:not(:disabled) { background: var(--mint-50); }
.zds .z-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--control-md); height: var(--control-md); padding: 0; border: 0; border-radius: var(--radius-circle); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out); }
.zds .z-icon-btn:hover { background: var(--surface-hover); }
.zds .z-spin { animation: z-spin 900ms linear infinite; }
@keyframes z-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .zds .z-spin { animation-duration: 2400ms; } }

/* Link */
.zds .z-link { color: var(--accent-text); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-thickness var(--dur-fast) var(--ease-out); }
.zds .z-link:hover { text-decoration-thickness: 2px; }
.zds .z-link--quiet { color: inherit; text-decoration-color: var(--line-strong); }
.zds .z-link--nav { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.zds .z-link--nav:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }

/* Field */
.zds .z-field { display: grid; gap: var(--space-2); }
.zds .z-label { font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.zds .z-hint { font-size: 13px; line-height: 1.4; color: var(--ink-3); margin: 0; }
.zds .z-error { display: flex; gap: var(--space-1); align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--danger-text); margin: 0; }
.zds .z-error svg { flex: none; margin-top: 1px; }
.zds .z-input-wrap { position: relative; display: flex; align-items: center; }
.zds .z-input-wrap > svg { position: absolute; left: var(--space-3); color: var(--ink-3); pointer-events: none; }
.zds .z-input, .zds .z-select { width: 100%; height: var(--control-md); padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 1.4; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.zds .z-input--icon { padding-left: 40px; }
.zds .z-input::placeholder { color: var(--ink-3); opacity: 1; }
.zds .z-input:hover, .zds .z-select:hover { border-color: var(--ink-2); }
.zds .z-input:focus-visible, .zds .z-select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.zds .z-input[aria-invalid="true"], .zds .z-select[aria-invalid="true"] { border-color: var(--danger-text); }
.zds .z-input:disabled, .zds .z-select:disabled { background: var(--surface-sunken); color: var(--ink-3); cursor: not-allowed; }
.zds .z-select-wrap { position: relative; }
.zds .z-select { appearance: none; padding-right: 40px; cursor: pointer; }
.zds .z-select-wrap > svg { position: absolute; right: var(--space-3); top: 50%; translate: 0 -50%; color: var(--ink-2); pointer-events: none; }

/* Checkbox */
.zds .z-check { display: inline-flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; font-size: 15px; line-height: 22px; color: var(--ink); min-height: 22px; }
.zds .z-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.zds .z-check__box { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: var(--radius-xs); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface); color: transparent; transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.zds .z-check input:checked + .z-check__box { background: var(--accent); box-shadow: none; color: var(--on-accent); }
.zds .z-check input:focus-visible + .z-check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.zds .z-check input:disabled + .z-check__box { background: var(--surface-sunken); }
.zds .z-check--disabled { color: var(--ink-3); cursor: not-allowed; }

/* Switch: a square-cut track and thumb, because half-height corners are banned on controls. */
.zds .z-switch { display: inline-flex; align-items: center; gap: var(--space-3); border: 0; background: none; padding: 0; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; min-height: 28px; }
.zds .z-switch__track { position: relative; flex: none; width: 44px; height: 26px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.zds .z-switch__thumb { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: var(--radius-xs); background: var(--ink-2); transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.zds .z-switch[aria-checked="true"] .z-switch__track { background: var(--accent); box-shadow: none; }
.zds .z-switch[aria-checked="true"] .z-switch__thumb { transform: translateX(18px); background: var(--on-accent); }
.zds .z-switch:disabled { color: var(--ink-3); cursor: not-allowed; }
.zds .z-switch:disabled .z-switch__track { background: var(--surface-sunken); box-shadow: none; }
.zds .z-switch:disabled .z-switch__thumb { background: var(--line-strong); }

/* Tabs */
.zds .z-tabs__list { display: inline-flex; max-width: 100%; overflow-x: auto; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-lg); background: var(--surface-sunken); scrollbar-width: none; }
.zds .z-tabs__tab { flex: none; height: var(--control-sm); padding: 0 var(--space-4); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-2); font-family: var(--font-text); font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.zds .z-tabs__tab:hover { color: var(--ink); }
.zds .z-tabs__tab[aria-selected="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-1); font-weight: 600; }
.zds .z-tabs__panel { padding-top: var(--space-5); }

/* Badge */
.zds .z-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-sm); font-size: 12px; line-height: 1; font-weight: 600; letter-spacing: .01em; white-space: nowrap; background: var(--surface-sunken); color: var(--ink-2); }
.zds .z-badge--mint { background: var(--accent); color: var(--on-accent); }
.zds .z-badge--soft { background: var(--accent-soft); color: var(--on-accent-soft); }
.zds .z-badge--indigo { background: var(--scene-indigo); color: var(--on-scene-deep); }
.zds .z-badge--lilac { background: var(--scene-lilac); color: var(--on-scene-deep); }
.zds .z-badge--pink { background: var(--pink-400); color: var(--on-scene-mint); }
.zds .z-badge--success { background: var(--success-soft); color: var(--success-text); }
.zds .z-badge--warning { background: var(--warning-soft); color: var(--warning-text); }
.zds .z-badge--danger { background: var(--danger-soft); color: var(--danger-text); }

/* Card */
.zds .z-card { border-radius: var(--radius-xl); background: var(--surface); padding: var(--space-4); box-shadow: var(--shadow-1); color: var(--ink); }
.zds .z-card--raised { background: var(--surface-raised); box-shadow: var(--shadow-2); }
.zds .z-card--sunken { background: var(--surface-sunken); box-shadow: none; }
.zds .z-card--outline { box-shadow: inset 0 0 0 1px var(--line); }
.zds .z-card--flush { padding: 0; overflow: hidden; }
.zds .z-card--link { display: block; text-decoration: none; transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.zds .z-card--link:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
@media (min-width: 768px) { .zds .z-card { padding: var(--space-6); } .zds .z-card--flush { padding: 0; } }

/* Bento and FeatureTile */
.zds .z-bento { display: grid; grid-template-columns: 1fr; gap: var(--gap-phone); }
@media (min-width: 768px) { .zds .z-bento { grid-template-columns: repeat(8, 1fr); gap: var(--gap-tablet); } }
@media (min-width: 1024px) { .zds .z-bento { grid-template-columns: repeat(12, 1fr); gap: var(--gap-desktop); } }
.zds .z-tile { position: relative; display: flex; flex-direction: column; min-height: 320px; overflow: hidden; border-radius: var(--radius-xl); padding: var(--space-6); isolation: isolate; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1); }
.zds .z-tile:not(:has(.z-tile__media)):not(.z-tile--photo) { min-height: 0; }
@media (min-width: 768px) { .zds .z-tile { grid-column: span var(--col-md, 4); grid-row: span var(--row, 1); } }
@media (min-width: 1024px) { .zds .z-tile { grid-column: span var(--col, 4); padding: var(--space-8); } }
.zds .z-tile__title { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -.015em; margin: 0; max-width: 18em; text-wrap: balance; }
.zds .z-tile--lead .z-tile__title { font-size: clamp(30px, 2.05vw + 21.8px, 48px); line-height: 1.08; letter-spacing: -.025em; }
.zds .z-tile__body { margin: var(--space-3) 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.zds .z-tile__link { display: inline-block; margin-top: var(--space-4); font-size: 15px; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.zds .z-tile__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2; }
.zds .z-tile__link:focus-visible { outline: none; }
.zds .z-tile__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -4px; }
.zds .z-tile:hover .z-tile__link { text-decoration-thickness: 2px; }
.zds .z-tile__media { margin: var(--space-6) calc(var(--space-6) * -1) calc(var(--space-6) * -1) 0; flex: 1 1 auto; min-height: 180px; position: relative; transition: transform var(--dur-slow) var(--ease-out); }
@media (min-width: 1024px) { .zds .z-tile__media { margin: var(--space-8) calc(var(--space-8) * -1) calc(var(--space-8) * -1) 0; } }
.zds .z-tile__media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; border-top-left-radius: var(--radius-lg); }
.zds .z-tile:hover .z-tile__media { transform: translate(-4px, -4px); }
.zds .z-tile--photo { padding: 0; justify-content: flex-end; color: var(--white); background: var(--graphite-975); }
.zds .z-tile--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.zds .z-tile--photo::before { content: ""; position: absolute; inset: 25% 0 0 0; z-index: -1; background: var(--gradient-photo-scrim); }
.zds .z-tile--photo .z-tile__inner { padding: var(--space-6); }
.zds .z-tile--photo .z-tile__body { color: var(--mint-50); }
@media (min-width: 1024px) { .zds .z-tile--photo .z-tile__inner { padding: var(--space-8); } }
.zds .z-tile--mint { background: var(--scene-mint); color: var(--on-scene-mint); box-shadow: none; }
.zds .z-tile--mint-indigo { background: var(--gradient-mint-indigo); color: var(--on-scene-mint); box-shadow: none; }
.zds .z-tile--indigo-lilac { background: var(--gradient-indigo-lilac); color: var(--on-scene-mint); box-shadow: none; }
.zds .z-tile--mint .z-tile__body, .zds .z-tile--mint-indigo .z-tile__body, .zds .z-tile--indigo-lilac .z-tile__body { color: var(--on-scene-mint); }
.zds .z-tile--indigo { background: var(--scene-indigo); color: var(--on-scene-deep); box-shadow: none; }
.zds .z-tile--lilac { background: var(--scene-lilac); color: var(--on-scene-deep); box-shadow: none; }
.zds .z-tile--indigo-deep { background: var(--gradient-indigo-deep); color: var(--on-scene-deep); box-shadow: none; }
.zds .z-tile--indigo .z-tile__body, .zds .z-tile--lilac .z-tile__body, .zds .z-tile--indigo-deep .z-tile__body { color: var(--on-scene-deep); }
.zds .z-tile--forest { background: var(--scene-forest); color: var(--on-scene-forest); box-shadow: none; }
.zds .z-tile--forest .z-tile__body { color: var(--on-scene-forest-2); }
.zds .z-tile :focus-visible { outline-color: currentColor; }
.zds .z-tile--plain .z-tile__link { color: var(--accent-text); }

/* Stat */
.zds .z-stat { display: grid; gap: var(--space-1); align-content: start; }
.zds .z-stat__label { font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--ink-2); }
.zds .z-stat__value { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.zds .z-stat--lg .z-stat__value { font-size: clamp(44px, 2.3vw + 35px, 64px); line-height: 1; letter-spacing: -.03em; }
.zds .z-stat__unit { font-size: .5em; letter-spacing: -.01em; margin-left: .2em; }
.zds .z-stat__delta { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.zds .z-stat__delta--up { color: var(--success-text); }
.zds .z-stat__delta--down { color: var(--danger-text); }

/* Navbar: logo centred and small, text links left, user icon and CTA right. */
.zds .z-nav { position: relative; z-index: var(--z-nav); width: min(1200px, 100% - 16px); margin-inline: auto; height: var(--nav-bar-phone); border: 1px solid var(--frost-line); border-radius: var(--radius-xl); background: var(--frost-fill); -webkit-backdrop-filter: var(--frost-filter); backdrop-filter: var(--frost-filter); box-shadow: var(--shadow-frost); color: var(--ink); }
.zds .z-nav--fixed { position: fixed; top: 8px; left: 50%; translate: -50% 0; }
@supports (-moz-appearance: none) { .zds .z-nav { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-transparency: reduce) { .zds .z-nav { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.zds .z-nav__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; padding: 0 var(--space-2); }
.zds .z-nav__left { display: flex; align-items: center; gap: var(--space-1); min-width: 0; }
.zds .z-nav__links { display: none; align-items: center; gap: var(--space-1); }
.zds .z-nav__menu { display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); font-family: var(--font-text); font-size: 15px; font-weight: 500; cursor: pointer; }
.zds .z-nav__menu:hover { background: var(--nav-hover); }
.zds .z-nav__logo { display: inline-flex; color: var(--logo); padding: var(--space-2); }
.zds .z-nav__logo svg { height: var(--logo-nav); width: auto; display: block; }
.zds .z-nav__right { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-1); }
.zds .z-nav__user { width: 40px; height: 40px; }
.zds .z-nav__user:hover { background: var(--nav-hover); }
.zds .z-nav__cta { height: 40px; padding: 0 var(--space-4); }
.zds .z-nav__item { position: relative; }
.zds .z-nav__trigger { display: inline-flex; align-items: center; gap: var(--space-1); height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); font-family: var(--font-text); font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
.zds .z-nav__trigger:hover, .zds .z-nav__trigger[aria-expanded="true"] { background: var(--nav-hover); }
.zds .z-nav__trigger svg { transition: transform var(--dur-base) var(--ease-out); }
.zds .z-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (min-width: 1024px) { .zds .z-nav { height: var(--nav-bar-desktop); } .zds .z-nav__links { display: flex; } .zds .z-nav__menu { display: none; } }
@media (max-width: 479px) { .zds .z-nav__cta { padding: 0 var(--space-3); font-size: 14px; } .zds .z-nav__user { display: none; } }
.zds .z-nav-panel { position: absolute; top: calc(100% + 18px); left: 0; width: min(560px, 90vw); padding: var(--space-3); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-1); border-radius: var(--radius-xl); background: var(--surface-raised); box-shadow: var(--shadow-3); animation: z-panel-in var(--dur-slow) var(--ease-out); }
@keyframes z-panel-in { from { opacity: 0; transform: translateY(-6px); } }
.zds .z-nav-panel__link { display: block; padding: var(--space-3); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out); }
.zds .z-nav-panel__link:hover { background: var(--surface-hover); }
.zds .z-nav-panel__title { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; }
.zds .z-nav-panel__hint { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.zds .z-nav-sheet { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: var(--space-3); display: grid; gap: var(--space-1); border-radius: var(--radius-xl); background: var(--surface-raised); box-shadow: var(--shadow-3); max-height: 70vh; overflow: auto; }
.zds .z-nav-sheet__group { padding: var(--space-2) var(--space-3) 0; font-size: 13px; color: var(--ink-3); margin: 0; }

/* Footer */
.zds .z-footer { background: var(--surface-sunken); color: var(--ink); padding-block: var(--space-16) var(--space-10); }
.zds .z-footer__top { display: grid; gap: var(--space-10); }
.zds .z-footer__logo { display: inline-flex; color: var(--logo); }
.zds .z-footer__logo svg { height: var(--logo-footer); width: auto; }
.zds .z-footer__tagline { margin: var(--space-4) 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 26em; }
.zds .z-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-6); }
.zds .z-footer__title { margin: 0 0 var(--space-3); font-size: 14px; font-weight: 600; color: var(--ink); }
.zds .z-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.zds .z-footer__list a { color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.5; display: inline-block; padding-block: 2px; }
.zds .z-footer__list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .22em; }
.zds .z-footer__base { margin-top: var(--space-12); padding-top: var(--space-5); box-shadow: inset 0 1px 0 var(--line); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
@media (min-width: 768px) { .zds .z-footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .zds .z-footer__top { grid-template-columns: 4fr 8fr; } }

/* Dialog */
.zds .z-dialog-scrim { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; padding: var(--space-4); background: var(--scrim); animation: z-fade var(--dur-base) var(--ease-out); }
@keyframes z-fade { from { opacity: 0; } }
.zds .z-dialog { position: relative; width: min(520px, 100%); max-height: 90dvh; overflow: auto; padding: var(--space-6); border-radius: var(--radius-xl); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-3); animation: z-dialog-in var(--dur-slow) var(--ease-out); }
@keyframes z-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.zds .z-dialog__title { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -.015em; margin: 0; padding-right: var(--space-10); }
.zds .z-dialog__body { margin: var(--space-3) 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.zds .z-dialog__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; margin-top: var(--space-6); }
.zds .z-dialog__close { position: absolute; top: var(--space-3); right: var(--space-3); }
.zds .z-dialog--inline { animation: none; }

/* Toast */
.zds .z-toast { display: flex; align-items: flex-start; gap: var(--space-3); width: min(420px, 100%); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.45; animation: z-toast-in var(--dur-base) var(--ease-out); }
@keyframes z-toast-in { from { opacity: 0; transform: translateY(8px); } }
.zds .z-toast__icon { flex: none; margin-top: 2px; }
.zds .z-toast__icon--success { color: var(--success-text); }
.zds .z-toast__icon--danger { color: var(--danger-text); }
.zds .z-toast__icon--warning { color: var(--warning-text); }
.zds .z-toast__icon--info { color: var(--info-text); }
.zds .z-toast__body { flex: 1; min-width: 0; padding-block: 2px; }
.zds .z-toast__action { flex: none; margin-top: -4px; }
.zds .z-toast__close { flex: none; width: 32px; height: 32px; margin: -4px -4px -4px 0; }

/* Table */
.zds .z-table-frame { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.zds .z-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; color: var(--ink); }
.zds .z-table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ink-2); padding: var(--space-3) var(--space-4); white-space: nowrap; background: var(--surface-sunken); }
.zds .z-table td { padding: var(--space-3) var(--space-4); box-shadow: inset 0 1px 0 var(--line); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.zds .z-table td:first-child { color: var(--ink); font-weight: 500; }
.zds .z-table__num { text-align: right !important; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; white-space: nowrap; }
.zds .z-row { transition: background-color var(--dur-fast) var(--ease-out); }
.zds .z-row:hover { background: var(--surface-hover); }
.zds .z-row--selected { background: var(--accent-soft); }
.zds .z-row--selected td, .zds .z-row--selected td:first-child { color: var(--on-accent-soft); }
.zds .z-row--selected:hover { background: var(--accent-soft); }

/* Avatar */
.zds .z-avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-circle); background: var(--surface-sunken); color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: .01em; box-shadow: inset 0 0 0 1px var(--line); }
.zds .z-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.zds .z-avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.zds .z-avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.zds .z-avatar__status { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: var(--radius-circle); box-shadow: 0 0 0 2px var(--surface); }
.zds .z-avatar__status--on { background: var(--accent); }
.zds .z-avatar__status--off { background: var(--line-strong); }

/* CalendarEvent: one fill, no coloured edge. Mint marks the one that matters now. */
.zds .z-event { display: grid; gap: 2px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink); text-align: left; border: 0; width: 100%; font-family: var(--font-text); cursor: pointer; overflow: hidden; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.zds .z-event:hover { background: var(--surface-hover); }
.zds .z-event__time { font-size: 12px; line-height: 1.35; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.zds .z-event__title { font-size: 14px; line-height: 1.35; font-weight: 600; }
.zds .z-event__meta { font-size: 12px; line-height: 1.35; color: var(--ink-2); }
.zds .z-event__state { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 12px; line-height: 1.35; font-weight: 500; color: var(--ink-2); }
.zds .z-event--now { background: var(--accent); color: var(--on-accent); }
.zds .z-event--now:hover { background: var(--accent-hover); }
.zds .z-event--now .z-event__time, .zds .z-event--now .z-event__meta, .zds .z-event--now .z-event__state { color: var(--on-accent); }
.zds .z-event--done { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.zds .z-event--done:hover { background: var(--surface-hover); }
.zds .z-event--cancelled { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.zds .z-event--cancelled .z-event__title { text-decoration: line-through; color: var(--ink-2); }

/* BookingStep */
.zds .z-step { border-radius: var(--radius-xl); background: var(--surface); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-1); }
.zds .z-step__head { display: flex; align-items: center; gap: var(--space-3); min-height: 32px; }
.zds .z-step__mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-circle); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.zds .z-step__title { flex: 1; margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.28; letter-spacing: -.01em; }
.zds .z-step__summary { margin: 2px 0 0 40px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.zds .z-step__body { margin-top: var(--space-4); }
.zds .z-step--done .z-step__mark { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.zds .z-step--todo { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.zds .z-step--todo .z-step__title { color: var(--ink-2); }
.zds .z-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--space-2); }
.zds .z-slot { height: var(--control-md); border: 0; border-radius: var(--radius-md); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-family: var(--font-text); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
.zds .z-slot:hover:not(:disabled) { background: var(--surface-hover); }
.zds .z-slot[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; font-weight: 600; }
.zds .z-slot:disabled { box-shadow: none; background: var(--surface-sunken); color: var(--ink-3); text-decoration: line-through; cursor: not-allowed; }

/* SectionHeader */
.zds .z-sh { display: grid; gap: var(--space-4); margin-bottom: var(--space-10); justify-items: start; }
@media (min-width: 1024px) { .zds .z-sh { margin-bottom: var(--space-16); gap: var(--space-5); } }
.zds .z-sh__title { max-width: 16em; }
.zds .z-sh--center { justify-items: center; text-align: center; }
.zds .z-sh--center .z-lead { max-width: 30em; }
.zds .z-sh__action { margin-top: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.zds .z-sh--on-scene .z-lead { color: inherit; }

/* SceneFrame */
.zds .z-scene { position: relative; overflow: hidden; border-radius: var(--radius-2xl); background: var(--scene-forest); isolation: isolate; }
.zds .z-scene__poster { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; }
.zds .z-scene__poster img { width: 100%; height: 100%; object-fit: cover; }
.zds .z-scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity var(--dur-reveal) var(--ease-out); pointer-events: none; }
.zds .z-scene[data-state="live"] .z-scene__canvas { opacity: 1; }
.zds .z-scene[data-state="live"] .z-scene__poster { opacity: 0; transition: opacity var(--dur-reveal) var(--ease-out); }
.zds .z-scene__content { position: relative; z-index: 2; height: 100%; }

/* Showcase helpers */
.zds .z-sc-hero { padding-block: var(--space-24) var(--space-10); display: grid; gap: var(--space-5); justify-items: start; }
@media (min-width: 1024px) { .zds .z-sc-hero { padding-block: 148px var(--space-16); gap: var(--space-6); } }
.zds .z-sc-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }

/* Touch: every control keeps a 44px hit area whatever its visual size. */
@media (pointer: coarse) {
  .zds .z-btn--sm, .zds .z-nav__cta, .zds .z-nav__user, .zds .z-nav__trigger, .zds .z-nav__menu, .zds .z-tabs__tab, .zds .z-switch, .zds .z-check, .zds .z-toast__close { position: relative; }
  .zds .z-btn--sm::after, .zds .z-nav__cta::after, .zds .z-nav__user::after, .zds .z-nav__trigger::after, .zds .z-nav__menu::after, .zds .z-tabs__tab::after, .zds .z-toast__close::after { content: ""; position: absolute; inset: -6px 0; }
  .zds .z-switch, .zds .z-check { min-height: 44px; align-items: center; }
  .zds .z-check input { top: 50%; translate: 0 -50%; }
}


/* Visningene: landingsside (fra forhåndsvisningen) */
.zds .z-nav-slot{position:sticky;top:8px;z-index:50;margin-bottom:-68px;padding-top:8px}.zds .z-hero{width:min(var(--container-wide),100% - 16px);margin:8px auto 0;padding:88px 20px 0;background:var(--gradient-mint-indigo);color:var(--on-scene-mint);border-radius:var(--radius-2xl);overflow:hidden;display:grid;gap:40px}.zds .z-hero__text{display:grid;gap:20px;justify-items:start;width:min(var(--container),100%);margin-inline:auto}.zds .z-hero h1{max-width:15em}.zds .z-hero .z-lead{color:var(--on-scene-mint)}.zds .z-hero__screen{width:min(var(--container),100%);margin-inline:auto}.zds .z-hero__screen img{width:100%;height:auto;max-height:520px;object-fit:cover;object-position:top left;border-radius:var(--radius-lg) var(--radius-lg) 0 0;box-shadow:var(--shadow-3)}.zds .z-hero :focus-visible,.zds .z-forest :focus-visible,.zds .z-closing :focus-visible{outline-color:currentColor}.zds .z-doors{margin-top:var(--gap-phone);grid-template-columns:1fr 1fr}.zds .z-doors .z-tile{min-height:220px}.zds .z-doors .z-tile__title{font-size:20px}.zds .z-doors .z-tile__inner{padding:var(--space-4)}.zds .z-doors .z-tile__link{font-size:14px;margin-top:var(--space-2)}@media(min-width:768px){.zds .z-hero{padding:112px 48px 0;width:calc(100% - 16px)}.zds .z-doors{grid-template-columns:repeat(8,1fr);margin-top:var(--gap-tablet)}.zds .z-doors .z-tile{min-height:280px}.zds .z-doors .z-tile__title{font-size:28px}.zds .z-doors .z-tile__inner{padding:var(--space-8)}}@media(min-width:1024px){.zds .z-hero{padding-top:132px;gap:64px}.zds .z-doors{grid-template-columns:repeat(12,1fr);margin-top:var(--gap-desktop)}}.zds .z-forest{background:var(--scene-forest);color:var(--on-scene-forest)}.zds .z-forest .z-lead{color:var(--on-scene-forest-2)}.zds .z-split{display:grid;gap:32px;align-items:center}.zds .z-forest .z-sh{margin:0}@media(min-width:1024px){.zds .z-split{grid-template-columns:6fr 6fr;gap:48px}}.zds .z-closing{background:var(--gradient-mint);color:var(--on-scene-mint)}.zds .z-close-h{margin-bottom:0}

/* Visningene: dashbord (fra forhåndsvisningen) */
.zds .dash{display:grid;grid-template-columns:minmax(0,1fr);min-height:max(1060px,100vh);background:var(--ground)}.zds .dash-side{min-width:0;background:var(--surface);padding:12px 16px;box-shadow:inset 0 -1px 0 var(--line)}.zds .dash-logo{display:inline-flex;color:var(--logo);padding:8px}.zds .dash-nav{display:flex;gap:4px;overflow-x:auto;margin-top:8px;scrollbar-width:none}.zds .dash-item{flex:none;display:flex;align-items:center;gap:10px;height:44px;padding:0 12px;border:0;border-radius:var(--radius-md);background:transparent;color:var(--ink-2);font-family:var(--font-text);font-size:15px;font-weight:500;cursor:pointer;transition:background-color var(--dur-fast) var(--ease-out),color var(--dur-fast) var(--ease-out)}.zds .dash-item:hover{background:var(--surface-hover);color:var(--ink)}.zds .dash-item.on{background:var(--accent-soft);color:var(--on-accent-soft);font-weight:600}.zds .dash-main{padding:20px;display:grid;gap:24px;align-content:start;min-width:0}.zds .dash-head{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:flex-start}.zds .dash-body{display:grid;gap:24px;min-width:0}.zds .dash-work{display:grid;gap:24px;min-width:0;align-content:start}.zds .dash-rail{display:grid;gap:16px;align-content:start}.zds .dash-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.zds .dash-open{margin-top:16px;width:100%}.zds .dash-stat{background:var(--surface);border-radius:var(--radius-xl);padding:16px 20px;box-shadow:var(--shadow-1);animation:zds-rise var(--dur-slow) var(--ease-out) both}@keyframes zds-rise{from{opacity:0;transform:translateY(8px)}}.zds .dash-grid{position:relative;display:grid;grid-template-columns:44px repeat(3,minmax(0,1fr));grid-template-rows:28px repeat(32,22px);column-gap:6px;background:var(--surface);border-radius:var(--radius-xl);padding:12px 12px 12px 8px;box-shadow:var(--shadow-1)}.zds .dash-col-h{margin:0;font-size:14px;font-weight:600;font-family:var(--font-text)}.zds .dash-hour{grid-column:1;font-size:12px;line-height:1;color:var(--ink-3)}.zds .dash-rule{grid-column:2 / -1;height:1px;background:var(--line)}.zds .dash-grid .z-event{position:relative;z-index:1;padding:5px 8px;align-content:start}.zds .dash-now{grid-column:2 / -1;height:2px;background:var(--accent);z-index:0}.zds .dash .z-tabs__panel{display:none}.zds .dash .z-table th,.zds .dash .z-table td{padding-inline:var(--space-3)}@media(min-width:1024px){.zds .dash{grid-template-columns:var(--sidebar) minmax(0,1fr)}.zds .dash-side{box-shadow:inset -1px 0 0 var(--line);padding:16px}.zds .dash-nav{flex-direction:column;margin-top:16px}.zds .dash-main{padding:32px}.zds .dash-grid{column-gap:8px;padding:16px}}@media(min-width:1180px){.zds .dash-body{grid-template-columns:minmax(0,1fr) 320px}}

/* Plus Jakarta Sans har et smalt mellomrom, og den stramme sporingen (-.02 til -.05em) som var
   stilt for Geologica klistret ordene sammen. word-spacing i em regnes ut der den deklareres og
   arves som en fast lengde, så den settes per element og ikke bare på rota. */
.zds, .zds * { word-spacing: .06em; }
.zds :is(h1, h2, h3, h4, .zf-tw, .zf-ordt__t, .zf-del__lead, .zm-hero__t, .zm-blokk__t, .zm-rad__navn) { word-spacing: .14em; }
