/* ==========================================================================
   Tveir.is: stílblað
   Byggt á hönnunarviðmiði (design_handoff_tveir_website).
   Ein responsive útfærsla: skalast frá 390px (mobile) upp í 1180px (desktop).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #1c3050;          /* navy: aðaltexti og dökk kort */
  --soft: #7189ac;         /* undirtexti */
  --acc: #5b93f0;          /* accent */
  --acc-hover: #4a83e2;
  --accs: #e7f0fd;         /* ljósblátt fill */
  --acc-on-navy: #9dc0f7;  /* undirtexti á navy */
  --bg: #f2f8fe;
  --sur: #fff;
  --line: rgba(28, 48, 80, .08);

  --sh-card: 0 2px 10px rgba(28, 48, 80, .06);
  --sh-drop: 0 12px 30px rgba(28, 48, 80, .16);
  --sh-navy: 0 8px 24px rgba(28, 48, 80, .18);
  --sh-btn: 0 4px 14px rgba(91, 147, 240, .35);
  --sh-nav: 0 6px 22px rgba(28, 48, 80, .08);

  --r-card: 20px;
  --r-block: 28px;
  --r-input: 12px;
  --r-pill: 999px;

  --gut: clamp(16px, 2.8vw, 32px);   /* hliðarbil */
  --sec: clamp(46px, 6.6vw, 96px);   /* lóðrétt bil milli kafla */

  --f-head: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Fljótandi leturskalar: mobile 390px  ->  desktop 1180px */
:root {
  --fs-h1-hero: clamp(33px, 20.7px + 3.17vw, 58px);
  --fs-h1-page: clamp(34px, 23.1px + 2.79vw, 56px);
  --fs-h2: clamp(27px, 20.6px + 1.65vw, 40px);
  --fs-h2-sm: clamp(25px, 20.6px + 1.14vw, 34px);
  --fs-h3: clamp(16px, 14.5px + 0.38vw, 19px);
  --fs-lead: clamp(16px, 14.5px + 0.38vw, 19px);
}

/* --------------------------------------------------------------------------
   2. Grunnur
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 500;
  margin: 0;
  line-height: 1.08;
  letter-spacing: -.028em;
}

h1 em, h2 em { font-style: normal; color: var(--acc); }

p { margin: 0; }

img, video { max-width: 100%; display: block; }

a { color: var(--acc); }

button { font: inherit; color: inherit; }

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: var(--r-pill); text-decoration: none; font-size: 14px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.lead {
  color: var(--soft);
  font-size: var(--fs-lead);
  text-wrap: pretty;
}

.section-title {
  font-size: var(--fs-h2);
  text-align: center;
  margin: 0 0 clamp(22px, 2.6vw, 30px);
}

.drag-hint {
  text-align: center;
  font-size: clamp(11.5px, 11px + .13vw, 13px);
  color: var(--soft);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   3. Hnappar, pillur, kort
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; flex: none; white-space: nowrap; line-height: 1;
  background: var(--acc); color: #fff;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  padding: 15.5px 26px;
  font: 500 16px/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  box-shadow: var(--sh-btn);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--acc-hover); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn--lg { font-size: clamp(16px, 15.5px + .19vw, 17px); padding: 17px 30px; }
.btn--sm { font-size: clamp(13.5px, 13px + .19vw, 15px); padding: 12px 20px; min-height: 44px; }
.btn--block { width: 100%; }

.btn--ghost {
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  border-color: var(--acc);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--acc); color: #fff; }

.btn--white {
  background: #fff; color: var(--ink); box-shadow: none;
}
.btn--white:hover { background: #eef4ff; color: var(--ink); }

.badge {
  display: inline-block;
  background: var(--accs); color: var(--acc);
  font: 500 13px/1 var(--f-body);
  padding: 8px 14px; border-radius: var(--r-pill);
}

.card {
  background: var(--sur);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
}

.card--navy {
  background: var(--ink);
  border-color: transparent;
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. Myndaslott: sýnir merkimiða þar til alvöru mynd er sett inn
   -------------------------------------------------------------------------- */
.slot {
  position: relative;
  overflow: hidden;
  background: var(--accs);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.slot::before {
  content: attr(data-label);
  padding: 0 14px;
  font: 500 12px/1.4 var(--f-body);
  letter-spacing: .04em;
  color: rgba(28, 48, 80, .38);
}
.slot > img,
.slot > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Vantar skrána -> fela og láta merkimiðann standa eftir */
.slot > img.is-missing,
.slot > video.is-missing { display: none; }

/* --------------------------------------------------------------------------
   5. Haus / pillu-nav
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  padding-top: clamp(14px, 1.7vw, 20px);
  padding-bottom: 4px;
  background: linear-gradient(to bottom, var(--bg) 72%, rgba(242, 248, 254, 0));
}

.pillnav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 10px 10px 10px clamp(18px, 2vw, 24px);
  box-shadow: var(--sh-nav);
}

.pillnav__logo { display: block; line-height: 0; }
.pillnav__logo img { height: clamp(16px, 1.6vw, 19px); width: auto; }

.pillnav__links {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.2vw, 26px);
}
.pillnav__links a {
  color: var(--soft);
  text-decoration: none;
  font-size: clamp(14px, 13px + .21vw, 15.5px);
  white-space: nowrap;
}
.pillnav__links a:hover,
.pillnav__links a[aria-current="page"] { color: var(--ink); }

.pillnav__right { display: flex; align-items: center; gap: 10px; }

@media (min-width: 900px) {
  .pillnav__links { display: flex; }
}

/* Hamborgari */
.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 4.5px;
  width: 44px; height: 44px; padding: 0 13px;
  background: none; border: 0; cursor: pointer;
}
.burger span {
  display: block; height: 1.5px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (min-width: 900px) { .burger { display: none; } }

/* Mobile valmynd */
.mobilemenu {
  margin-top: 10px;
  background: var(--sur);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--sh-drop);
  padding: 8px;
  display: flex; flex-direction: column;
}
.mobilemenu[hidden] { display: none; }
.mobilemenu a {
  display: flex; align-items: center; min-height: 48px;
  padding: 0 16px; border-radius: 12px;
  color: var(--ink); text-decoration: none;
  font-size: 16px; font-weight: 500;
}
.mobilemenu a:hover { background: var(--accs); }

@media (min-width: 900px) { .mobilemenu { display: none !important; } }

/* --------------------------------------------------------------------------
   6. Dropdown ("Hafa samband ▾")
   -------------------------------------------------------------------------- */
.dropdown { position: relative; }

.dropdown__toggle[aria-expanded="true"] { background: var(--acc-hover); }
.dropdown__toggle .caret { font-size: .72em; }

.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 266px; max-width: min(300px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-drop);
  padding: 8px;
  display: flex; flex-direction: column;
  text-align: left;
  z-index: 30;
  max-height: min(72vh, 620px); overflow-y: auto; overscroll-behavior: contain;
}
.dropdown__menu[hidden] { display: none; }
.dropdown__menu a {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px; border-radius: 11px;
  text-decoration: none; color: var(--ink);
}
.dropdown__menu a:hover { background: var(--accs); }
.dropdown__menu strong { font-size: 15px; font-weight: 500; }
.dropdown__menu span { font-size: 12px; color: var(--soft); line-height: 1.4; }

/* Miðjaður dropdown (í CTA blokk) */
.dropdown--center .dropdown__menu {
  right: auto; left: 50%; transform: translateX(-50%);
  min-width: 300px;
}
@media (max-width: 560px) {
  .dropdown--center { display: block; }
  .dropdown--center .dropdown__menu {
    left: 0; right: 0; transform: none; min-width: 0; max-width: none;
  }
}

/* --------------------------------------------------------------------------
   7. Hero (bento)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: clamp(10px, 1.4vw, 18px);
  border-radius: var(--r-block);
  overflow: hidden;
  box-shadow: var(--sh-navy);
  min-height: clamp(520px, 84vh, 820px);
  display: grid;
  align-items: end;
}

/* Myndin fyllir allt hero-ið */
.hero__bak {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* andlitin sitja ofarlega i rammanum, svo vid midjum ofar en midju */
  object-position: 50% 22%;
}

/* Skuggi sem thettist til vinstri, thar sem textinn er, og sleppir andlitunum */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  /* Hallinn kemur ad nedan a ollum skjastaerdum, svo badir sjaist
     fyrir ofan textann. A breidum skja sest oll breidd myndarinnar,
     svo thad er ekki haegt ad faera okkur til hlidar. */
  background: linear-gradient(to top,
    rgba(16,28,48,.94) 0%,
    rgba(16,28,48,.86) 26%,
    rgba(16,28,48,.42) 54%,
    rgba(16,28,48,.08) 78%,
    rgba(16,28,48,0) 100%);
}

.hero__yfir {
  position: relative; z-index: 1;
  padding: clamp(28px, 4vw, 60px);
  max-width: 60ch;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(16px, 1.9vw, 22px);
  color: #fff;
}
.hero__yfir h1 {
  font-size: var(--fs-h1-hero);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
}
.hero__yfir h1 em { color: var(--acc-on-navy); }
.hero__yfir .lead { color: rgba(255,255,255,.8); max-width: 42ch; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(2px,.5vw,6px); }
@media (max-width: 560px) {
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero__actions .dropdown, .hero__actions .btn { width: 100%; }
  .hero__actions .dropdown__menu { left: 0; right: 0; min-width: 0; max-width: none; }
}

/* Draugatakki a mynd: hvit lina, ekki blá */
.btn--aglas {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.55);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--aglas:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero__nofn {
  margin-top: clamp(4px, .8vw, 10px);
  font-size: clamp(12.5px, 12px + .2vw, 14px);
  color: rgba(255,255,255,.66);
}

/* A breidum skja: myndin naer ut fyrir haegri brunina svo vid sitjum
   haegra megin og textinn hefur pláss vinstra megin */
@media (min-width: 1001px) {
  .hero__bak { width: 124%; max-width: none; object-position: 50% 24%; }
}

/* I sima: myndin verdur haerri og skugginn kemur ad nedan svo andlitin
   sjaist fyrir ofan textann i stad thess ad hverfa undir hann. */
@media (max-width: 1000px) {
  .hero { min-height: clamp(560px, 86vh, 760px); }
  .hero__bak { object-position: 46% 18%; }
  .hero__yfir { max-width: none; }
}

/* Leidir inn: sama og i fellivalmyndinni, en synilegt an thess ad smella */
.leidir {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.4vw, 16px);
  margin-top: clamp(26px, 3vw, 42px);
}
@media (min-width: 900px) {
  .leidir { grid-template-columns: repeat(3, 1fr); }
  /* Fjögur spjöld: tvö og tvö svo ekkert standi eitt eftir */
  .leidir:has(> .leid:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}

.leid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 18px;
  padding: clamp(20px, 2.2vw, 28px) clamp(22px, 2.4vw, 32px);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.leid__titill {
  grid-column: 1;
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(17px, 15.6px + .36vw, 20px);
  line-height: 1.25;
}
.leid__texti { grid-column: 1; font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.leid__or {
  grid-column: 2; grid-row: 1 / span 2;
  color: var(--acc); font-size: 20px; line-height: 1;
  transition: transform .15s ease;
}
.leid:hover { border-color: var(--acc); box-shadow: var(--sh-nav); transform: translateY(-2px); }
.leid:hover .leid__or { transform: translateX(3px); }
.leid:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .leid, .leid__or { transition: none; }
  .leid:hover { transform: none; }
}
/* --------------------------------------------------------------------------
   8. Lógóstrimill
   -------------------------------------------------------------------------- */
.trust {
  margin-top: clamp(12px, 1.4vw, 16px);
  overflow: hidden;
  padding: clamp(34px, 4.4vw, 52px) 0 clamp(36px, 4.7vw, 56px);
}
.trust h2 {
  font-size: var(--fs-h2);
  text-align: center;
  margin: 0 0 clamp(22px, 2.6vw, 30px);
  padding-inline: 16px;
  text-wrap: balance;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex; align-items: center;
  gap: clamp(12px, 1.5vw, 18px);
  padding-right: clamp(12px, 1.5vw, 18px);
}

.logo-chip {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  height: 64px; width: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  font: 500 12.5px/1.2 var(--f-body);
  color: rgba(28, 48, 80, .45);
  text-align: center;
  padding: 0 12px;
}
.logo-chip img {
  position: absolute; inset: 0; margin: auto;
  max-height: 40px; max-width: 108px;
  width: auto; height: auto;
  object-fit: contain;
}
.logo-chip img.is-missing { display: none; }
/* Nafnið er einungis varaskeifa: hverfur um leið og lógóið hleðst */
.logo-chip:has(img:not(.is-missing)) { color: transparent; }


@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   9. Láréttar raðir (verkefni á forsíðu + þjónusta)
   -------------------------------------------------------------------------- */
.section { padding: var(--sec) 0; }

/* Fastur haus má ekki hylja það sem tenglar stökkva á */
main [id] { scroll-margin-top: clamp(88px, 8vw, 108px); }

.hscroll {
  display: flex;
  gap: clamp(14px, 1.6vw, 18px);
  overflow-x: auto;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
  /* Enginn snap-stuðningur: röðin er endalaus lykkja og snap slæst á
     móti stökkinu sem heldur henni gangandi. */
  scroll-snap-type: none;
  overscroll-behavior-x: contain;
}
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: rgba(28, 48, 80, .16); border-radius: 999px; }

.work-tile {
  flex: none;
  width: clamp(160px, 19.5vw, 230px);
  scroll-snap-align: start;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 48, 80, .14);
  background: var(--accs);
  text-decoration: none;
  color: inherit;
}
.work-tile .slot { width: 100%; height: clamp(285px, 34.7vw, 410px); }
.work-tile__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 16px 16px;
  background: linear-gradient(to top, rgba(28, 48, 80, .88), rgba(28, 48, 80, 0));
  pointer-events: none;
}
.work-tile__cat { font-size: 11px; color: rgba(255, 255, 255, .7); margin-bottom: 4px; }
.work-tile__name {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(15px, 13.1px + .49vw, 19px);
  line-height: 1.2; color: #fff;
}

/* Þjónusta */
.services-rail { overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; }
.services-rail::-webkit-scrollbar { height: 6px; }
.services-rail::-webkit-scrollbar-thumb { background: rgba(28, 48, 80, .16); border-radius: 999px; }
.services {
  display: flex; gap: 14px;
  width: max-content;
  margin: 0 auto;
}
.service {
  flex: none;
  width: clamp(156px, 14.6vw, 172px);
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  color: inherit; text-decoration: none;
}
/* Thjonustur sem eiga sina eigin sidu eru hlekkir */
a.service { transition: transform .15s ease; }
a.service:hover { transform: translateY(-3px); }
a.service:hover .service__icon { border-color: var(--acc); box-shadow: var(--sh-nav); }
a.service:hover h3 { color: var(--acc); }
a.service:focus-visible { outline: 2px solid var(--acc); outline-offset: 6px; border-radius: 12px; }
.service__icon {
  width: clamp(96px, 9.8vw, 116px); height: clamp(96px, 9.8vw, 116px);
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(28, 48, 80, .1);
  display: flex; align-items: center; justify-content: center;
  color: var(--acc);
}
.service__icon svg { width: clamp(34px, 3.5vw, 42px); height: clamp(34px, 3.5vw, 42px); }
.service h3 { font-size: clamp(16px, 14.5px + .38vw, 19px); }
.service p { font-size: clamp(12px, 11.8px + .06vw, 12.5px); line-height: 1.45; color: var(--soft); max-width: 166px; }

/* --------------------------------------------------------------------------
   10. Teymið
   -------------------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }

.member {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ink);
  box-shadow: var(--sh-navy);
  min-height: clamp(210px, 19.5vw, 240px);
  padding: clamp(24px, 2.4vw, 28px);
  display: flex; flex-direction: column; justify-content: flex-end;
}

/* Upphafsstafirnir eru skreyting: vatnsmerki í stað ljósmyndar */
.member__mono {
  position: absolute; top: clamp(14px, 1.5vw, 18px); right: clamp(16px, 1.7vw, 20px);
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(78px, 8.5vw, 100px);
  line-height: .8;
  letter-spacing: -.045em;
  color: rgba(91, 147, 240, .22);
  pointer-events: none; user-select: none;
}

.member__name {
  position: relative;
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(21px, 20.5px + .13vw, 22px);
  line-height: 1.2;
  color: #fff;
}
.member__role {
  position: relative;
  font-size: 12.5px;
  color: var(--acc-on-navy);
  margin-top: 5px;
}
.member__desc {
  position: relative;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* --------------------------------------------------------------------------
   11. Navy CTA blokk
   -------------------------------------------------------------------------- */
.cta {
  background: var(--ink);
  border-radius: clamp(20px, 2vw, 24px);
  padding: clamp(44px, 6vw, 72px) clamp(20px, 2.7vw, 32px);
  text-align: center;
  box-shadow: var(--sh-navy);
}
.cta h2 { font-size: var(--fs-h2); color: #fff; margin: 0 0 26px; }

/* --------------------------------------------------------------------------
   12. Fótur
   -------------------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: var(--sec);
  padding: clamp(22px, 2.4vw, 26px) 0 clamp(26px, 2.7vw, 30px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  font-size: clamp(12.5px, 12.2px + .06vw, 13px);
  color: var(--soft);
}
.site-foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-foot a { color: var(--soft); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .site-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-foot nav { flex-direction: column; gap: 0; }
  .site-foot nav a { min-height: 44px; display: flex; align-items: center; }
}

/* --------------------------------------------------------------------------
   13. Verkefnasíða
   -------------------------------------------------------------------------- */
.page-head { padding-top: clamp(38px, 5.4vw, 64px); }
.page-head h1 { font-size: var(--fs-h1-page); }
.page-head .lead { max-width: 560px; margin-top: 16px; }

.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: clamp(18px, 2vw, 24px);
}
.filter {
  font: 400 14px/1 var(--f-body);
  background: #fff; color: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 12px 18px;
  min-height: 44px;
  display: inline-flex; align-items: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter:hover { border-color: var(--acc); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--acc); color: #fff; font-weight: 500;
  border-color: var(--acc);
}

/* Listi yfir viðskiptavini: lógó, nafn, bransi, flokkur */
.clientlist {
  list-style: none;
  margin: clamp(22px, 2.9vw, 34px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.clientlist__row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(104px, 11vw, 132px) 1fr auto;
  align-items: center;
  gap: clamp(14px, 1.7vw, 20px);
  padding: clamp(14px, 1.5vw, 18px) clamp(8px, 1vw, 12px);
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.clientlist__row:hover { background: rgba(255, 255, 255, .7); }
.clientlist__row[hidden] { display: none; }

.clientlist__logo {
  display: flex; align-items: center; justify-content: center;
  height: clamp(52px, 5.4vw, 62px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--sh-card);
}
.clientlist__logo img {
  max-height: 32px; max-width: 88px;
  width: auto; height: auto;
  object-fit: contain;
}

.clientlist__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.clientlist__name {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(18px, 16.5px + .38vw, 21px);
  line-height: 1.25;
}
.clientlist__branch { font-size: 13px; color: var(--soft); }

/* Röð sem vísar á vefinn sem við gerðum: allur reiturinn er smellanlegur */
.clientlist__link { color: inherit; text-decoration: none; }
.clientlist__link::after { content: ""; position: absolute; inset: 0; }
.clientlist__row:has(.clientlist__link):hover .clientlist__name { color: var(--acc); }
.clientlist__ext {
  display: inline-block;
  font-size: .7em;
  color: var(--acc);
  transform: translateY(-.15em);
  margin-left: 2px;
}

.clientlist__cats {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: flex-end;
}
.clientlist__cat {
  font-size: 12.5px;
  color: var(--acc);
  background: var(--accs);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .clientlist__row {
    grid-template-columns: 88px 1fr;
    row-gap: 10px;
    padding-block: 16px;
  }
  .clientlist__cats { grid-column: 2; justify-content: flex-start; }
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--soft);
  padding: 40px 0;
}
.no-results[hidden] { display: none; }

/* --------------------------------------------------------------------------
   14. Form
   -------------------------------------------------------------------------- */
.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.7vw, 32px);
  align-items: start;
  margin-top: clamp(26px, 3.4vw, 40px);
}
@media (min-width: 900px) { .form-layout { grid-template-columns: 1.25fr .75fr; } }

.form-card { padding: clamp(22px, 2.7vw, 32px); }

.form-grid { display: flex; flex-direction: column; gap: clamp(16px, 1.5vw, 18px); }

.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .fieldset > legend { font-size: 13px; color: var(--soft); }

.field input,
.field textarea {
  font: 400 15px/1.5 var(--f-body);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 13px 15px;
  outline: none;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(113, 137, 172, .75); }
.field input:focus, .field textarea:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(91, 147, 240, .16);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #d4574f; }

.fieldset {
  border: 0; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  font: 400 13px/1 var(--f-body);
  background: var(--accs); color: var(--acc);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex; align-items: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.chip:hover { background: #d8e8fd; }
.chip[aria-pressed="true"] {
  background: var(--acc); color: #fff; font-weight: 500;
}

/* Honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  font-size: 14px;
  border-radius: var(--r-input);
  padding: 12px 15px;
  line-height: 1.5;
}
.form-status[hidden] { display: none; }
.form-status--ok { background: #e6f4ea; color: #1e6b34; }
.form-status--err { background: #fdeceb; color: #a3312a; }

.info-col { display: flex; flex-direction: column; gap: 18px; }
.info-card { padding: 24px; }
.info-card__label { font-size: 12px; color: var(--acc); margin-bottom: 10px; }
.info-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.info-card ul a { color: var(--ink); text-decoration: none; }
.info-card ul a:hover { color: var(--acc); }
.info-card--navy h2 { font-size: 19px; color: #fff; line-height: 1.25; }
.info-card--navy p { font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 8px; line-height: 1.5; }

@media (max-width: 620px) {
  .info-card ul { gap: 0; }
  .info-card ul a { min-height: 44px; display: flex; align-items: center; }
}

/* Starter kit form (navy blokk) */
.kit-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(16px, 1.6vw, 20px);
}
@media (min-width: 820px) { .kit-grid { grid-template-columns: repeat(3, 1fr); } }
.kit-card { padding: clamp(26px, 2.8vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.kit-card__num { font-size: 13px; color: var(--acc); }
.kit-card h3 { font-size: 19px; }
.kit-card p { font-size: 14.5px; line-height: 1.62; color: var(--soft); }

.form-navy {
  padding: clamp(22px, 2.9vw, 34px);
  display: flex; flex-direction: column; gap: 20px;
}
.form-navy h2 { font-size: clamp(24px, 21.5px + .63vw, 28px); color: #fff; line-height: 1.2; }
.form-navy > div > p { font-size: 16px; color: rgba(255, 255, 255, .7); margin-top: 8px; line-height: 1.55; }
.form-navy__inner {
  background: #fff;
  border-radius: var(--r-card);
  padding: clamp(20px, 2.2vw, 26px);
  display: flex; flex-direction: column; gap: 16px;
}

@media (max-width: 560px) {
  .form-submit { width: 100%; }
}

/* --------------------------------------------------------------------------
   16. Síðari lagfæringar
   -------------------------------------------------------------------------- */

/* „Draga til hliðar" á aðeins við þar sem fingur skrunar: ekki á tölvu */
@media (min-width: 900px) {
  .drag-hint { display: none; }
}

/* --------------------------------------------------------------------------
   17. Tölur (Tveir í tölum)
   -------------------------------------------------------------------------- */
.stats {
  margin-top: clamp(14px, 1.6vw, 20px);
  background: var(--ink);
  border-radius: clamp(20px, 2vw, 24px);
  box-shadow: var(--sh-navy);
  padding: clamp(36px, 4.8vw, 68px) clamp(14px, 2.4vw, 32px);
  display: grid;
  /* Ein röð, jafnir dálkar: óháð því hve margar tölurnar eru */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: clamp(10px, 1.6vw, 24px);
  text-align: center;
}

.stat { min-width: 0; }

.stat__num {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(30px, 11px + 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
}

.stat__label {
  margin-top: clamp(8px, 1vw, 12px);
  font-size: clamp(12.5px, 11.5px + .26vw, 15px);
  line-height: 1.35;
  color: rgba(255, 255, 255, .62);
  text-wrap: balance;
}
.stat__label em { font-style: normal; color: var(--acc-on-navy); }

/* Tölur á þjónustusíðum: gildin eru lengri („205 kr.") og þurfa minna letur */
.stats--sm .stat__num { font-size: clamp(24px, 10px + 4vw, 48px); }
.stats--sm .stat__label { color: rgba(255,255,255,.7); }

/* Tvær niðurstöðukort í stað þriggja */
@media (min-width: 820px) { .kit-grid--2 { grid-template-columns: repeat(2, 1fr); } }

/* Lykiltölur inni í korti */
.case-figs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.case-figs li { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; color: var(--soft); border-top: 1px solid var(--line); padding-top: 10px; }
.case-figs li:first-child { border-top: 0; padding-top: 0; }
.case-figs b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.case-note { margin-top: clamp(18px, 1.8vw, 24px); font-size: 13.5px; line-height: 1.6; color: var(--soft); max-width: 78ch; }

/* Thettur daemalisti: titill og ein lina, tveir dalkar */
.daemi { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .daemi { grid-template-columns: 1fr 1fr; gap: 24px clamp(28px, 3.4vw, 56px); } }
.daemi b {
  display: block;
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(16.5px, 15.5px + .26vw, 18px);
  line-height: 1.3; margin-bottom: 5px;
}
.daemi span { font-size: 14px; line-height: 1.55; color: var(--soft); }

/* --------------------------------------------------------------------------
   20. Solutaekifaeri: solusidu-einingar
   -------------------------------------------------------------------------- */

/* Takkapar undir fyrirsogn */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 36px); }

/* Kaflatitill og inngangur a solusidu */
.sec-title { font-size: var(--fs-h2-sm); margin: 0 0 clamp(26px, 2.8vw, 36px); }
.sec-title--tight { margin-bottom: 12px; }   /* thegar inngangstexti fylgir strax a eftir */
.sec-intro { max-width: 62ch; margin: 0 0 clamp(26px, 2.8vw, 36px); color: var(--soft); font-size: 16px; line-height: 1.65; }

/* Smaletur yfir tolubandinu */
.stat-cap {
  margin: 0 0 12px;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--soft);
}

/* Passar / passar ekki */
.fit { padding: clamp(30px, 3.8vw, 52px); display: grid; gap: clamp(28px, 3.2vw, 52px); }
@media (min-width: 760px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit h3 { margin: 0 0 18px; font-size: 18px; color: #fff; }
.fit__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fit__list li { display: flex; gap: 12px; font-size: 15px; line-height: 1.58; color: rgba(255,255,255,.78); }
.fit__list li::before { flex: 0 0 auto; font-weight: 600; }
.fit__list--ja li::before { content: "\2713"; color: var(--acc-on-navy); }
.fit__list--nei li::before { content: "\2715"; color: rgba(255,255,255,.38); }

/* Skrefin fjogur */
.steps { display: grid; gap: clamp(14px, 1.6vw, 20px); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { position: relative; padding: clamp(26px, 2.8vw, 34px); padding-left: clamp(74px, 6.6vw, 94px); }
.step__n {
  position: absolute; left: clamp(24px, 2.6vw, 32px); top: clamp(25px, 2.7vw, 33px);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accs); color: var(--acc);
  font: 600 14px/1 var(--f-head);
  display: grid; place-items: center;
}
.step h3 { margin: 0 0 10px; font-size: var(--fs-h3); }
.step p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--soft); }

/* Hvad thu faerd */
.deliver-card { padding: clamp(28px, 3.4vw, 46px); }
.deliver { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
@media (min-width: 760px) { .deliver { grid-template-columns: repeat(2, 1fr); gap: 15px clamp(28px, 3.4vw, 56px); } }
.deliver li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; }
.deliver li::before { content: "\2713"; color: var(--acc); font-weight: 600; flex: 0 0 auto; }

/* Algengar spurningar */
.faq { display: grid; gap: 12px; }
.faq details { padding: clamp(20px, 2.2vw, 26px) clamp(22px, 2.4vw, 30px); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-weight: 600; font-size: 16px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto;
  color: var(--acc); font-size: 22px; line-height: 1; font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 6px; }
.faq p { margin: 14px 0 0; font-size: 15px; line-height: 1.68; color: var(--soft); max-width: 68ch; }

/* --------------------------------------------------------------------------
   18. Tungumálarofi
   -------------------------------------------------------------------------- */
.langsw {
  display: inline-flex;
  flex: none;
  padding: 3px;
  gap: 2px;
  background: var(--accs);
  border-radius: var(--r-pill);
}

.langsw__btn {
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--soft);
  font: 500 12.5px/1 var(--f-body);
  letter-spacing: .02em;
  padding: 8px 10px;
  border-radius: var(--r-pill);
  transition: background .15s ease, color .15s ease;
}
.langsw__btn:hover { color: var(--ink); }
.langsw__btn.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(28, 48, 80, .12);
}

/* Á þröngum skjá er plássið í nav-inu naumt */
@media (max-width: 420px) {
  .langsw { padding: 2px; }
  .langsw__btn { padding: 7px 7px; font-size: 11.5px; }
}

/* Stækkar efnið um 1 cm og miðjar það aftur. object-fit: cover heldur
   hlutföllunum, svo þetta klippir af brúnunum í stað þess að teygja. */
.slot > .slot-zoom {
  width: calc(100% + 1cm);
  height: calc(100% + 1cm);
  max-width: none;   /* annars heldur hnattræna img/video reglan breiddinni í 100% */
  inset: -0.5cm;
}

/* --------------------------------------------------------------------------
   16. Vinnulag: kaflinn festist og síminn segir söguna eftir skruni
   data-skref 0..3 á kaflanum ræður öllu. Engin tímataka, bara staða.
   -------------------------------------------------------------------------- */
.vinnulag { position: relative; }

.vinnulag__braut { height: 300vh; }

.vinnulag__fast {
  position: sticky; top: 0;
  min-height: 100svh;
  /* Hausinn situr fastur yfir þessu, svo það þarf að vera pláss fyrir hann */
  padding-top: clamp(64px, 8vh, 86px);
  display: flex; align-items: center;
  overflow: hidden;
}

.vinnulag__inni { width: 100%; padding-block: clamp(20px, 4vh, 48px); }

.vinnulag__fyrirsogn { margin-bottom: clamp(18px, 2.6vh, 30px); }

/* Skoðunarsviðið: síminn í miðju, kortin beggja vegna */
.vinnulag__svid { display: flex; justify-content: center; }

/* ---------- Síminn og kortin í kringum hann ---------- */
.vinnulag__taeki { position: relative; width: fit-content; }

.fljot {
  position: absolute; z-index: 3;
  width: 218px;
  background: var(--sur); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 16px 38px rgba(28, 48, 80, .18);
  opacity: 0;
  transform: translate(var(--fx, -14px), 18px) scale(.9);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, 1.25, .35, 1);
}
.fljot strong {
  display: block; margin-top: 7px;
  font: 500 14px/1.35 var(--f-body); color: var(--ink);
}
.fljot__undir {
  display: block; margin-top: 5px;
  font: 400 11.5px/1.4 var(--f-body); color: var(--soft);
}
.fljot__merki {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase;
  color: #a4681a; background: #fff2e0;
  padding: 6px 9px; border-radius: var(--r-pill);
}
.fljot__merki i {
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.fljot__merki--blar { color: var(--acc); background: var(--accs); }

.fljot__verd {
  display: inline-block; margin-top: 9px;
  font: 500 11.5px/1 var(--f-body); color: #1e6b34;
  background: #e6f4ea; padding: 6px 9px; border-radius: var(--r-pill);
}

.fljot__punktar { display: flex; gap: 4px; margin-top: 9px; }
.fljot__punktar i {
  width: 100%; height: 4px; border-radius: var(--r-pill);
  background: var(--accs);
}
.fljot__punktar i.er-lokid { background: var(--acc); }

.fljot__hak {
  position: relative; display: block;
  width: 26px; height: 26px; border-radius: 50%;
  background: #e6f4ea;
}
.fljot__hak::after {
  content: ''; position: absolute; left: 9px; top: 6px;
  width: 6px; height: 11px;
  border: solid #1e6b34; border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* Tvö kort hvoru megin. calc(100% + bil) festir þau við brún símans
   svo þau fylgi honum í hvaða hæð sem skjárinn gefur. */
@media (min-width: 1040px) {
  .fljot--1 { right: calc(100% + 46px); top: 3%;    --fx: -26px; }
  .fljot--2 { right: calc(100% + 74px); bottom: 6%; --fx: -30px; }
  .fljot--3 { left:  calc(100% + 74px); top: 11%;   --fx: 30px; }
  .fljot--4 { left:  calc(100% + 46px); bottom: 2%; --fx: 26px; }
}

@media (min-width: 820px) and (max-width: 1039px) {
  .fljot { width: 188px; }
  .fljot--1 { right: calc(100% + 24px); top: 2%;    --fx: -22px; }
  .fljot--2 { right: calc(100% + 24px); bottom: 4%; --fx: -22px; }
  .fljot--3 { left:  calc(100% + 24px); top: 10%;   --fx: 22px; }
  .fljot--4 { left:  calc(100% + 24px); bottom: 2%; --fx: 22px; }
}

@media (max-width: 819px) { .fljot { display: none; } }

.simi {
  background: var(--ink);
  border-radius: 32px;
  padding: 9px;
  box-shadow: var(--sh-navy);
}
/* Hæðin ræður, breiddin leiðir af hlutföllum alvöru síma */
.simi__skjar {
  background: var(--bg);
  border-radius: 24px;
  overflow: hidden;
  height: min(56vh, 520px);
  aspect-ratio: 230 / 468;
  display: flex; flex-direction: column;
}

.simi__haus {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 12px 11px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.simi__haus img { width: 40px; height: auto; }
.simi__fyr { font: 400 10px/1 var(--f-body); color: var(--soft); }

.simi__efni { padding: 11px; display: flex; flex-direction: column; gap: 8px; }

/* Bíður þín */
.m-bidur {
  background: var(--ink); border-radius: 14px; padding: 12px 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.m-bidur__heiti { font: 400 11px/1 var(--f-body); color: var(--acc-on-navy); }
.m-bidur__tolur { position: relative; width: 16px; height: 24px; }
.m-bidur__tala {
  position: absolute; inset: 0;
  font-family: var(--f-head); font-weight: 600; font-size: 21px; line-height: 24px;
  color: #fff; text-align: right;
  transition: opacity .35s ease, transform .35s ease;
}
.m-bidur__tala--einn { opacity: 0; transform: translateY(-5px); }

/* Verkefnakort */
.m-verk {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 13px;
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.m-verk__titill { font: 500 12.5px/1.3 var(--f-body); color: var(--ink); }
.m-sla {
  height: 5px; background: var(--accs); border-radius: var(--r-pill);
  overflow: hidden; margin-top: 9px;
}
.m-sla__fyll {
  display: block; height: 100%; width: 40%;
  background: var(--acc); border-radius: var(--r-pill);
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}
.m-verk__hlutfall { position: relative; height: 13px; margin-top: 6px; }
.m-hlut {
  position: absolute; left: 0; top: 0;
  font: 400 11px/13px var(--f-body); color: var(--soft);
  transition: opacity .4s ease;
}
.m-hlut--eftir { opacity: 0; }

/* Taskur */
.m-task {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 13px;
  display: flex; align-items: flex-start; gap: 10px;
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.m-task__inn { min-width: 0; }
.m-hak {
  flex: none; position: relative; margin-top: 1px;
  width: 17px; height: 17px; border-radius: 6px;
  border: 1.5px solid rgba(28, 48, 80, .22); background: #fff;
  transition: background .35s ease, border-color .35s ease;
}
.m-hak::after {
  content: ''; position: absolute; left: 5px; top: 2px;
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg) scale(.4);
  opacity: 0;
  transition: opacity .3s ease, transform .3s cubic-bezier(.3, 1.5, .5, 1);
}
.m-task__titill {
  position: relative; display: block;
  font: 400 12px/1.35 var(--f-body); color: var(--ink);
  transition: color .4s ease;
}
.m-task__titill::after {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 0; height: 1px; background: currentColor;
  transition: width .45s ease;
}
.m-task__merki {
  display: inline-block; margin-top: 6px;
  font: 500 10px/1 var(--f-body); color: var(--acc);
  background: var(--accs); border-radius: var(--r-pill); padding: 5px 8px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .4s ease, transform .4s ease;
}

/* Svarbóla frá okkur */
.m-bubla {
  background: var(--accs); color: var(--acc);
  border-radius: 14px 14px 14px 5px;
  padding: 10px 12px;
  font: 400 11.5px/1.45 var(--f-body);
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Skrefin ---------- */
.vinnulag[data-skref="1"] .m-task,
.vinnulag[data-skref="2"] .m-task,
.vinnulag[data-skref="3"] .m-task { opacity: 1; transform: none; }

.vinnulag[data-skref="1"] .m-bidur__tala--einn,
.vinnulag[data-skref="2"] .m-bidur__tala--einn { opacity: 1; transform: none; }
.vinnulag[data-skref="1"] .m-bidur__tala--null,
.vinnulag[data-skref="2"] .m-bidur__tala--null { opacity: 0; transform: translateY(5px); }

.vinnulag[data-skref="2"] .m-task__merki,
.vinnulag[data-skref="3"] .m-task__merki { opacity: 1; transform: none; }
.vinnulag[data-skref="2"] .m-verk {
  border-color: rgba(91, 147, 240, .5); box-shadow: var(--sh-btn); transform: translateY(-2px);
}

/* Kortin birtast eitt af öðru og halda sér, svo í lokin sést allt flæðið */
.vinnulag[data-skref="1"] .fljot--1,
.vinnulag[data-skref="2"] .fljot--1,
.vinnulag[data-skref="3"] .fljot--1 {
  opacity: 1; transform: translate(0, 0) scale(1) rotate(-2.2deg);
}
.vinnulag[data-skref="2"] .fljot--2,
.vinnulag[data-skref="3"] .fljot--2 {
  opacity: 1; transform: translate(0, 0) scale(1) rotate(1.8deg);
}
.vinnulag[data-skref="1"] .fljot--3,
.vinnulag[data-skref="2"] .fljot--3,
.vinnulag[data-skref="3"] .fljot--3 {
  opacity: 1; transform: translate(0, 0) scale(1) rotate(2.2deg);
}
.vinnulag[data-skref="3"] .fljot--4 {
  opacity: 1; transform: translate(0, 0) scale(1) rotate(-2.4deg);
}

.vinnulag[data-skref="3"] .m-bubla { opacity: 1; transform: none; }
.vinnulag[data-skref="3"] .m-hak { background: var(--acc); border-color: var(--acc); }
.vinnulag[data-skref="3"] .m-hak::after { opacity: 1; transform: rotate(42deg) scale(1); }
.vinnulag[data-skref="3"] .m-task__titill { color: var(--soft); }
.vinnulag[data-skref="3"] .m-task__titill::after { width: 100%; }
.vinnulag[data-skref="3"] .m-sla__fyll { width: 60%; }
.vinnulag[data-skref="3"] .m-hlut--fyrir { opacity: 0; }
.vinnulag[data-skref="3"] .m-hlut--eftir { opacity: 1; }

/* ---------- 1, 2, 3 ---------- */
.vinnulag__listi {
  list-style: none; margin: clamp(20px, 3vh, 34px) 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 10px;
  counter-reset: vinnulag;
}
@media (min-width: 760px) {
  .vinnulag__listi { grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
}

.vinnulag__listi li {
  counter-increment: vinnulag;
  background: var(--sur); border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(14px, 1.8vh, 22px);
  opacity: .42;
  transition: opacity .45s ease, border-color .45s ease,
              box-shadow .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.vinnulag__listi li::before {
  content: counter(vinnulag);
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 11px;
  border-radius: 50%;
  background: var(--accs); color: var(--acc);
  font: 500 14px/1 var(--f-body);
  transition: background .45s ease, color .45s ease;
}
.vinnulag__listi b {
  display: block; font: 500 16px/1.3 var(--f-body); color: var(--ink);
}
.vinnulag__listi span {
  display: block; margin-top: 5px; font-size: 14.5px; line-height: 1.5;
  color: var(--soft);
}

.vinnulag__listi li.er-virkt {
  opacity: 1; transform: translateY(-4px);
  border-color: rgba(91, 147, 240, .45); box-shadow: var(--sh-card);
}
.vinnulag__listi li.er-virkt::before { background: var(--acc); color: #fff; }
.vinnulag__listi li.er-lokid { opacity: .72; }

/* Í síma sést bara það skref sem er virkt, annars kemst þetta ekki fyrir */
@media (max-width: 759px) {
  .vinnulag__listi { position: relative; display: block; }
  .vinnulag__listi li {
    position: absolute; left: 0; right: 0; top: 0;
    opacity: 0; transform: translateY(12px); pointer-events: none;
  }
  .vinnulag__listi li.er-virkt,
  .vinnulag[data-skref="0"] .vinnulag__listi li:first-child {
    position: relative; opacity: 1; transform: none; pointer-events: auto;
  }
  .vinnulag[data-skref="0"] .vinnulag__listi li:first-child { opacity: .55; }
  .vinnulag__listi li.er-lokid { opacity: 0; }
  .vinnulag__fyrirsogn { font-size: clamp(24px, 6vw, 30px); }
  /* Allt þarf að komast á skjáinn meðan kaflinn er fastur: síminn ofar
     og aðeins lægri, kortið fyrir neðan með táknið við hlið textans */
  .vinnulag__fast { align-items: flex-start; padding-top: 100px; }
  .vinnulag__inni { padding-block: 6px 14px; }
  .vinnulag__fyrirsogn { margin-bottom: 12px; }
  .vinnulag .simi__skjar { height: min(48vh, 440px); }
  .vinnulag__listi { margin-top: 14px; }
}

/* ---------- Þegar JS nær ekki í gegn eða hreyfing er slökkt ---------- */
.vinnulag.engin-festing .vinnulag__braut { height: auto; }
.vinnulag.engin-festing .vinnulag__fast { position: static; min-height: 0; }
.vinnulag.engin-festing .vinnulag__listi li { opacity: 1; }
.vinnulag.engin-festing .simi__skjar { height: 520px; }

@media (prefers-reduced-motion: reduce) {
  .vinnulag__braut { height: auto; }
  .vinnulag__fast { position: static; min-height: 0; }
  .vinnulag__listi li { opacity: 1; transform: none; }
  .vinnulag .m-task, .vinnulag .m-bubla { opacity: 1; transform: none; }
  .vinnulag .m-task__merki { opacity: 1; transform: none; }
  .vinnulag .fljot { opacity: 1; transform: none; }
  .vinnulag .m-bidur__tala--einn { opacity: 0; }
  .vinnulag .m-hak { background: var(--acc); border-color: var(--acc); }
  .vinnulag .m-hak::after { opacity: 1; transform: rotate(42deg) scale(1); }
  .vinnulag .m-sla__fyll { width: 60%; }
  .vinnulag .m-hlut--fyrir { opacity: 0; }
  .vinnulag .m-hlut--eftir { opacity: 1; }
}

/* ==========================================================================
   21. Hausinn: merkið mátti ekki þjappast saman
   .pillnav__logo var venjulegur flex-hlutur og gaf eftir þegar plássið
   þraut. Á síma fór merkið úr 76 px niður í 32 og hvarf alveg á þeim
   þrengstu. Nú stendur það fast og takkinn þrengir sér í staðinn.
   ========================================================================== */
.pillnav__logo { flex: none; }

@media (max-width: 559px) {
  .pillnav__right { gap: 6px; }
  .pillnav__right .dropdown__toggle { padding-inline: 12px; font-size: 13.5px; }
  .pillnav__right .dropdown__toggle .caret { display: none; }
  .burger { width: 38px; padding: 0 10px; }
}
