:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.68);
  --muted2: rgba(11, 18, 32, 0.52);
  --border: rgba(11, 18, 32, 0.1);

  --accent: #ff3b30;
  --accent2: #ff6a5f;

  --radius: 22px;
  --max: 1120px;
  --shadow: 0 18px 45px rgba(11, 18, 32, 0.1);
  --shadow2: 0 10px 25px rgba(11, 18, 32, 0.08);

  --headerOffset: 96px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(900px 500px at 10% 0%, rgba(255, 59, 48, 0.12), transparent 55%),
    radial-gradient(800px 450px at 90% 10%, rgba(255, 106, 95, 0.1), transparent 55%), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.45;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

section[id] {
  scroll-margin-top: var(--headerOffset);
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(246, 247, 251, 0.74);
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brandMark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 24px rgba(255, 59, 48, 0.22);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  line-height: 1;
}

/* Desktop nav links */
.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navlinks a {
  padding: 8px 2px;
  color: var(--muted);
  font-weight: 650;
  position: relative;
}

.navlinks a:hover {
  color: var(--text);
}

.navlinks a.navCta {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.25);
  color: #c71c13;
  font-weight: 850;
}

.navlinks a.navCta:hover {
  background: rgba(255, 59, 48, 0.14);
}

.navlinks a.isActive {
  color: var(--text);
}

.navlinks a.isActive::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
}

.navlinks a.navCta.isActive::after {
  display: none;
}

/* -----------------------------------------------------
   MOBILE NAV (hamburger + full-width dropdown)
----------------------------------------------------- */

.mobileNavToggle {
  display: none;
}

@media (max-width: 820px) {
  .navlinks {
    display: none; /* hide desktop nav on mobile */
  }

  .mobileNavToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(11, 18, 32, 0.12);
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    box-shadow: var(--shadow2);
  }

  .mobileNavToggle:hover {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* 3-line hamburger icon */
.hamburger {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.hamburger span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.72);
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* X state */
.mobileNavToggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobileNavToggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobileNavToggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobileMenu {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.15);
  overflow-y: auto;
  max-height: calc(100vh - 62px);
}

.mobileMenuLinks {
  display: grid;
  gap: 10px;
  padding: 16px 0 20px;
}

.mobileMenuLinks a {
  display: block;
  padding: 14px 12px 14px 24px;
  border-radius: 14px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(11, 18, 32, 0.02);
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
}

.mobileMenuLinks a:hover {
  background: rgba(11, 18, 32, 0.04);
}

.mobileMenuLinks a.isActive {
  border-color: rgba(255, 59, 48, 0.5) !important;
  background: rgba(255, 59, 48, 0.12) !important;
  color: #c71c13 !important;
}

.mobileMenuLinks a.isActive::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 999px;
}

.mobileMenuLinks a.navCta.isActive::before {
  display: none;
}

/* -----------------------------------------------------
   SECTIONS / CARDS
----------------------------------------------------- */

section {
  padding: 70px 0;
}

.hero {
  padding: 52px 0 32px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.heroMain {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.heroMain::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(520px 280px at 20% 25%, rgba(255, 59, 48, 0.18), transparent 60%),
    radial-gradient(500px 260px at 80% 30%, rgba(255, 106, 95, 0.12), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.heroMain > * {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 30px;
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.sectionTitle {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.subtitle {
  margin: 0;
  color: var(--muted2);
  font-size: 14px;
}

/* -----------------------------------------------------
   HOW-TO / BUTTONS
----------------------------------------------------- */

.howtoHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.btn {
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow2);
  transition: transform 120ms ease, filter 120ms ease, background 120ms ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 1);
}

.btn:active {
  transform: translateY(1px);
}

/* Primary button */
.btn.btnPrimary {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  padding: 12px 16px;
}

.btn.btnPrimary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  filter: brightness(1.04);
}

.btn.btnPrimary:active {
  filter: brightness(0.98);
}

/* -----------------------------------------------------
   STEPS GRID
----------------------------------------------------- */

.stepsGrid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 980px) {
  .stepsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .stepsGrid {
    grid-template-columns: 1fr;
  }
}

.stepCard {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(11, 18, 32, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow2);
  display: grid;
  gap: 10px;
  align-content: start;
}

.stepTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stepNum {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.22);
  color: #c71c13;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
}

.stepTitle {
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.01em;
  font-size: 14px;
}

.stepText {
  margin: 0;
  color: rgba(11, 18, 32, 0.68);
  font-size: 13px;
}

.stepImg {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, 0.1);
  background: rgba(11, 18, 32, 0.04);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.stepImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -----------------------------------------------------
   DIALOG / MODAL VIDEO
----------------------------------------------------- */

dialog {
  width: min(940px, calc(100% - 24px));
  border: none;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(11, 18, 32, 0.28);
  background: rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(6px);
}

.dialogHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.dialogHeader strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.iconBtn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.iconBtn:hover {
  background: rgba(255, 255, 255, 1);
}

.dialogBody {
  padding: 14px;
}

.dialogVideoFrame {
  width: min(420px, 100%);
  margin: 0 auto;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, 0.12);
}

.dialogVideoFrame video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* -----------------------------------------------------
   CUSTOMERS
----------------------------------------------------- */

.logos3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 800px) {
  .logos3 {
    grid-template-columns: 1fr;
  }
}

.logoItem {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(11, 18, 32, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow2);
  display: grid;
  place-items: center;
  min-height: 98px;
}

.logoItem img {
  max-width: 100%;
  max-height: 54px;
  opacity: 0.95;
  filter: grayscale(1);
  transition: filter 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.logoItem:hover img {
  filter: grayscale(0);
  transform: translateY(-1px);
  opacity: 1;
}

/* -----------------------------------------------------
   FORM + VALIDATION
----------------------------------------------------- */

form {
  display: grid;
  gap: 12px;
}

.fieldRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 700px) {
  .fieldRow {
    grid-template-columns: 1fr;
  }
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(11, 18, 32, 0.78);
  font-size: 13px;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  outline: none;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 59, 48, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

.reqMark {
  color: var(--accent);
  font-weight: 900;
  margin-left: 6px;
}

.fieldError {
  display: none;
  margin-top: 6px;
  color: #c71c13;
  font-size: 12.5px;
  font-weight: 650;
}

.fieldError.show {
  display: block;
}

input.isInvalid,
textarea.isInvalid {
  border-color: rgba(199, 28, 19, 0.55);
  box-shadow: 0 0 0 4px rgba(199, 28, 19, 0.12);
}

input.isInvalid:focus,
textarea.isInvalid:focus {
  border-color: rgba(199, 28, 19, 0.65);
  box-shadow: 0 0 0 4px rgba(199, 28, 19, 0.16);
}

.btnPrimarySubmit {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  width: 150px;
  display: inline-flex;
  justify-content: center;
}

.btnPrimarySubmit:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  filter: brightness(1.04);
}

.btnPrimarySubmit:active {
  filter: brightness(0.98);
}

.formNote {
  color: var(--muted2);
  font-size: 13px;
}

.toast {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: var(--shadow2);
}

.toast.show {
  display: block;
}

.contactInner {
  display: grid;
  gap: 14px;
}

/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */

footer {
  padding: 30px 0 44px;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
  color: var(--muted2);
}

.footerGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.footerMeta {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  color: rgba(11, 18, 32, 0.58);
  font-size: 13px;
}

.footerMeta a {
  text-decoration: underline;
}

/* -----------------------------------------------------
   COOKIE BANNER
----------------------------------------------------- */

.cookieBanner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookieCard {
  max-width: 640px;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  box-shadow: 0 18px 45px rgba(11, 18, 32, 0.2);
  padding: 20px 24px;
  pointer-events: auto;
}

.cookieText {
  margin-bottom: 16px;
}

.cookieText strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--text);
}

.cookieText p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.cookieActions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cookieBanner {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  
  .cookieCard {
    padding: 16px 18px;
  }
  
  .cookieActions {
    flex-direction: column;
  }
  
  .cookieActions .btn {
    width: 100%;
  }
}

/* =========================
   VERÐ + REIKNIVÉL
========================= */

#verd .card {
  overflow: hidden;
}

.sectionIntro {
  margin: 8px 0 0;
  color: var(--muted2);
  font-size: 14px;
}

.priceHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

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

.priceGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 780px) {
  .priceGrid {
    grid-template-columns: 1fr;
  }
}

.priceCard {
  border: 1px solid rgba(11, 18, 32, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow2);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
}

.priceIcon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.22);
  font-size: 22px;
}

.priceMeta {
  display: grid;
  gap: 4px;
}

.priceName {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.priceValue {
  font-weight: 900;
  color: var(--text);
}

.priceValue span {
  font-weight: 750;
  color: var(--muted2);
  margin-left: 6px;
  font-size: 12.5px;
}

/* Reiknivél */
.calcWrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}

.calcGrid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
}

@media (max-width: 900px) {
  .calcGrid {
    grid-template-columns: 1fr;
  }
}

.calcField {
  display: grid;
  gap: 8px;
  color: rgba(11, 18, 32, 0.78);
  font-size: 13px;
  font-weight: 650;
}

.calcField input,
.calcField select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  outline: none;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02);
}

.calcField input:focus,
.calcField select:focus {
  border-color: rgba(255, 59, 48, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

.calcButtons {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .calcButtons {
    justify-content: flex-start;
  }
}

.calcResult {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow2);
  display: none;
}

.calcResult.show {
  display: block;
}

.calcResult strong {
  font-weight: 950;
}

.calcNote {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted2);
}

.calcGridSimple {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .calcGridSimple {
    grid-template-columns: 1fr;
  }
}
