/* sty/v2.css — Talethos startsida, förslag v2.
   Laddas EFTER sty/styles.css. Nya komponenter + moderniseringspass:
   videoramar, effektband, produktkort, funnel, kondenserad säkerhet,
   scroll-reveals. Inga tredjepartsresurser. */

/* ─────────── Nav: CTA alltid synlig ─────────── */
@media (max-width: 1200px) {
  .v2nav .nav-cta { display: inline-flex; }
}
@media (max-width: 760px) {
  .v2nav .nav-cta { padding: 9px 15px; font-size: 13px; }
}

/* ─────────── Scroll-reveals (gated: JS + motion-ok) ─────────── */
html.js [data-rv] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.7s cubic-bezier(0.22, 0.6, 0.2, 1), translate 0.7s cubic-bezier(0.22, 0.6, 0.2, 1);
}
html.js [data-rv="2"] { transition-delay: 0.08s; }
html.js [data-rv="3"] { transition-delay: 0.16s; }
html.js [data-rv="4"] { transition-delay: 0.24s; }
html.js [data-rv].rv-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-rv] { opacity: 1; translate: none; transition: none; }
}

/* ─────────── Hero v2 ─────────── */
.v2-hero { padding: 72px 0 96px; border-top: 0; overflow-x: clip; }
.v2-hero h1 { max-width: 16ch; }
.v2-hero .lede { max-width: 58ch; }
.v2-hero .hero-cta { margin-top: 36px; }

.v2-hero .vframe-wrap {
  margin-top: 64px;
  position: relative;
}
/* Diskret glöd i loggans gradientfärger bakom produktvisualen */
.v2-hero .vframe-wrap::before {
  content: "";
  position: absolute;
  inset: -8% -6% -12%;
  background:
    radial-gradient(42% 55% at 22% 18%, color-mix(in oklab, var(--accent-soft) 26%, transparent), transparent 70%),
    radial-gradient(40% 52% at 82% 78%, color-mix(in oklab, var(--warm-soft) 24%, transparent), transparent 70%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

/* ─────────── Videoram (app-fönster) ─────────── */
.vframe {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  box-shadow:
    0 40px 90px -30px rgba(17, 36, 43, 0.4),
    0 10px 28px -14px rgba(17, 36, 43, 0.22);
  overflow: clip;
}
.vframe-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule-soft);
  background: color-mix(in oklab, var(--bg-card) 72%, var(--bg-deep));
}
.vframe-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rule);
}
.vframe-title {
  margin-left: 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vframe video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-deep);
}

/* ─────────── Play-affordance på teaser ─────────── */
.vframe-bar { position: relative; z-index: 2; }
.vframe-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: radial-gradient(120% 92% at 50% 56%, rgba(9, 18, 22, 0.06), rgba(9, 18, 22, 0.32));
  transition: background 0.2s ease;
}
.vframe-play:hover,
.vframe-play:focus-visible {
  background: radial-gradient(120% 92% at 50% 56%, rgba(9, 18, 22, 0.2), rgba(9, 18, 22, 0.52));
  outline: none;
}
.vframe-play:focus-visible { box-shadow: inset 0 0 0 3px var(--warm-soft); }
.vf-play-ico {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.vframe-play:hover .vf-play-ico,
.vframe-play:focus-visible .vf-play-ico {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.28);
}
.vf-play-ico::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}
.vf-play-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(9, 18, 22, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .vf-play-ico { transition: none; }
}

/* Pausknapp (WCAG 2.2.2) — visas när teasern autospelar */
.vframe-pause {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(9, 18, 22, 0.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.vframe-pause:hover { background: rgba(9, 18, 22, 0.78); }
.vframe-pause:focus-visible { outline: 2px solid var(--warm-soft); outline-offset: 2px; }
.vframe-pause[hidden] { display: none; }
.vf-pause-ico {
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-block;
}
.vf-pause-ico::before,
.vf-pause-ico::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 14px;
  background: #fff;
  border-radius: 1px;
}
.vf-pause-ico::before { left: 2px; }
.vf-pause-ico::after { right: 2px; }
.vframe-pause[data-paused] .vf-pause-ico::before {
  left: 3px;
  top: 0;
  width: 0;
  height: 0;
  background: transparent;
  border-radius: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}
.vframe-pause[data-paused] .vf-pause-ico::after { display: none; }

/* ─────────── Lightbox ─────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 56px);
  background: rgba(6, 12, 15, 0.84);
}
.lightbox[data-open] { display: flex; }
.lightbox-dialog {
  position: relative;
  width: min(1080px, 100%);
  background: #0a1216;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: clip;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.75);
  animation: lb-in 0.24s cubic-bezier(0.22, 0.6, 0.2, 1);
}
@keyframes lb-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox-dialog { animation: none; }
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 20px;
}
.lightbox-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.72);
}
.lightbox-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f4efe4;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-close:focus-visible { outline: 2px solid var(--warm-soft); outline-offset: 2px; }
.lightbox-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.lightbox-fallback {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 32px;
  color: #f4efe4;
}
.lb-fallback-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
}
.lb-fallback-sub {
  font-size: 16px;
  color: rgba(244, 239, 228, 0.7);
  max-width: 46ch;
}
.lightbox-fallback .btn { margin-top: 10px; }
.lightbox-video[hidden],
.lightbox-fallback[hidden] { display: none; }
@media (max-width: 700px) {
  .vf-play-ico { width: 58px; height: 58px; }
  .vf-play-ico::before { border-width: 9px 0 9px 15px; }
}

/* ─────────── Effektband ─────────── */
.fx {
  background: var(--band-bg);
  color: var(--band-fg);
  border-top: 0;
  padding: 84px 0;
}
.fx .eyebrow { color: color-mix(in oklab, var(--band-fg) 66%, transparent); }
.fx .eyebrow::before { background: var(--accent-soft); }
.fx h2 { color: var(--band-fg); margin-bottom: 48px; }
.fx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.fx-num {
  font-family: var(--font-serif);
  font-size: clamp(52px, 6.5vw, 88px);
  line-height: 1;
  color: var(--band-fg);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.fx-unit {
  font-size: 0.42em;
  color: var(--warm-soft);
  letter-spacing: 0;
}
.fx-lbl {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: color-mix(in oklab, var(--band-fg) 74%, transparent);
  max-width: 30ch;
}
.fx-note {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--band-fg) 16%, transparent);
  font-size: 15px;
  color: color-mix(in oklab, var(--band-fg) 62%, transparent);
}
.fx-note a {
  color: var(--warm-soft);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--warm-soft) 55%, transparent);
  padding-bottom: 1px;
}
.fx-note a:hover { border-bottom-color: var(--warm-soft); }

/* ─────────── Produktkort ─────────── */
.prodgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.prodcard {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 30px 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.prodcard .vframe {
  border-radius: 12px;
  box-shadow: 0 16px 40px -20px rgba(17, 36, 43, 0.35);
}
.prod-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.prodcard h3 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.prod-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in oklab, var(--warm) 45%, transparent);
  color: var(--warm);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.prod-blurb {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.prod-bullets {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prod-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.prod-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.prod-bullets strong { color: var(--ink); }

/* Flödesrad borttagen på kundens begäran */
.prod-cta {
  margin-top: 40px;
  text-align: center;
  font-size: 17px;
  color: var(--ink-soft);
}
.prod-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  padding-bottom: 1px;
}
.prod-cta a:hover { border-bottom-color: var(--accent); }

/* ─────────── Funnel: demo + pilot + formulär ─────────── */
.funnel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.funnel-aside h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 650;
}
.funnel-aside h3 + p {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-soft);
}
.funnel-aside .blocksep { margin-top: 34px; }
.pilot-points {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pilot-points li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.pilot-points li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
.funnel-note {
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-faint);
}
.funnel-form {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 32px;
}
.funnel-form .kontaktform { margin-top: 0; }

/* Ärende-pills (agenda) */
.agenda {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
.agenda legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: 10px;
  width: 100%;
}
.agenda input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.agenda label {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14.5px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.agenda label:hover { border-color: var(--accent); color: var(--ink); }
.agenda input:checked + label {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.agenda input:focus-visible + label {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ─────────── Säkerhet, kondenserad ─────────── */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.sec-tile {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 24px 26px;
}
.sec-tile h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
}
.sec-tile p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Fördjupning — accordions som kort, tydlig affordance */
.accs {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accs-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink-faint);
}
details.acc {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--bg-card);
}
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 15px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s ease;
}
.acc summary:hover { background: color-mix(in oklab, var(--accent) 7%, transparent); }
.acc summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
details[open] > summary {
  border-bottom: 1px solid var(--rule-soft);
  border-radius: 15px 15px 0 0;
}
.acc-t {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.acc-sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-faint);
}
.acc summary::-webkit-details-marker { display: none; }
.acc-ico {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.acc-ico::before, .acc-ico::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.acc-ico::before { width: 12px; height: 1.5px; }
.acc-ico::after { width: 1.5px; height: 12px; transition: opacity 0.2s ease; }
details[open] .acc-ico { border-color: var(--accent); }
details[open] .acc-ico::after { opacity: 0; }
.acc-body {
  padding: 18px 24px 26px;
  color: var(--ink-soft);
  max-width: 72ch;
}
.acc-body .pull-sm {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 14px;
}
.acc-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acc-body li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.6;
}
.acc-body li::before {
  content: "";
  position: absolute;
  left: 1px; top: 0.5em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.acc-body .foot-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.sec-liver {
  margin-top: 36px;
  font-size: 14.5px;
  color: var(--ink-faint);
}
.sec-liver strong { color: var(--ink-soft); }

/* ─────────── Responsivt ─────────── */
@media (max-width: 960px) {
  .prodgrid { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: 1fr; gap: 40px; }
  .fx-grid { grid-template-columns: 1fr; gap: 36px; }
  .fx-lbl { max-width: 44ch; }
}
@media (max-width: 700px) {
  .v2-hero { padding: 48px 0 72px; }
  .v2-hero .vframe-wrap { margin-top: 44px; }
  .sec-grid { grid-template-columns: 1fr; }
  .prodcard { padding: 22px 22px 26px; }
  .funnel-form { padding: 22px; }
  .fx { padding: 64px 0; }
  .acc summary { padding: 16px 18px; }
  .acc-body { padding: 14px 18px 22px; }
}
