/*
 * Samme farger som iBønn (nettsiden og appikonet), så avsenderen er gjenkjennelig.
 * Idé: et døgn i moskeen. Sola går gjennom de fem bønnetidene, og siden går fra morgen til natt.
 * Alt er komplett uten animasjon. Bevegelse ligger nederst, bak prefers-reduced-motion.
 */
:root {
  color-scheme: light;
  --navy: #0b3b4c;
  --deep: #06252f;
  --green: #1d7a52;
  --mint: #8fe0b6;
  --gold: #e2c58a;
  --soft: #c4dad3;
  --muted: #546a71;
  --gutter: max(5vw, 1.125rem);
  --cycle: 25s;
}

@font-face {
  font-family: "Geist Variable";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.25rem; background: var(--navy); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: #fff;
  color: var(--navy);
  font: 1.0625rem/1.55 "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
i, em { font-style: normal; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .top :focus-visible, .night :focus-visible, .close :focus-visible, footer :focus-visible { outline-color: var(--mint); }

.wrap {
  max-width: calc(76rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.defs { position: absolute; width: 0; height: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: 0.75rem 1rem; border-radius: 10px; background: #fff; }
.skip:focus { top: 1rem; }

/* Topp */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: max(0.75rem, env(safe-area-inset-top)) max(var(--gutter), calc((100vw - 76rem) / 2)) 0.75rem;
  background: var(--navy);
  color: #fff;
}
.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 2.25rem; }
.top nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: 0.9375rem; }
.top nav a { padding-block: 0.625rem; text-decoration: none; }
.top nav a:hover { color: var(--mint); }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.875rem;
  padding: 0 1.25rem;
  border: 2px solid var(--mint);
  border-radius: 12px;
  background: var(--mint);
  color: var(--deep);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { border-color: #fff; background: #fff; }
.button.line { border-color: rgb(255 255 255 / 0.4); background: none; color: #fff; }
.button.line:hover { border-color: var(--mint); color: var(--mint); }

/* Hero */
.hero { display: flex; flex-direction: column; background: linear-gradient(var(--navy), #14535f); color: #fff; }
.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; width: 100%; padding-top: clamp(1.75rem, 4vw, 3.5rem); }
h1 { font-size: clamp(2.375rem, 5.6vw, 4.5rem); font-weight: 750; line-height: 1.05; letter-spacing: -0.03em; }
h1 > span { display: block; }
.words { display: grid !important; padding-bottom: 0.12em; color: var(--mint); }
.words b { grid-area: 1 / 1; font-weight: inherit; opacity: 0; }
.words b:first-child { opacity: 1; }
.lead { color: #e3efeb; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.25rem; }
.soon { color: var(--gold); font-weight: 650; }
.scene { display: block; width: 100%; height: clamp(17rem, 34vw, 30rem); margin-top: -1rem; }
.sun { transform: rotate(50deg); transform-origin: 720px 480px; }
.sky { opacity: 0; }
.sky.day { opacity: 1; }
.daystrip { padding-block: 0.5rem 1.25rem; background: var(--navy); }
.daystrip ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.daystrip li { position: relative; padding-top: 0.875rem; border-top: 3px solid rgb(255 255 255 / 0.22); }
.daystrip li::before { content: ""; position: absolute; inset: -3px 0 auto; height: 3px; background: var(--gold); opacity: 0; }
.daystrip span { display: block; color: var(--soft); font-size: clamp(0.8125rem, 1.6vw, 1rem); }
.daystrip b { font-size: clamp(1.125rem, 2.6vw, 1.75rem); font-weight: 650; font-variant-numeric: tabular-nums; }
.daystrip p { margin-top: 0.875rem; color: var(--soft); font-size: 0.875rem; }

/* Felles for seksjonene */
.band { position: relative; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.light { background: #f2f5f3; }
.mint { background: #cdeedd; }
.gold { background: #f6ebd3; }
.white { background: #fff; }
h2 { max-width: 20em; font-size: clamp(1.875rem, 3.8vw, 3rem); font-weight: 720; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-size: 1.1875rem; font-weight: 680; line-height: 1.25; }
.sub { max-width: 38em; margin-top: 1rem; color: #33494f; font-size: 1.125rem; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: center; }
.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.ticks { display: grid; gap: 0.75rem; margin-top: 1.75rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before { content: ""; position: absolute; left: 0.125rem; top: 0.375rem; width: 0.8rem; height: 0.8rem; background: var(--green); rotate: 45deg; border-radius: 3px; }

/* Oversikt */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.tiles a { display: block; height: 100%; padding: 1.5rem; border-radius: 18px; background: #e1f4ea; text-decoration: none; }
.tiles li:nth-child(even) a { background: #f6ebd3; }
.tiles a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.tiles svg { display: block; width: 10rem; max-width: 100%; height: auto; margin-bottom: 1.25rem; overflow: visible; }
.tiles p { margin-top: 0.375rem; color: #33494f; }

/* Nettside og CMS */
#nettside h2 { margin-top: 1rem; }
.cms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; padding: clamp(0.875rem, 2.5vw, 2rem); border-radius: 20px; background: #e1f4ea; }
.edit { position: relative; z-index: 1; display: grid; gap: 0.75rem; margin-right: -1.25rem; padding: 1.25rem; border-radius: 16px; background: var(--navy); color: #fff; }
.edit .bar { display: flex; align-items: center; gap: 0.5rem; font-weight: 680; }
.edit .bar svg { width: 2rem; height: 2rem; }
.edit span { display: block; margin-bottom: 0.25rem; color: var(--soft); font-size: 0.875rem; }
.edit b { display: block; padding: 0.5rem 0.75rem; border-radius: 9px; background: #fff; color: var(--navy); font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.publish { display: inline-flex; align-items: center; justify-self: start; gap: 0.375rem; padding: 0.375rem 0.75rem; border-radius: 9px; background: var(--mint); color: var(--deep); font-size: 0.9375rem; font-weight: 680; }
.publish svg { width: 1.125rem; height: 1.125rem; }
.site { overflow: clip; border-radius: 16px; background: #fff; color: var(--navy); }
.site .dots { display: flex; gap: 0.375rem; padding: 0.75rem 1rem; background: #f2f5f3; }
.dots i { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: #8ecbb0; }
.site > svg { display: block; width: 100%; height: auto; padding: 1rem 1.5rem 0; background: linear-gradient(#14535f, #7fb39c); }
.news { padding: 1rem 1.25rem 0.75rem 2rem; font-size: 0.9375rem; line-height: 1.45; }
.news b { display: block; font-size: 1.125rem; font-weight: 700; }
.times { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0.75rem 1.25rem 1rem 2rem; background: #f6ebd3; font-size: 0.875rem; }
.times b { font-variant-numeric: tabular-nums; }

/* Innboks */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.75rem; }
.flow h3 { margin-top: 1.25rem; }
.flow li > p { margin-top: 0.375rem; color: #33494f; font-size: 1rem; }
.mock { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; height: 14.5rem; padding: 1.125rem; border: 3px solid transparent; border-radius: 18px; background: #fff; font-size: 0.875rem; line-height: 1.35; }
.mock i { padding: 0.5rem 0.75rem; border-radius: 8px; background: #f2f5f3; }
.form b { font-size: 1rem; }
.form .tall { flex: 1; }
.form em { align-self: start; padding: 0.375rem 1rem; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 600; }
.lanes .hit { background: var(--navy); color: #fff; font-weight: 600; }
.chat i { align-self: start; max-width: 90%; border-radius: 12px 12px 12px 3px; }
.chat .note { align-self: center; background: #f6ebd3; }
.chat .us { align-self: end; border-radius: 12px 12px 3px 12px; background: #1f6f58; color: #fff; }
.done { align-items: center; text-align: center; }
.done svg { width: 4.5rem; height: 4.5rem; padding: 1rem; border-radius: 50%; background: var(--mint); }
.done b { font-size: 1.375rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 2px solid #8ecbb0; }

/* Kalender */
.week { padding: 0.5rem 1.25rem; border-radius: 20px; background: var(--navy); color: #fff; }
.week p { display: grid; grid-template-columns: 4.25rem repeat(2, minmax(0, 1fr)); gap: 0.5rem; align-items: center; min-height: 3.9rem; padding-block: 0.5rem; }
.week p + p { border-top: 1px solid rgb(255 255 255 / 0.16); }
.week span { color: var(--soft); font-size: 0.875rem; white-space: nowrap; }
.week span b { color: #fff; font-size: 1.25rem; }
.week i { padding: 0.5rem 0.75rem; border-radius: 9px; color: var(--deep); font-size: 0.875rem; font-weight: 550; line-height: 1.3; }
.c1 { background: var(--mint); }
.c2 { background: var(--gold); }
.c3 { background: var(--soft); }
.c4 { background: #fff; }
.week .clash { border: 2px dashed #f0a58b; color: #ffd3c4; }

/* Bønnetider */
.tv { position: relative; margin-bottom: 1.5rem; padding: 0.75rem; border-radius: 18px; background: #0a1a20; }
.tv::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1.5rem; height: 1.5rem; background: linear-gradient(#0a1a20 60%, #23424c 60%); clip-path: polygon(30% 0, 70% 0, 74% 60%, 100% 60%, 100% 100%, 0 100%, 0 60%, 26% 60%); }
.screen { padding: clamp(1rem, 2.4vw, 1.75rem); border-radius: 9px; background: linear-gradient(160deg, #14535f, var(--navy)); color: #fff; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
.head span { color: var(--soft); }
.screen li { display: flex; justify-content: space-between; align-items: baseline; padding: 0.375rem 0.75rem; border-radius: 9px; font-size: clamp(1.125rem, 2.1vw, 1.5rem); }
.screen li b, .jummah b { font-variant-numeric: tabular-nums; }
.jummah { display: flex; gap: 1.25rem; margin-top: 0.75rem; padding: 0.875rem 0.75rem 0; border-top: 1px solid rgb(255 255 255 / 0.25); color: var(--gold); font-size: clamp(1.0625rem, 1.8vw, 1.25rem); }
.jummah span { margin-right: auto; }

/* iBønn og IRN-appene */
.tag { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 8px; background: var(--gold); color: var(--deep); font-size: 0.9375rem; font-weight: 650; white-space: nowrap; }
.gold .tag { background: #fff; }
.tag.small { padding: 0.0625rem 0.5rem; border-radius: 6px; font-size: 0.8125rem; }
.promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.promo > svg { flex: none; width: 4rem; height: 4rem; border-radius: 15px; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.18); }
.promo { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; border-radius: 18px; background: var(--navy); color: var(--soft); text-decoration: none; }
.promo img { flex: none; width: 4rem; height: 4rem; border-radius: 15px; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.18); }
.promo > span { margin-right: auto; }
.nb { white-space: nowrap; }
.promo b { display: block; color: #fff; font-size: 1.1875rem; font-weight: 680; line-height: 1.25; }
.promo:hover b { text-decoration: underline; text-underline-offset: 4px; }
.apps { background: linear-gradient(#14535f, var(--navy)); color: #fff; }
.apps :focus-visible { outline-color: var(--mint); }
.apps h2 { margin-top: 1rem; }
.apps .sub { color: #e3efeb; }
.appintro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.ibonn { display: flex; align-items: center; gap: 1.25rem; }
.ibonn img { flex: none; width: 7rem; height: 7rem; border-radius: 26px; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.18); }
.ibonn h3 { font-size: 1.75rem; }
.ibonn p { color: #e3efeb; }
.stores { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.stores a { padding-block: 0.5rem; color: #1f6f58; font-weight: 600; text-underline-offset: 4px; }
.apps .stores a { color: var(--mint); }
.stores a:hover { color: var(--navy); }
.apps .stores a:hover { color: #fff; }
.sync { display: grid; grid-template-columns: minmax(0, 1fr) minmax(3rem, 0.5fr) minmax(0, 1.7fr); align-items: center; margin-top: 3rem; }
.panel { padding: 1.5rem; border-radius: 18px; background: #fff; color: var(--navy); }
.panel > p { margin-top: 0.875rem; }
.panel .field { margin-top: 0.375rem; padding: 0.375rem 1rem; border: 2px solid #8ecbb0; border-radius: 10px; font-size: 1.75rem; font-weight: 680; }
.panel .save { width: max-content; padding: 0.5rem 1.25rem; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; }
.wire { position: relative; height: 4px; background: var(--mint); }
.wire i { position: absolute; inset: 0; opacity: 0; }
.wire i::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.125rem; height: 1.125rem; margin: -0.5625rem; border-radius: 4px; background: var(--gold); rotate: 45deg; }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.phone { padding: 1.5rem 1rem 2rem; border: 7px solid #0a1a20; border-radius: 32px; background: var(--deep); }
.phone.irn { background: #f2f5f3; color: var(--navy); }
.app { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; font-size: 1.25rem; }
.app img, .app svg { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 10px; }
.app svg { background: var(--navy); color: var(--mint); }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 0.5rem; padding: 0.5rem 0.625rem; border-radius: 9px; }
.row b { font-variant-numeric: tabular-nums; }
.now { background: rgb(143 224 182 / 0.28); }
.irn .now { background: #cdeedd; }
.swap { display: inline-grid; font-variant-numeric: tabular-nums; }
.swap i { grid-area: 1 / 1; }
.swap i:first-child { opacity: 0; }
.fine { margin-top: 1.5rem; color: var(--soft); font-size: 0.875rem; }
.footapp { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; text-underline-offset: 4px; }
.footapp img { width: 2rem; height: 2rem; border-radius: 8px; }

/* Timelister og drift */
.work { display: grid; gap: 1rem; padding: clamp(0.875rem, 2.5vw, 2rem); border-radius: 20px; background: var(--navy); }
.sheet { padding: 1.25rem; border-radius: 14px; background: #fff; }
.sheet p { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 3.5rem; gap: 0.75rem; align-items: center; padding-top: 0.75rem; }
.sheet .head { display: flex; flex-wrap: wrap; justify-content: space-between; min-height: 2rem; padding: 0; font-size: 1.125rem; }
.sheet b { font-variant-numeric: tabular-nums; }
.sheet p > b:last-child { text-align: right; }
.sheet i { height: 0.75rem; border-radius: 4px; background: var(--green); transform-origin: left; }
.sheet .w3 { width: 53%; }
.sheet .w2 { width: 37%; }
.sheet .ok { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 8px; background: #cdeedd; color: var(--navy); font-size: 0.9375rem; font-weight: 650; }
.ok svg { width: 1.125rem; height: 1.125rem; }
.jobs { display: grid; gap: 0.5rem; }
.jobs p { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 1rem; border-radius: 12px; background: rgb(255 255 255 / 0.1); color: var(--soft); line-height: 1.4; }
.jobs b { display: block; color: #fff; }
.jobs svg { flex: none; width: 1.75rem; height: 1.75rem; padding: 0.25rem; border-radius: 7px; background: var(--mint); color: var(--deep); }

/* Skoolia */
#skoolia h2 { margin-top: 1rem; }
#skoolia .stores { margin-top: 1.5rem; }
.school { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); overflow: clip; border-radius: 20px; background: #e6eefb; }
.menu { padding: 1.5rem 0 1.5rem 1rem; background: var(--navy); color: var(--soft); }
.menu svg { width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; }
.menu p { padding: 0.625rem 0.75rem; border-radius: 10px 0 0 10px; }
.menu .open { background: #e6eefb; color: #1d2b57; font-weight: 680; }
.klass { padding: 1.5rem clamp(0.875rem, 2vw, 1.75rem); color: #1d2b57; }
.klass img { display: block; width: 10rem; max-width: 100%; height: auto; margin-bottom: 1rem; }
.klass p { padding: 0.625rem 0.875rem; border-radius: 10px; background: #fff; line-height: 1.35; }
.klass p + p { margin-top: 0.5rem; }
.klass b, .klass span { display: block; }
.klass span { font-size: 0.9375rem; }

/* Varsler */
.toasts { display: grid; gap: 0.75rem; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 20px; background: #cdeedd; }
.toasts p { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; border-radius: 14px; background: #fff; }
.toasts svg { flex: none; width: 2.5rem; height: 2.5rem; padding: 0.25rem; border-radius: 10px; background: var(--navy); }
.toasts span { color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.toasts b { display: block; color: var(--navy); }

/* Roller */
.roles { display: grid; gap: 0.5rem; margin-top: 2.5rem; }
.roles li { display: grid; grid-template-columns: 2rem 13rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.75rem 1.25rem; border-radius: 14px; background: #fff; }
.roles svg { width: 2rem; height: 2rem; fill: var(--green); }
.roles span { color: #33494f; }
.roles li:nth-child(1) { background: var(--navy); color: #fff; }
.roles li:nth-child(1) span { color: var(--soft); }
.roles li:nth-child(1) svg { fill: var(--gold); }
.roles li:nth-child(2) { margin-right: 6%; }
.roles li:nth-child(3) { margin-right: 12%; }
.roles li:nth-child(4) { margin-right: 18%; }
.roles li:nth-child(5) { margin-right: 24%; }
.roles li:nth-child(6) { margin-right: 30%; }
.roles li:nth-child(7) { margin-right: 36%; }

/* Personvern */
.night { overflow: clip; background: var(--deep); color: #fff; }
.night .wrap { position: relative; }
.pattern { position: absolute; right: -20rem; top: -30rem; width: 44rem; color: var(--mint); opacity: 0.22; }
.privacy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 2.75rem; }
.privacy dt { color: var(--mint); font-size: 1.1875rem; font-weight: 650; }
.privacy dd { margin-top: 0.375rem; color: #d5e4df; }

/* Kom i gang og avslutning */
.start { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.75rem; }
.start li { position: relative; padding-top: 2.25rem; }
.start li::before { content: ""; position: absolute; left: 0; right: -1.5rem; top: 0.5625rem; height: 3px; background: #8ecbb0; }
.start li:last-child::before { right: 0; }
.start li::after { content: ""; position: absolute; left: 0; top: 0; width: 1.25rem; height: 1.25rem; border-radius: 5px; background: var(--green); rotate: 45deg; scale: 0.8; }
.start p { margin-top: 0.375rem; color: #33494f; }
.close { background: linear-gradient(var(--navy), #14535f); color: #fff; }
.close h2 { max-width: min(50%, 11em); }
.close p { max-width: min(50%, 26em); }
.evening { position: absolute; right: max(var(--gutter), calc((100vw - 76rem) / 2)); bottom: 0; height: 88%; max-width: 44%; }
.close p { margin: 1rem 0 1.75rem; color: #e3efeb; font-size: 1.125rem; }
footer { padding-block: 1.25rem max(1.25rem, env(safe-area-inset-bottom)); background: var(--deep); color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.made { flex-basis: 100%; padding-top: 0.75rem; border-top: 1px solid rgb(255 255 255 / 0.14); color: var(--soft); font-size: 0.9375rem; }
.still { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; color: var(--soft); cursor: pointer; }
.still input { width: 1.25rem; height: 1.25rem; accent-color: var(--mint); }

/* Smalere skjermer */
@media (max-width: 72rem) { .top nav { gap: 0.875rem; font-size: 0.875rem; } .top { gap: 1rem; } }
@media (max-width: 60rem) {
  .top nav { display: none; }
  .top .button { margin-left: auto; }
  .flow, .start { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
  .start li:nth-child(2)::before { right: 0; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .flip > :first-child { order: 2; }
  .privacy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appintro { grid-template-columns: minmax(0, 1fr); }
  .phone { padding-inline: 0.5rem; }
  .row { padding-inline: 0.375rem; gap: 0 0.25rem; font-size: 1rem; }
}
@media (max-width: 47rem) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .tiles a { padding: 1rem; }
  .tiles svg { width: 7rem; }
  .tiles p { font-size: 0.9375rem; line-height: 1.4; }
  .roles li { grid-template-columns: 2rem minmax(0, 1fr); gap: 0 0.875rem; }
  .roles li:nth-child(n) { margin-right: 0; }
  .roles svg { grid-row: span 2; }
  .sync { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .panel { width: 100%; }
  .wire { width: 4px; height: 3rem; }
  .wire i::before { left: 50%; top: 0; }
  .phones { width: 100%; gap: 0.75rem; }
  .phone { padding: 1.25rem 0.5rem 1.5rem; border-width: 5px; border-radius: 26px; }
  .promos { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .promo { padding: 1rem; }
  .promo img, .promo > svg { width: 3.5rem; height: 3.5rem; }
  .ibonn img { width: 5.5rem; height: 5.5rem; border-radius: 20px; }
}
@media (max-width: 36rem) {
  .cms { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .edit { margin: 0; }
  .news { padding-left: 1.25rem; }
  .times { padding-inline: 1.25rem; }
  .close { padding-bottom: 0; }
  .close h2, .close p { max-width: none; }
  .evening { position: static; display: block; width: 100%; max-width: none; height: auto; margin-top: 2.5rem; padding-inline: var(--gutter); }
  .close { display: flex; flex-direction: column-reverse; }
  .pattern { display: none; }
  .flow, .start, .facts, .privacy { grid-template-columns: minmax(0, 1fr); }
  .mock { height: auto; min-height: 11rem; }
  .start { row-gap: 1.75rem; }
  .start li { padding: 0 0 0 2.25rem; }
  .start li::before { left: 0.5625rem; right: auto !important; top: 0.5rem; bottom: -2rem; width: 3px; height: auto; }
  .start li:last-child::before { display: none; }
  .week { padding-inline: 0.875rem; }
  .week p { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .week i + i { grid-column: 2; }
}

/* Bevegelse */
@media (prefers-reduced-motion: no-preference) {
  .words b { animation: word 12s infinite; }
  .words b:nth-child(1) { animation-name: word-first; }
  .words b:nth-child(2) { animation-delay: 3s; }
  .words b:nth-child(3) { animation-delay: 6s; }
  .words b:nth-child(4) { animation-delay: 9s; }
  /* Døgnet starter ved Dhuhr: alt i syklusen er forskjøvet 6,5 s. */
  .sun { animation: sun var(--cycle) ease-in-out -6.5s infinite; }
  .sky { animation: var(--cycle) linear -6.5s infinite; }
  .sky.dawn { animation-name: dawn; }
  .sky.day { animation-name: day; }
  .sky.dusk { animation-name: dusk; }
  .sky.stars { animation-name: night; }
  .daystrip li::before { animation: fifth var(--cycle) -6.5s infinite; }
  .screen li { animation: row var(--cycle) -6.5s infinite; }
  .daystrip li:nth-child(2)::before, .screen li:nth-child(2) { animation-delay: -1.5s; }
  .daystrip li:nth-child(3)::before, .screen li:nth-child(3) { animation-delay: 3.5s; }
  .daystrip li:nth-child(4)::before, .screen li:nth-child(4) { animation-delay: 8.5s; }
  .daystrip li:nth-child(5)::before, .screen li:nth-child(5) { animation-delay: 13.5s; }
  .mock { animation: station 12s infinite; }
  .flow li:nth-child(2) .mock { animation-delay: 3s; }
  .flow li:nth-child(3) .mock { animation-delay: 6s; }
  .flow li:nth-child(4) .mock { animation-delay: 9s; }
  .typed { animation: typed 9s steps(19) infinite; }
  .publish { animation: publish 9s infinite; }
  .news { animation: news 9s infinite; }
  .letter { animation: letter 5s ease-in-out infinite; }
  .hand { transform-origin: 80px 56px; animation: spin 12s linear infinite; }
  .bell { transform-origin: 80px 12px; animation: ring 5s ease-in-out infinite; }
  .cells rect { animation: cell 6s infinite; }
  .cells rect:nth-child(2) { animation-delay: 0.3s; }
  .cells rect:nth-child(3) { animation-delay: 0.6s; }
  .cells rect:nth-child(4) { animation-delay: 0.9s; }
  .cells rect:nth-child(5) { animation-delay: 1.2s; }
  .clash { animation: clash 3s ease-in-out infinite; }
  .toasts p { animation: toast 12s infinite; }
  .toasts p:nth-child(2) { animation-delay: 3s; }
  .toasts p:nth-child(3) { animation-delay: 6s; }
  .toasts p:nth-child(4) { animation-delay: 9s; }
  .pattern { animation: spin 180s linear infinite; }
  .swap i:first-child { animation: old 9s infinite; }
  .swap i:last-child { animation: new 9s infinite; }
  .phone .swap i { animation-delay: -7.6s; }
  .sheet i { animation: hours 12s ease-out infinite; }
  .ok { animation: publish 12s infinite; }
  .jobs svg { animation: job 12s infinite; }
  .jobs p:nth-child(2) svg { animation-name: job-2; }
  .jobs p:nth-child(3) svg { animation-name: job-3; }
  .klass p { animation: lesson 12s infinite; }
  .klass p:nth-of-type(2) { animation-delay: 3s; }
  .klass p:nth-of-type(3) { animation-delay: 6s; }
  .klass p:nth-of-type(4) { animation-delay: 9s; }
  .save { animation: press 9s infinite; }
  .wire i { animation: travel 9s ease-in-out infinite; }
  @media (max-width: 47rem) { .wire i { animation-name: travel-down; } }

  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}

/* Avkrysningen i bunnteksten setter alt i ro, i den ferdige tilstanden. */
:root:has(#still:checked) *, :root:has(#still:checked) *::before { animation: none !important; }

@keyframes word { 0% { opacity: 0; transform: translateY(0.3em); } 3%, 23% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-0.3em); } }
@keyframes word-first { 0%, 23% { opacity: 1; transform: none; } 26% { opacity: 0; transform: translateY(-0.3em); } 97% { opacity: 0; transform: translateY(0.3em); } 100% { opacity: 1; transform: none; } }
@keyframes sun { 0% { transform: rotate(-108deg); } 5%, 17% { transform: rotate(-74deg); } 24%, 37% { transform: rotate(11deg); } 44%, 57% { transform: rotate(50deg); } 64%, 77% { transform: rotate(74deg); } 84%, 100% { transform: rotate(112deg); } }
@keyframes dawn { 0% { opacity: 0; } 5%, 17% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes day { 0%, 17% { opacity: 0; } 24%, 57% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes dusk { 0%, 57% { opacity: 0; } 64%, 77% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes night { 0% { opacity: 1; } 5%, 77% { opacity: 0; } 84%, 100% { opacity: 1; } }
@keyframes fifth { 0% { opacity: 0; } 3%, 18% { opacity: 1; } 21%, 100% { opacity: 0; } }
@keyframes row { 0% { background: transparent; } 3%, 18% { background: rgb(143 224 182 / 0.28); } 21%, 100% { background: transparent; } }
@keyframes station { 0% { border-color: transparent; transform: none; } 3%, 22% { border-color: var(--green); transform: translateY(-6px); } 26%, 100% { border-color: transparent; transform: none; } }
@keyframes typed { 0%, 4% { clip-path: inset(0 100% 0 0 round 9px); } 24%, 100% { clip-path: inset(0 0 0 0 round 9px); } }
@keyframes publish { 0%, 28% { opacity: 0; scale: 0.9; } 32%, 100% { opacity: 1; scale: 1; } }
@keyframes news { 0%, 33% { opacity: 0; transform: translateY(10px); } 39%, 100% { opacity: 1; transform: none; } }
@keyframes hours { 0% { transform: scaleX(0); } 20%, 100% { transform: none; } }
@keyframes job { 0%, 36% { background: rgb(255 255 255 / 0.25); color: transparent; } 39%, 100% { background: var(--mint); color: var(--deep); } }
@keyframes job-2 { 0%, 46% { background: rgb(255 255 255 / 0.25); color: transparent; } 49%, 100% { background: var(--mint); color: var(--deep); } }
@keyframes job-3 { 0%, 56% { background: rgb(255 255 255 / 0.25); color: transparent; } 59%, 100% { background: var(--mint); color: var(--deep); } }
@keyframes letter { 0%, 100% { transform: none; } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0%, 70%, 100% { transform: none; } 74%, 82% { transform: rotate(9deg); } 78%, 86% { transform: rotate(-9deg); } }
@keyframes cell { 0% { opacity: 0.25; } 8%, 100% { opacity: 1; } }
@keyframes clash { 50% { border-color: #ffd3c4; background: rgb(240 165 139 / 0.2); } }
@keyframes toast { 0%, 100% { transform: none; } 3%, 20% { transform: translateX(-10px); box-shadow: 0 0 0 3px var(--green); } 24% { transform: none; } }
@keyframes rise { from { transform: translateY(48px); } to { transform: none; } }
@keyframes old { 0%, 20% { opacity: 1; } 23%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes new { 0%, 20% { opacity: 0; } 23%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes press { 0%, 24%, 30%, 100% { scale: 1; background: var(--navy); } 27% { scale: 0.94; background: var(--green); } }
@keyframes travel { 0%, 27% { opacity: 0; transform: none; } 28% { opacity: 1; transform: none; } 37% { opacity: 1; transform: translateX(100%); } 38%, 100% { opacity: 0; transform: translateX(100%); } }
@keyframes travel-down { 0%, 27% { opacity: 0; transform: none; } 28% { opacity: 1; transform: none; } 37% { opacity: 1; transform: translateY(100%); } 38%, 100% { opacity: 0; transform: translateY(100%); } }
@keyframes lesson { 0%, 26%, 100% { box-shadow: 0 0 0 3px transparent; } 3%, 22% { box-shadow: 0 0 0 3px #ff8a1f; } }
