/* ============================================================
   Webbtjänst — designsystem
   Navy/svart + blå accent, Playfair Display + Inter.
   Alla sidor använder dessa tokens. Ändra här, inte per sida.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Färger */
  --navy-950: #0b1120;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --paper: #ffffff;
  --mist: #f8fafc;
  --line: #e2e8f0;

  /* Typografi */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1160px;
  --header-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --pill: 999px;

  /* Skuggor */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 34px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 26px 60px rgba(15, 23, 42, 0.18);

  /* Fokus */
  --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.45);
}

/* ---------- 2. Reset & bas ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* reportValidity()/scrollIntoView ska landa UNDER den sticky headern (72px)
     så att native valideringsbubblan och fältet inte hamnar bakom den. */
  scroll-padding-top: 90px;
}

/* Belt-and-braces: när reportValidity() på starta-projekt-formuläret rullar
   till ett fält, se till att fieldsetet också hamnar under den sticky headern
   (72px) även om webbläsaren inte tar hänsyn till scroll-padding på html. */
.lead-form fieldset {
  scroll-margin-top: 90px;
}

/* Viktig: hindrar off-canvas-drawer från att skapa horisontell overflow.
   clip (inte hidden) för att position: sticky ska fortsätta fungera. */
html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  color: var(--blue-700);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 3. Typografi-hjälpare ---------- */
.accent {
  font-style: italic;
  color: var(--blue-500);
}

.accent--light {
  color: var(--blue-400, #60a5fa);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  flex: none;
}

.eyebrow--center {
  justify-content: center;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  max-width: 720px;
  margin-bottom: 0.5em;
}

.section-title--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lede {
  font-size: 1.09rem;
  color: var(--slate-600);
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.lede--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head {
  margin-bottom: 3rem;
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(4rem, 9vw, 6.8rem);
}

.section--mist {
  background: var(--mist);
}

.section--dark {
  background: var(--navy-900);
  color: var(--slate-400);
}

.section--dark .section-title,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ---------- 5. Knappar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.7rem;
  border-radius: var(--pill);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--navy-900);
  color: #fff;
}

.btn--primary:hover {
  background: var(--navy-800);
  color: #fff;
}

.btn--accent {
  background: var(--blue-600);
  color: #fff;
}

.btn--accent:hover {
  background: var(--blue-700);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--mist);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  font-size: 0.92rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0.85rem 2.1rem;
  font-size: 1.05rem;
}

.btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* ---------- 6. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--navy-900);
  flex: none;
}

.brand--light .brand-mark {
  background: #fff;
}

.brand-name {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.brand--light .brand-name {
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.site-nav a:not(.btn):hover {
  color: var(--blue-600);
}

.site-nav a.active:not(.btn) {
  color: var(--blue-600);
}

.site-nav a.active:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-500);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobil-drawer: ett enda element (backdrop + panel) på z 120,
   ovanför headern — undviker klickfälla på nav-länkar. */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(11, 17, 32, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(330px, 86vw);
  background: var(--paper);
  padding: 1.4rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

.nav-drawer__close {
  align-self: flex-end;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.nav-drawer__panel nav {
  display: flex;
  flex-direction: column;
}

.nav-drawer__panel nav a:not(.btn) {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.nav-drawer__panel nav a.active:not(.btn) {
  color: var(--blue-600);
}

.nav-drawer__panel .btn {
  margin-top: 1.2rem;
}

.nav-drawer__contact {
  margin-top: auto;
  padding-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-drawer__contact a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--navy-800);
}

/* ---------- 7. Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, #172554 120%);
  color: var(--slate-400);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(700px 420px at 85% -10%, rgba(59, 130, 246, 0.16), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  border-radius: var(--pill);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  flex: none;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.hero p.hero-sub {
  font-size: 1.13rem;
  color: var(--slate-400);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.hero-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.hero-tools strong {
  color: var(--slate-400);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-tools .tool-chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--pill);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-weight: 500;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  filter: grayscale(1) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* ---------- 8. Sektionsrubriker & kort ---------- */
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.tile-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.45em;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.97rem;
}

/* ---------- 9. Process-tidslinje ---------- */
.process-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.callout {
  background: var(--paper);
  border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  margin-top: 1.6rem;
}

.callout strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.25rem;
}

.callout p {
  margin-bottom: 0;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.tl-item {
  position: relative;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-500);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--blue-500);
}

.tl-time {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.3rem;
}

.tl-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3em;
}

.tl-item p {
  margin-bottom: 0;
  font-size: 0.97rem;
}

/* ---------- 10. Pris-kort ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 1280px);
  margin: 1rem auto 0;
  gap: 2rem;
  align-items: stretch;
}

/* Paketvalet ska vara lätt att jämföra utan att ta över hela vyn.
   Reglerna gäller enbart den primära paketjämförelsen på prissidan. */
.price-grid .price-card {
  padding: 1.65rem 1.4rem;
}

.price-grid .price-card--featured {
  transform: translateY(-14px);
}

.price-grid .price-badge {
  top: -12px;
  font-size: 0.66rem;
  padding: 0.34rem 0.8rem;
}

.price-grid .price-card__time {
  font-size: 0.68rem;
  margin-bottom: 0.7rem;
}

.price-grid .price-card h3 {
  font-size: 1.2rem;
}

.price-grid .price-card .price {
  font-size: clamp(1.7rem, 2.7vw, 2rem);
}

.price-grid .price-card .price small {
  font-size: 0.85rem;
}

.price-grid .price-card .price-note {
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.price-grid .price-card ul.features {
  margin-bottom: 1.4rem;
  gap: 0.52rem;
}

.price-grid .price-card ul.features li {
  gap: 0.5rem;
  font-size: 0.86rem;
}

.price-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.price-card--featured {
  border: 2px solid var(--blue-500);
  background: color-mix(in oklab, var(--blue-50) 55%, var(--paper));
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--pill);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.price-card__time {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.9rem;
}

.price-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35em;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.1em;
}

.price-card .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-500);
  font-family: var(--font-body);
}

.price-card .price-note {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1.4rem;
}

.price-card ul.features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.price-card ul.features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.price-card ul.features li::before {
  content: "✓";
  color: var(--blue-600);
  font-weight: 800;
  flex: none;
  line-height: 1.4;
}

/* ---------- 11. Referens-kort ---------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.ref-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ref-card--link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ref-card--link:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 4px;
}

.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ref-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ref-card__body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ref-card__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.4rem;
}

.ref-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.ref-tags span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate-600);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 0.25rem 0.7rem;
}

.demo-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
}

.demo-link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.demo-link:hover::after {
  transform: translateX(4px);
}

/* ---------- 12. Tjänstekort (hub) ---------- */
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.service-card p {
  font-size: 0.97rem;
  flex: 1;
}

.service-card .card-link {
  margin-top: 1.2rem;
  font-weight: 600;
  color: var(--blue-600);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card .card-link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.service-card .card-link:hover::after {
  transform: translateX(4px);
}

/* ---------- 13. Sidhuvud för undersidor ---------- */
.page-hero {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 4.6rem);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  max-width: 780px;
  margin-bottom: 0.5em;
}

.page-hero .lede {
  margin-bottom: 0;
  max-width: 620px;
}

/* The project chooser must be visible without a large marketing banner. */
.page-hero--project {
  padding-block: clamp(.7rem, 1.5vw, 1.1rem);
}

.page-hero--project h1 {
  font-size: clamp(1.7rem, 2.7vw, 2.15rem);
  margin-bottom: .2em;
}

.page-hero--project .lede {
  max-width: 760px;
  font-size: .98rem;
}

.page-hero--project .crumbs {
  margin-bottom: .1rem;
  font-size: .75rem;
}

.page-hero--project .crumbs a {
  min-width: 0;
  min-height: 0;
}

.section--project-builder {
  padding-block: clamp(.7rem, 1.5vw, 1.1rem);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1.1rem;
}

.crumbs a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--slate-600);
  font-weight: 500;
}

.crumbs a:hover {
  color: var(--blue-600);
}

.crumbs .sep {
  color: var(--slate-400);
}

/* ---------- 14. Split (text + bild) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split--flip .split-media {
  order: 2;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.98rem;
}

.check-list li::before {
  content: "✓";
  color: var(--blue-600);
  font-weight: 800;
  flex: none;
  line-height: 1.4;
}

/* ---------- 15. Pris-tabeller ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--paper);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table thead th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table tbody tr:nth-child(even) {
  background: var(--mist);
}

.price-table td.plan-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.price-table .tier-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  border-radius: var(--pill);
  padding: 0.2rem 0.6rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ---------- 16. CTA-band ---------- */
.cta-band {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(2.2rem, 5vw, 3.4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 0.35em;
}

.cta-band p {
  margin-bottom: 0;
  max-width: 560px;
  color: var(--slate-600);
}

.cta-band__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ---------- 17. Formulär ---------- */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label,
.form-field legend {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: var(--focus-ring);
}

.form-field .hint {
  font-size: 0.82rem;
  color: var(--slate-500);
}

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

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 1;
}

.radio-pill span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: var(--pill);
  background: var(--paper);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate-700);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.radio-pill span small {
  font-weight: 600;
  color: var(--blue-600);
}

.radio-pill input:checked + span {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--ink);
  font-weight: 600;
}

.radio-pill input:focus-visible + span {
  box-shadow: var(--focus-ring);
}

.form-status {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-status--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

/* ---------- 18. FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--blue-600);
  font-weight: 600;
  line-height: 1;
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 1.3rem 1.2rem;
  color: var(--slate-600);
  font-size: 0.97rem;
}

/* ---------- 19. Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding-top: clamp(3rem, 7vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.4rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.93rem;
  max-width: 300px;
  margin-top: 1rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col a,
.footer-col span {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--slate-400);
  font-size: 0.93rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-block: 1.4rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.4rem;
}

.footer-legal a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--slate-500);
}

.footer-legal a:hover {
  color: #fff;
}

/* ---------- 20. Juridik / 404 / diverse ---------- */
.legal-body {
  max-width: 720px;
}

.legal-body h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

.error-wrap {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.error-wrap .error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--blue-600);
  line-height: 1;
}

/* ---------- 21. Media queries ---------- */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 560px;
  }

  .process-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .split--flip .split-media {
    order: 0;
  }

  .grid--3,
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .price-card--featured {
    transform: none;
  }

  .price-grid .price-card--featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--4,
  .ref-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* Inline-länkar i innehåll (tel/mailto, callout, faq, hint) får ≥44px
     tryckyta på mobil — annars blir de otappbara små textlänkar.
     .tap-link = generell fallback för enskilda länkar på en sida. */
  .feature-card ul li a,
  .legal-body p a,
  .callout p a,
  .faq-body p a,
  .hint a,
  .tap-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Interaktiva referensdemos — lokal preview
   ============================================================ */
.demo-overlay-open {
  overflow: hidden;
}

.demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 2vw, 2rem);
}

.demo-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 31, .88);
  backdrop-filter: blur(8px);
}

.demo-window {
  position: relative;
  z-index: 1;
  width: min(1420px, 100%);
  height: min(900px, calc(100vh - 2rem));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: clamp(1.25rem, 3vw, 3.5rem);
  background: #fff;
  box-shadow: 0 30px 100px rgba(0,0,0,.4);
}

.demo-window__header,
.demo-window__chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.demo-window__header {
  justify-content: space-between;
  min-height: 72px;
  padding: 1rem clamp(1.25rem, 3vw, 3rem);
  background: #fff;
}

.demo-window__identity {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #65728a;
  font-size: .78rem;
}

.demo-window__identity strong {
  color: #111b31;
  font-size: .95rem;
  letter-spacing: -.02em;
}

.demo-window__identity span:last-child {
  padding-left: .75rem;
  border-left: 1px solid #dce3ed;
}

.demo-window__dot {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
  background: #2d69f4;
  box-shadow: 0 0 0 6px #e8efff;
}

.demo-window__close {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #eff3f8;
  color: #142039;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.demo-window__close:hover,
.demo-window__close:focus-visible {
  background: #dbe5f3;
  transform: rotate(8deg);
}

.demo-window__chrome {
  gap: .55rem;
  padding: .75rem clamp(1rem, 2.5vw, 2.2rem);
  border-top: 1px solid #e5eaf1;
  border-bottom: 1px solid #dce3ed;
  background: #f1f5f9;
}

.demo-window__traffic {
  width: .75rem;
  height: .75rem;
  border-radius: 999px;
}

.demo-window__traffic--red { background: #ff6c6c; }
.demo-window__traffic--yellow { background: #ffc331; }
.demo-window__traffic--green { background: #42d779; }

.demo-window__url {
  min-width: 0;
  flex: 1;
  margin-left: .7rem;
  padding: .78rem 1rem;
  overflow: hidden;
  border-radius: .8rem;
  background: #fff;
  color: #77869d;
  font: 600 .82rem/1.1 Inter, sans-serif;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo-window__open {
  margin-left: .75rem;
  color: #2d69f4;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.demo-window__viewport {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  background: #0d1428;
}

.demo-window__viewport:focus-visible {
  outline: 3px solid #2d69f4;
  outline-offset: -3px;
}

.demo-page {
  min-height: 100vh;
  background: #0d1428;
}

.demo-page__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem clamp(1rem, 4vw, 4rem);
  background: rgba(13,20,40,.92);
  color: #e5ecf9;
  backdrop-filter: blur(12px);
}

.demo-page__back {
  color: #fff;
  font-weight: 700;
}

.demo-page__label {
  color: #9aaccc;
  font-size: .78rem;
}

.showcase-site {
  --showcase-ink: #111a31;
  --showcase-muted: #6f7d92;
  --showcase-bg: #fff;
  --showcase-panel: #f4f7fb;
  --showcase-accent: #2d69f4;
  min-height: 100%;
  overflow: hidden;
  background: var(--showcase-bg);
  color: var(--showcase-ink);
  font-family: Inter, system-ui, sans-serif;
}

.showcase-site--lume { --showcase-bg: #faf9f6; --showcase-panel: #eeece6; --showcase-accent: #49679d; }
.showcase-site--savor { --showcase-bg: #fff8ef; --showcase-panel: #f6e6ce; --showcase-accent: #c45b2b; }
.showcase-site--nova { --showcase-bg: #071126; --showcase-ink: #f4f7ff; --showcase-muted: #9caccc; --showcase-panel: #0f1d3c; --showcase-accent: #62a7ff; }
.showcase-site--vantage { --showcase-bg: #f3f4f0; --showcase-panel: #e4e7df; --showcase-accent: #1b4d43; }
.showcase-site--pulse { --showcase-bg: #101016; --showcase-ink: #f4f2ee; --showcase-muted: #a2a1aa; --showcase-panel: #1b1b25; --showcase-accent: #ff5f41; }
.showcase-site--eco { --showcase-bg: #edf4ec; --showcase-panel: #dbe9db; --showcase-accent: #5c8c73; }
.showcase-site--quantum { --showcase-bg: #090919; --showcase-ink: #f8f5ff; --showcase-muted: #aaa7cf; --showcase-panel: #151532; --showcase-accent: #aa7bff; }
.showcase-site--nordic { --showcase-bg: #f6f7f8; --showcase-panel: #e7edf1; --showcase-accent: #5d7889; }
.showcase-site--fitness { --showcase-bg: #111114; --showcase-ink: #fff; --showcase-muted: #b3b3bc; --showcase-panel: #202026; --showcase-accent: #ef4444; }

.showcase-site__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.25rem, 3vw, 3rem) clamp(1.25rem, 6vw, 6rem);
}

.showcase-site__brand {
  margin-right: auto;
  color: var(--showcase-ink);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.showcase-site__nav nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.75rem);
}

.showcase-site__nav nav a,
.showcase-site__action {
  color: var(--showcase-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.showcase-site__nav nav a:hover,
.showcase-site__action:hover {
  color: var(--showcase-accent);
}

.showcase-site__action {
  color: var(--showcase-ink);
}

.showcase-site__hero,
.showcase-site__work,
.showcase-site__statement,
.showcase-site__contact {
  padding: clamp(3.5rem, 8vw, 8rem) clamp(1.25rem, 8vw, 9rem);
}

.showcase-site__hero {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--showcase-accent) 24%, transparent), transparent 35%), var(--showcase-bg);
}

.showcase-kicker {
  margin: 0 0 1.2rem;
  color: var(--showcase-accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.showcase-kicker span {
  color: var(--showcase-muted);
}

.showcase-site__hero h1,
.showcase-site__statement h2,
.showcase-site__contact h2,
.demo-missing h1 {
  max-width: 980px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: .95;
  letter-spacing: -.06em;
}

.showcase-site__intro {
  max-width: 610px;
  margin: 2rem 0 0;
  color: var(--showcase-muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.showcase-site__hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2.3rem;
}

.showcase-site__primary,
.showcase-site__quiet {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1.3rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.showcase-site__primary {
  background: var(--showcase-ink);
  color: var(--showcase-bg);
}

.showcase-site__primary:hover {
  background: var(--showcase-accent);
  color: #fff;
}

.showcase-site__quiet {
  color: var(--showcase-ink);
}

.showcase-site__signal {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 760px;
  margin-top: 5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--showcase-ink) 16%, transparent);
}

.showcase-site__signal span {
  color: var(--showcase-muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.showcase-site__signal strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
}

.showcase-site__work {
  background: var(--showcase-panel);
}

.showcase-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.showcase-section-heading > p:last-child {
  max-width: 430px;
  margin: 0;
  color: var(--showcase-muted);
  line-height: 1.65;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.showcase-card {
  min-height: 250px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid color-mix(in srgb, var(--showcase-ink) 12%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--showcase-bg) 70%, transparent);
  transition: transform .25s ease, border-color .25s ease;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--showcase-accent);
}

.showcase-card > span {
  align-self: flex-start;
  margin-bottom: auto;
  color: var(--showcase-accent);
  font-size: .7rem;
  font-weight: 800;
}

.showcase-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
}

.showcase-card p {
  margin: .65rem 0 1rem;
  color: var(--showcase-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.showcase-card a {
  color: var(--showcase-accent);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.showcase-site__statement {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 3rem;
  background: var(--showcase-bg);
}

.showcase-site__statement h2 {
  font-size: clamp(2.8rem, 6vw, 6.5rem);
}

.showcase-site__statement > p:last-child {
  grid-column: 2;
  max-width: 500px;
  margin: 0;
  color: var(--showcase-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.showcase-site__contact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  background: var(--showcase-panel);
}

.showcase-site__contact h2 {
  font-size: clamp(2.8rem, 6vw, 6rem);
}

.showcase-site__footer {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 6vw, 6rem);
  color: var(--showcase-muted);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demo-missing {
  min-height: 70vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 4rem 1.5rem;
  background: #f7f9fc;
  color: #15213a;
  text-align: center;
}

.demo-missing h1 {
  max-width: 700px;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.demo-missing p:not(.showcase-kicker) {
  color: #718097;
}

@media (max-width: 720px) {
  .demo-window {
    height: calc(100vh - 1rem);
    border-radius: 1.25rem;
  }

  .demo-window__identity span:last-child,
  .demo-window__open {
    display: none;
  }

  .showcase-site__nav {
    gap: 1rem;
    padding: 1.25rem;
  }

  .showcase-site__nav nav {
    display: none;
  }

  .showcase-site__hero,
  .showcase-site__work,
  .showcase-site__statement,
  .showcase-site__contact {
    padding: 4rem 1.25rem;
  }

  .showcase-site__hero {
    min-height: 500px;
  }

  .showcase-site__signal,
  .showcase-section-heading,
  .showcase-site__statement,
  .showcase-site__contact {
    display: block;
  }

  .showcase-site__signal strong,
  .showcase-section-heading > p:last-child,
  .showcase-site__statement > p:last-child {
    display: block;
    margin-top: 1rem;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-site__contact .showcase-site__primary {
    margin-top: 2rem;
  }
}

/* ---------- Starta projekt: stegvis val av tillval ---------- */
.project-builder__step {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.project-builder__step.is-active {
  border-color: color-mix(in srgb, var(--blue-500) 35%, var(--line));
  box-shadow: 0 12px 34px rgba(29, 78, 216, .07);
}

.project-builder__step legend {
  width: 100%;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 1.12rem;
}

.legend-note {
  margin-left: .45rem;
  color: var(--slate-500);
  font-size: .78rem;
  font-weight: 500;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.choice-card {
  position: relative;
  display: block;
  min-width: 0;
}

.choice-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.choice-card > span {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.choice-card:hover > span {
  transform: translateY(-2px);
  border-color: var(--blue-500);
}

.choice-card input:checked + span {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 8px 22px rgba(37, 99, 235, .12);
}

.choice-card input:focus-visible + span {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

.choice-card strong {
  font-size: 1rem;
}

.choice-card small {
  min-height: 2.45em;
  color: var(--slate-500);
  font-size: .78rem;
  line-height: 1.4;
}

.choice-card em {
  margin-top: auto;
  color: var(--blue-600);
  font-size: .84rem;
  font-style: normal;
  font-weight: 700;
}

.project-builder__summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid #cfe0ff;
  border-radius: var(--radius-sm);
  background: linear-gradient(110deg, #f5f8ff, #fff);
}

.project-builder__summary > div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.project-builder__summary span {
  color: var(--slate-500);
  font-size: .78rem;
}

.project-builder__summary strong {
  color: var(--ink);
}

.project-builder__summary-price {
  text-align: right;
}

.project-builder__summary-price strong {
  color: var(--blue-600);
}

.project-builder__summary-price [data-builder-monthly-label] {
  display: block;
  margin-top: .2rem;
  color: var(--slate-600);
}

.project-builder__summary-price [data-builder-monthly-label][hidden] {
  display: none;
}

.project-builder__back--summary {
  margin-top: 0;
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .choice-grid,
  .choice-grid--3 {
    grid-template-columns: 1fr;
  }

  .choice-card > span {
    min-height: 0;
  }

  .project-builder__summary {
    flex-direction: column;
  }

  .project-builder__summary-price {
    text-align: left;
  }

  .project-builder__back--summary {
    margin-left: 0;
  }
}

/* Full-size, one-step-at-a-time project chooser. */
.project-builder {
  width: 100%;
  max-width: none;
}

.project-builder-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

.project-builder__progress {
  margin: 0 0 .85rem;
  color: var(--blue-600);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-builder__step {
  padding: clamp(.9rem, 1.6vw, 1.35rem);
}

.project-builder__step legend {
  margin-bottom: .3rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.08;
}

.legend-note {
  font-family: var(--sans);
}

.project-builder__intro {
  max-width: 660px;
  margin: 0 0 .85rem;
  color: var(--slate-600);
  font-size: .9rem;
}

.project-builder__beta-notice {
  display: grid;
  gap: .26rem;
  width: min(360px, 32%);
  margin: 0;
  padding: .6rem .75rem;
  border: 1px solid color-mix(in srgb, var(--blue-500) 40%, var(--line));
  border-radius: .75rem;
  background: var(--blue-50);
  box-shadow: 0 7px 18px rgba(37, 99, 235, .07);
}

.project-builder__beta-notice[hidden] { display: none; }

.project-builder__beta-eyebrow {
  margin: 0;
  color: var(--blue-700);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.project-builder__beta-notice p {
  color: var(--slate-600);
  font-size: .69rem;
  line-height: 1.35;
}

.project-builder__beta-notice strong { color: var(--ink); }

.project-builder__step[data-builder-step="ai"] {
  position: relative;
}

.project-builder__step[data-builder-step="ai"] .project-builder__beta-notice {
  position: absolute;
  top: .9rem;
  right: 1rem;
}

/* Reserve a slim row under the title for the right-aligned beta notice, so it
   never sits on top of the expandable AI explanation. */
.project-builder__step[data-builder-step="ai"] .project-builder__explain {
  margin-top: 5rem;
}

.project-builder__explain {
  margin: 0 0 1.15rem;
  border: 1px solid color-mix(in srgb, var(--blue-500) 28%, var(--line));
  border-radius: .9rem;
  background: var(--blue-50);
}

.project-builder__explain summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .78rem 1rem;
  color: var(--blue-700);
  cursor: pointer;
  font-size: .83rem;
  font-weight: 800;
  list-style: none;
}

.project-builder__explain summary::-webkit-details-marker { display: none; }
.project-builder__explain summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.project-builder__explain[open] summary::after { content: "−"; }

.project-builder__explain-content {
  display: grid;
  gap: .55rem;
  padding: 0 1rem 1rem;
  color: var(--slate-700);
  font-size: .84rem;
  line-height: 1.52;
}

.project-builder__explain-content p { margin: 0; }

.project-choice-grid {
  display: grid;
  gap: .8rem;
}

.project-choice-grid--packages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* The featured middle card is intentionally lifted; give all three cards
     enough clearance below the step title so it never crowds the heading. */
  margin-top: .9rem;
}

.project-choice-grid--packages .project-choice-card__surface {
  gap: .52rem;
  padding: clamp(1rem, 1.35vw, 1.3rem);
}

.project-choice-grid--packages .project-choice-card__price {
  font-size: clamp(2.05rem, 3.1vw, 2.55rem);
}

.project-choice-grid--packages .project-choice-card ul {
  gap: .48rem;
  margin-top: .18rem;
}

.project-choice-grid--packages .project-choice-card li {
  font-size: .78rem;
  line-height: 1.34;
}

.project-choice-grid--packages .project-choice-card--featured {
  transform: translateY(-10px);
}

.project-choice-grid--four {
  /* Keep all four AI choices comparable at a glance, while using height for
     the concrete scope rather than widening the entire flow unnecessarily. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.project-choice-grid--maintenance {
  /* Five maintenance options need more room than a single compressed row. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-choice-card {
  position: relative;
  display: block;
  min-width: 0;
}

.project-choice-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
  /* Cards now handle the pointer interaction themselves so the separate
     "Läs mer" control remains reachable and does not select a package. */
  pointer-events: none;
}

.project-choice-card__surface {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .38rem;
  padding: clamp(.85rem, 1.2vw, 1.15rem);
  border: 2px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.project-choice-card:hover .project-choice-card__surface {
  transform: translateY(-5px);
  border-color: var(--blue-500);
  box-shadow: 0 20px 42px rgba(37, 99, 235, .14);
}

.project-choice-card input:checked + .project-choice-card__surface {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 20px 42px rgba(37, 99, 235, .15);
}

.project-choice-card input:focus-visible + .project-choice-card__surface {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

.project-choice-card__eyebrow {
  color: var(--blue-600);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-choice-card strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1;
}

.project-choice-card__price {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 2.8vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .98;
}

.project-choice-card__price small {
  color: var(--slate-500);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.project-choice-card__price--beta {
  display: grid;
  gap: .12rem;
}

.project-choice-card__price--beta > s {
  color: var(--slate-500);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  text-decoration-thickness: 1.5px;
}

.project-choice-card__beta-label {
  color: var(--blue-700);
  font-size: .67rem;
  font-weight: 800;
  line-height: 1.25;
}

.project-choice-card__beta-label[hidden] { display: none; }

.project-choice-card__note {
  color: var(--slate-500);
  font-size: .72rem;
  line-height: 1.35;
}

.project-choice-card ul {
  display: grid;
  gap: .38rem;
  margin: .1rem 0 0;
  padding: 0;
  list-style: none;
}

.project-choice-card li {
  position: relative;
  padding-left: 1rem;
  color: var(--slate-700);
  font-size: .74rem;
  line-height: 1.28;
}

.project-choice-card li::before {
  position: absolute;
  left: 0;
  color: var(--blue-600);
  content: "✓";
  font-weight: 800;
}

.project-choice-card__action {
  margin-top: auto;
  color: var(--blue-600);
  font-size: .76rem;
  font-weight: 700;
}

.project-choice-card__learn-more {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  margin-top: .15rem;
  padding: .15rem 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--blue-500) 45%, transparent);
  background: transparent;
  color: var(--blue-700);
  font: inherit;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.project-choice-card__learn-more:hover,
.project-choice-card__learn-more:focus-visible {
  color: var(--blue-600);
  border-bottom-color: var(--blue-600);
}

.project-choice-card__learn-more:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue-500) 35%, transparent);
  outline-offset: 3px;
  border-radius: .2rem;
}

.project-choice-card__learn-more [aria-hidden="true"] {
  font-size: 1rem;
  line-height: .8;
}

.project-choice-details {
  margin-top: 1rem;
}

.project-choice-details__panel {
  display: grid;
  gap: .65rem;
  padding: clamp(1rem, 1.7vw, 1.45rem);
  border: 1px solid color-mix(in srgb, var(--blue-500) 28%, var(--line));
  border-radius: 1rem;
  background: linear-gradient(120deg, var(--blue-50), var(--paper) 70%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.project-choice-details__eyebrow {
  color: var(--blue-600);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.project-choice-details__panel h3,
.project-choice-details__panel p,
.project-choice-details__panel ul {
  margin: 0;
}

.project-choice-details__panel h3 {
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.project-choice-details__panel p {
  max-width: 72ch;
  color: var(--slate-600);
  font-size: .9rem;
  line-height: 1.55;
}

.project-choice-details__panel ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem 1rem;
  padding: 0;
  list-style: none;
}

.project-choice-details__panel li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--slate-700);
  font-size: .82rem;
  line-height: 1.42;
}

.project-choice-details__panel li::before {
  position: absolute;
  left: 0;
  color: var(--blue-600);
  content: "✓";
  font-weight: 800;
}

.project-choice-card--featured .project-choice-card__surface {
  border-color: var(--blue-500);
  background: linear-gradient(145deg, var(--blue-50), var(--paper));
}

.project-choice-card--compact .project-choice-card__surface {
  min-height: 132px;
  padding: .7rem;
  gap: .3rem;
}

.project-choice-grid--four .project-choice-card__surface {
  min-height: 465px;
  padding: 1.05rem;
  gap: .54rem;
}

.project-choice-grid--four .project-choice-card strong {
  font-size: 1.4rem;
}

.project-choice-grid--four .project-choice-card__price {
  font-size: 1.9rem;
}

.project-choice-grid--four .project-choice-card__note {
  font-size: .78rem;
  line-height: 1.36;
}

.project-choice-grid--four .project-choice-card__beta-label {
  margin-top: -.15rem;
}

.project-choice-grid--maintenance .project-choice-card__surface {
  min-height: 342px;
  padding: 1.15rem;
  gap: .62rem;
}

.project-choice-grid--four .project-choice-card ul,
.project-choice-grid--maintenance .project-choice-card ul {
  gap: .46rem;
  font-size: .95rem;
  line-height: 1.42;
}

.project-choice-grid--four .project-choice-card ul {
  gap: .38rem;
  font-size: .78rem;
  line-height: 1.34;
}

.project-choice-grid--maintenance .project-choice-card strong {
  font-size: 1.42rem;
}

.project-choice-grid--maintenance .project-choice-card__price {
  font-size: 1.92rem;
}

@media (max-width: 760px) {
  .project-builder__step[data-builder-step="ai"] .project-builder__beta-notice {
    position: static;
    width: auto;
    margin: .6rem 0 .85rem;
  }

  .project-builder__step[data-builder-step="ai"] .project-builder__explain {
    margin-top: 0;
  }
}

@media (max-width: 1120px) and (min-width: 761px) {
  .project-choice-grid--maintenance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-choice-card--compact strong {
  font-size: 1.1rem;
}

.project-choice-card--compact .project-choice-card__price {
  margin-top: auto;
  font-size: 1.45rem;
}

.project-choice-card--compact .project-choice-card__note {
  font-size: .66rem;
  line-height: 1.3;
}

.project-choice-card--compact .project-choice-card__action {
  font-size: .68rem;
}

.project-choice-card--compact .project-choice-card__learn-more {
  font-size: .66rem;
}

.project-builder__back {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: .7rem 0;
  border: 0;
  background: transparent;
  color: var(--slate-700);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.project-builder__back:hover {
  color: var(--blue-600);
}

@media (max-width: 760px) {
  .project-choice-grid--packages,
  .project-choice-grid--four,
  .project-choice-grid--maintenance {
    grid-template-columns: 1fr;
  }

  .project-choice-card__surface,
  .project-choice-card--compact .project-choice-card__surface {
    min-height: 0;
  }

  .project-choice-details__panel ul {
    grid-template-columns: 1fr;
  }
}
