/* /virtuell-assistent/: prisjämförelse och tabeller. Bygger på styles.css. */

.page-va .subpage-hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.2vw, 6.6rem);
}

.page-va .subpage-hero-object span {
  text-align: center;
  line-height: 1.3;
}

.va-section {
  padding: var(--section) var(--gutter);
  color: var(--ink);
  background: var(--paper);
  --focus-ring: var(--ink);
  --focus-halo: var(--paper);
}

.va-own {
  background: var(--paper-deep);
  --focus-halo: var(--paper-deep);
}

.va-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.va-section-head p,
.va-note,
.va-small {
  margin: 0;
  color: var(--muted-paper);
}

.va-table-wrap {
  border-top: 1px solid color-mix(in oklch, var(--ink) 30%, transparent);
}

.va-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.5;
}

.va-table caption {
  padding: 18px 0;
  color: var(--muted-paper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.va-table th,
.va-table td {
  padding: 18px 20px 18px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
}

.va-table thead th {
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.va-table tbody th {
  font-weight: 650;
}

.va-price-table td:nth-child(2) {
  font-weight: 700;
  white-space: nowrap;
}

.va-table a,
.va-note a,
.va-toc a,
.va-link,
.va-more a,
.faq-list details a {
  color: var(--copper-text);
  font-weight: 650;
  text-underline-offset: 4px;
}

.va-compare-table thead th:last-child,
.va-compare-table td:last-child {
  padding-left: 20px;
  background: color-mix(in oklch, var(--copper) 14%, transparent);
}

.va-note {
  max-width: 72ch;
  margin-top: 22px;
  font-size: 0.9rem;
}

.va-own {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.va-own-copy > p {
  max-width: 60ch;
}

.va-levels {
  margin: 30px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid color-mix(in oklch, var(--ink) 28%, transparent);
}

.va-levels li {
  display: grid;
  grid-template-columns: 80px minmax(110px, auto) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 16%, transparent);
}

.va-levels strong {
  font-size: 1.25rem;
  white-space: nowrap;
}

.va-levels span {
  color: var(--muted-paper);
  font-size: 0.94rem;
}

.va-small {
  font-size: 0.94rem;
}

.va-honest {
  margin: 24px 0;
  padding-left: 18px;
  border-left: 3px solid var(--copper);
}

.va-link {
  display: inline-flex;
  gap: 6px;
  min-height: 44px;
  align-items: center;
}

.va-own-figure {
  margin: 0;
}

.va-own-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid color-mix(in oklch, var(--ink) 16%, transparent);
  border-radius: 20px;
}

.va-own-figure figcaption {
  margin-top: 12px;
  color: var(--muted-paper);
  font-size: 0.84rem;
}

.va-more {
  margin: 32px 0 0;
}

html[data-theme="dark"] .va-section {
  color: var(--paper);
  background: var(--ink-deep);
  --focus-ring: var(--paper);
  --focus-halo: var(--ink-deep);
}

html[data-theme="dark"] .va-own {
  background: var(--ink);
  --focus-halo: var(--ink);
}

html[data-theme="dark"] .va-section-head p,
html[data-theme="dark"] .va-note,
html[data-theme="dark"] .va-small,
html[data-theme="dark"] .va-levels span,
html[data-theme="dark"] .va-table caption,
html[data-theme="dark"] .va-own-figure figcaption {
  color: var(--muted-dark);
}

html[data-theme="dark"] .va-table-wrap,
html[data-theme="dark"] .va-table th,
html[data-theme="dark"] .va-table td,
html[data-theme="dark"] .va-levels,
html[data-theme="dark"] .va-levels li,
html[data-theme="dark"] .va-own-figure img {
  border-color: oklch(100% 0 0 / 17%);
}

@media (max-width: 960px) {
  .va-section-head,
  .va-own {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .va-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .va-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 0;
    border-bottom: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
  }

  .va-table th,
  .va-table td {
    padding: 4px 0;
    border-bottom: 0;
  }

  .va-compare-table td::before {
    display: block;
    color: var(--muted-paper);
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .va-compare-table td:nth-child(2)::before {
    content: "Virtuell assistent";
  }

  .va-compare-table td:last-child {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .va-compare-table td:last-child::before {
    content: "Företagsassistenten";
  }

  .va-levels li {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .va-levels span {
    grid-column: 2;
  }

  html[data-theme="dark"] .va-table tr {
    border-color: oklch(100% 0 0 / 17%);
  }

  html[data-theme="dark"] .va-compare-table td::before {
    color: var(--muted-dark);
  }
}

.va-table-wrap + .va-table-wrap {
  margin-top: clamp(40px, 5vw, 64px);
}

/* Innehållsförteckning överst i första avsnittet (2026-11-19). */
.va-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 80px);
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
  font-size: 0.94rem;
}

.va-toc span {
  width: 100%;
  color: var(--muted-paper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.va-toc a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.capability-proof .va-note {
  margin-top: clamp(28px, 4vw, 44px);
}

html[data-theme="dark"] .va-toc {
  border-color: oklch(100% 0 0 / 17%);
}

html[data-theme="dark"] .va-toc span {
  color: var(--muted-dark);
}
