/* Forsiden (4. okt 2026). Appens palett, nattblå/isblå fra src/app-palette.css
   (hard regel 13), i lys OG mørk modus etter systemvalget. Inter er selvhostet i
   /fonts (latin + latin-ext, OFL) og lastes aldri fra Google. Alt er avgrenset
   til .launch-page, så tester-sidene og de juridiske sidene står urørt. */

@font-face {
  font-family: "Inter Trolda";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Trolda";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.launch-page {
  /* lys (appens lyse tema) */
  --bg: #f3f6f8;
  --paper: #ffffff;
  --soft: #e6f1f6;
  --raise: #e4edf2;
  --ink: #10212e;
  --muted: #566a78;
  --line: #dbe3e8;
  --accent: #1d6e8f;
  --accent-text: #1b6685;
  --btn: #173247;
  --btn-ink: #ffffff;
  --btn-hover: #21445e;
  --chip: #e6f1f6;
  --chip-ink: #1b6685;
  --calc: #e4edf2;
  --calc-ink: #405b64;
  --bezel: #0b141d;
  --sel: rgba(29, 110, 143, .22);
  --scroll: #b9c7d0;
  --shadow: 0 1px 2px rgba(16, 33, 46, .06), 0 8px 24px rgba(16, 33, 46, .07);
  /* nattflatene (meny, hero, avslutning) er like i begge temaer */
  --night: #101e2b;
  --night-veil: rgba(16, 30, 43, .92);
  --night-veil-soft: rgba(16, 30, 43, .55);
  --night-line: rgba(240, 245, 247, .14);
  --hero-ink: #f0f5f7;
  --hero-muted: #b9c9d3;
  --hero-line: rgba(240, 245, 247, .3);
  --ice: #a9dbef;
  --ice-hover: #c4e9f8;
  --ice-ink: #142c3d;
  --font: "Inter Trolda", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 56px;
  --sec: clamp(56px, 7vw, 96px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--scroll) var(--bg);
  caret-color: var(--accent);
  accent-color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  .launch-page {
    --bg: #101e2b;
    --paper: #172937;
    --soft: #1b3345;
    --raise: #192e3f;
    --ink: #f0f5f7;
    --muted: #9badb9;
    --line: #2b3d4b;
    --accent: #a9dbef;
    --accent-text: #a9dbef;
    --btn: #a9dbef;
    --btn-ink: #142c3d;
    --btn-hover: #c4e9f8;
    --chip: #243d4e;
    --chip-ink: #b2d9e9;
    --calc: #22323f;
    --calc-ink: #9badb9;
    --bezel: #050b10;
    --sel: rgba(169, 219, 239, .28);
    --scroll: #3a5163;
    --shadow: none;
    color-scheme: dark;
  }
}
.launch-page ::selection { background: var(--sel); color: var(--ink); }
.launch-page *, .launch-page *::before, .launch-page *::after { box-sizing: border-box; }
.launch-page h1, .launch-page h2, .launch-page h3, .launch-page p, .launch-page figure, .launch-page ul, .launch-page ol { margin: 0; }
.launch-page h1, .launch-page h2, .launch-page h3 { font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.launch-page p { text-wrap: pretty; }
.launch-page a { color: inherit; text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.launch-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.launch-page img { display: block; max-width: 100%; height: auto; }
.launch-page .wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.launch-page .icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.launch-page .skip-link { background: var(--ice); color: var(--ice-ink); border-radius: 0 0 12px 12px; font-weight: 600; }

/* ---------- Knapper ---------- */
.launch-page .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; cursor: pointer;
  font: 600 15px/1.2 var(--font); text-align: center; text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.launch-page .btn:active { transform: scale(.97); }
.launch-page .btn svg { width: 17px; height: 17px; flex: none; }
.launch-page .btn-light { background: var(--ice); color: var(--ice-ink); }
.launch-page .btn-outline { background: transparent; color: var(--hero-ink); border: 1px solid var(--hero-line); }
.launch-page .btn-ink { background: var(--btn); color: var(--btn-ink); }
@media (hover: hover) and (pointer: fine) {
  .launch-page .btn-light:hover { background: var(--ice-hover); }
  .launch-page .btn-outline:hover { background: var(--night-veil-soft); }
  .launch-page .btn-ink:hover { background: var(--btn-hover); }
  .launch-page .nav-links a:hover, .launch-page .footer a:hover { color: var(--ice); text-decoration: underline; }
  .launch-page .footer a:hover { color: var(--accent-text); }
  .launch-page .faq summary:hover { color: var(--accent-text); }
}

/* ---------- Toppmeny (partials/header.html) ---------- */
.launch-page .site-nav { background: var(--night); border-bottom: 1px solid var(--night-line); color: var(--hero-ink); }
.launch-page .nav-inner { min-height: 76px; gap: 28px; }
.launch-page .logo { display: inline-flex; align-items: center; min-height: 44px; }
.launch-page .logo img { width: 132px; filter: invert(1); }
.launch-page .nav-links { font-size: 14px; font-weight: 500; color: var(--hero-muted); gap: 26px; }
.launch-page .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.launch-page .nav-actions { gap: 12px; }
.launch-page .nav-download {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--ice); color: var(--ice-ink); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.launch-page .language-picker { color: var(--hero-muted); }
.launch-page .language-picker:focus-within { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 8px; }
.launch-page .menu-button { width: 44px; height: 44px; color: var(--hero-ink); border: 1px solid var(--hero-line); border-radius: 12px; }

/* ---------- Hero ---------- */
.launch-page .hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--hero-ink); background: var(--night);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: end;
  padding: clamp(48px, 7vw, 96px) max(var(--gutter), (100% - 1240px) / 2) 0;
}
.launch-page .hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--night-veil) 0%, var(--night-veil) 38%, var(--night-veil-soft) 100%), url("/img/skog-blatime.webp") 70% center / cover no-repeat;
}
.launch-page .hero-copy { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: clamp(56px, 7vw, 96px); }
.launch-page .hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.035em; max-width: 15ch; text-wrap: pretty; overflow-wrap: break-word; }
.launch-page .hero h1 span { color: var(--ice); }
.launch-page .hero-sub { font-size: 18px; line-height: 1.6; color: var(--hero-muted); max-width: 46ch; }
.launch-page .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.launch-page .hero-fine { font-size: 14px; color: var(--hero-muted); max-width: 52ch; }
.launch-page .hero-fine b { color: var(--hero-ink); font-weight: 600; }
.launch-page .phone {
  border-radius: 40px; padding: 8px; background: var(--bezel);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.launch-page .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; }
.launch-page .hero-phones { position: relative; height: 560px; }
.launch-page .hero-phones .phone { position: absolute; width: 268px; aspect-ratio: 540 / 1169; }
.launch-page .phone-front { left: 4%; bottom: -36px; z-index: 2; }
.launch-page .phone-back { right: 2%; bottom: -100px; width: 244px; rotate: 4deg; }
@media (prefers-reduced-motion: no-preference) {
  .launch-page .phone-front { animation: troldaRise 900ms var(--ease-out) both; }
  .launch-page .phone-back { animation: troldaSettle 1100ms 140ms var(--ease-out) both; }
}
@keyframes troldaRise { from { translate: 0 36px; } to { translate: 0 0; } }
@keyframes troldaSettle { from { translate: -40px 56px; rotate: -2deg; } to { translate: 0 0; rotate: 4deg; } }

/* ---------- Støttes sykkelen? (motorlista fra shared/motors.mjs) ---------- */
.launch-page .motors { padding-block: var(--sec) calc(var(--sec) * .6); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.launch-page .motors h2, .launch-page .split h2, .launch-page .bento-head h2, .launch-page .start h2, .launch-page .faq h2, .launch-page .closing h2 {
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -0.03em;
}
.launch-page .compat-copy { display: grid; gap: 14px; }
.launch-page .compat-copy p { color: var(--muted); font-size: 17px; max-width: 44ch; }
.launch-page .compat-tool { display: grid; gap: 22px; min-width: 0; }
.launch-page .compat-search { display: grid; gap: 10px; }
.launch-page .compat-search label { font-size: 14px; font-weight: 600; }
.launch-page .search-row { display: flex; gap: 10px; }
.launch-page .compat-search input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 14px;
  font: 500 16px var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line);
}
.launch-page .compat-search input::placeholder { color: var(--muted); }
.launch-page .compat-search .btn { min-height: 52px; }
.launch-page .motor-columns { display: grid; gap: 22px; }
.launch-page .motor-column h3 { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 10px; }
.launch-page .motor-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.launch-page .motor { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.launch-page .motor-check { width: 16px; height: 16px; flex: none; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.launch-page .motor-badge { font-size: 12px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.launch-page .motor-note, .launch-page .compat-fallback { font-size: 14px; color: var(--muted); margin-top: 10px; }
.launch-page .compat-fallback { margin-top: 0; }

/* ---------- Turskjermen ---------- */
.launch-page .split { padding-block: calc(var(--sec) * .6) var(--sec); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.launch-page .phone-solo { width: min(300px, 100%); aspect-ratio: 540 / 1169; margin-inline: auto; }
.launch-page .split-copy { display: grid; gap: 24px; }
.launch-page .split .lead { font-size: 18px; color: var(--muted); max-width: 46ch; }
.launch-page .points { list-style: none; padding: 0; display: grid; gap: 18px; }
.launch-page .points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.launch-page .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--accent-text); display: grid; place-items: center; }
.launch-page .ico svg { width: 18px; height: 18px; }
.launch-page .points h3 { font-size: 16px; font-weight: 600; letter-spacing: 0; margin-bottom: 2px; }
.launch-page .points p { color: var(--muted); font-size: 15px; }

/* ---------- Mellom turene ---------- */
.launch-page .bento-wrap { padding-bottom: var(--sec); display: grid; gap: 28px; }
.launch-page .bento-head { display: grid; gap: 10px; max-width: 48ch; }
.launch-page .bento-head p { color: var(--muted); }
.launch-page .bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 350px 350px; gap: 16px; }
.launch-page .tile {
  overflow: hidden; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 24px 24px 0; display: grid; grid-template-rows: auto 1fr; gap: 14px; min-width: 0;
}
.launch-page .tile h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.launch-page .tile p { font-size: 14px; color: var(--muted); margin-top: 4px; max-width: 36ch; }
.launch-page .shot { width: 78%; height: 100%; min-height: 0; justify-self: center; align-self: end; overflow: hidden; border: 6px solid var(--bezel); border-bottom: 0; border-radius: 26px 26px 0 0; }
.launch-page .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.launch-page .tile-map { grid-row: span 2; }
.launch-page .tile-map .shot { width: 86%; }
.launch-page .tile-battery .shot img { object-position: center 14%; }
.launch-page .tile-motor .shot img { object-position: center 10%; }
.launch-page .tile-report { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); grid-template-rows: 1fr; padding: 28px 24px 0 30px; background: var(--soft); border-color: transparent; }
.launch-page .tile-text { align-self: center; padding-bottom: 28px; display: grid; gap: 12px; }
.launch-page .tile-report h3 { font-size: 24px; }
.launch-page .tile-report p { font-size: 15px; max-width: 40ch; }
.launch-page .tile-report .shot { width: 70%; }
.launch-page .source-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.launch-page .source-tags span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--chip-ink); }
.launch-page .source-tags span.calc { background: var(--calc); color: var(--calc-ink); }
.launch-page .example-note { font-size: 13px; color: var(--muted); }

/* ---------- Tre steg ---------- */
.launch-page .start { background: var(--raise); padding-block: var(--sec); }
.launch-page .start .wrap { display: grid; gap: 34px; }
.launch-page .steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.launch-page .steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.launch-page .steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--accent-text); font-weight: 650; font-variant-numeric: tabular-nums;
}
.launch-page .steps h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.launch-page .steps p { color: var(--muted); font-size: 15px; }

/* ---------- Spørsmål ---------- */
.launch-page .faq { padding-block: var(--sec); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.launch-page .faq details { border-top: 1px solid var(--line); }
.launch-page .faq details:last-child { border-bottom: 1px solid var(--line); }
.launch-page .faq summary {
  list-style: none; cursor: pointer; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 17px; font-weight: 600; padding-block: 14px; transition: color 160ms var(--ease-out);
}
.launch-page .faq summary::-webkit-details-marker { display: none; }
/* site.css gir alle summary et «+» i ::after; forsiden har sitt eget ikon (svg) */
.launch-page .faq summary::after { content: none; }
.launch-page .faq summary svg { width: 18px; height: 18px; flex: none; color: var(--accent-text); transition: rotate 200ms var(--ease-out); }
.launch-page .faq details[open] summary svg { rotate: 45deg; }
.launch-page .faq details p { color: var(--muted); padding-bottom: 20px; max-width: 62ch; }

/* ---------- Avslutning ---------- */
.launch-page .closing {
  color: var(--hero-ink); text-align: center; padding-block: calc(var(--sec) * 1.2);
  background: linear-gradient(var(--night-veil), var(--night-veil-soft) 60%, var(--night-veil)), url("/img/skog-blatime.webp") 30% 60% / cover no-repeat var(--night);
}
.launch-page .closing .wrap { display: grid; gap: 18px; justify-items: center; }
.launch-page .closing p { color: var(--hero-muted); max-width: 48ch; }
.launch-page .closing .btn { min-height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- Bunntekst (partials/footer.html) ---------- */
.launch-page .footer { color: var(--muted); font-size: 14px; padding-block: 40px 28px; }
.launch-page .footer-brand > a { display: inline-flex; align-items: center; min-height: 44px; }
.launch-page .footer-brand img { width: 120px; }
@media (prefers-color-scheme: dark) { .launch-page .footer-brand img { filter: invert(1); } }
.launch-page .footer-brand p { font-size: 13px; }
.launch-page .footer nav a, .launch-page .footer-bottom a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.launch-page .footer-bottom { border-color: var(--line); font-size: 13px; }

/* ---------- Bredder ---------- */
@media (max-width: 1150px) { .launch-page { --gutter: 36px; } }
@media (max-width: 1000px) {
  .launch-page .nav-inner { min-height: 72px; }
  .launch-page .site-nav.menu-ready .nav-links.open { display: flex; }
  .launch-page .nav-links a { border-top: 1px solid var(--night-line); }
  .launch-page .hero, .launch-page .motors, .launch-page .split, .launch-page .faq { grid-template-columns: minmax(0, 1fr); }
  .launch-page .hero-copy { padding-bottom: 8px; }
  .launch-page .hero-phones { height: 460px; }
  .launch-page .hero-phones .phone { width: 220px; }
  .launch-page .phone-front { left: 6%; bottom: -40px; }
  .launch-page .phone-back { width: 200px; right: 4%; bottom: -96px; }
  .launch-page .bento { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 380px; }
  .launch-page .tile-map { grid-row: span 1; }
  .launch-page .tile-report { grid-column: span 1; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; padding: 26px 24px 0; }
  .launch-page .tile-text { padding-bottom: 0; }
  .launch-page .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .launch-page { --gutter: 22px; }
  .launch-page .hero h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .launch-page .hero-phones { height: 400px; }
  .launch-page .phone-back { display: none; }
  .launch-page .phone-front { left: calc(50% - 110px); }
  .launch-page .search-row { flex-direction: column; }
  .launch-page .split > .phone-solo { display: none; }
  .launch-page .closing .btn { width: 100%; }
}
@media (max-width: 560px) {
  /* Hero-knappen står rett under; i en smal meny presset den logoen ned på egen linje. */
  .launch-page .nav-download { display: none; }
}
@media (max-width: 370px) {
  .launch-page { --gutter: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-page .btn, .launch-page .faq summary, .launch-page .faq summary svg { transition: none; }
  .launch-page .btn:active { transform: none; }
}
