/* ==========================================================================
   crowdzo.live

   Värdena kommer ordagrant ur designen (Crowdzo.dc.html). Designen använde
   inline-stilar eftersom den byggdes i ett designverktyg; här är de samlade
   i klasser, men siffrorna är oförändrade. Avrunda dem inte till ett
   4/8-rutnät - det skulle flytta layouten från det som godkändes.
   ========================================================================== */

:root {
  --ink:        #0B1320;
  --ink-hover:  #1B2A42;
  --blue:       #007BFF;
  --blue-dark:  #0066D6;
  --blue-text:  #0057B8;
  --blue-light: #4DA3FF;
  --orange:     #FF8A00;
  --green:      #10C26B;

  --body-text:  #48556A;
  --nav-text:   #3C4859;
  --muted:      #5A6779;
  --muted-2:    #4A5668;
  --label:      #7A8698;

  --line:       #E4EAF2;
  --line-2:     #D7E0EC;
  --pin-line:   #C3D8F5;
  --surface:    #F4F7FB;
  --pin-bg:     #F0F6FF;
  --pin-border: #D9E7FB;
  --selected:   #E7F1FF;
  --stage-soft: #FFF4E5;

  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 22px;
}

/* --- Bas ---------------------------------------------------------------- */

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

html, body { margin: 0; padding: 0; }

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }

button, input, select, textarea { font-family: inherit; }

input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px;
}

img { max-width: 100%; }

h1, h2, h3, p { margin: 0; }

@keyframes cz-pulse {
  0%, 100% { opacity: .3; transform: scale(.7); }
  50%      { opacity: 1;  transform: scale(1); }
}

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
  font-size: 15px; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }

/* --- Layout ------------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { position: relative; overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }

.section--pad     > .wrap { padding-top: clamp(40px, 5vw, 64px);  padding-bottom: clamp(40px, 5vw, 64px); }
.section--pad-lg  > .wrap { padding-top: clamp(44px, 6vw, 76px);  padding-bottom: clamp(44px, 6vw, 76px); }
.section--pad-md  > .wrap { padding-top: clamp(44px, 6vw, 72px);  padding-bottom: clamp(44px, 6vw, 72px); }
.section--hero    > .wrap { padding-top: clamp(40px, 6vw, 76px);  padding-bottom: clamp(30px, 4vw, 48px); }

.section--dark { background: var(--ink); color: #fff; }
.section--surface { background: var(--surface); }

/* Dekorativa fläckar i bakgrunden. aria-hidden i markup. */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; }
.blob--a { border-radius: 58% 42% 48% 52% / 52% 48% 52% 48%; }
.blob--b { border-radius: 44% 56% 62% 38% / 56% 42% 58% 44%; }
.blob--c { border-radius: 62% 38% 42% 58% / 46% 58% 42% 54%; }

.blob--left, .blob--right {
  top: 36px; width: 400px; height: calc(100% - 72px); max-height: 380px;
}
.blob--left  { left: -290px; }
.blob--right { right: -290px; }
.blob--bottom-right { top: auto; bottom: 36px; right: -300px; }
.blob--bottom-left  { top: auto; bottom: 36px; left: -300px; }

.blob--blue   { background: var(--blue);   opacity: .12; }
.blob--orange { background: var(--orange); opacity: .11; }
.blob--green  { background: var(--green);  opacity: .13; }

/* --- Typografi ---------------------------------------------------------- */

/* text-wrap: balance jämnar ut radlängden i rubriker - märks mest på de
   längre, som prisrubriken som går över två rader. */
.h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.page-title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; text-wrap: balance; }
.page-lede  { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: var(--body-text); }

.h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; text-wrap: balance; }
.h2--sm { font-size: clamp(21px, 2.6vw, 28px); letter-spacing: 0; }

.rule { width: 58px; height: 5px; border-radius: 999px; background: var(--orange); margin-bottom: 30px; }

.ticks { display: flex; gap: 7px; margin-bottom: 20px; }
.ticks span {
  display: block; width: 7px; height: 26px; border-radius: 999px; transform: rotate(18deg);
}
.ticks span:first-child { background: var(--orange); }
.ticks span:last-child  { background: var(--green); }

.label-caps {
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--label);
}

.badge-plus {
  display: inline-block; background: var(--blue); color: #fff; border-radius: 6px;
  padding: 3px 8px; font-size: 13px; font-weight: 700; margin-bottom: 10px;
}

/* --- Knappar ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-weight: 600; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }

.btn--dark  { background: var(--ink); color: #fff; padding: 15px 24px; border-radius: 11px; font-size: 17px; }
.btn--dark:hover { background: var(--ink-hover); color: #fff; }

.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); padding: 15px 24px; border-radius: 11px; font-size: 17px; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--sm { padding: 14px 22px; }

.btn--blue { background: var(--blue); color: #fff; border-radius: 11px; padding: 14px; font-size: 16px; font-weight: 700; width: 100%; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }

.btn--outline-block { background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 11px; padding: 14px; font-size: 16px; width: 100%; }
.btn--outline-block:hover { border-color: var(--ink); }

/* --- Sidhuvud ----------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 40; background: #fff; }
.header-main { border-bottom: 1px solid var(--line); }
.header-main .wrap {
  padding-top: 13px; padding-bottom: 13px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.logo { background: none; border: none; padding: 0; display: flex; align-items: center; }
.logo img { height: 70px; width: auto; display: block; }

/* Sidhuvudet är sticky och har PIN-bandet under sig. På en telefon skulle
   70 px logotyp låsa uppemot en tredjedel av skärmen innan innehållet ens
   börjar, så den krymper där. */
@media (max-width: 600px) {
  .logo img { height: 46px; }
}

.site-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--nav-text);
}
.site-nav a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-select {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 7px 8px; font-size: 14px; color: var(--muted); cursor: pointer;
}

.link-login { padding: 8px 10px; font-size: 15px; color: var(--muted); }
.link-login:hover { color: var(--ink); text-decoration: none; }

.btn--cta {
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
}
.btn--cta:hover { background: var(--ink-hover); color: #fff; }

/* --- PIN-bandet ---------------------------------------------------------
   Deltagaren som skannat en QR-kod ska hitta hit på under tre sekunder.
   Därför ligger det på varje sida, direkt under sidhuvudet.
   ----------------------------------------------------------------------- */

.pin-bar { background: var(--pin-bg); border-bottom: 1px solid var(--pin-border); }
.pin-bar .wrap {
  padding-top: 12px; padding-bottom: 12px;
  display: flex; align-items: center; gap: clamp(10px, 2vw, 20px); flex-wrap: wrap;
}

.pin-ask { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; }

.pin-boxes { position: relative; display: flex; gap: 6px; }
.pin-input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  border: none; background: none; cursor: text; font-size: 16px;
}
.pin-digit {
  width: 38px; height: 46px; border: 2px solid var(--pin-line); border-radius: 9px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.pin-boxes:focus-within .pin-digit { border-color: var(--blue); }

.pin-submit {
  background: var(--blue); color: #fff; border: none; height: 46px; padding: 0 22px;
  border-radius: 9px; font-size: 17px; font-weight: 700; cursor: pointer;
}
.pin-submit:hover { background: var(--blue-dark); }

.pin-hint { font-size: 15px; color: var(--muted-2); }

/* --- Språkförslag -------------------------------------------------------
   Ett förslag, aldrig en omdirigering: en automatisk omdirigering skulle
   träffa sökmotorernas crawlers också och hindra dem från att indexera de
   andra språkversionerna.
   ----------------------------------------------------------------------- */

.lang-suggest {
  background: var(--ink); color: #fff;
  font-size: 15px;
}
.lang-suggest .wrap {
  padding-top: 10px; padding-bottom: 10px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.lang-suggest a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lang-suggest a:hover { color: var(--blue-light); }
.lang-suggest button {
  margin-left: auto; background: none; border: none; color: rgba(255,255,255,.6);
  font-size: 14px; cursor: pointer; padding: 4px 6px;
}
.lang-suggest button:hover { color: #fff; }

/* --- Rutnät ------------------------------------------------------------- */

.grid { display: grid; gap: 18px; }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.grid--330 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(28px, 5vw, 56px); align-items: center; }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 4vw, 52px); align-items: center; }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 3vw, 40px); align-items: center; }
.grid--cols  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 4vw, 44px); }

/* --- Kort --------------------------------------------------------------- */

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.card--sm { padding: 24px; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card--sm h3 { font-size: 18px; }
.card p { font-size: 16px; line-height: 1.55; color: var(--body-text); }

.step-n { font-size: 15px; font-weight: 700; letter-spacing: .1em; margin-bottom: 14px; }
.step-n--blue   { color: var(--blue); }
.step-n--orange { color: var(--orange); }
.step-n--green  { color: var(--green); }

.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dot--blue { background: var(--blue); }
.dot--orange { background: var(--orange); }
.dot--green { background: var(--green); }
.dot--ink { background: var(--ink); }

.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-head h3 { font-size: 19px; margin: 0; }

/* --- Hero --------------------------------------------------------------- */

.hero-lede {
  font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: var(--body-text);
  max-width: 48ch; margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--muted); }

.h1 .accent { color: var(--blue); }

/* Mörkt förhandsvisningskort i hero */
.preview {
  position: relative; border-radius: 18px; background: var(--ink);
  padding: clamp(16px, 2.2vw, 22px); overflow: hidden;
  box-shadow: 0 26px 60px -32px rgba(11, 19, 32, .6);
}
.preview > * { position: relative; }
.preview .glow { position: absolute; border-radius: 50%; filter: blur(44px); }
.preview .glow--blue  { width: 240px; height: 240px; background: var(--blue);  opacity: .34; top: -90px; right: -60px; }
.preview .glow--green { width: 190px; height: 190px; background: var(--green); opacity: .24; bottom: -70px; left: -50px; }

.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.preview-top img { height: 19px; width: auto; display: block; }

.pin-chip {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px; padding: 6px 10px;
}
.pin-chip span { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .1em; }

.qr { display: grid; grid-template-columns: repeat(4, 4px); grid-template-rows: repeat(4, 4px); gap: 2px; }
.qr i { background: #fff; }
.qr i.off { background: rgba(255,255,255,.3); }

.preview-q { margin-bottom: 16px; font-size: clamp(18px, 2.2vw, 23px); font-weight: 700; color: #fff; }

.preview-words { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 6px 0 10px; }

.preview-live { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.6); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: cz-pulse 1.8s ease-in-out infinite; }

/* --- Demo --------------------------------------------------------------- */

.demo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.demo-head .rule { margin-bottom: 16px; }
.demo-head h2 { margin-bottom: 8px; }
.demo-head p { font-size: 17px; color: var(--body-text); max-width: 56ch; }

.demo-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.demo-tab {
  border: 1px solid var(--line-2); background: #fff; color: var(--nav-text);
  padding: 10px 16px; border-radius: 999px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.demo-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 32px); align-items: start; }

/* Demons två skärmar speglar den riktiga appen (crowdzo-app/public/
   display.html och player.html). Variablerna nedan är appens egna och
   gäller ENDAST inuti demon - resten av sajten behåller sin palett. */
.demo-grid {
  --app-bg:     #F9F9FA;
  --app-card:   #fff;
  --app-text:   #222;
  --app-muted:  #888;
  --app-line:   rgba(0,0,0,.08);
  --app-subtle: rgba(0,0,0,.06);
  --app-cyan:   #10b8eb;
  --app-action: linear-gradient(135deg, #7c3aed, #2563eb);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* --- Storskärmen (display.html) --- */

.stage {
  position: relative; border-radius: 16px; background: var(--app-bg);
  border: 1px solid var(--app-line); color: var(--app-text);
  padding: clamp(18px, 2.4vw, 26px); overflow: hidden; min-height: 340px;
  display: flex; flex-direction: column;
}

.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.stage-top img { height: 22px; width: auto; display: block; }
.stage-pin { font-size: 14px; color: var(--app-muted); letter-spacing: .1em; font-weight: 700; }

.stage-body { flex: 1; display: flex; flex-direction: column; }
.stage-q { margin-bottom: 18px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; color: var(--app-text); }
.stage-sub { margin-bottom: 18px; font-size: 15px; color: var(--app-muted); }

/* Poll: färgruta plus stapel, som display.html ritar dem. */
.poll-rows { display: flex; flex-direction: column; gap: 12px; }
.poll-row-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 6px; color: var(--app-text); }
.poll-row-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.poll-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.poll-track { height: 32px; border-radius: 10px; background: var(--app-subtle); overflow: hidden; }
.poll-fill { height: 100%; border-radius: 10px; min-width: 4px; transition: width .6s cubic-bezier(.4,0,.2,1); }
.poll-row--correct .poll-row-top { font-weight: 800; }
.poll-correct-mark { color: #16a34a; font-weight: 800; }

/* Ordmoln: färgade piller, inte fri text. */
.cloud { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.cloud span {
  font-weight: 800; line-height: 1.2; padding: 4px 14px; border-radius: 24px;
  display: inline-block; transition: font-size .4s ease;
}

.answers { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.answer-card {
  background: var(--app-card); border: 1px solid var(--app-line); border-radius: 14px;
  padding: 14px 20px; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--app-text);
}
.answers-empty { font-size: 16px; color: var(--app-muted); text-align: center; }

/* Skala: stapelfärgen går rött → orange → grönt, som scaleColor(). */
/* Staplarnas höjd sätts i px av demo.js - se kommentaren där. */
.scale-cols { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 10px; min-height: 180px; }
.scale-col { flex: 1; max-width: 80px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.scale-count { font-size: 12px; color: var(--app-muted); }
.scale-bar { width: 100%; border-radius: 8px 8px 0 0; transition: height .6s cubic-bezier(.4,0,.2,1); }
.scale-label { font-size: 14px; font-weight: 800; color: var(--app-text); }
.scale-avg { margin-top: 16px; font-size: 17px; color: var(--app-text); text-align: center; }
.scale-avg b { font-weight: 800; }

.stage-text { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.stage-text h3 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--app-text); letter-spacing: -.01em; }
.stage-text div { display: flex; flex-direction: column; gap: 10px; font-size: 18px; color: var(--app-text); }

.stage-qa-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stage-qa-head p { font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; color: var(--app-text); }
.stage-qa-head span { font-size: 14px; color: var(--app-muted); }
.stage-qa-list { display: flex; flex-direction: column; gap: 10px; }
.stage-qa-item {
  display: flex; gap: 12px; align-items: flex-start; background: var(--app-card);
  border: 1px solid var(--app-line); border-radius: 14px; padding: 12px 14px;
}
.stage-qa-votes {
  min-width: 38px; height: 28px; border-radius: 8px; background: var(--app-subtle);
  color: var(--app-text); font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.stage-qa-item p { font-size: 16px; line-height: 1.4; color: var(--app-text); font-weight: 600; }
.stage-qa-item .meta { margin-top: 4px; font-size: 13px; color: var(--app-muted); font-weight: 400; }

/* Telefon */
.phone-col { display: flex; justify-content: center; }
.phone {
  width: min(100%, 320px); border: 10px solid var(--ink); border-radius: 34px;
  background: #fff; overflow: hidden; box-shadow: 0 20px 44px -26px rgba(11,19,32,.5);
}
.phone-top { background: var(--ink); padding: 8px 16px 12px; display: flex; align-items: center; justify-content: space-between; }
.phone-top span { font-size: 13px; color: rgba(255,255,255,.75); }
/* --- Telefonen (player.html) ---
   Ramen är en marknadsföringsattrapp; innehållet i den är appens riktiga
   deltagarvy - grå botten, vitt kort med 22 px radie och mjuk skugga. */

.phone-body { padding: 16px; min-height: 330px; display: flex; flex-direction: column; gap: 14px; background: var(--app-bg); }
.phone-view {
  flex: 1; display: flex; flex-direction: column;
  background: var(--app-card); color: var(--app-text);
  border: 1px solid var(--app-line); border-radius: 22px; padding: 22px 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.phone-badge {
  align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.phone-badge--poll      { background: #e0f2fe; color: #0369a1; }
.phone-badge--cloud     { background: #f0fdf4; color: #166534; }
.phone-badge--open      { background: #fef9c3; color: #854d0e; }
.phone-badge--scale     { background: #fce7f3; color: #9d174d; }
.phone-badge--text      { background: #f1f5f9; color: #334155; }
.phone-badge--qa        { background: #ede9fe; color: #5b21b6; }

.phone-q { margin-bottom: 18px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.phone-q--tight { margin-bottom: 6px; }
.phone-hint { margin-bottom: 14px; font-size: 13px; color: var(--app-muted); }
.phone-note { margin-top: 12px; font-size: 13px; color: var(--app-muted); }

/* Svarsalternativen ligger i ett tvåkolumnsrutnät och bär poll-paletten. */
.phone-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 4px; }
.phone-option {
  width: 100%; padding: 18px 12px; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 800; text-align: center; cursor: pointer;
  min-height: 72px; box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: transform .1s, box-shadow .12s;
}
.phone-option:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(0,0,0,.28); }
.phone-option[aria-pressed="true"] { outline: 4px solid rgba(0,0,0,.4); transform: scale(1.03); box-shadow: 0 7px 20px rgba(0,0,0,.3); }

.phone-field {
  width: 100%; border: 2.5px solid rgba(0,0,0,.12); border-radius: 12px; padding: 14px;
  font-size: 21px; font-weight: 700; text-align: center; color: var(--app-text);
  background: #fff; margin-bottom: 10px; transition: border-color .15s;
}
.phone-field:focus { border-color: var(--app-cyan); outline: none; }
textarea.phone-field { padding: 12px; font-size: 15px; font-weight: 500; text-align: left; resize: none; }

.phone-send {
  width: 100%; padding: 13px; border: none; border-radius: 13px;
  font-size: 16px; font-weight: 800; cursor: pointer; color: #fff;
  background: var(--app-action); transition: opacity .15s;
}
.phone-send:hover:not(:disabled) { opacity: .88; }
.phone-send:disabled { opacity: .45; cursor: not-allowed; }

/* Skalan är runda knappar i rött→grönt, inte rektanglar. */
.phone-scale { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.phone-scale button {
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 18px; font-weight: 800; color: #fff; transition: transform .1s, opacity .12s;
}
.phone-scale button:hover { transform: scale(1.1); }
.phone-scale button[aria-pressed="true"] { outline: 4px solid rgba(0,0,0,.35); transform: scale(1.1); }

.phone-connected {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px; padding: 20px 0;
}
.phone-connected .live-dot { width: 10px; height: 10px; }
.phone-connected p:first-of-type { font-size: 16px; font-weight: 700; }
.phone-connected p:last-of-type { font-size: 14px; color: var(--app-muted); max-width: 26ch; }

.phone-qa-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.phone-anon {
  border: 2px solid rgba(0,0,0,.12); background: #fff; color: var(--app-text);
  padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.phone-anon[aria-pressed="true"] { border-color: var(--app-cyan); color: #0369a1; }
.phone-qa-row .phone-send { flex: 1; width: auto; }

.phone-qa-list { display: flex; flex-direction: column; gap: 10px; }
.phone-qa-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--app-line); border-radius: 12px; padding: 10px 12px; }
.phone-qa-item p { font-size: 14px; line-height: 1.4; font-weight: 600; }
.phone-qa-item .meta { margin-top: 4px; font-size: 12px; color: var(--app-muted); font-weight: 400; }
.vote-btn {
  min-width: 44px; min-height: 44px; border: 2px solid rgba(0,0,0,.12); background: #fff;
  color: var(--app-text); border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.1; flex: none;
}
.vote-btn[aria-pressed="true"] { border-color: var(--app-cyan); color: #0369a1; background: #f0f9ff; }

/* Telefonen har inga flikar: Q&A-vyn nås genom att välja Q&A ovanför
   demon, och efter en skickad fråga visas listan av sig själv. */

/* --- Q&A-sektionen (mörk) ----------------------------------------------- */

.qa-eyebrow { margin-bottom: 12px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.section--dark h2 { font-size: clamp(25px, 3.2vw, 36px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 18px; }
.qa-lede { margin-bottom: 22px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 46ch; }
.qa-points { display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: rgba(255,255,255,.85); }
.qa-point { display: flex; gap: 12px; align-items: flex-start; }
.qa-point i { margin-top: 7px; width: 8px; height: 8px; border-radius: 2px; flex: none; }

.qa-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: clamp(16px, 2vw, 22px); }
.qa-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qa-panel-top > span { font-size: 15px; font-weight: 700; }
.qa-sort {
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff;
  padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.qa-panel-list { display: flex; flex-direction: column; gap: 10px; }
.qa-panel-item { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.05); border-radius: 12px; padding: 12px; }
.qa-panel-item p { font-size: 16px; line-height: 1.45; }
.qa-panel-item .meta { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.55); }
.vote-btn--dark {
  min-width: 46px; min-height: 46px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; border-radius: 10px;
}
.vote-btn--dark[aria-pressed="true"] { background: rgba(0,123,255,.28); border-color: var(--blue-light); color: #fff; }
.qa-panel-note { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.55); }

/* --- Prisavsnitt -------------------------------------------------------- */

.price-lede { margin-bottom: 20px; font-size: 17px; line-height: 1.6; color: var(--body-text); max-width: 44ch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.price-row { display: flex; justify-content: space-between; gap: 16px; }
.price-row--top { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.price-row .name { margin-bottom: 4px; font-size: 17px; font-weight: 700; }
.price-row .desc { font-size: 15px; color: var(--muted); }
.price-row .cost { font-size: 20px; font-weight: 700; white-space: nowrap; }
.price-terms { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* Prissidan */
.plan { border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 32px); }
.plan--plus { border: 2px solid var(--blue); }
.plan-name { margin-bottom: 6px; font-size: 20px; font-weight: 700; }
.plan-cost { margin-bottom: 22px; font-size: clamp(32px, 4vw, 42px); font-weight: 700; letter-spacing: -.02em; }
.plan-cost span { font-size: 18px; font-weight: 600; color: var(--muted); }
.plan-intro { margin-bottom: 12px; font-size: 15px; color: var(--muted); }

/* Sidans enda CTA, under jämförelsen - där beslutet fattas. */
.pricing-cta {
  display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.pricing-cta .btn { flex: none; }
.pricing-cta-note { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 44ch; }
.plan-items { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--body-text); }

/* --- Funktionssidan ----------------------------------------------------- */

/* Rubriken till vänster, texten till höger. Ger varje typ plats att
   beskrivas på riktigt utan att sidan blir en vägg av kort. */

.section-lede { font-size: 17px; line-height: 1.6; color: var(--body-text); max-width: 62ch; margin: 8px 0 8px; }

.feature-list { display: flex; flex-direction: column; }
.feature-block {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px;
  border-top: 1px solid var(--line); padding: 28px 0;
}
.feature-block:last-child { border-bottom: 1px solid var(--line); }

/* Sidhuvudet är klistrat och har PIN-bandet under sig. Utan det här
   hamnar det man hoppar till bakom dem. */
.feature-block[id], .h2[id] { scroll-margin-top: 180px; }

@media (max-width: 720px) {
  .feature-block { grid-template-columns: 1fr; gap: 12px; }
}

.feature-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; align-content: start; }
.feature-head h3 { font-size: 20px; font-weight: 700; }

.feature-body { display: flex; flex-direction: column; gap: 12px; }

/* Definitionsmeningen först - den är sidans svar på "vad är X?". */
.feature-what { font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--ink); max-width: 62ch; }
.feature-text { font-size: 16px; line-height: 1.6; color: var(--body-text); max-width: 66ch; }

.feature-points { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.feature-points li { font-size: 16px; line-height: 1.5; color: var(--body-text); max-width: 62ch; }
.feature-points li::marker { color: var(--orange); }

.feature-use { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 64ch; }

.badge-plus--inline { margin-bottom: 0; }

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

/* Sidans ram är 1200 px som på övriga sidor, så rubriken börjar på samma
   ställe. Själva dragspelet hålls smalare - svaren blir oläsliga när en
   rad går över hela bredden. */
.faq-list { display: flex; flex-direction: column; max-width: 820px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

/* <summary> har en egen markör i varje webbläsare; den bort, plus/minus in. */
.faq-q { list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q {
  padding: 20px 0; font-size: 18px; font-weight: 600; color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.faq-q .sign { color: var(--blue); flex: none; }
.faq-q .sign::before { content: "+"; }
.faq-item[open] .faq-q .sign::before { content: "\2013"; }
.faq-a { margin-bottom: 20px; font-size: 17px; line-height: 1.6; color: var(--body-text); }

/* --- Juridiska sidor ---------------------------------------------------- */

.legal {
  max-width: 820px; margin: 0 auto;
  padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px);
}
.legal .page-title { margin-bottom: 6px; }
.legal-updated { font-size: 15px; color: var(--label); margin-bottom: 28px; }

.legal h2 {
  font-size: 19px; font-weight: 700; color: var(--ink);
  margin: 32px 0 10px; scroll-margin-top: 180px;
}
.legal p { font-size: 16px; line-height: 1.7; color: var(--body-text); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; }
.legal li { font-size: 16px; line-height: 1.6; color: var(--body-text); }
.legal li::marker { color: var(--orange); }
.legal strong { color: var(--ink); font-weight: 600; }

.legal-company {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 20px; margin-top: 10px;
  font-size: 15px; line-height: 1.8; color: var(--body-text);
}

.legal-rule { border: none; border-top: 1px solid var(--line); margin: 36px 0 20px; }
.legal-foot { font-size: 15px; color: var(--muted); }

/* --- Sidfot ------------------------------------------------------------- */

.site-footer { position: relative; border-top: 1px solid var(--line); background: #fff; }
.site-footer .wrap {
  padding-top: clamp(32px, 4vw, 52px); padding-bottom: clamp(32px, 4vw, 52px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px;
}
.site-footer img { height: 38px; width: auto; display: block; margin-bottom: 12px; }
.footer-tagline { margin-bottom: 12px; font-size: 16px; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 16px; }
.footer-langs { font-size: 16px; color: var(--muted); line-height: 1.6; }
.footer-langs a { color: var(--muted); }
.footer-langs a:hover { color: var(--ink); }
.footer-langs .pending { color: var(--label); }

.footer-also { border-top: 1px solid var(--line); background: var(--surface); }
.footer-also .wrap { padding-top: 16px; padding-bottom: 16px; }
.footer-also p { font-size: 15px; color: var(--muted); }
.footer-also a { font-weight: 700; color: var(--ink); }
.footer-also a:hover { color: var(--blue); text-decoration: none; }

/* --- Rot-/x-default-sidan ----------------------------------------------- */

.root-main { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter); }
.root-langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.root-langs a {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.root-langs a:hover { border-color: var(--ink); text-decoration: none; }
