@media (prefers-reduced-motion: no-preference) {
  html:has(> body.robot-theme) {
    scroll-behavior: smooth;
  }
}

@scope (.robot-theme) {
    :scope {
      --primar: #1F6F5C;
      --primar-mork: #185A4A;
      --mork: #14262E;
      --botten: #F5F7F8;
      --ton: #E9EFF2;
      --linje: #D5DFE4;
      --dov: #5B6B72;
      --yta: #ffffff;
      --julrod: #B4322B;
      --radie: 18px;
      --skugga: 0 10px 30px rgba(20, 38, 46, .08);
      --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
      --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    :scope {
      margin: 0;
      font-family: var(--sans);
      color: var(--mork);
      background: var(--botten);
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }

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

    a {
      color: inherit;
    }

    .container {
      width: min(1140px, 100% - 32px);
      margin: 0 auto;
    }

    /* Sidhuvud */
    .julband {
      background: var(--mork);
      color: #fff;
      font-size: 14px;
      text-align: center;
      padding: 8px 16px;
    }

    .julband strong {
      color: #F2C14E;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 10;
      background: rgba(255, 255, 255, .94);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--linje);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      height: 68px;
    }

    .logo {
      text-decoration: none;
      display: flex;
      align-items: baseline;
      gap: 8px;
    }

    .logo b {
      font-family: var(--serif);
      font-size: 1.55rem;
      letter-spacing: .01em;
    }

    .logo span {
      font-size: 13px;
      color: var(--dov);
      letter-spacing: .14em;
      text-transform: uppercase;
    }

    .nav {
      display: flex;
      gap: 26px;
    }

    .nav a {
      text-decoration: none;
      font-weight: 600;
      font-size: 15px;
      color: var(--dov);
    }

    .nav a:hover {
      color: var(--primar);
    }

    .korg {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid var(--linje);
      display: grid;
      place-items: center;
      background: var(--yta);
    }

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

    /* Heron: hooken (filmen) + ingången (QR) */
    .hero {
      padding: 32px 0 64px;
      background: radial-gradient(ellipse at 32% 0%, #872e3c, transparent 70%),
        linear-gradient(135deg, #641c2b, #3f111d);
      color: #fff4e1;
    }

    .hero .robot-hero-title,
    .hero .hero-guide-title {
      color: #ffdf9e;
    }

    .hero .ingress,
    .hero .hero-direkt,
    .hero .hero-film figcaption {
      color: inherit;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
      grid-template-areas: "heading heading" "film guide";
      gap: clamp(24px, 1.6vw, 30px) clamp(28px, 4vw, 76px);
      align-items: start;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: 999px;
      background: var(--yta);
      border: 1px solid var(--linje);
      font-size: 13px;
      font-weight: 700;
      color: var(--primar);
      letter-spacing: .04em;
    }

    .tag i {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--julrod);
    }

    .hero-heading {
      grid-area: heading;
    }

    .robot-hero-title {
      color: var(--mork);
      font: 700 clamp(2.3rem, 4.5vw, 3.8rem) / 1.05 var(--serif);
      margin: 0;
      letter-spacing: -.035em;
      text-align: center;
    }

    .hero-season {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(16px, 2.5vw, 36px);
      margin: 0 0 12px;
    }

    .hero-season img {
      width: clamp(100px, 12vw, 150px);
      height: auto;
      aspect-ratio: 6 / 5;
      object-fit: cover;
      border-radius: 20px;
      box-shadow: var(--skugga);
    }

    .hero-promise {
      display: block;
      text-wrap: balance;
    }

    .hero-guide {
      grid-area: guide;
      padding-top: clamp(24px, 3vw, 44px);
    }

    .hero-guide-title {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(14px, 2vw, 36px);
      margin: 0 0 clamp(20px, 2vw, 32px);
      font: 800 clamp(1.15rem, 1.65vw, 2rem) / 1.15 var(--serif);
      text-transform: uppercase;
    }

    .hero-guide-title img {
      width: clamp(62px, 7vw, 88px);
      height: auto;
      aspect-ratio: 1;
      object-fit: cover;
      border-radius: 50%;
      border: 2px solid var(--primar);
    }

    .robot-hero-title em {
      background: none;
      -webkit-text-fill-color: currentColor;
      filter: none;
      font-style: normal;
      color: #fff0cd;
    }

    .ingress {
      font-size: clamp(1.05rem, 1.46vw, 1.2rem);
      color: var(--dov);
      max-width: 34em;
      margin: 0 0 clamp(22px, 2.2vw, 42px);
    }

    .hero-qr {
      color: var(--mork);
      display: flex;
      align-items: center;
      gap: clamp(16px, 1.75vw, 32px);
      max-width: 720px;
      padding: clamp(16px, 2vw, 24px);
      border-radius: 26px;
      background: var(--yta);
      border: 2px solid var(--primar);
      box-shadow: var(--skugga);
      text-decoration: none;
      transition: transform .2s ease, border-color .2s ease;
    }

    .hero-qr:hover {
      transform: translateY(-2px);
      border-color: var(--primar);
    }

    .hero-qr:focus-visible {
      outline: 3px solid var(--primar);
      outline-offset: 3px;
    }

    .hero-qr img.qr {
      width: clamp(100px, 9.2vw, 124px);
      height: auto;
      aspect-ratio: 1;
      flex: none;
      border-radius: 10px;
    }

    .hero-qr strong {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: var(--serif);
      font-size: clamp(1.2rem, 1.65vw, 1.5rem);
      line-height: 1.15;
    }

    .hero-qr strong img {
      width: clamp(38px, 3.15vw, 60px);
      height: auto;
      aspect-ratio: 1;
      flex: none;
      border-radius: 50%;
      border: 2px solid var(--primar);
    }

    .hero-qr span {
      display: block;
      font-size: clamp(.95rem, 1.12vw, 1.35rem);
      color: var(--dov);
      margin-top: 6px;
    }

    .hero-qr .pil {
      color: var(--primar);
      font-weight: 700;
      margin-top: 6px;
    }

    .hero-direkt {
      display: inline-block;
      margin-top: 18px;
      font-size: 15px;
      color: var(--dov);
    }

    .hero-film {
      grid-area: film;
      justify-self: end;
      width: min(360px, 100%);
      margin: 0;
    }

    .hero-film video {
      width: 100%;
      aspect-ratio: 9 / 16;
      object-fit: cover;
      border-radius: clamp(30px, 3vw, 54px);
      border: clamp(8px, .8vw, 15px) solid var(--mork);
      box-shadow: 0 30px 60px rgba(20, 38, 46, .25);
      background: var(--ton);
    }

    .hero-film figcaption {
      text-align: center;
      font-size: 13px;
      color: var(--dov);
      margin-top: 12px;
    }

    @media (min-width: 1100px) {
      .hero-heading {
        position: relative;
      }

      .hero-heading .tag {
        position: absolute;
        inset: 0 auto auto 0;
      }
    }

    @media (max-width: 860px) {
      .hero {
        padding: 36px 0 48px;
      }

      .hero-grid {
        width: min(620px, 100% - 32px);
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "heading" "guide" "film";
        gap: 28px;
      }

      .robot-hero-title {
        font-size: clamp(1.85rem, 6vw, 3.6rem);
        margin-top: 16px;
      }

      .hero-season img {
        width: clamp(76px, 18vw, 130px);
        border-radius: 14px;
      }

      .hero-guide {
        padding: 0;
      }

      .hero-guide-title {
        justify-content: flex-start;
        margin-bottom: 16px;
      }

      .hero-film {
        justify-self: center;
        width: min(380px, 100%);
      }

      .hero-qr {
        gap: 14px;
        padding: 12px;
      }

      .hero-qr img.qr {
        width: 96px;
        height: 96px;
      }

      .hero-qr strong {
        font-size: 1.2rem;
      }
    }

    @media (max-width: 380px) {
      .hero-qr strong img {
        display: none;
      }

      .hero-qr img.qr {
        width: 80px;
        height: 80px;
      }
    }

    /* Villkor */
    .villkor {
      background: var(--yta);
      border-block: 1px solid var(--linje);
    }

    .villkor ul {
      list-style: none;
      margin: 0;
      padding: 18px 0;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    .villkor li {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 15px;
      font-weight: 600;
    }

    .villkor li::before {
      content: "✓";
      width: 26px;
      height: 26px;
      flex: none;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--ton);
      color: var(--primar);
      font-size: 14px;
    }

    @media (max-width: 860px) {
      .villkor ul {
        grid-template-columns: 1fr 1fr;
      }
    }

    /* Sektioner */
    section.del {
      padding: 72px 0;
    }

    .del-huvud {
      text-align: center;
      max-width: 640px;
      margin: 0 auto 40px;
    }

    .del-tag {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--primar);
    }

    h2 {
      font-family: var(--serif);
      font-size: clamp(1.9rem, 4vw, 2.7rem);
      line-height: 1.1;
      margin: 10px 0 12px;
    }

    .del-huvud p {
      color: var(--dov);
      font-size: 1.08rem;
      margin: 0;
    }

    /* Modellerna */
    #modeller > .container {
      max-width: 1000px;
    }

    .modeller {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .modell {
      background: var(--yta);
      border: 1px solid var(--linje);
      border-radius: var(--radie);
      padding: 16px;
      display: flex;
      flex-direction: column;
    }

    .modell img {
      width: 100%;
      aspect-ratio: 1;
      object-fit: contain;
      border-radius: 12px;
      background: #fafbfc;
    }

    .modell .marke {
      margin: 14px 0 0;
      font-size: 12px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--dov);
    }

    .modell h3 {
      font-family: var(--serif);
      font-size: 1.35rem;
      margin: 2px 0 6px;
    }

    .modell p.text {
      margin: 0 0 12px;
      color: var(--dov);
      font-size: 15px;
      flex: 1;
    }

    .modell .pris {
      font-weight: 800;
      font-size: 1.2rem;
    }

    .modell .pris s {
      font-weight: 400;
      font-size: .9rem;
      color: var(--dov);
      margin-left: 8px;
    }

    .modell .julpris {
      display: inline-block;
      margin-bottom: 8px;
      font-size: 12px;
      font-weight: 700;
      color: var(--julrod);
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .valj-hjalp {
      margin-top: 32px;
      text-align: center;
    }

    .valj-hjalp p {
      color: var(--dov);
      margin: 0 0 14px;
    }

    @media (max-width: 960px) {
      .modeller {
        grid-template-columns: 1fr 1fr;
      }
    }

    /* Knappar */
    .knapp {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 15px 28px;
      border-radius: 999px;
      background: var(--primar);
      color: #fff;
      font-weight: 700;
      text-decoration: none;
      font-size: 1.02rem;
      transition: background .2s ease;
    }

    .knapp:hover {
      background: var(--primar-mork);
    }

    /* Så fungerar det */
    .sa {
      background: var(--yta);
      border-block: 1px solid var(--linje);
    }

    .sa-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: center;
    }

    .steg {
      list-style: none;
      margin: 0 0 28px;
      padding: 0;
      display: grid;
      gap: 22px;
    }

    .steg li {
      display: flex;
      gap: 16px;
    }

    .steg b.nr {
      width: 38px;
      height: 38px;
      flex: none;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--primar);
      color: #fff;
    }

    .steg strong {
      display: block;
      font-size: 1.08rem;
    }

    .steg span {
      color: var(--dov);
    }

    .sa-cta {
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .sa-cta img {
      width: 88px;
      height: 88px;
      border-radius: 10px;
      border: 1px solid var(--linje);
    }

    .sa-cta p {
      margin: 8px 0 0;
      font-size: 14px;
      color: var(--dov);
    }

    .sa-bild {
      position: relative;
      border-radius: var(--radie);
      overflow: hidden;
      background: var(--ton);
      padding: 28px;
    }

    .sa-bild .rad {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    .sa-bild .rad div {
      background: #fff;
      border-radius: 12px;
      padding: 8px;
      text-align: center;
      font-size: 13px;
      font-weight: 700;
    }

    .sa-bild .rad div.ute {
      opacity: .3;
      filter: grayscale(1);
    }

    .sa-bild .rad div.lyft {
      box-shadow: 0 0 0 3px var(--primar);
    }

    .sa-bild .rad img {
      aspect-ratio: 1;
      object-fit: contain;
      width: 100%;
    }

    .sa-bild .lage {
      text-align: center;
      font-weight: 800;
      margin: 16px 0 0;
      font-size: 1.1rem;
    }

    .sa-bild .fraga {
      font-family: var(--serif);
      font-size: 1.5rem;
      margin: 0 0 6px;
    }

    .sa-bild .svar {
      display: inline-block;
      margin-bottom: 18px;
      padding: 8px 16px;
      border-radius: 999px;
      background: var(--primar);
      color: #fff;
      font-weight: 700;
    }

    @media (max-width: 860px) {
      .sa-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Sidfot och ägarlagret */
    .site-footer {
      background: var(--mork);
      color: #C9D4D9;
      padding: 48px 0 28px;
      font-size: 15px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr 1.2fr;
      gap: 32px;
    }

    .site-footer h4,
    .site-footer h5 {
      color: #fff;
      margin: 0 0 10px;
    }

    .site-footer h4 {
      font-family: var(--serif);
      font-size: 1.4rem;
    }

    .site-footer ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 6px;
    }

    .site-footer a {
      text-decoration: none;
    }

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

    .footer-bottom {
      margin-top: 32px;
      padding-top: 18px;
      border-top: 1px solid rgba(255, 255, 255, .12);
      font-size: 13px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

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

    .agar {
      background: #0E1B21;
      color: #fff;
      padding: 56px 16px;
      text-align: center;
    }

    .agar p.avs {
      font-size: 13px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: #8FB8AC;
      margin: 0 0 10px;
    }

    .agar h2 {
      margin: 0 0 12px;
    }

    .agar p {
      max-width: 560px;
      margin: 0 auto 24px;
      color: #C9D4D9;
    }

    .agar p.fler {
      margin: 22px auto 0;
      font-size: .95rem;
    }

    .agar p.fler a {
      display: inline;
      padding: 0;
      background: none;
      color: #fff;
      text-decoration: underline;
    }

    .agar a {
      display: inline-block;
      padding: 15px 30px;
      border-radius: 999px;
      background: #fff;
      color: var(--mork);
      font-weight: 700;
      text-decoration: none;
    }

    /* Ägarformuläret (2026-11-23): ljus ruta med mörk text, samma som
       formuläret efter Storyn. */
    .agar p.agar-ingress {
      margin: 0 auto 18px;
      font-weight: 700;
      color: #fff;
    }

    .agar-form {
      max-width: 400px;
      margin: 0 auto;
      padding: 22px 18px 18px;
      text-align: left;
      background: #f8fafc;
      border-radius: 16px;
      color: #0f172a;
    }

    .agar-form[hidden],
    .agar-tack[hidden],
    .agar-fel[hidden] {
      display: none;
    }

    .agar-form label {
      display: block;
      margin: 0 0 6px;
      font-size: .95rem;
      font-weight: 700;
      color: #0f172a;
    }

    .agar-form input {
      display: block;
      width: 100%;
      box-sizing: border-box;
      margin: 0 0 14px;
      padding: 13px 14px;
      font: inherit;
      font-size: 16px;
      color: #0f172a;
      background: #fff;
      border: 1px solid #cbd5e1;
      border-radius: 12px;
    }

    .agar-form input::placeholder {
      color: #64748b;
      opacity: 1;
    }

    .agar-form input:focus {
      outline: none;
      border-color: var(--primar);
      box-shadow: 0 0 0 3px rgba(31, 111, 92, .25);
    }

    .agar-form button {
      display: block;
      width: 100%;
      margin-top: 4px;
      padding: 15px 24px;
      border: 0;
      border-radius: 999px;
      background: var(--primar);
      color: #fff;
      font: inherit;
      font-weight: 700;
      font-size: 1.05rem;
      cursor: pointer;
    }

    .agar-form button[disabled] {
      opacity: .65;
      cursor: wait;
    }

    .agar .agar-form p.agar-samtycke {
      margin: 12px 0 0;
      font-size: .8rem;
      line-height: 1.5;
      color: #475569;
      text-align: center;
    }

    .agar .agar-form p.agar-fel {
      margin: 12px 0 0;
      font-size: .9rem;
      font-weight: 700;
      color: #b91c1c;
      text-align: center;
    }

    .agar .agar-form p.agar-fel a {
      display: inline;
      padding: 0;
      background: none;
      color: var(--primar);
      text-decoration: underline;
    }

    .agar p.agar-tack {
      font-size: 1.1rem;
      font-weight: 700;
      color: #fff;
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-qr,
      .knapp {
        transition: none;
      }
    }
}
