/* Öryggisúttektir Photon – stílar */

:root {
  --navy: #0E1527;
  --navy-2: #121B31;
  --navy-line: #26324F;
  --blue: #3763E3;
  --blue-hover: #2C55D0;
  --blue-ink: #2647B8;
  --blue-soft: #E7EDFD;
  --blue-light: #8FA8FF;
  --paper: #F4F6FB;
  --white: #FFFFFF;
  --ink: #0E1527;
  --muted: #4A5468;
  --muted-on-navy: #B9C3DD;
  --line: #D6DCEA;
  --red: #A8232B;
  --red-soft: #FBE9EA;

  --sans: 'IBM Plex Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --max: 1180px;
  --gutter: 24px;
  --radius: 12px;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-ink);
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Hnappar */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 16px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-ghost { border-color: #33405F; color: #F4F6FC; }
.btn-ghost:hover { border-color: var(--muted-on-navy); color: #F4F6FC; }
.btn-outline { border-color: var(--blue); color: var(--blue-ink); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Haus */

.hero { background: var(--navy); color: #F4F6FC; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 24px;
}
.logo { width: 132px; height: auto; }

.hero-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 64px 88px;
}
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.1; letter-spacing: -0.01em; }
.hero .lead { font-size: 21px; color: var(--muted-on-navy); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-from { font-size: 15px; color: var(--muted-on-navy); }
.hero-from .mono { color: #F4F6FC; }

/* „Staða: óþekkt“ spjaldið */

.readout {
  flex: 1 1 380px;
  min-width: 0;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  background: var(--navy-2);
  font-family: var(--mono);
  font-size: 15px;
}
.readout-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--navy-line);
  color: #A9B4D0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.readout ul { list-style: none; margin: 0; padding: 0; }
.readout li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px dashed var(--navy-line);
}
.readout li:last-child { border-bottom: 0; }
.readout .q { color: var(--blue-light); animation: blink 2.4s steps(2, start) infinite; }
.readout li:nth-child(2) .q { animation-delay: .4s; }
.readout li:nth-child(3) .q { animation-delay: .8s; }
.readout li:nth-child(4) .q { animation-delay: 1.2s; }
.readout li:nth-child(5) .q { animation-delay: 1.6s; }
.readout li:nth-child(6) .q { animation-delay: 2s; }
.readout-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--navy-line);
  color: #A9B4D0;
  font-size: 13px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .readout .q { animation: none; } }

/* Kaflar */

.section { border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
.section-inner { padding-block: 80px; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 38px); }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > * { min-width: 0; }

.intro .section-head { flex: 1 1 380px; }
.intro-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; }

/* Leiðirnar tvær */

.paths { display: flex; flex-wrap: wrap; gap: 24px; }
.path {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.path.featured { border: 2px solid var(--blue); }
.path-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.path h3 { font-size: 26px; }
.path > p { color: var(--muted); }
.path ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.duration {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue-ink);
  background: var(--blue-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.path-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.path-price span { font-size: 14px; color: var(--muted); }
.path-price strong { font-family: var(--mono); font-size: 28px; font-weight: 500; }
.path .btn { align-self: flex-start; min-height: 46px; padding: 0 22px; }

/* Hvað gætum við fundið */

.findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.finding { background: var(--white); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.finding svg { width: 26px; height: 26px; color: var(--blue); }
.finding p { font-weight: 500; }

/* Ferlið */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}
.steps li:first-child { border-top-color: var(--blue); }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--blue-ink);
}
.steps h3 { font-size: 19px; }
.steps p { font-size: 15px; color: var(--muted); }

/* Skráning */

.signup { background: var(--navy); color: #F4F6FC; }
.signup .eyebrow { color: var(--blue-light); }
.signup-inner { padding-block: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.signup-aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.signup-aside h2 { font-size: clamp(30px, 3.4vw, 38px); }
.signup-aside p { color: var(--muted-on-navy); }
.signup-aside strong { color: #F4F6FC; font-weight: 600; }
.contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--navy-line);
  font-family: var(--mono);
  font-size: 15px;
}

.form {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
}
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label, .group legend { font-size: 15px; font-weight: 600; }
.req { color: var(--blue-ink); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

/* Fellilisti */

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5468' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
  cursor: pointer;
}
.field select:invalid { color: var(--muted); }

/* Skyringar og villur */

.field-note { font-size: 13px; color: var(--muted); }
.field-error { font-size: 14px; font-weight: 500; color: var(--red); }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: var(--red-soft);
}
.field input[aria-invalid="true"]:focus,
.field select[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(168, 35, 43, .15);
}

.form-errors {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--red);
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 15px;
}
.form-errors p { color: var(--ink); }

/* Val sem hnappar (radio) */

.group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.choices { display: grid; gap: 8px; }
.choices-3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choices-4 { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
}
.choice input:checked + span {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }

/* Gildra fyrir ruslpóstróbóta: falið frá fólki */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { align-self: flex-start; min-width: 200px; }

/* Takk-síðan */

.takk-section { align-items: center; }
.takk {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.takk-badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.takk-badge svg { width: 30px; height: 30px; }

.takk h1 { font-size: clamp(30px, 4vw, 42px); }
.takk-lead { font-size: 19px; color: var(--muted); }
.takk-fine { font-size: 15px; color: var(--muted); }

.takk-next {
  width: 100%;
  margin-top: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
}
.takk-next h2 { font-size: 17px; }
.takk-next ol {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: takk;
}
.takk-next li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.takk-next li::before {
  counter-increment: takk;
  content: counter(takk);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-family: var(--mono);
  font-size: 13px;
}
.takk-next strong { display: block; font-size: 16px; font-weight: 600; }
.takk-next span { font-size: 15px; color: var(--muted); }

.takk-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 15px;
}
.takk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 4px; }

@media (max-width: 640px) {
  .takk-next { padding: 20px; }
  .takk-badge { width: 52px; height: 52px; }
  .takk-badge svg { width: 26px; height: 26px; }
}

/* Fótur */

.footer { border-top: 1px solid var(--navy-line); background: var(--navy); color: #A9B4D0; font-size: 14px; }
.footer-inner { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer .logo { width: 104px; }

/* Sími */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .btn { display: none; }
  .hero-body { padding-block: 24px 56px; gap: 40px; }
  .section-inner { padding-block: 56px; }
  .signup-inner { padding-block: 56px; }
  .path, .form { padding: 22px; }
  .choices-3, .choices-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices-3 .choice:last-child { grid-column: 1 / -1; }
}
