/*
  Startup Simulator, nettstilark
  Ett selvstendig stilark: tokens som CSS variabler, fonter, grunntypografi og komponentene
  (knapper, piller, dagkort, program, seksjoner, toppbilde, avsender, bunntekst).
  Klassene starter med ss-. Sett class="ss-page" på <body> (eller en wrapper).
  Mørk seksjon: data-theme="mork" på elementet. Lys flate (periwinkle, relieffet): legg til ss-on-light.
  Toppbilde: --ss-hero-image: url('bg-web-hero.webp') på .ss-hero.
  Verdiene kommer fra tokens.json i designsystemet. Endre dem der, ikke her.
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Schibsted+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- tokens ---------- */
:root, [data-theme="lys"] {
  --gc-navy: #061150;
  --gc-blue: #4451fc;
  --gc-orange: #f28b3f;
  --gc-peri: #c2cdff;
  --gc-cream: #fff4ef;
  --gc-navy-2: #23395d;
  --gc-navy-3: #1d3358;
  --gc-white: #ffffff;
  --clay-relief: #bcc6f6;
  --clay-relief-ground: #b9c3f2;
  --clay-shadow: #141a5c;
  --clay-blue: #4451fc;
  --clay-orange: #f28b3f;
  --clay-navy: #0a1660;
  --clay-peri: #b9c4fa;
  --clay-peri-dark: #8f9df2;
  --clay-cream: #ecdcd2;
  --clay-cream-light: #f6e9e0;
  --surface: var(--gc-cream);
  --surface-raised: var(--gc-white);
  --surface-peri: var(--gc-peri);
  --surface-relief: var(--clay-relief-ground);
  --surface-inverse: var(--gc-navy);
  --ink: var(--gc-navy);
  --ink-soft: #2a3470;
  --ink-accent: #2a33b8;
  --ink-inverse: var(--gc-cream);
  --ink-on-light: var(--gc-navy);
  --ink-soft-on-light: #1c2870;
  --ink-accent-on-light: #2a33b8;
  --o-blue: var(--gc-blue);
  --action: var(--gc-blue);
  --action-hover: #3441e6;
  --on-action: var(--gc-cream);
  --accent: var(--gc-orange);
  --on-accent: var(--gc-navy);
  --contrast-button: var(--gc-navy);
  --on-contrast-button: var(--gc-cream);
  --pill-fill: rgba(6, 17, 80, 0.08);
  --line: rgba(6, 17, 80, 0.16);
  --line-strong: var(--gc-navy);
  --focus: var(--gc-navy);
  --shadow-clay: 0 22px 40px -22px rgba(20, 26, 92, 0.45), 0 2px 6px rgba(20, 26, 92, 0.10);
  --shadow-none: none;
  --focus-ring: 0 0 0 2px #fff4ef, 0 0 0 4px #061150;
}

[data-theme="mork"] {
  --surface: var(--gc-navy);
  --surface-raised: var(--gc-navy-3);
  --surface-peri: var(--gc-peri);
  --surface-relief: var(--clay-relief-ground);
  --surface-inverse: var(--gc-cream);
  --ink: var(--gc-cream);
  --ink-soft: #c9cfee;
  --ink-accent: var(--gc-peri);
  --ink-inverse: var(--gc-navy);
  --ink-on-light: var(--gc-navy);
  --o-blue: var(--gc-blue);
  --action: var(--gc-blue);
  --on-action: var(--gc-cream);
  --accent: var(--gc-orange);
  --on-accent: var(--gc-navy);
  --contrast-button: var(--gc-cream);
  --on-contrast-button: var(--gc-navy);
  --pill-fill: rgba(194, 205, 255, 0.14);
  --line: rgba(194, 205, 255, 0.22);
  --line-strong: var(--gc-peri);
  --focus: var(--gc-peri);
  --shadow-clay: 0 22px 40px -20px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.25);
  --focus-ring: 0 0 0 2px #061150, 0 0 0 4px #c2cdff;
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --radius-sm: 8px;
  --radius-slide: 12px;
  --radius-card: 24px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --slide-width: 1920px;
  --slide-height: 1080px;
  --slide-margin: 115px;
  --slide-text-zone: 883px;
  --content-max: 1200px;
  --text-max: 62ch;
  --gutter: 16px;
  --font-display: Poppins, 'Segoe UI', Arial, sans-serif;
  --font-body: Poppins, 'Segoe UI', Arial, sans-serif;
  --font-small: 'Schibsted Grotesk', 'Segoe UI', Arial, sans-serif;
}

/* ---------- grunnmur ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ss-btn { transition: none; } }
.ss-page { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(.ss-page) img { max-width: 100%; height: auto; }
:where(.ss-page) a { color: inherit; }
.ss-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 10; }
.ss-skip:focus { top: var(--space-4); }
.ss-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- base ---------- */
.ss-page { background: var(--surface); color: var(--ink); }
.ss-page *, .ss-page *::before, .ss-page *::after { box-sizing: border-box; }
:where(.ss-page) h1, :where(.ss-page) h2, :where(.ss-page) h3, :where(.ss-page) p { margin: 0; }

/* Light ground inside any theme: periwinkle and the relief always take navy text. */
.ss-on-light {
  --ink: var(--ink-on-light);
  --ink-soft: var(--ink-soft-on-light);
  --ink-accent: var(--ink-accent-on-light);
  --pill-fill: rgba(6, 17, 80, 0.08);
  --line: rgba(6, 17, 80, 0.16);
  --line-strong: var(--gc-navy);
  --focus: var(--gc-navy);
  --contrast-button: var(--gc-navy);
  --on-contrast-button: var(--gc-cream);
  --focus-ring: 0 0 0 2px var(--gc-peri), 0 0 0 4px var(--gc-navy);
  color: var(--ink);
}

/* ---------- type helpers (sentence case everywhere except the wordmark) ---------- */
.ss-h1, .ss-h2, .ss-h3, .ss-lead, .ss-body, .ss-kicker, .ss-data, .ss-small, .ss-sender, .ss-day__title, .ss-day__text, .ss-day__meta { margin: 0; }
.ss-h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6.4vw, 72px); line-height: 0.98; letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.ss-h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.0; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.ss-h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
.ss-lead { font-family: var(--font-body); font-weight: 400; font-size: 20px; line-height: 1.45; color: var(--ink-soft); max-width: 34ch; }
.ss-body { font-family: var(--font-body); font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: var(--text-max); }
.ss-kicker { font-family: var(--font-small); font-weight: 600; font-size: 16px; line-height: 1.2; color: var(--ink-accent); }
.ss-data { font-family: var(--font-small); font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ss-small { font-family: var(--font-small); font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.ss-link { color: var(--ink-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ss-link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

/* ---------- image slots: a real PNG when filled, the flat version until then ---------- */
.ss-slot { position: relative; display: block; }
.ss-slot > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ss-slot > img[src^="data:image/gif"], .ss-slot > img:not([src]) { display: none; }
.ss-slot > img[src]:not([src^="data:image/gif"]) ~ .ss-slot__flat { display: none; }
.ss-slot__flat { display: block; width: 100%; height: 100%; }

/* ---------- wordmark (flat): STARTUP over SIMULATOR, the O a plain blue circle ---------- */
.ss-wordmark { display: inline-block; font-family: var(--font-display); font-weight: 900; font-size: var(--ss-wm-size, 64px); line-height: 0.84; letter-spacing: -0.045em; text-transform: uppercase; color: var(--ink); width: max-content; }
.ss-wordmark__line { display: block; white-space: nowrap; }
.ss-wordmark__o { display: inline-block; position: relative; width: 0.7em; height: 0.7em; margin: 0 0.13em 0 0.11em; vertical-align: baseline; border-radius: var(--radius-round); background: var(--o-blue); }
.ss-wordmark__o > img { position: absolute; left: 50%; bottom: -0.13em; height: 0.98em; width: auto; transform: translateX(-50%); }
.ss-wordmark__o:has(> img[src]:not([src^="data:image/gif"])) { background: none; }
.ss-wordmark__o > img[src^="data:image/gif"] { display: none; }

/* ---------- mark (flat): S plus a plain blue circle ---------- */
.ss-mark { display: inline-block; width: var(--ss-mark-size, 64px); height: var(--ss-mark-size, 64px); color: var(--ink); }
.ss-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---------- buttons ---------- */
.ss-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-pill); border: 2px solid transparent; font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 120ms ease, color 120ms ease; }
.ss-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ss-btn--primary { background: var(--action); color: var(--on-action); }
.ss-btn--primary:hover { background: var(--action-hover); }
.ss-btn--accent { background: var(--accent); color: var(--on-accent); }
.ss-btn--accent:hover { background: #e07a2c; }
.ss-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ss-btn--secondary:hover { background: var(--pill-fill); }
.ss-btn--contrast { background: var(--contrast-button); color: var(--on-contrast-button); }
.ss-btn--small { min-height: 40px; padding: 0 var(--space-4); font-size: 15px; }
.ss-btn[aria-disabled="true"], .ss-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ss-btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------- pills and tags (sentence case) ---------- */
.ss-pill { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 30px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--pill-fill); color: var(--ink); font-family: var(--font-small); font-weight: 700; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.ss-pill--blue { background: var(--o-blue); color: var(--on-action); }
.ss-pill--orange { background: var(--accent); color: var(--on-accent); }
.ss-pill--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ss-pill__dot { width: 9px; height: 9px; border-radius: var(--radius-round); background: var(--o-blue); flex: none; }
.ss-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- day card (Dag 1 to 3) ---------- */
.ss-day { position: relative; display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6); border-radius: var(--radius-card); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-clay); min-width: 0; }
.ss-day__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ss-day__o { width: 56px; height: 56px; flex: none; }
.ss-day__o > img { object-fit: contain; }
.ss-day__o .ss-slot__flat { border-radius: var(--radius-round); background: var(--o-blue); width: 34px; height: 34px; margin: 11px; }
.ss-day__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.08; letter-spacing: -0.02em; margin: var(--space-2) 0 0; }
.ss-day__text { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.ss-day__meta { font-family: var(--font-small); font-weight: 500; font-size: 15px; color: var(--ink-soft); padding-top: var(--space-3); border-top: 1px solid var(--line); margin-top: var(--space-2); }
.ss-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 820px) { .ss-days { grid-template-columns: minmax(0, 1fr); } }

/* ---------- program list (agenda) ---------- */
.ss-program { list-style: none; margin: 0; padding: 0; display: grid; }
.ss-program li { display: grid; grid-template-columns: 76px 1fr; gap: 2px var(--space-4); align-items: baseline; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.ss-program li:last-child { border-bottom: 0; }
.ss-program .ss-pill { grid-row: span 2; justify-content: center; }
.ss-program__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; }
.ss-program__when { font-family: var(--font-small); font-weight: 500; font-size: 15px; color: var(--ink-soft); }

/* ---------- section (website) ---------- */
.ss-section { position: relative; overflow: hidden; background: var(--surface); color: var(--ink); padding: var(--space-24) var(--space-6); }
.ss-section--peri { background: var(--surface-peri); }
.ss-section--relief { background: var(--surface-relief); }
.ss-section__inner { position: relative; z-index: 1; max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.ss-section__head { display: grid; gap: var(--space-3); max-width: 640px; }
.ss-section__art { position: absolute; right: -2%; bottom: 0; width: min(46%, 520px); z-index: 0; pointer-events: none; }
@media (max-width: 720px) { .ss-section { padding: var(--space-12) var(--space-4); } .ss-section__art { position: relative; right: auto; width: 80%; margin: var(--space-8) 0 0 auto; } }

/* ---------- web nav and hero ---------- */
.ss-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-width: 0; }
.ss-nav__links { display: flex; align-items: center; gap: var(--space-6); font-family: var(--font-small); font-weight: 500; font-size: 15px; }
.ss-nav__links a:not(.ss-btn) { color: var(--ink); text-decoration: none; }
.ss-nav__links a:not(.ss-btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.ss-hero { --ss-hero-image: none; position: relative; overflow: hidden; background-color: var(--surface-relief); background-image: var(--ss-hero-image); background-size: cover; background-position: right center; color: var(--ink); padding: var(--space-8) var(--space-6) var(--space-32); min-height: 640px; }
.ss-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ss-hero__inner { position: relative; z-index: 1; max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
.ss-hero__text { display: grid; gap: var(--space-6); max-width: 600px; }
.ss-hero__text .ss-lead { max-width: 36ch; }
@media (max-width: 720px) {
  .ss-hero { padding: var(--space-6) var(--space-4) var(--space-16); min-height: 0; background-position: 70% bottom; }
  .ss-hero__inner { gap: var(--space-12); }
  .ss-hero { padding-bottom: 300px; background-size: auto 300px; background-position: right bottom; }
  .ss-hero__bg { top: auto; height: 300px; }
}

/* ---------- sender ---------- */
.ss-sender { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); font-family: var(--font-small); font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.ss-sender b { font-weight: 600; color: var(--ink); }
.ss-sender__logo { height: 28px; width: auto; display: block; }
.ss-sender__logo[src^="data:image/gif"] { display: none; }
.ss-sender__sep { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- footer (website) ---------- */
.ss-footer { background: var(--surface-inverse); color: var(--ink-inverse); padding: var(--space-16) var(--space-6); }
.ss-footer__inner { max-width: var(--content-max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8); align-items: end; }

/* ---------- 16:9 slide (scales with its own width) ---------- */
.ss-slide { position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-slide); background: var(--surface-relief); color: var(--ink); }
.ss-slide--navy { background: var(--gc-navy); }
.ss-slide__bg { position: absolute; inset: 0; z-index: 0; }
.ss-slide__bg .ss-slot__flat svg { display: block; width: 100%; height: 100%; }
.ss-slide__zone { position: absolute; left: 6cqw; top: 6.2cqw; width: 46cqw; z-index: 2; }
.ss-slide__kicker { font: 600 1.6cqw/1.2 var(--font-small); color: var(--ink-accent); margin: 0; }
.ss-slide__title { font: 800 5.3cqw/0.98 var(--font-display); letter-spacing: -0.04em; margin: 1.5cqw 0 0; color: var(--ink); }
.ss-slide__lead { font: 400 1.85cqw/1.42 var(--font-body); color: var(--ink-soft); margin: 1.8cqw 0 0; max-width: 31ch; }
.ss-slide__wm { --ss-wm-size: 7cqw; margin-top: 2.2cqw; }
.ss-slide__number { font: 900 17cqw/0.86 var(--font-display); letter-spacing: -0.05em; margin: 1.6cqw 0 0; color: var(--ink); }
.ss-slide__list { list-style: none; margin: 3cqw 0 0; padding: 0; display: grid; gap: 1.5cqw; }
.ss-slide__list li { display: grid; grid-template-columns: 7.6cqw 1fr; align-items: baseline; gap: 0 1.4cqw; padding-bottom: 1.4cqw; border-bottom: 0.12cqw solid var(--line); }
.ss-slide__list li:last-child { border-bottom: 0; }
.ss-slide__list b { font: 700 1.5cqw/1 var(--font-small); background: var(--pill-fill); border-radius: var(--radius-pill); padding: 0.6cqw 1cqw; text-align: center; grid-row: span 2; }
.ss-slide__list em { font: 700 2.5cqw/1.05 var(--font-display); font-style: normal; letter-spacing: -0.025em; }
.ss-slide__list span { font: 500 1.45cqw/1.3 var(--font-small); color: var(--ink-soft); }
.ss-slide__cta { display: inline-block; margin-top: 2.6cqw; font: 600 1.6cqw/1 var(--font-body); padding: 1.2cqw 2.2cqw; border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); }
.ss-slide__foot { position: absolute; left: 6cqw; bottom: 4.2cqw; z-index: 2; display: flex; gap: 1.8cqw; align-items: center; font: 500 1.3cqw/1 var(--font-small); color: var(--ink-soft); }
.ss-slide__foot .ss-wordmark { --ss-wm-size: 1.5cqw; }
.ss-slide__tag { position: absolute; right: 2cqw; top: 2cqw; z-index: 3; font: 600 1.2cqw/1 var(--font-small); background: var(--surface-raised); color: var(--ink); padding: 0.6cqw 1cqw; border-radius: var(--radius-pill); }
.ss-sender__logo[src]:not([src^="data:image/gif"]) + b { display: none; }

/* ---------- bunntekst ---------- */
.ss-footer { box-shadow: inset 0 1px 0 rgba(194, 205, 255, 0.22); }
.ss-footer .ss-wordmark { --ss-wm-size: 28px; color: var(--ink-inverse); }
.ss-footer .ss-sender { color: var(--ink-inverse); }
.ss-footer .ss-sender b { color: var(--ink-inverse); }
.ss-footer .ss-sender__sep { background: currentColor; opacity: 0.4; }
.ss-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-6); font-family: var(--font-small); font-size: 15px; }
.ss-footer__links a { color: var(--ink-inverse); }
.ss-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* ---------- liten skjerm ---------- */
@media (max-width: 480px) {
  .ss-btn-row .ss-btn { flex: 1 1 100%; }
  .ss-day { padding: var(--space-4); }
  .ss-footer { padding: var(--space-12) var(--space-4); }
}
