/* =========================================================
   Min AI Kæreste / minaikaereste.com
   @mike started this late May 2026 — don't "clean up" class names,
   partner tracking + GA rely on a few weird ones (pricin-card etc.)
   Last pass: 28.07.2026 @lisa
   ========================================================= */

/* Local variable Nunito Sans (latin + latin-ext) — no Google Fonts runtime */
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #29243a;
  --muted: #665f76;
  --pink: #d42d68;
  --pink-dark: #bd1f57;
  --pink-soft: #fff0f5;
  --lavender: #f2efff;
  --blue: #eef8ff;
  --white: #ffffff;
  --line: #dfd9ed;
  --green: #19724a;
  /* deslop 28.07: tight elevation, smaller radius — no soft fog */
  --shadow:
    0 1px 2px rgba(41, 36, 58, 0.06), 0 4px 12px -6px rgba(41, 36, 58, 0.12);
  --radius: 12px;
  --container: min(1120px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfaff;
  font-family: "Nunito Sans", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a,
button,
input,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #4f3aae;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* @tom: sticky header — Figma said 56, Safari clipped logo at 56 so we locked 58 */
.site-header,
.main-header,
.mw-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 58px;
  background: rgba(251, 250, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 900;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  width: 32px;
  height: 32px;
  color: var(--white);
  background: var(--pink);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  place-items: center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover {
  color: var(--pink-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  border-radius: 4px;
}

.mobile-drawer {
  position: fixed;
  z-index: 250;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(31, 25, 45, 0.48);
  border: 0;
  transition: opacity 220ms ease;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(84vw, 340px);
  height: 100%;
  padding: 18px;
  background: var(--white);
  box-shadow: -8px 0 24px rgba(35, 25, 54, 0.12);
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.mobile-drawer.is-open .drawer-overlay {
  opacity: 1;
}

.mobile-drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-close,
.modal-close {
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--lavender);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mobile-nav a {
  padding: 13px 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
}

.mobile-nav a:hover {
  color: var(--pink-dark);
  background: var(--pink-soft);
}

.hero,
.hero-section {
  display: grid;
  min-height: 305px;
  padding: 30px 0 28px;
  text-align: center;
  background: var(--lavender);
  place-items: center;
}

/* actual <img>, not a CSS background — @anna requested this 28.07 */
.hero {
  position: relative;
  overflow: hidden;
  text-align: left;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(242, 239, 255, 1) 0%,
    /* слева — полностью непрозрачный фон */ rgba(242, 239, 255, 0.85) 30%,
    /* плавный переход */ rgba(242, 239, 255, 0.34) 60%,
    /* почти прозрачный */ rgba(242, 239, 255, 0) 100%
      /* справа — полностью прозрачно, видна картинка */
  );
}

.hero-media img {
  width: auto;
  height: 100%;
  margin-left: auto;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.8) 60%,
    black 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.8) 60%,
    black 100%
  );
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero .hero-copy {
  max-width: 620px;
  margin-right: auto;
  margin-left: 0;
}

.hero .trust-row {
  justify-content: flex-start;
}

/* meta line under hero — not a kicker pill anymore (deslop 28.07) */
.eyebrow,
.hero-baner,
.meta-line {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 680px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

.trust-row,
.trustRow {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 13px;
  color: #493f5a;
  font-size: 0.82rem;
  font-weight: 700;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-item + .trust-item::before {
  content: "·";
  margin-right: 16px;
  color: var(--line);
}

.section {
  padding: 76px 0;
}

.section-alt,
.secton-dark {
  /* secton-dark = typo from May sprint, still used in markup */
  background: var(--blue);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

.ranking-section {
  padding-top: 40px;
}

.ranking-grid {
  display: grid;
  gap: 16px;
}

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns:
    68px 82px minmax(220px, 1.45fr) minmax(170px, 0.8fr)
    minmax(150px, 0.65fr);
  align-items: center;
  min-height: 172px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.rank-card:hover {
  border-color: #c8b8e3;
  box-shadow: var(--shadow);
  transform: none;
}

.rank-card.featured,
.card-fix-2026,
.pricin-card.featured {
  /* pricin-card / card-fix-2026 = leftover names from pricing experiment */
  border: 2px solid #ea6d9b;
}

.editor-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 12px;
  color: var(--pink-dark);
  background: var(--pink-soft);
  border-radius: 0 12px 0 8px;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0;
}

.rank-number {
  display: grid;
  height: 100%;
  color: #4f3e68;
  background: #f7f4fd;
  font-size: 1.2rem;
  font-weight: 900;
  place-items: center;
}

.rank-logo {
  display: grid;
  width: 58px;
  height: 58px;
  margin: auto;
  color: var(--pink-dark);
  background: var(--pink-soft);
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 900;
  place-items: center;
  overflow: hidden;
}

.rank-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-main {
  padding: 24px 20px;
}

.rank-main h3 {
  margin: 0;
  font-size: 1.28rem;
}

.rank-tagline {
  margin: 2px 0 8px;
  color: var(--pink-dark);
  font-size: 0.87rem;
  font-weight: 800;
}

.rank-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-list {
  display: block;
  margin: 10px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 0.84rem;
}

.feature-list li {
  display: inline;
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: inherit;
  font-weight: 600;
}

.feature-list li + li::before {
  content: " · ";
  font-weight: 400;
}

.score-wrap {
  text-align: center;
}

.score {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.score small {
  color: var(--muted);
  font-size: 0.72rem;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 7px;
  color: #9a5c00;
}

.stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.rank-action {
  padding: 22px 18px;
  text-align: center;
}

.button,
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 19px;
  color: var(--white);
  background: var(--pink);
  border: 2px solid var(--pink);
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.card-btn:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  transform: none;
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--pink-dark);
  background: var(--pink-soft);
  border-color: #e3aec2;
}

.microcopy {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
}

.character-grid,
.charGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.character-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.character-card:hover {
  transform: none;
}

.character-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--lavender);
}

.character-image img,
.character-image .character-poster,
.character-image .character-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-image .character-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.character-image.is-loaded .character-video.is-playing,
.character-image.is-playing .character-video {
  opacity: 1;
}

.character-image.is-playing .character-poster {
  opacity: 0;
}

.character-poster {
  position: relative;
  z-index: 0;
  transition: opacity 220ms ease;
}

.character-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  padding: 0;
  color: var(--white);
  background: rgba(28, 22, 39, 0.42);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  transform: translate(-50%, -50%);
  transition:
    background 180ms ease,
    opacity 180ms ease,
    visibility 180ms ease;
}

.character-play span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent currentColor;
}

.character-play:hover {
  background: rgba(28, 22, 39, 0.62);
}

.character-image.is-playing .character-play {
  opacity: 0;
  visibility: hidden;
}

.character-likes {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.character-likes svg {
  display: block;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .character-card:hover .character-play {
    opacity: 0.85;
  }

  .character-card:hover .character-image.is-playing .character-play {
    opacity: 0;
  }
}

.cta-band {
  position: relative;
  display: grid;
  align-items: center;
  /* min-height: min(52vh, 420px); */
  /* padding: 56px 0; */
  overflow: hidden;
  color: var(--white);
  /* isolation: isolate; */
  aspect-ratio: 16/7;
  max-width: 1600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 576px) {
  .cta-band {
    aspect-ratio: auto;
  }
}

.cta-band-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-band-media img,
.cta-band-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band-media video {
  position: absolute;
  inset: 0;
}

.cta-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(28, 22, 39, 0.72) 0%,
    rgba(41, 36, 58, 0.45) 55%,
    rgba(230, 56, 115, 0.28) 100%
  );
}

.cta-band-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.cta-band-content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.cta-band-content p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}

.cta-band-content .button {
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.footer-address,
.contact-address {
  display: block;
  margin: 14px 0 0;
  color: #cfc6dd;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.55;
}

.contact-address {
  margin: 0 0 16px;
  color: var(--muted);
}

.contact-map-section {
  padding-top: 12px;
}

.contact-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--lavender);
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-modal {
  position: fixed;
  z-index: 450;
  inset: 0;
  display: grid;
  visibility: hidden;
  opacity: 0;
  padding: max(12px, env(safe-area-inset-top)) 12px
    max(12px, env(safe-area-inset-bottom));
  background: rgba(28, 22, 39, 0.62);
  place-items: center;
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

.chat-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.chat-modal-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  height: min(88dvh, 640px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  transition: transform 200ms ease;
}

.chat-modal.is-open .chat-modal-card {
  transform: none;
}

.chat-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff7fa 0%, var(--white) 100%);
}

.chat-modal-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--lavender);
}

.chat-modal-heading {
  flex: 1;
  min-width: 0;
}

.chat-modal-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.chat-modal-status {
  margin: 2px 0 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.chat-modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 1.15rem;
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
}

.chat-modal-close:hover {
  background: var(--pink-soft);
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fbfaff;
  -webkit-overflow-scrolling: touch;
}

.chat-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble--bot {
  align-self: flex-start;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.chat-bubble--user {
  align-self: flex-end;
  color: var(--white);
  background: var(--pink);
  border-bottom-right-radius: 4px;
}

.chat-bubble a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.chat-bubble--typing {
  opacity: 0.7;
  font-style: italic;
}

.chat-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f7f4fb;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.chat-form .button {
  min-height: 44px;
  min-width: 76px;
  padding: 8px 14px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  /* .cta-band {
    min-height: 340px;
    padding: 40px 0;
  } */

  .cta-band-content h2 {
    font-size: 1.55rem;
  }

  .contact-map {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }

  .chat-modal {
    padding: 0;
    place-items: stretch;
  }

  .chat-modal-card {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .character-play {
    width: 48px;
    height: 48px;
  }

  .character-likes {
    font-size: 0.72rem;
  }
}

.character-body {
  padding: 16px;
}

.character-body h3 {
  margin: 0;
  font-size: 1.08rem;
}

.character-body p {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.character-body .button {
  width: 100%;
  min-height: 40px;
  padding: 7px 12px;
  font-size: 0.84rem;
}

.steps-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card,
.review-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* step tiles removed — numbers in the heading carry the sequence */

.step-card h3,
.review-card h3 {
  margin: 0 0 7px;
  font-size: 1.08rem;
}

.step-card p,
.review-card blockquote {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.review-platform {
  color: var(--pink-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.review-card .stars {
  justify-content: flex-start;
  margin: 0;
}

.verified {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-left: 16px;
  line-height: 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 180ms ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.faq-answer[hidden] {
  display: none;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  display: grid;
  grid-template-rows: 1fr;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0 42px 20px 4px;
  color: var(--muted);
}

.disclaimer-box {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  background: #fff8e9;
  border: 1px solid #e6c989;
  border-radius: 20px;
}

.disclaimer-icon {
  display: grid;
  width: 56px;
  height: 56px;
  color: #724e00;
  background: #ffe9af;
  border-radius: 16px;
  place-items: center;
}

.disclaimer-icon svg {
  width: 28px;
  height: 28px;
}

.disclaimer-copy h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.disclaimer-copy p {
  margin: 0;
  color: #5f5137;
  font-size: 0.9rem;
}

.age-badge {
  display: grid;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: #7a2c47;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
  place-items: center;
}

.site-footer {
  padding: 42px 0 24px;
  color: #e9e4f2;
  background: #302940;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
}

.site-footer .logo {
  color: var(--white);
}

.footer-about p {
  max-width: 390px;
  color: #cfc6dd;
  font-size: 0.88rem;
}

.footer-column h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #d8d0e4;
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffb2cd;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  color: #bdb3cd;
  border-top: 1px solid #4c435c;
  font-size: 0.78rem;
  text-align: center;
}

.cookie-banner {
  position: fixed;
  z-index: 300;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: auto;
  padding: 15px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c8bdd9;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(140%);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.85rem;
}

.cookie-banner a {
  color: #703080;
  font-weight: 800;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cookie-actions .button {
  min-height: 40px;
  padding: 7px 14px;
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.legal-hero {
  padding: 50px 0;
  text-align: center;
  background: var(--lavender);
}

.legal-hero p {
  max-width: 660px;
  margin: 12px auto 0;
  color: var(--muted);
}

.legal-content {
  max-width: 820px;
  padding-top: 54px;
  padding-bottom: 70px;
}

.legal-content.pt-48 {
  padding-top: 48px; /* iPad tweak 23.07 */
}

.legal-content h2 {
  margin: 38px 0 10px;
  font-size: 1.4rem;
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
}

.legal-content p,
.legal-content li {
  color: #50495d;
}

.legal-content a {
  color: #71317f;
  font-weight: 700;
}

.legal-note {
  padding: 18px;
  background: var(--pink-soft);
  border: 1px solid #e4b4c6;
  border-radius: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-card,
.contact-form {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.form-field {
  margin-bottom: 17px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #afa4bd;
  border-radius: 10px;
}

.form-field textarea {
  min-height: 145px;
  resize: vertical;
}

.success-modal {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: grid;
  visibility: hidden;
  opacity: 0;
  background: rgba(28, 22, 39, 0.58);
  place-items: center;
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

.success-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-card {
  width: min(92vw, 460px);
  padding: 28px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  transition: transform 200ms ease;
}

.success-modal.is-open .modal-card {
  transform: none;
}

.modal-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.modal-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

@media (min-width: 577px) {
  h1 br {
    display: none;
  }
}

@media (max-width: 900px) {
  .rank-card {
    grid-template-columns: 58px 72px 1fr 135px;
  }

  .hero,
  .hero-section {
    min-height: 205px;
  }

  .rank-action {
    grid-column: 3 / 5;
    padding-top: 0;
    text-align: left;
  }

  .rank-action .button {
    min-height: 40px;
    max-width: 100%;
    width: 100%;
  }

  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rank-number {
    font-size: 0.88rem;
    grid-row: 1 / 4;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 22px, 680px);
    --radius: 15px;
  }

  .rank-number {
    grid-row: 1 / 3;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 0;
    min-height: min(18dvh, 142px);
    padding: 10px 0;
  }

  .eyebrow,
  .hero-baner,
  .meta-line {
    min-height: 0;
    margin-bottom: 4px;
    padding: 0;
    font-size: 0.68rem;
  }

  .hero h1 {
    font-size: clamp(1.25rem, 6vw, 1.72rem);
  }

  .hero-copy {
    margin-top: 5px;
    font-size: 0.76rem;
    line-height: 1.3;
    max-width: 60% !important;
  }

  .trust-row {
    display: none;
  }

  .trust-item:nth-child(3) {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .ranking-section {
    padding: 12px 0 42px;
  }

  .ranking-section .section-heading {
    margin-bottom: 8px;
  }

  .ranking-section .section-heading h2 {
    font-size: 1.03rem;
  }

  .ranking-section .section-heading p {
    display: none;
  }

  .ranking-grid {
    gap: 7px;
    max-width: 520px;
    margin: 0 auto;
  }

  .rank-card {
    grid-template-columns: 40px 48px 1fr 88px;
    gap: 10px;
    min-height: clamp(138px, 20.5dvh, 164px);
    max-height: 21.5dvh;
    border-radius: 14px;
    min-height: 128px;
  }

  .editor-badge {
    padding: 3px 7px;
    font-size: 0.54rem;
    border-radius: 0 12px 0 8px;
  }

  .rank-logo {
    grid-column: 2/3;
    width: 48px;
    height: 48px;
  }

  .rank-main {
    align-self: start;
    padding: 13px 7px 4px;
    grid-row: 1 / 3;
    grid-column: 3/4;
  }

  .rank-main h3 {
    font-size: 0.93rem;
    line-height: 1.1;
  }

  .rank-tagline {
    margin: 2px 0 5px;
    font-size: 0.65rem;
    line-height: 1.15;
  }

  .rank-description {
    display: none;
  }

  .feature-list {
    margin-top: 4px;
  }

  .feature-list li {
    padding: 0;
    font-size: 0.68rem;
  }

  .feature-list li:nth-child(n + 3) {
    display: none;
  }

  .score-wrap {
    padding-top: 23px;
  }

  .score {
    font-size: 1rem;
  }

  .score small {
    font-size: 0.52rem;
  }

  .stars {
    gap: 0;
    margin-top: 3px;
  }

  .stars svg {
    width: 10px;
    height: 10px;
  }

  .rank-action {
    grid-column: 2 / 5;
    justify-self: end;
    align-self: end;
    width: 100%;
    padding: 3px 8px 10px;
    text-align: right;
    grid-row: 2/3;
  }

  .rank-action .button {
    width: 100%;
    min-height: 31px;
    padding: 4px 8px;
    border-width: 1px;
    border-radius: 8px;
    font-size: 0.7rem;
  }

  .microcopy {
    display: none;
  }

  .character-grid {
    gap: 10px;
  }

  .steps-grid,
  .reviews-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .disclaimer-box {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .disclaimer-icon {
    width: 46px;
    height: 46px;
  }

  .age-badge {
    grid-column: 1 / -1;
    width: auto;
    height: 36px;
    border-radius: 9px;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 430px) {
  .character-body {
    padding: 11px;
  }

  .character-body p {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .character-body .button {
    min-height: 36px;
    font-size: 0.75rem;
  }

  .hero-copy {
    max-width: 80% !important;
  }

  .meta-line.hero-baner {
    display: none;
  }

  .rank-logo {
    display: none;
  }

  .rank-card {
    grid-template-columns: 40px 1fr 88px;
    max-height: none;
    gap: 0;
  }

  .rank-action .button {
    max-width: 100% !important;
  }

  .rank-main {
    grid-column: 2/3;
    grid-row: 1/2;
  }
}

/* --- bolted-on widgets 21–24.07 (@alex / @lisa) --- */

@media (max-width: 630px) {
  .mw-pulseStrip,
  .trust-row {
    display: none !important;
  }
}

.mw-pulseStrip,
.mw-reviewStamp,
.mw-slaChip,
.mw-selfCheck {
  display: flex;
  align-items: center;
  gap: 10px;
  width: var(--container);
  margin: 12px auto 0;
  padding: 10px 14px;
  color: #4a3d62;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: none;
}

/* quick client tweaks — leave the weird numbers, design signed off 24.07 */
.mt-17 {
  margin-top: 17px;
}
.mb-8 {
  margin-bottom: 8px;
}
.pt-48 {
  padding-top: 48px;
}
.gap-18 {
  gap: 18px;
}

.mw-pulseDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: none;
  animation: none;
}

.mw-selfCheck {
  display: block;
}

.mw-selfCheck__title {
  margin: 0 0 8px;
  font-weight: 900;
}

.mw-selfCheck ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Client perf: skip rendering work for offscreen blocks */
.ranking-section,
#karakterer,
#anmeldelser,
#faq,
#disclaimer,
.cta-band,
.contact-map-section,
.legal-content {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

img,
video {
  max-width: 100%;
}

.character-image .character-poster,
.character-image .character-video,
.hero-media img,
.cta-band-media img,
.cta-band-media video {
  height: 100%;
}
