/* ==========================================================================
   Útilega - dökkt, ljósmyndadrifið ævintýri fyrir Hjólhýsaleigu
   Dark photographic adventure. One accent (campfire amber), paper cards
   for contracts and payments. Radius rule: cards 20px, inputs 12px,
   buttons and chips pill (999px). Eyebrows used sparingly.
   ========================================================================== */

:root {
  --bg: #0d1218;
  --bg-2: #121922;
  --surface: #17202a;
  --surface-2: #1e2935;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #eef1f4;
  --muted: #a8b3bf;
  --faint: #8b97a3;

  --accent: #f0913a;
  --accent-hover: #f6a257;
  --accent-ink: #1d1006;
  --accent-soft: rgba(240, 145, 58, 0.14);
  --accent-line: rgba(240, 145, 58, 0.38);

  --ok: #7fcfa6;
  --ok-soft: rgba(127, 207, 166, 0.14);
  --bad: #f08a7c;
  --bad-soft: rgba(240, 138, 124, 0.14);

  --paper: #ecebe6;
  --paper-2: #e1dfd8;
  --ink: #161b21;
  --ink-muted: #4f5964;
  --ink-line: rgba(22, 27, 33, 0.14);
  --accent-on-paper: #9a4a0d;

  --r-card: 20px;
  --r-in: 12px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 64px;
  --nav-gap: 12px;
  --shadow-lift: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  min-height: 100dvh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
p { max-width: 68ch; }
strong { font-weight: 600; }
i.ph, i.ph-fill { line-height: 1; flex: none; }

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

.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;
}

.wrap { width: min(1280px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section.tight { padding: clamp(32px, 4vw, 56px) 0; }

.h-display { font-size: clamp(2rem, 1rem + 4.6vw, 5.25rem); line-height: 0.98; letter-spacing: -0.035em; }
.h-section { font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem); }
.h-card { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.xs { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}

.stack > * + * { margin-top: var(--gap, 16px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn i { font-size: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-danger { background: var(--bad-soft); color: var(--bad); border-color: rgba(240, 138, 124, 0.3); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn .arrow {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.16); margin-right: -12px;
  transition: transform 300ms var(--ease);
}
.btn-lg .arrow { margin-right: -14px; }
.btn .arrow i { font-size: 16px; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }
  .btn-paper:hover { background: #fff; }
  .btn-dark:hover { background: #2a323b; }
  .btn:hover .arrow { transform: translate(2px, -1px); }
}

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(13, 18, 24, 0.55); border: 1px solid var(--line-2);
  transition: transform 160ms var(--ease), background-color 200ms var(--ease);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn i { font-size: 20px; }
.icon-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: var(--nav-gap); z-index: 50;
  width: min(1280px, calc(100% - 24px)); margin: var(--nav-gap) auto 0;
}
.nav {
  display: flex; align-items: center; gap: 16px; height: var(--nav-h);
  padding: 0 10px 0 18px; border-radius: var(--r-pill);
  background: rgba(13, 18, 24, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 40px -16px rgba(0, 0, 0, 0.6);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: #0d1218; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 20px;
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
}
.login .l-short { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; border: 1px solid var(--line-2); }
.menu-btn i { font-size: 22px; }

@media (max-width: 1119px) {
  .login .l-long { display: none; }
  .login .l-short { display: inline; }
}
@media (max-width: 959px) {
  .nav { padding-left: 14px; gap: 10px; }
  .login { margin-left: auto; }
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute; top: calc(var(--nav-h) + 8px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: rgba(18, 25, 34, 0.98); border: 1px solid var(--line-2); border-radius: var(--r-card);
    box-shadow: var(--shadow-lift);
    opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top right;
    pointer-events: none; visibility: hidden;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav-links a { height: 48px; font-size: 16px; padding: 0 16px; }
}
@media (max-width: 479px) {
  .brand-name { font-size: 1.05rem; }
  .login { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .login .l-short { display: none; }
  .login i { font-size: 20px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 40px; margin-top: 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; font-family: var(--font-body); }
.foot-grid li + li { margin-top: 8px; }
.foot-grid a { color: var(--muted); font-size: 15px; transition: color 200ms var(--ease); }
@media (hover: hover) { .foot-grid a:hover { color: var(--accent); } }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--faint); font-size: 14px; }
@media (max-width: 859px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 479px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-in);
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-size: 16px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
.textarea { padding: 12px 14px; min-height: 96px; line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat;
}
select option { background: #1e2935; color: #eef1f4; }
.field .hint { font-size: 13px; color: var(--faint); }
.field .err, .err { font-size: 14px; color: var(--bad); }
.err[hidden] { display: none; }
.paper .input, .paper .select, .paper .textarea { background: #f8f7f3; border-color: rgba(22, 27, 33, 0.24); color: var(--ink); }
.paper .input::placeholder, .paper .textarea::placeholder { color: #66707b; }
.paper .input:focus, .paper .select:focus, .paper .textarea:focus { border-color: var(--accent-on-paper); box-shadow: 0 0 0 3px rgba(154, 74, 13, 0.16); }
.paper .field > label, .paper .label { color: var(--ink-muted); }
.paper .field .hint { color: var(--ink-muted); }
input[type="date"] { min-height: 48px; }

.check {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer; line-height: 1.45; font-size: 15px;
}
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin-top: 0; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--surface-2); display: grid; place-items: center; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); cursor: pointer; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 160ms var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.paper .check input { background: #f8f7f3; border-color: rgba(22, 27, 33, 0.4); }
.paper .check input:checked { background: var(--ink); border-color: var(--ink); }
.paper .check input::after { border-color: var(--paper); }

/* ---------- Cards / surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.card.flush { padding: 0; overflow: hidden; }
.paper { background: var(--paper); color: var(--ink); border-radius: var(--r-card); padding: 28px; border: 0; }
.paper .muted { color: var(--ink-muted); }
.paper hr, .paper .rule { border-top-color: var(--ink-line); }
.bezel { padding: 6px; border-radius: 26px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.bezel > .card, .bezel > .paper { border-radius: 20px; }
hr, .rule { border: 0; border-top: 1px solid var(--line); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; color: var(--text); white-space: nowrap;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform 160ms var(--ease);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"], .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .chip:not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, 0.07); } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; white-space: nowrap; background: rgba(255, 255, 255, 0.08); color: var(--text);
}
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--accent-soft); color: var(--accent); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.paper .tag { background: rgba(22, 27, 33, 0.08); color: var(--ink); }
.paper .tag.ok { background: rgba(31, 120, 78, 0.14); color: #1b6a45; }
.paper .tag.warn { background: rgba(154, 74, 13, 0.14); color: var(--accent-on-paper); }

.avatar {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
}
.avatar.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 15px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.rating i { color: var(--accent); font-size: 16px; }
.rating .muted { font-weight: 400; }

/* ---------- Reveal motion (motivated: sequence content as it enters) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); }
  .js [data-reveal].in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
  .hero-content > * { animation: rise 800ms var(--ease) both; }
  .hero-content > *:nth-child(2) { animation-delay: 90ms; }
  .hero-content > *:nth-child(3) { animation-delay: 180ms; }
  .hero-img { animation: settle 2200ms var(--ease) both; }
}

/* ==========================================================================
   FORSÍÐA
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: min(100dvh, 960px); overflow: hidden;
  margin-top: calc(-1 * (var(--nav-h) + var(--nav-gap) * 2));
  padding: calc(var(--nav-h) + var(--nav-gap) * 2 + 24px) 0 clamp(28px, 4vw, 56px);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 18, 24, 0.62) 0%, rgba(13, 18, 24, 0.18) 30%, rgba(13, 18, 24, 0.55) 62%, rgba(13, 18, 24, 0.96) 100%),
    linear-gradient(90deg, rgba(13, 18, 24, 0.55) 0%, rgba(13, 18, 24, 0) 60%);
}
.hero-content { display: grid; gap: 20px; max-width: 1280px; }
.hero h1 { max-width: 14ch; }
.hero .lead { color: #d3dae1; max-width: 46ch; }
.hero h1 em { font-style: normal; color: var(--accent); }

.search {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.8fr auto; gap: 0; align-items: end;
  padding: 10px; margin-top: 12px; border-radius: var(--r-card);
  background: rgba(13, 18, 24, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow-lift);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .search { background: #121922; } }
.search .field { padding: 6px 16px 8px; border-right: 1px solid var(--line); }
.search .field:nth-last-of-type(1) { border-right: 0; }
.search .input, .search .select { background: transparent; border: 0; padding: 0; min-height: 40px; border-radius: 6px; font-weight: 500; }
.search .input:focus, .search .select:focus { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 4px; }
.search .select { background-position: calc(100% - 6px) 17px, calc(100% - 1px) 17px; padding-right: 22px; }
.search .btn { height: 56px; margin-left: 8px; }
@media (max-width: 1023px) {
  .search { grid-template-columns: 1fr 1fr; gap: 6px 0; padding: 8px; }
  .search .field { border-right: 0; border-bottom: 1px solid var(--line); }
  .search .field:first-child, .search .field:nth-last-of-type(1) { grid-column: 1 / -1; }
  .search .field:nth-last-of-type(1) { border-bottom: 0; }
  .search .btn { grid-column: 1 / -1; margin: 6px 4px 4px; height: 52px; }
}

.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { max-width: 18ch; }
.sec-head .chips { justify-content: flex-end; }
@media (max-width: 719px) { .sec-head .chips { justify-content: flex-start; } }

/* Listing cards: photo fills the card, text on gradient */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(330px, auto); gap: 16px; }
.lcard {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden;
  border-radius: var(--r-card); background: var(--surface); min-height: 330px;
  border: 1px solid var(--line);
}
.lcard.big { grid-column: span 2; grid-row: span 2; min-height: 520px; }
.lcard.wide { grid-column: span 2; }
.lcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms var(--ease); }
.lcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 18, 24, 0.28) 0%, rgba(13, 18, 24, 0) 28%, rgba(13, 18, 24, 0.62) 58%, rgba(13, 18, 24, 0.96) 100%);
}
@media (hover: hover) and (pointer: fine) { .lcard:hover > img { transform: scale(1.05); } }
.lcard-body { width: 100%; padding: 20px; display: grid; gap: 6px; }
.lcard .ltype { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.lcard h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.lcard.big h3 { font-size: clamp(1.7rem, 1rem + 1.6vw, 2.4rem); font-weight: 800; }
.lcard .lmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: #cfd6dd; }
.lcard .lmeta span { display: inline-flex; align-items: center; gap: 5px; }
.lcard .lfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.lcard .price { font-weight: 700; font-size: 1.12rem; white-space: nowrap; }
.lcard .price small { font-weight: 400; font-size: 13.5px; color: #cfd6dd; }
.lcard .fav { position: absolute; top: 14px; right: 14px; z-index: 4; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.cards.filtered .lcard.big, .cards.filtered .lcard.wide { grid-column: auto; grid-row: auto; min-height: 330px; }
.cards.filtered .lcard.big h3 { font-size: 1.3rem; font-weight: 700; }
.lcard[hidden] { display: none; }
.empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-card); color: var(--muted); }
@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(320px, auto); }
  .lcard.big { grid-row: auto; min-height: 440px; }
}
@media (max-width: 639px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .lcard.big, .lcard.wide { grid-column: auto; }
  .lcard.big { min-height: 400px; }
}

/* Svona virkar þetta: split with photo + path */
.how { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.how-photo { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 520px; isolation: isolate; }
.how-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.how-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 18, 24, 0) 40%, rgba(13, 18, 24, 0.85) 100%); }
.how-photo blockquote { position: absolute; left: 24px; right: 24px; bottom: 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.02em; }
.how-photo blockquote small { display: block; margin-top: 10px; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: #cfd6dd; letter-spacing: 0; }
.path { display: grid; gap: 0; align-content: center; margin-top: 8px; }
.path-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 40px; }
.path-step:last-child { padding-bottom: 0; }
.path-step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; border-left: 1.5px dashed var(--accent-line); }
.path-step:last-child::before { display: none; }
.path-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-size: 26px; }
.path-step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.path-step p { color: var(--muted); }
@media (max-width: 899px) { .how { grid-template-columns: minmax(0, 1fr); } .how-photo { min-height: 360px; } }

/* Traust: columns band with hairlines, no cards */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust > div { padding: 32px 28px; display: grid; gap: 10px; align-content: start; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust i { font-size: 30px; color: var(--accent); }
.trust h3 { font-size: 1.15rem; font-weight: 700; }
.trust p { color: var(--muted); font-size: 15px; }
@media (max-width: 1023px) { .trust { grid-template-columns: 1fr 1fr; } .trust > div:nth-child(3) { border-left: 0; } .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 559px) { .trust { grid-template-columns: minmax(0, 1fr); } .trust > div + div { border-left: 0; border-top: 1px solid var(--line); } .trust > div { padding: 24px 4px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); letter-spacing: -0.035em; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 719px) { .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }

.svc-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 0 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.svc-tile { flex: 0 0 220px; scroll-snap-align: start; padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.svc-tile i { font-size: 28px; color: var(--accent); }
.svc-tile b { font-size: 1.02rem; }
.svc-tile span { color: var(--muted); font-size: 14px; }
.svc-tile .p { color: var(--text); font-weight: 600; font-size: 15px; }

.banner { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; min-height: 440px; display: flex; align-items: flex-end; padding: clamp(24px, 5vw, 64px); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 18, 24, 0.9) 0%, rgba(13, 18, 24, 0.5) 55%, rgba(13, 18, 24, 0.1) 100%); }
.banner h2 { max-width: 16ch; }
.banner p { margin-top: 14px; color: #d3dae1; max-width: 44ch; }
.banner .btn { margin-top: 24px; }
@media (max-width: 719px) { .banner::before { background: linear-gradient(180deg, rgba(13, 18, 24, 0.2) 0%, rgba(13, 18, 24, 0.92) 70%); } .banner { min-height: 480px; } }

/* ==========================================================================
   SKRÁNINGARSÍÐA HJÓLHÝSIS
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 24px 0 16px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-size: 12px; }

.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 42vw, 560px); border-radius: 24px; overflow: hidden; }
.gallery figure { position: relative; overflow: hidden; background: var(--surface); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .gallery figure:hover img { transform: scale(1.05); } }
.gallery .more { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
@media (max-width: 767px) {
  .gallery { display: flex; height: auto; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 20px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .gallery .more { position: static; flex: none; align-self: center; margin: 0 12px; }
}

.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 36px; }
.l-head h1 { font-size: clamp(2rem, 1rem + 3vw, 3.6rem); letter-spacing: -0.035em; max-width: 18ch; }
.l-sub { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-top: 16px; color: var(--muted); }
.l-sub span { display: inline-flex; align-items: center; gap: 7px; }
.block { padding: 36px 0; border-top: 1px solid var(--line); }
.block:first-of-type { border-top: 0; }
.block > h2 { font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem); margin-bottom: 20px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.spec { padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.spec i { color: var(--accent); font-size: 24px; }
.spec b { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1.1; }
.spec span { color: var(--muted); font-size: 14px; }
@media (max-width: 719px) { .specs { grid-template-columns: 1fr 1fr; } }
.amen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin-top: 28px; }
.amen li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15.5px; }
.amen i { color: var(--accent); font-size: 22px; }
@media (max-width: 559px) { .amen { grid-template-columns: minmax(0, 1fr); } }
.prose p + p { margin-top: 14px; }
.prose p { color: #cfd6dd; }

.addons { display: grid; gap: 10px; }
.addon { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.addon:has(input:checked) { border-color: var(--accent-line); background: #1c2430; }
.addon .a-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.addon b { display: block; font-weight: 600; font-size: 15.5px; }
.addon small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.addon .a-price { font-weight: 600; white-space: nowrap; font-size: 15px; }
.addon .check { grid-row: 1; }
@media (max-width: 559px) { .addon { grid-template-columns: auto 1fr; } .addon .a-price { grid-column: 2; } .addon .a-ico { display: none; } }

.rev-sum { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.rev-sum b { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; letter-spacing: -0.04em; }
.rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rev { padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.rev p { color: #d5dce3; font-size: 15.5px; }
.rev header { display: flex; align-items: center; gap: 12px; }
.rev header small { display: block; color: var(--faint); font-size: 13px; }
@media (max-width: 719px) { .rev-grid { grid-template-columns: minmax(0, 1fr); } }

.host { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 559px) { .host { grid-template-columns: auto 1fr; } .host .btn { grid-column: 1 / -1; } }

.bookbox { position: sticky; top: calc(var(--nav-h) + var(--nav-gap) * 2 + 12px); }
.bookbox .paper { padding: 26px; box-shadow: var(--shadow-lift); }
.bb-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bb-price b { font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.03em; }
.bb-price b small { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }
.bb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.bb-fields .field:last-child { grid-column: 1 / -1; }
.lines { margin-top: 20px; display: grid; gap: 10px; font-size: 15px; }
.lines div { display: flex; justify-content: space-between; gap: 16px; }
.lines div span:first-child { color: var(--ink-muted); }
.lines div span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines .sub { padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--ink-line); font-weight: 700; }
.lines .sub span:first-child { color: var(--ink); font-weight: 600; }
.lines .total { padding-top: 14px; margin-top: 4px; border-top: 1.5px solid var(--ink); font-size: 1.15rem; font-weight: 800; }
.lines .total span:first-child { color: var(--ink); font-weight: 700; }
.bb-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-muted); display: flex; gap: 8px; align-items: flex-start; }
.bb-note i { font-size: 18px; margin-top: 1px; color: var(--accent-on-paper); }
.bookbox .btn { margin-top: 18px; }
.mbar { display: none; }
@media (max-width: 1023px) {
  .listing-layout { grid-template-columns: minmax(0, 1fr); }
  .bookbox { position: static; }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(13, 18, 24, 0.94); border-top: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .mbar b { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; }
  .mbar small { display: block; color: var(--muted); font-size: 13px; }
  body.has-mbar { padding-bottom: 84px; }
}

/* ==========================================================================
   BÓKUN
   ========================================================================== */
.page-head { padding: 32px 0 8px; display: grid; gap: 12px; }
.page-head h1 { font-size: clamp(1.9rem, 1rem + 2.8vw, 3.2rem); letter-spacing: -0.035em; max-width: 22ch; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 15px; align-items: center; }
.page-head .meta span { display: inline-flex; align-items: center; gap: 7px; }

.steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: 0; overflow-x: auto; margin: 28px 0 8px; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 0 6px; scroll-snap-align: center; color: var(--faint); font-size: 14px; font-weight: 500; }
.step::before { content: ""; position: absolute; top: 19px; left: calc(-50% + 22px); right: calc(50% + 22px); border-top: 2px solid var(--line-2); }
.step:first-child::before { display: none; }
.step .dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); font-size: 18px; position: relative; z-index: 1; }
.step.done { color: var(--text); }
.step.done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step.done::before, .step.now::before { border-top-color: var(--accent); }
.step.now { color: var(--text); font-weight: 700; }
.step.now .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }

.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 28px; }
.anchor-nav { position: sticky; top: calc(var(--nav-h) + var(--nav-gap) * 2 + 4px); z-index: 20; display: flex; gap: 8px; padding: 8px 0; margin-bottom: 20px; background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.anchor-nav::-webkit-scrollbar { display: none; }
.panel { margin-bottom: 28px; scroll-margin-top: 150px; }
.panel > h2 { font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.contract { font-size: 15.5px; line-height: 1.6; }
.contract .c-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); margin-bottom: 20px; }
.contract .c-head h3 { font-size: 1.5rem; }
.contract .c-head small { color: var(--ink-muted); font-size: 14px; }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.party { padding: 16px; border-radius: 14px; background: rgba(22, 27, 33, 0.06); font-size: 14.5px; }
.party b { display: block; font-size: 13px; color: var(--ink-muted); font-weight: 600; margin-bottom: 4px; }
.clauses { counter-reset: cl; display: grid; gap: 14px; }
.clauses li { counter-increment: cl; display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.clauses li::before { content: counter(cl) "."; font-weight: 700; }
.clauses li b { display: block; }
.clauses li span { color: var(--ink-muted); }
.sign { margin-top: 24px; padding-top: 22px; border-top: 1.5px solid var(--ink); display: grid; gap: 16px; }
.sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sig-done { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(31, 120, 78, 0.14); color: #1b6a45; font-weight: 600; font-size: 14.5px; }
.sig-pend { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(154, 74, 13, 0.12); color: var(--accent-on-paper); font-weight: 600; font-size: 14.5px; }
.sign-note { font-size: 13.5px; color: var(--ink-muted); display: flex; gap: 8px; }
.sign-note i { font-size: 18px; flex: none; }
.sign .signed-name { font-family: "Bricolage Grotesque", cursive; font-style: italic; font-weight: 700; font-size: 1.6rem; min-height: 2.2rem; color: var(--ink); border-bottom: 1.5px solid var(--ink-line); padding-bottom: 4px; }
@media (max-width: 639px) { .parties, .sign-grid { grid-template-columns: minmax(0, 1fr); } }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-grid .full { grid-column: 1 / -1; }
.card-preview { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-card); padding: 22px; min-height: 170px; display: grid; align-content: space-between; margin-bottom: 20px; background: linear-gradient(135deg, #2b3948 0%, #17202a 60%); border: 1px solid var(--line-2); }
.card-preview::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--accent-soft); z-index: -1; }
.card-preview .cn { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.08em; font-weight: 700; }
.card-preview .cr { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.demo-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 14px; color: #f3d4b3; }
.demo-note i { font-size: 18px; color: var(--accent); margin-top: 1px; }
@media (max-width: 559px) { .pay-grid { grid-template-columns: minmax(0, 1fr); } }

.checklist { display: grid; gap: 10px; }
.cl-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--line-2); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg input.bad:checked + span { background: var(--bad); color: #2a0e0a; }
@media (max-width: 559px) { .cl-item { grid-template-columns: minmax(0, 1fr); } }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.photos figure { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface); }
.photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photos .add { display: grid; place-items: center; align-content: center; gap: 6px; aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 13.5px; text-align: center; padding: 8px; transition: border-color 200ms var(--ease), color 200ms var(--ease); }
.photos .add i { font-size: 26px; color: var(--accent); }
@media (hover: hover) { .photos .add:hover { border-color: var(--accent); color: var(--text); } }
@media (max-width: 559px) { .photos { grid-template-columns: repeat(2, 1fr); } }
.progress-txt { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }

.summary { position: sticky; top: calc(var(--nav-h) + var(--nav-gap) * 2 + 12px); display: grid; gap: 16px; }
.sum-card { overflow: hidden; padding: 0; }
.sum-img { position: relative; height: 150px; }
.sum-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sum-body { padding: 20px; display: grid; gap: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-row span:first-child { color: var(--muted); }
.sum-row.t { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.1rem; }
.sum-row.t span:first-child { color: var(--text); }

.thread { display: grid; gap: 0; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.thread-body { padding: 18px; display: grid; gap: 12px; max-height: 360px; overflow-y: auto; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg small { display: block; margin-top: 4px; font-size: 12px; opacity: 0.7; }
.msg.them { background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.me { background: var(--accent); color: var(--accent-ink); margin-left: auto; border-bottom-right-radius: 4px; }
.thread-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.thread-form .input { min-height: 46px; }
.thread-form .btn { width: 46px; padding: 0; flex: none; height: 46px; }
@media (max-width: 1023px) { .book-layout { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } .anchor-nav { top: calc(var(--nav-h) + var(--nav-gap) * 2); } }

/* ==========================================================================
   STJÓRNBORÐ (leigusali + stjórnandi)
   ========================================================================== */
.dash { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding: 32px 0 24px; }
.side { position: sticky; top: calc(var(--nav-h) + var(--nav-gap) * 2 + 12px); display: grid; gap: 4px; }
.side a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 14px; color: var(--muted); font-weight: 500; font-size: 15px; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.side a i { font-size: 20px; }
.side a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
@media (hover: hover) { .side a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); } }
.side .count { margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; }
@media (max-width: 899px) {
  .dash { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .side { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .side::-webkit-scrollbar { display: none; }
  .side a { height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
}
.dash-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.dash-head h1 { font-size: clamp(1.8rem, 1rem + 2.4vw, 2.9rem); letter-spacing: -0.035em; }
.dpanel { margin-bottom: 44px; scroll-margin-top: 100px; }
.dpanel > h2 { font-size: 1.5rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.kpi.hot { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.kpi span { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.kpi.hot span { color: rgba(29, 16, 6, 0.78); }
.kpi b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 1rem + 1.4vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.1; }
.kpi small { font-size: 13.5px; color: var(--ok); font-weight: 500; }
.kpi.hot small { color: rgba(29, 16, 6, 0.78); }
@media (max-width: 1099px) { .kpis { grid-template-columns: 1fr 1fr; } }

.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; height: 190px; margin-top: 20px; }
.bar { display: grid; gap: 8px; align-items: end; height: 100%; grid-template-rows: 1fr auto; }
.bar i { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: var(--surface-2); align-self: end; font-style: normal; height: var(--h); }
.bar.cur i { background: var(--accent); }
.bar span { text-align: center; font-size: 13px; color: var(--muted); }
.bar-val { display: none; }

.rows { display: grid; gap: 10px; }
.row-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.row-card .thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.row-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; font-family: var(--font-body); }
.row-card .sub { color: var(--muted); font-size: 14px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.row-card .figure { text-align: right; font-weight: 700; white-space: nowrap; }
.row-card .figure small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
@media (max-width: 719px) {
  .row-card { grid-template-columns: 64px 1fr; }
  .row-card .thumb { width: 64px; height: 64px; }
  .row-card .figure { text-align: left; grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; }
  .row-card .figure small { display: inline; }
  .row-card > :last-child { grid-column: 1 / -1; }
}

.req { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: opacity 300ms var(--ease), border-color 300ms var(--ease); }
.req h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }
.req .sub { color: var(--muted); font-size: 14.5px; }
.req .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.req.done-ok { border-color: rgba(127, 207, 166, 0.4); }
.req.done-no { opacity: 0.6; }
@media (max-width: 759px) { .req { grid-template-columns: auto 1fr; } .req .acts { grid-column: 1 / -1; justify-content: stretch; } .req .acts .btn { flex: 1; } }

.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.cal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-top h3 { font-size: 1.3rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; font-size: 13px; color: var(--faint); padding: 4px 0 6px; font-weight: 500; }
.cal button, .cal .blank { aspect-ratio: 1; min-height: 44px; border-radius: 12px; }
.cal button { display: grid; place-items: center; font-weight: 600; font-size: 15px; background: var(--surface); border: 1px solid var(--line); transition: transform 140ms var(--ease), border-color 200ms var(--ease); }
.cal button:active { transform: scale(0.94); }
.cal button.booked { background: var(--accent); color: var(--accent-ink); border-color: transparent; cursor: default; }
.cal button.blocked { background: repeating-linear-gradient(135deg, #1c2530 0 6px, #232f3c 6px 12px); color: var(--faint); text-decoration: line-through; }
.cal button.today { border-color: var(--text); }
@media (hover: hover) { .cal button:not(.booked):hover { border-color: var(--accent); } }
.legend { display: grid; gap: 12px; font-size: 14.5px; color: var(--muted); }
.legend div { display: flex; align-items: center; gap: 12px; }
.legend i { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); }
.legend i.b { background: var(--accent); border-color: transparent; }
.legend i.x { background: repeating-linear-gradient(135deg, #1c2530 0 4px, #2a3745 4px 8px); }
@media (max-width: 899px) { .cal-wrap { grid-template-columns: minmax(0, 1fr); } }

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
@media (hover: hover) { .tab:hover { color: var(--text); } }
.tab .count { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
[role="tabpanel"][hidden] { display: none; }

.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-weight: 500; font-size: 13px; color: var(--faint); padding: 0 14px 12px; }
.tbl td { padding: 14px; vertical-align: middle; border-top: 1px solid var(--line); }
.tbl tbody tr { transition: background-color 200ms var(--ease); }
@media (hover: hover) { .tbl tbody tr:hover { background: rgba(255, 255, 255, 0.025); } }
.tbl .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tbl .who small { display: block; color: var(--muted); font-size: 13.5px; }
.tbl .select { min-height: 40px; font-size: 14.5px; max-width: 170px; }
@media (max-width: 799px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 14px; margin-bottom: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
  .tbl td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .tbl td::before { content: attr(data-l); color: var(--faint); font-size: 13px; flex: none; }
  .tbl td.who-cell::before { display: none; }
  .tbl .select { max-width: none; flex: 1; }
}

.case { display: grid; gap: 16px; padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.case + .case { margin-top: 14px; }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: start; }
.case-head h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case-col { padding: 16px; border-radius: 14px; background: var(--bg-2); font-size: 14.5px; display: grid; gap: 6px; }
.case-col b { font-size: 13px; color: var(--faint); font-weight: 600; }
.case-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 639px) { .case-cols { grid-template-columns: minmax(0, 1fr); } }

.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.set-card { display: grid; gap: 16px; align-content: start; }
.set-card h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }
.unit { position: relative; }
.unit .input { padding-right: 52px; }
.unit::after { content: attr(data-u); position: absolute; right: 16px; bottom: 13px; color: var(--muted); font-weight: 600; pointer-events: none; }
@media (max-width: 759px) { .set-grid { grid-template-columns: minmax(0, 1fr); } }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lift); transition: opacity 240ms var(--ease), transform 240ms var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: #1b6a45; font-size: 20px; }

/* ==========================================================================
   APP (símarammar)
   ========================================================================== */
.app-intro { padding: 48px 0 24px; display: grid; gap: 14px; }
.app-intro h1 { font-size: clamp(2rem, 1rem + 3.4vw, 4rem); letter-spacing: -0.035em; max-width: 18ch; }
.phones { display: grid; grid-template-columns: repeat(4, max-content); justify-content: center; gap: 32px 28px; padding: 24px 16px 72px; }
.phone-cell { display: grid; gap: 18px; justify-items: center; }
.phone-cell h2 { font-size: 1.2rem; font-weight: 700; font-family: var(--font-body); letter-spacing: -0.01em; }
.phone-cell h2 small { font-weight: 400; color: var(--muted); font-size: 14.5px; margin-left: 6px; }
.device { padding: 10px; border-radius: 58px; background: linear-gradient(160deg, #2a3541, #121820); border: 1px solid var(--line-2); box-shadow: var(--shadow-lift); }
.screen { position: relative; width: 375px; height: 812px; border-radius: 48px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; isolation: isolate; }
.screen::before { content: ""; position: absolute; top: 11px; left: 50%; width: 112px; height: 32px; margin-left: -56px; border-radius: 20px; background: #000; z-index: 30; }
.statusbar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 14px 30px 0 34px; font-weight: 600; font-size: 15px; position: relative; z-index: 20; }
.statusbar span { display: inline-flex; gap: 6px; font-size: 17px; }
.statusbar.on-img { position: absolute; top: 0; left: 0; right: 0; }
.scr-body { flex: 1; overflow: hidden; padding: 4px 18px 0; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.scr-body h3 { font-size: 1.7rem; letter-spacing: -0.035em; }
.a-search { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 15px; color: var(--muted); }
.a-search i { color: var(--accent); font-size: 22px; }
.a-chips { display: flex; gap: 8px; overflow: hidden; flex: none; }
.a-chips .chip { height: 44px; }
.a-card { position: relative; isolation: isolate; flex: none; overflow: hidden; border-radius: 22px; height: 214px; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.a-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.a-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 18, 24, 0) 30%, rgba(13, 18, 24, 0.94) 100%); }
.a-card .in { padding: 16px; width: 100%; display: grid; gap: 4px; }
.a-card h4 { font-size: 1.15rem; letter-spacing: -0.02em; }
.a-card .r { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #d3dae1; }
.a-card .r b { color: var(--text); font-size: 15.5px; }
.a-card .fav { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; }
.tabbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 8px 26px; background: rgba(18, 25, 34, 0.98); border-top: 1px solid var(--line-2); }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 54px; font-size: 12px; font-weight: 500; color: var(--faint); border-radius: 14px; }
.tabbar a i { font-size: 26px; }
.tabbar a.on { color: var(--accent); }
.a-hero { position: relative; flex: none; height: 290px; isolation: isolate; }
.a-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.a-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 18, 24, 0.5) 0%, rgba(13, 18, 24, 0) 30%, rgba(13, 18, 24, 0) 60%, var(--bg) 100%); }
.a-hero .back, .a-hero .fav { position: absolute; top: 60px; width: 44px; height: 44px; z-index: 5; }
.a-hero .back { left: 16px; } .a-hero .fav { right: 16px; }
.a-spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: none; }
.a-spec div { padding: 10px 4px; text-align: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }
.a-spec b { color: var(--text); font-size: 15px; font-family: var(--font-display); letter-spacing: -0.02em; }
.a-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; flex: none; }
.a-row .p { font-weight: 600; white-space: nowrap; }
.a-row .l { display: flex; align-items: center; gap: 12px; }
.a-row .l i { color: var(--accent); font-size: 22px; }
.a-cta { flex: none; padding: 12px 18px 30px; background: rgba(13, 18, 24, 0.96); border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 14px; }
.a-cta .btn { flex: 1; height: 56px; font-size: 16px; }
.a-cta b { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.1; }
.a-cta small { display: block; font-size: 12.5px; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.a-steps { display: flex; align-items: center; gap: 6px; flex: none; }
.a-steps i { height: 5px; flex: 1; border-radius: 3px; background: var(--line-2); }
.a-steps i.d { background: var(--accent); }
.a-paper { flex: none; border-radius: 20px; background: var(--paper); color: var(--ink); padding: 16px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.45; }
.a-paper h4 { font-size: 1.1rem; letter-spacing: -0.02em; }
.a-paper p { color: var(--ink-muted); }
.a-paper .sigline { margin-top: 4px; min-height: 48px; border-radius: 12px; background: #f8f7f3; border: 1px solid rgba(22, 27, 33, 0.24); padding: 12px 14px; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.a-pay { flex: none; display: grid; gap: 10px; }
.a-field { height: 52px; padding: 0 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.a-field span { color: var(--muted); font-size: 13px; }
.a-prof { display: flex; align-items: center; gap: 16px; flex: none; }
.a-prof h3 { font-size: 1.4rem; }
.a-list { display: grid; gap: 8px; flex: none; }
.a-book { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.a-book img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.a-book b { display: block; font-size: 15px; }
.a-book small { color: var(--muted); font-size: 13px; }
.a-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; flex: none; }
.a-kpis div { padding: 12px 8px; text-align: center; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); }
.a-kpis b { color: var(--text); font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.03em; }

@media (max-width: 1439px) { .phones { grid-template-columns: repeat(2, max-content); } }
@media (min-width: 1440px) { .phone-cell .device { zoom: 0.82; } .phone-cell { gap: 10px; } .phones { gap: 32px 20px; } }
@media (min-width: 1440px) {
  .phones { grid-template-columns: repeat(4, max-content); }
}
@media (max-width: 859px) { .phones { grid-template-columns: max-content; } }
@media (max-width: 439px) { .phone-cell .device { zoom: 0.8; } .phone-cell h2 { font-size: 1.1rem; } }
@supports not (zoom: 1) {
  @media (max-width: 439px) { .phones { justify-content: start; overflow-x: auto; } }
}

/* ---------- Þröng skjáir ---------- */
@media (max-width: 479px) {
  .card:not(.flush):not(.sum-card) { padding: 18px; }
  .paper { padding: 22px; }
  .cal { gap: 4px; }
  .cal button, .cal .blank { min-height: 0; min-width: 0; }
  .cal button { font-size: 14px; border-radius: 10px; }
}
