@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-var.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --panel: #0c2a2a;
  --accent: #32e6e2;
  --on-accent: #12181f;
  --green: #22c55e;
  --danger: #ffa394;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mörk yta: sidans grund, och de mörka korten som ligger på en vit yta. */
:root,
.service,
.result,
.call .ai,
.contact {
  color-scheme: dark;
  --bg: #12181f;
  --link: #32e6e2;
  --accent-hover: #74f0ed;
  --text: #defffe;
  --text-2: #a5bec0;
  --heading: #e6ecf2;
  --muted: #7e8792;
  --todo: #ffd166;
  --soft: rgba(255, 255, 255, 0.098);
  --line: rgba(222, 255, 254, 0.14);
  --line-strong: rgba(222, 255, 254, 0.3);
  --line-control: rgba(222, 255, 254, 0.42);
  --line-accent: rgba(50, 230, 226, 0.24);
  color: var(--text);
}

/* Vit yta: sidhuvudet och sektioner som förklarar något. Turkos går inte att läsa på vitt, så länkar blir mörkt turkosa. */
.site-header,
.section--light {
  color-scheme: light;
  --bg: #ffffff;
  --link: #05696a;
  --accent-hover: #22cfcb;
  --text: #2b3640;
  --text-2: #56636f;
  --heading: #12181f;
  --todo: #8a5a00;
  --soft: rgba(18, 24, 31, 0.06);
  --line: rgba(18, 24, 31, 0.14);
  --line-strong: rgba(18, 24, 31, 0.3);
  background: var(--bg);
  color: var(--text);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  scrollbar-color: #33414d var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

p {
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}

li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2.5px;
}

a[href^="tel:"] {
  white-space: nowrap;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 800;
  word-spacing: 0.06em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 1.2rem + 5.6vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

@media (max-width: 359px) {
  h1 {
    font-size: 12.2vw;
  }
}

@media (max-width: 419px) {
  .h1--long {
    font-size: 10.3vw;
  }
}

h2 {
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

@media (max-width: 419px) {
  h2 {
    font-size: min(8.7vw, clamp(2.125rem, 1.4rem + 3vw, 3.75rem));
  }
}

h3 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 40;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}

.skip:focus {
  top: 12px;
}

.icon {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.stop {
  color: var(--green);
}

.nb {
  white-space: nowrap;
}

.todo {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px dashed var(--todo);
  border-radius: 6px;
  color: var(--todo);
  font-weight: 700;
}

/* Knappar */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 56px;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s var(--ease);
}

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

.btn:focus-visible {
  border-radius: 14px;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.btn--primary:disabled:hover {
  background: var(--accent);
}

.btn--ghost {
  background: var(--soft);
  border-color: var(--line-strong);
  color: var(--link);
}

.btn--ghost:hover {
  border-color: var(--link);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 48px;
  font-weight: 800;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

.more .icon {
  transition: transform 0.2s var(--ease);
}

.more:hover .icon {
  transform: translateX(4px);
}

/* Sidhuvud */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: flex;
  flex: none;
  align-items: center;
  min-height: 48px;
  border-radius: 10px;
}

.logo img {
  width: auto;
  height: 38px;
}

@media (max-width: 359px) {
  .logo img {
    height: 32px;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--soft);
  color: var(--heading);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle .icon--close,
.menu-toggle[aria-expanded="true"] .icon--open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon--close {
  display: block;
}

.nav {
  display: none;
}

.site-header.is-open .nav {
  position: fixed;
  inset: 69px 0 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
}

.nav__links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: flex;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font-size: 1.375rem;
  font-weight: 800;
  text-decoration: none;
}

.nav__links a[aria-current="page"] {
  color: var(--link);
}

.nav__actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.status__dot {
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--muted);
}

.status.is-open .status__dot {
  background: var(--green);
}

/* Fast rad i mobilen */

.callbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  transition: transform 0.22s var(--ease);
}

.callbar .btn {
  min-height: 52px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}

.callbar.is-hidden,
body.menu-open .callbar {
  transform: translateY(110%);
}

/* Raden väntar tills skriptet vet om samma knappar redan syns. Utan skript syns den som vanligt. */
html.js .callbar:not(.is-ready) {
  transform: translateY(110%);
}

/* Topp */

.hero {
  padding-block: clamp(28px, 5vw, 64px) clamp(44px, 5vw, 72px);
}

.hero__grid {
  display: grid;
  gap: 44px;
}

h1 .quiet {
  display: block;
  color: var(--muted);
}

.lead {
  margin-top: 1.25rem;
  max-width: 34em;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.45;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: 0.875rem;
  max-width: none;
  color: var(--text-2);
  font-size: 1rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
  padding: 22px 0 clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.facts .icon {
  color: var(--link);
}

/* Linjeteckningar */

.art {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero .art {
  max-width: 460px;
  margin-inline: auto;
}

.art .s {
  fill: none;
  stroke: var(--heading);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art .s-thick {
  fill: none;
  stroke: var(--heading);
  stroke-width: 6;
  stroke-linecap: round;
}

.art .s-thin {
  fill: none;
  stroke: var(--text-2);
  stroke-width: 3;
  stroke-linecap: round;
}

.art .w {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art .fill-accent {
  fill: var(--accent);
}

.art .fill-soft {
  fill: rgba(50, 230, 226, 0.12);
  stroke: var(--accent);
  stroke-width: 2;
}

.art .fill-green {
  fill: var(--green);
}

.art text {
  font-family: inherit;
}

.art .t {
  fill: var(--heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.art .t-body {
  fill: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.art .t-small {
  fill: var(--text-2);
  font-size: 16px;
  font-weight: 600;
}

.art .t-strong {
  fill: var(--heading);
  font-size: 17px;
  font-weight: 800;
}

.art .t-btn {
  fill: var(--on-accent);
  font-size: 17px;
  font-weight: 800;
  text-anchor: middle;
}

.art .t-btn2 {
  fill: var(--heading);
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
}

.art .t-label {
  fill: var(--text-2);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-anchor: end;
}

.art .s-h {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art .fill-bg {
  fill: var(--panel);
}

.art--scale .s,
.art--scale .w,
.art--scale .s-h,
.art--scale .s-thick,
.art--scale .s-thin,
.art--scale .fill-soft {
  vector-effect: non-scaling-stroke;
}

/* Sektioner */

.section {
  padding-block: var(--section);
}

.section + .section {
  padding-top: 0;
}

/* Där ytan byter färg behöver sektionen sin luft även upptill. */
.section--light + .section:not(.section--light),
.section:not(.section--light) + .section--light {
  padding-top: var(--section);
}

.section__head {
  margin-bottom: clamp(28px, 4vw, 52px);
  max-width: 46rem;
}

.section__head p {
  margin-top: 1rem;
}

/* Tjänster */

.services {
  display: grid;
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line-accent);
  border-radius: 24px;
  background: var(--panel);
}

.service .art {
  margin-bottom: 28px;
  max-width: 420px;
}

.service h3 {
  font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.75rem);
  letter-spacing: -0.03em;
}

@media (max-width: 419px) {
  .service h3 {
    font-size: min(7.4vw, clamp(1.875rem, 1.5rem + 1.4vw, 2.75rem));
  }
}

.service > p {
  margin-top: 0.75rem;
}

.checks {
  margin: 20px 0 16px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  line-height: 1.4;
}

.checks .icon {
  margin-top: 0.1em;
  color: var(--link);
}

.service .more {
  margin-top: auto;
}

/* Så går det till */

.steps {
  --dot: 46px;
  --count: 4;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 0 0 36px calc(var(--dot) + 18px);
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: var(--dot);
  bottom: 0;
  left: calc(var(--dot) / 2 - 1px);
  width: 2px;
  background: var(--link);
  transform-origin: top;
}

.step:last-child::before {
  display: none;
}

.step__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--dot);
  height: var(--dot);
  border: 2px solid var(--link);
  border-radius: 50%;
  background: var(--bg);
  color: var(--link);
  font-weight: 800;
}

.step:last-child .step__num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.step h3 {
  padding-top: 0.45rem;
  font-size: clamp(1.3125rem, 1.2rem + 0.5vw, 1.5rem);
}

.step p {
  margin-top: 0.4rem;
}

.steps-note {
  margin-top: 32px;
  color: var(--text-2);
}

/* Exempel */

.example {
  display: grid;
  gap: 36px;
}

.example__text p {
  margin-top: 1rem;
}

.example__text .more {
  margin-top: 0.75rem;
}

.mock-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 0.4em 0.8em;
  border: 1px solid var(--link);
  border-radius: 8px;
  color: var(--link);
}

.mock {
  position: relative;
}

.ex-browser {
  display: none;
}

.ex-phone {
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 9px;
  border: 2px solid var(--line-strong);
  border-radius: 36px;
  background: #0a0e13;
}

.ex-phone .ex-site {
  border-radius: 27px;
}

.ex-site {
  overflow: hidden;
  background: #ffffff;
  color: #1d2b36;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.ex-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  font-weight: 800;
}

.ex-nav span {
  color: #51606c;
  font-size: 0.75rem;
  font-weight: 600;
}

.ex-hero {
  padding: 22px 14px 20px;
  background: #124559;
  color: #ffffff;
}

.ex-h {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ex-p {
  margin-top: 8px;
  color: #d8e8ee;
}

.ex-btns {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.ex-btn {
  padding: 9px 10px;
  border-radius: 8px;
  background: #f4a259;
  color: #2a1a09;
  font-weight: 800;
  text-align: center;
}

.ex-btn--2 {
  background: #ffffff;
  color: #124559;
}

.ex-list {
  display: grid;
  gap: 0;
  padding: 8px 14px 14px;
}

.ex-list span {
  padding: 8px 0;
  border-bottom: 1px solid #e3e9ed;
  font-weight: 700;
}

/* Om oss */

.about {
  display: grid;
  gap: 24px;
}

.about__text {
  display: grid;
  gap: 16px;
  max-width: 46rem;
}

.about__text p + p {
  margin-top: 0.25rem;
}

.about__call {
  display: grid;
  justify-items: start;
}

.about__call .big-phone {
  margin-top: 0;
  font-size: clamp(1.875rem, 1rem + 1.6vw, 2.5rem);
}

.about__call .status {
  min-height: 44px;
  font-weight: 700;
}

/* Listor med rubrik och text */

.get {
  display: grid;
  gap: 0 clamp(32px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.get > li,
.get > div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.get b,
.get dt {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 800;
  word-spacing: 0.06em;
  line-height: 1.3;
}

.get dd {
  margin: 0;
}

.statement {
  max-width: 22em;
  color: var(--heading);
  word-spacing: 0.06em;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.statement-note {
  margin-top: 1.25rem;
}

/* Exempelsamtal */

.call-grid {
  display: grid;
  gap: 28px;
}

.call {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.call li {
  max-width: 90%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  line-height: 1.45;
}

.call small {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 800;
}

.call .ai {
  justify-self: start;
  border: 1px solid var(--line-accent);
  border-bottom-left-radius: 4px;
  background: var(--panel);
}

.call .ai small {
  color: var(--link);
}

.call .them {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--soft);
}

.call .them small {
  color: var(--text-2);
}

.result {
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--line-accent);
  border-radius: 20px;
  background: var(--panel);
}

.result + .result {
  margin-top: 14px;
}

.result h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.result p {
  margin-top: 0.5rem;
}

.cal-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.6rem;
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  background: rgba(50, 230, 226, 0.1);
}

.cal-entry__dot {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--green);
}

.cal-entry b {
  color: var(--heading);
  font-weight: 800;
}

.cal-entry span:last-child {
  grid-column: 2;
}

.not-list {
  margin-top: 28px;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
}

.not-list h3 {
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.not-list p {
  margin-top: 0.5rem;
}

/* Kontakt */

.contact {
  display: grid;
  gap: 36px;
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid var(--line-accent);
  border-radius: 28px;
  background: var(--panel);
}

.contact__intro p {
  margin-top: 1rem;
}

.big-phone {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-top: 24px;
  color: var(--link);
  font-size: clamp(1.875rem, 0.9rem + 4.4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  word-spacing: 0.06em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.big-phone:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.contact__meta {
  display: grid;
  justify-items: start;
  margin-top: 8px;
  font-weight: 700;
}

.contact__meta .status {
  min-height: 44px;
}

.contact__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.contact__next h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.next {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}

.next li {
  position: relative;
  padding: 0.1rem 0 1.125rem 44px;
  counter-increment: next;
  line-height: 1.4;
}

.next li:last-child {
  padding-bottom: 0;
}

.next li::before {
  content: counter(next);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
}

.next li:last-child::before {
  background: var(--accent);
  color: var(--panel);
}

.next li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 14.25px;
  width: 1.5px;
  background: var(--accent);
}

.form {
  display: grid;
  gap: 18px;
}

.field > label,
.field legend {
  display: block;
  margin-bottom: 0.4rem;
  padding: 0;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
}

.field fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.optional {
  color: var(--text-2);
  font-weight: 500;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line-control);
  border-radius: 12px;
  background: var(--bg);
  color: #ffffff;
  font: inherit;
  caret-color: var(--accent);
  transition: border-color 0.15s ease;
}

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

.field input:hover,
.field textarea:hover {
  border-color: var(--text-2);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  border-radius: 12px;
  outline-offset: 2px;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
}

.field__error {
  margin-top: 0.4rem;
  color: var(--danger);
  font-size: 1rem;
  font-weight: 700;
}

.choices {
  display: grid;
  gap: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 56px;
  margin: 0;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--line-control);
  border-radius: 12px;
  background: var(--bg);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice:hover {
  border-color: var(--text-2);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(50, 230, 226, 0.1);
}

.choice input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--text-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.choice:hover input:not(:checked) {
  border-color: var(--heading);
}

.choice input:checked {
  border: 7px solid var(--accent);
}

.choice input:focus-visible {
  border-radius: 50%;
}

.form-note {
  color: var(--text-2);
  font-size: 1rem;
}

/* Fällan för robotar. Web3Forms kräver att den är dold med display: none. */
.hp {
  display: none;
}

/* Textsidor */

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.prose p {
  margin-top: 0.75rem;
}

.prose .draft {
  margin-bottom: 1.5rem;
}

.simple-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

/* Sidfot */

.site-footer {
  padding-block: 56px 28px;
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  gap: 32px;
}

.site-footer img {
  width: auto;
  height: 40px;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--link);
  text-decoration: underline;
}

.site-footer li > .status {
  min-height: 44px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* Större skärmar */

@media (min-width: 520px) {
  .actions {
    display: flex;
    flex-wrap: wrap;
  }

  .choices {
    display: flex;
    flex-wrap: wrap;
  }

  .choice {
    flex: 1 1 auto;
    padding-inline: 0.8rem;
  }
}

@media (min-width: 460px) {
  .art .t-body {
    font-size: 15px;
  }

  .art .t-small {
    font-size: 14px;
  }

  .art .t-strong {
    font-size: 15px;
  }

  .art .t-btn {
    font-size: 15px;
  }

  .art .t-btn2 {
    font-size: 13.5px;
  }

  .art .t-label {
    font-size: 12px;
    letter-spacing: 0.18em;
  }
}

@media (min-width: 700px) {
  .callbar {
    padding-inline: max(12px, calc(50% - 280px));
  }
}

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

  .site-footer__grid {
    grid-template-columns: 1fr auto auto;
    column-gap: clamp(32px, 6vw, 96px);
  }
}

@media (min-width: 860px) {
  .services {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(var(--count), minmax(0, 1fr));
    gap: 28px;
  }

  .step,
  .step:last-child {
    padding: calc(var(--dot) + 22px) 0 0;
  }

  .step::before {
    top: calc(var(--dot) / 2 - 1px);
    right: -28px;
    bottom: auto;
    left: var(--dot);
    width: auto;
    height: 2px;
    transform-origin: left;
  }

  .example {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 56px;
  }

  .mock {
    margin-bottom: 34px;
  }

  .ex-browser {
    display: block;
    width: 86%;
    border: 2px solid var(--line-strong);
    border-radius: 16px;
    background: #0a0e13;
    overflow: hidden;
  }

  .ex-browser__bar {
    display: block;
    height: 24px;
    border-bottom: 1px solid var(--line);
  }

  .ex-browser .ex-hero {
    padding: 34px 130px 32px 26px;
  }

  .ex-browser .ex-h {
    font-size: 2rem;
  }

  .ex-browser .ex-btns {
    display: flex;
    gap: 8px;
  }

  .ex-browser .ex-btn {
    padding: 9px 18px;
  }

  .ex-browser .ex-nav {
    padding-inline: 26px 130px;
  }

  .ex-browser .ex-list {
    grid-template-columns: 1fr 0.6fr;
    gap: 0 18px;
    padding: 10px 130px 18px 26px;
  }

  .ex-browser .ex-list span:last-child {
    grid-column: 1 / -1;
  }

  .ex-phone {
    position: absolute;
    right: 0;
    bottom: -34px;
    width: 180px;
    margin: 0;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  }

  .ex-phone .ex-h {
    font-size: 1.1875rem;
  }

  .ex-phone .ex-site {
    font-size: 0.71875rem;
  }

  .ex-phone .ex-hero {
    padding: 16px 12px 14px;
  }

  .ex-phone .ex-list {
    padding: 4px 12px 8px;
  }

  .call-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 40px;
  }

  .contact {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr;
    gap: 36px 56px;
  }

  .form {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .contact__next {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }

  .big-phone {
    font-size: clamp(1.875rem, 3.6vw, 3.5rem);
  }

  .about {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: 56px;
  }

  .about__call {
    padding-left: 32px;
    border-left: 1px solid var(--line-strong);
  }
}

@media (min-width: 1100px) {
  h1 {
    font-size: min(5.4vw, 5rem);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
  }
}

@media (min-width: 1200px) {
  body {
    padding-bottom: 0;
  }

  .ex-phone {
    width: 210px;
  }

  .callbar {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .site-header__row {
    min-height: 76px;
  }

  .logo img {
    height: 42px;
  }

  .nav,
  .site-header.is-open .nav {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-left: 36px;
    padding: 0;
    overflow: visible;
  }

  .nav__links {
    display: flex;
    gap: 26px;
  }

  .nav__links a {
    min-height: 44px;
    border: 0;
    font-size: 1rem;
    font-weight: 700;
  }

  .nav__links a:hover {
    color: var(--link);
  }

  .nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .nav__actions .btn {
    min-height: 46px;
    padding: 0.4rem 1.05rem;
    font-size: 1rem;
  }
}

/* Rörelser */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @keyframes pop {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes draw {
    0% {
      opacity: 0;
      stroke-dashoffset: 1;
    }
    1% {
      opacity: 1;
    }
    100% {
      opacity: 1;
      stroke-dashoffset: 0;
    }
  }

  @keyframes typed {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }

  @keyframes ping {
    from {
      opacity: 0.8;
      transform: scale(1);
    }
    to {
      opacity: 0;
      transform: scale(1.55);
    }
  }

  @keyframes dot-on {
    0% {
      transform: scale(0);
    }
    60% {
      transform: scale(1.5);
    }
    100% {
      transform: scale(1);
    }
  }

  .flow .n {
    animation: pop 0.6s var(--ease) both;
    animation-delay: var(--d, 0s);
    transform-box: fill-box;
  }

  .flow .w-draw {
    stroke-dasharray: 1;
    animation: draw 0.5s ease-out both;
    animation-delay: var(--d, 0s);
  }

  .flow .ty {
    animation: typed 0.55s steps(24) both;
    animation-delay: var(--d, 0s);
  }

  .flow .ping {
    animation: ping 1.1s var(--ease) both;
    animation-delay: var(--d, 0s);
    transform-box: fill-box;
    transform-origin: center;
  }

  .flow .on {
    animation: dot-on 0.6s var(--ease) both;
    animation-delay: var(--d, 0s);
    transform-box: fill-box;
    transform-origin: center;
  }

  .d1 { --d: 0.1s; }
  .d2 { --d: 0.55s; }
  .d3 { --d: 1s; }
  .d4 { --d: 1.05s; }
  .d5 { --d: 1.35s; }
  .d6 { --d: 1.5s; }
  .d7 { --d: 1.7s; }
  .d8 { --d: 2.2s; }
  .d9 { --d: 2.7s; }
  .d10 { --d: 3.2s; }
  .d11 { --d: 3.5s; }
  .d12 { --d: 4s; }

  html.js .flow:not(.is-in) * {
    animation-play-state: paused;
  }

  html.js .steps:not(.is-in) .step::before {
    transform: scaleY(0);
  }

  .step::before {
    transition: transform 0.7s var(--ease);
  }

  .step:nth-child(2)::before {
    transition-delay: 0.2s;
  }

  .step:nth-child(3)::before {
    transition-delay: 0.4s;
  }

  html.js .call:not(.is-in) li {
    opacity: 0;
    transform: translateY(10px);
  }

  .call li {
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }

  .call li:nth-child(2) { transition-delay: 0.25s; }
  .call li:nth-child(3) { transition-delay: 0.5s; }
  .call li:nth-child(4) { transition-delay: 0.75s; }
  .call li:nth-child(5) { transition-delay: 1s; }
  .call li:nth-child(6) { transition-delay: 1.25s; }
  .call li:nth-child(7) { transition-delay: 1.5s; }
  .call li:nth-child(8) { transition-delay: 1.75s; }
  .call li:nth-child(9) { transition-delay: 2s; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  html.js .steps:not(.is-in) .step::before {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
