@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;800&display=swap');

:root {
  --c-cyan: #00aeef;
  --c-magenta: #ec008c;
  --c-yellow: #fff200;
  --c-black: #000000;

  --accent: var(--c-cyan);
  --accent-secondary: var(--c-magenta);
  --accent-soft: rgba(0, 174, 239, 0.16);

  /* Light theme (default) */
  --bg: #f2f7fb;
  --bg-alt: #e3f3ff;
  --surface: #ffffff;
  --surface-alt: #f5fbff;

  --border: #cdd7e5;
  --text: #04121f;
  --text-muted: #374151;
  --text-soft: #6b7280;

  --chip-border: #9ca3af;
  --input-border: #9ca3af;

  --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: underline;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.accent,
.accent-primary {
  color: var(--accent);
}

.accent-secondary {
  color: var(--accent-secondary);
}

.subline {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  color: color-mix(in srgb, var(--text-muted) 70%, transparent);
  font-size: 12px;
  line-height: 1.25;
}

h3.subline {
  margin-top: 0;
}

/* HEADER --------------------------------------------------------------- */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(245, 248, 252, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 16px;
}

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

.logo-mark {
  width: 32px;
  height: 32px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark img {
  filter: drop-shadow(0 1px 3px rgba(15, 23, 42, 0.45));
}

.logo-text-main {
  font-size: 14px;
  font-weight: 600;
}

.logo-text-sub {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 400;
}

/* HEADER NAV (top menu) ---------------------------------------------- */

header nav {
  display: none;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  align-items: center;
}

header nav a {
  position: relative;
  padding: 0;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  border-radius: 0;
}

header nav a::after {
  content: none;
}

header nav a:hover {
  color: currentColor;
  /* text-like underline (won't create a rounded padded block) */
  box-shadow: 0 1px 0 0 currentColor;
}

header nav a:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-cyan) 35%, transparent), 0 1px 0 0 currentColor;
}

.btn-primary,
.btn-secondary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.08s ease-out, box-shadow 0.12s ease-out,
  background-color 0.12s ease-out, color 0.12s ease-out;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;

  background: var(--surface-alt);              /* neutral, not cyan */
  color: var(--text);                          /* normal textfärg */
  border: 1px solid rgba(148, 163, 184, 0.8);  /* soft gray border */

  /* subtle “primary” hint: cyan-ish bottom edge */
  box-shadow:
          0 1px 0 rgba(255, 255, 255, 0.04) inset,
          0 2px 0 rgba(0, 0, 0, 0.5),
          0 0 0 0 rgba(0, 174, 239, 0);             /* reserved for hover */

  transition:
          background-color 0.16s ease-out,
          border-color 0.16s ease-out,
          box-shadow 0.16s ease-out,
          transform 0.08s ease-out;
}

.btn-primary:hover {
  background: var(--surface);                  /* aningen mörkare i dark mode,
                                                  aningen ljusare i light mode */
  border-color: rgba(0, 174, 239, 0.7);        /* cyan-kant först på hover */

  /* add a faint cyan “glow” on hover only */
  box-shadow:
          0 1px 0 rgba(255, 255, 255, 0.06) inset,
          0 2px 0 rgba(0, 0, 0, 0.55),
          0 0 0 1px rgba(0, 174, 239, 0.35);

  transform: translateY(-1px);
}

/* Light mode: lite mjukare skuggor */
:root[data-theme="light"] .btn-primary {
  background: #ffffff;
  box-shadow:
          0 1px 0 rgba(255, 255, 255, 0.9) inset,
          0 2px 0 rgba(15, 23, 42, 0.12),
          0 0 0 0 rgba(0, 174, 239, 0);
}

:root[data-theme="light"] .btn-primary:hover {
  background: #f9fafb;
  box-shadow:
          0 1px 0 rgba(255, 255, 255, 1) inset,
          0 2px 0 rgba(15, 23, 42, 0.18),
          0 0 0 1px rgba(0, 174, 239, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--chip-border);
}

.btn-secondary:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  box-shadow: 0 0 0 1px rgba(0, 174, 239, 0.4);
}

/* BREADCRUMB --------------------------------------------------------------- */
.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.2;
  padding: 8px 0;
}

.breadcrumb ol {
  list-style: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.breadcrumb li {
  display: inline-flex;
  align-items: baseline;
}

.breadcrumb li + li::before {
  content: '/';
  display: inline-block;
  line-height: 1.2;
  color: color-mix(in srgb, var(--text-soft) 70%, transparent);
  margin-right: 8px;
}

.breadcrumb a,
.breadcrumb [aria-current='page'] {
  display: inline-block;
  line-height: 1.2;
  padding: 0;
  margin: 0;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.breadcrumb a:hover {
  color: var(--text);
  box-shadow: 0 1px 0 0 currentColor;
}

.breadcrumb a:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-cyan) 35%, transparent),
    0 1px 0 0 color-mix(in srgb, var(--border) 80%, transparent);
}

.breadcrumb [aria-current='page'] {
  color: var(--text);
  font-weight: 650;
}

/* On very narrow screens allow wrapping without baseline drift */
@media (max-width: 420px) {
  .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 6px;
  }
}

/* TITLES */
h1,
h2,
h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(15, 23, 42, 0.4);
}

h2 {
  text-shadow: 1px 1px 3px rgba(15, 23, 42, 0.5);
}

h3 {
  font-weight: 800;
}

/* HERO */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at top left, rgba(0, 174, 239, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 242, 0, 0.18), transparent 55%), var(--bg-alt);
  padding: 40px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.hero-title {
  margin: 0;
}

.hero-title span {
  color: var(--accent-secondary);
}

.hero-lead {
  margin: 12px 0 6px;
  font-size: 15px;
  font-weight: 650;
  color: color-mix(in srgb, var(--text) 72%, var(--text-muted) 28%);
  max-width: 640px;
}

.hero-text {
  margin-top: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 720px;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  font-size: 14px;
}

.hero-list li {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

/* Base for hero bullets – neutral, subtle, still with ✓ */
.hero-list-bullet {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: var(--c-cyan);
}

/* Light mode adjustment: a bit lighter background/border */
:root[data-theme="light"] .hero-list-bullet {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-soft);
}

.hero-media-wrap {
  position: relative;
}

.hero-media-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  background:
          conic-gradient(from 200deg,
          rgba(0, 174, 239, 0.45),
          rgba(236, 0, 140, 0.35),
          rgba(255, 242, 0, 0.2),
          transparent 60%);
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-media {
  position: relative;
  border-radius: 16px;
  /*
  border: 1px solid var(--border);
  */
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.hero-media-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-soft);
  background: var(--surface-alt);
}

.hero-media-body {
  background: #000;
  /* aspect-ratio: 16 / 9; */
}

.hero-media-footer {
  padding: 8px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface-alt);
}

.hero-media-footer span:last-child {
  color: var(--c-cyan);
  font-weight: 500;
}

/* SECTIONS */
section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 65px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 26px;
  margin: 0 0 8px;
  line-height: 1.3;
}

.section-intro {
  max-width: 560px;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* SIMPLE PANELS / CARDS */
.panel {
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.card {
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-soft);
}

.card-body {
  padding: 12px 14px 14px;
  font-size: 13px;
  color: var(--text-muted);
  background-color: #fff;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

/* CATEGORY LANDING CARDS */
.category-cards {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .category-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.category-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  overflow: hidden;
  transition: transform 0.08s ease-out, border-color 0.12s ease-out, box-shadow 0.12s ease-out;
  text-decoration: none;
}

.category-card__media {
  aspect-ratio: auto;
  overflow: visible;
}

.category-card__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.category-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.category-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.category-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.category-card__cta {
  margin-top: auto;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

/* EXAMPLES -------------------------------------------------------------*/

.examples-grid, .compare-grid {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

/* Lightbox (example viewer) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 20, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 100;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__image {
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.6);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  text-align: center;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox__nav--prev {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

.lightbox__nav-icon {
  display: block;
  transform: translateY(-1px);
}

body.lightbox-open {
  overflow: hidden;
}

/* WHY ------------------------------------------------------------------ */

.why-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.why-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

:root[data-theme="light"] .why-item::before,
:root:not([data-theme]) .why-item::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-magenta), var(--c-yellow));
  opacity: 0.75;
}

.why-item h3 {
  margin: 6px 0 4px;
  font-size: 14px;
}

.why-item p {
  margin: 0;
  color: var(--text-muted);
}

/* PROCESS -------------------------------------------------------------- */

.process-steps {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  font-size: 13px;
}

.step {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

:root[data-theme="light"] .step::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-magenta), var(--c-yellow));
  opacity: 0.75;
}


.step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.step-header h3 {
  margin: 0;
  font-size: 14px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  /*
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text); !* eller var(--c-cyan) om du vill ha lite färg *!
  */
  /* Mer pop: cyan-betonad kant + svag CMYK-glow */
  border: 1px solid rgba(0, 174, 239, 0.8); /* cyan */
  color: #e5f6ff;

  box-shadow:
          0 0 6px rgba(0, 174, 239, 0.55),
          0 1px 3px rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"] .step-number {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  /*
  border-color: rgba(0, 174, 239, 0.9);
  background:
          radial-gradient(circle at 30% 20%,
          rgba(0, 174, 239, 0.8),
          rgba(236, 0, 140, 0.18),
          rgba(255, 255, 255, 0.95));
  color: #03202b;
  */
  box-shadow:
          0 0 4px rgba(0, 174, 239, 0.35),
          0 1px 2px rgba(15, 23, 42, 0.25);
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

/* FAQ ------------------------------------------------------------------ */

.faq-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  font-size: 13px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.faq-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

/* FORMS -------------------------------------------------------------- */

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 4px;
}

input,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  field-sizing: content;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
  opacity: 0.7;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 174, 239, 0.4);
}

/* CONTACT -------------------------------------------------------------- */

.contact {
  background:
          radial-gradient(circle at top, rgba(0, 174, 239, 0.22), transparent 55%),
          var(--bg-alt);
  text-align: center;
}

:root[data-theme="light"] .contact {
  background:
          radial-gradient(circle at top, rgba(0, 174, 239, 0.22), transparent 55%),
          var(--bg);
}

.contact div {
  max-width: 540px;
  margin: 8px auto 0;
  font-size: 16px;
  /*
  color: var(--text-muted);
  */
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 0;
  font-size: 11px;
  color: var(--text-soft);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.footer-note {
  color: var(--text-soft);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
}

/* LAYOUT: större skärmar ----------------------------------------------- */

@media (min-width: 768px) {
  header nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: 56px 0 60px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .hero-title {
    font-size: 36px;
  }

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

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

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

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

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

  .footer-inner {
    flex-direction: row;
  }

  .form-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-media-body {
    border-radius: 16px 16px 0 0;
  }

  .hero-media-header {
    border-radius: 16px 16px 0 0;
  }

  .hero-media-footer {
    border-radius: 0 0 16px 16px;
  }
}

/* On very narrow screens allow wrapping without baseline drift */
@media (max-width: 420px) {
  .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 6px;
  }
}

.hero-grid--top {
  align-items: flex-start;
}
