/* ============================================================
   Lipio Intyg - styles.css (v1)
   Dark cinematic identity. Shares only the wordmark with lipio.se / Lipio Man.
   Deep slate canvas, paper-white text, verified-emerald + trust-blue accents,
   glass surfaces, Three.js hero. Progressive enhancement throughout.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
a { color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Fonts ---------- */
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg:            #0B1812;
  --bg-2:          #0E2018;
  --surface:       rgba(255,255,255,0.05);
  --surface-2:     rgba(255,255,255,0.08);
  --glass:         rgba(11,24,18,0.66);

  --text:          #EEF4EF;
  --text-soft:     #A9BBB0;
  --muted:         #74877C;

  --emerald:       #1F9D6B;
  --emerald-deep:  #16855A;
  --emerald-bright:#5FD6A3;
  --emerald-soft:  rgba(31,157,107,0.16);
  --emerald-ring:  rgba(31,157,107,0.34);

  --blue:          #2F6BFF;
  --blue-deep:     #1F57E6;
  --blue-soft:     rgba(47,107,255,0.10);

  --border:        rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.17);
  --star:          #E8B23D;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --shadow-card: 0 24px 58px -24px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.32);
  --shadow-cta:  0 14px 32px -8px rgba(31,157,107,0.42);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: min(1140px, 92vw);
  --container-narrow: min(760px, 92vw);

  --font-display: 'Fraunces', 'Instrument Serif', Georgia, serif;
  --font-wordmark: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* layered ambient glows */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1000px 680px at 84% -12%, rgba(31,157,107,0.18), transparent 60%),
    radial-gradient(820px 560px at 6% 12%, rgba(47,107,255,0.08), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app { position: relative; }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: baseline;
  text-decoration: none; color: var(--text);
  font-family: var(--font-wordmark);
  letter-spacing: -0.01em; line-height: 1;
}
.wm-lip { font-style: normal; }
.wm-io { font-style: italic; }
.wm-dot {
  width: 0.24em; height: 0.24em; border-radius: 50%;
  background: var(--emerald); display: inline-block;
  margin: 0 0.1em 0 0.05em; position: relative; top: -0.62em;
  box-shadow: 0 0 12px var(--emerald-ring);
}
.wm-intyg {
  font-family: var(--font-body); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.4em; color: var(--muted);
  margin-left: 0.18em; align-self: center;
}
.wordmark--sm { font-size: 1.75rem; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(1180px, 94vw);
  display: flex; align-items: center; gap: 1.2rem;
  padding: 0.6rem 0.7rem 0.6rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 34px -16px rgba(0,0,0,0.5);
}
.topnav { display: flex; gap: clamp(0.9rem, 1.8vw, 1.7rem); margin-left: auto; }
.topnav a {
  text-decoration: none; color: var(--text-soft);
  font-size: 0.92rem; font-weight: 500; white-space: nowrap;
  transition: color 0.2s var(--ease-out);
}
.topnav a:hover { color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }

/* language picker */
.lang { position: relative; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.7rem; border-radius: var(--r-pill);
  border: 1px solid var(--border); color: var(--text-soft);
  font-size: 0.85rem; transition: border-color 0.2s, color 0.2s;
}
.lang-pill:hover { border-color: var(--border-strong); color: var(--text); }
.lang-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 130px;
  background: #12241B; border: 1px solid var(--border-strong);
  border-radius: var(--r-md); padding: 0.3rem; z-index: 60;
  box-shadow: var(--shadow-card);
}
.lang-menu[hidden] { display: none; }
.lang-option {
  padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.9rem; cursor: pointer;
}
.lang-option:hover, .lang-option[aria-selected="true"] { background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-weight: 700; text-decoration: none; border-radius: var(--r-md);
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, border-color 0.25s, filter 0.25s;
  white-space: nowrap;
}
.btn-arrow { display: none; }
.btn:active { transform: translateY(0) scale(0.985); }

/* moving sheen on the primary button */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform 0.6s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-primary {
  background: linear-gradient(180deg, #2FD49A 0%, var(--emerald-deep) 100%);
  color: #042016;
  box-shadow: 0 12px 30px -6px rgba(31,157,107,0.5), inset 0 1px 0 rgba(255,255,255,0.42), inset 0 -1px 0 rgba(0,0,0,0.2);
  padding: 1rem 1.65rem;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 18px 44px -6px rgba(31,157,107,0.6), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.22); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 1rem 1.55rem;
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.12); border-color: var(--emerald-ring); }
.btn-sm { padding: 0.62rem 1.15rem; font-size: 0.9rem; border-radius: var(--r-sm); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn-xl { padding: 1.2rem 2.4rem; font-size: 1.1rem; }

.btn-card {
  margin-top: auto; align-self: flex-start;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); padding: 0.7rem 1.25rem; font-size: 0.95rem;
}
.btn-card:hover { background: var(--emerald-soft); border-color: var(--emerald-ring); color: #fff; transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}
.hero-visual { position: absolute; inset: 0; z-index: 0; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* scrim so text stays legible over the 3D scene */
.hero-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #0A1611 0%, #0A1611 24%, rgba(10,22,17,0.7) 46%, rgba(10,22,17,0.28) 64%, transparent 86%),
    linear-gradient(180deg, rgba(10,22,17,0.4) 0%, transparent 24%, transparent 78%, var(--bg) 100%);
}

/* static fallback poster (shown when no WebGL / reduced motion) */
.hero-poster {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: flex-end; padding-right: 9vw;
}
.no-webgl .hero-poster, .static-hero .hero-poster { display: flex; }
.no-webgl #heroCanvas, .static-hero #heroCanvas { display: none; }
.poster-card {
  width: min(360px, 70vw); aspect-ratio: 3 / 4; border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 16px; padding: 32px;
  transform: rotate(-7deg);
  backdrop-filter: blur(6px);
}
.poster-seal {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #36d196, var(--emerald-deep));
  display: grid; place-items: center; box-shadow: 0 8px 24px var(--emerald-ring); margin-bottom: 8px;
}
.poster-seal svg { width: 34px; height: 34px; fill: none; stroke: #06140D; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.poster-line { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.16); width: 100%; }
.poster-line--wide { height: 14px; width: 70%; background: rgba(255,255,255,0.28); }
.poster-line--mid { width: 50%; }

/* Floating tag pills (Upmind-style), scattered around the hero */
.hero-tags { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.htag {
  position: absolute; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem; border-radius: var(--r-pill);
  background: rgba(11,24,18,0.55); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--text); font-size: 0.82rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,0.6);
}
.htag i { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 10px var(--emerald-ring); flex: 0 0 auto; }
.htag--1 { top: 20%; right: 40%; }
.htag--2 { top: 32%; right: 8%; }
.htag--3 { top: 58%; right: 30%; }
.htag--4 { bottom: 20%; right: 12%; }
.htag--5 { top: 46%; right: 46%; }
@media (max-width: 980px) { .hero-tags { display: none; } }

.hero-content { position: relative; z-index: 2; width: var(--container); margin: 0 auto; max-width: var(--container); }
.hero-content > * { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: #5FD6A3;
  background: none; border: none; padding: 0; margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: ""; width: 30px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #5FD6A3, rgba(95,214,163,0));
}
.hero-eyebrow::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #5FD6A3; box-shadow: 0 0 10px rgba(95,214,163,0.8);
  animation: kickerPulse 2.4s ease-in-out infinite;
}
@keyframes kickerPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .hero-eyebrow::after { animation: none; } }
.hero-h {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 0.96;
  letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.hero-h span { display: block; }
.hero-h .accent { font-style: italic; color: var(--emerald-bright); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-soft); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.6rem; }
.hero-trust { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.92rem; }
.hero-trust svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--emerald); stroke-width: 1.7; }

.hero-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: var(--r-pill);
  display: flex; justify-content: center; padding-top: 7px;
}
.hero-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--text-soft); animation: cue 1.6s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Photo hero (hand holding "Medicinskt intyg" on mint) ---------- */
.hero {
  background:
    linear-gradient(90deg, #BCEFD2 0%, rgba(188,239,210,0.96) 30%, rgba(188,239,210,0.55) 52%, transparent 66%),
    url("/images/hero-photo.jpg?v=1") center right / cover no-repeat,
    #BCEFD2;
}
.hero .hero-visual { display: none; }            /* image replaces the 3D scene here */
.hero .hero-tags { display: none; }              /* keep the photo clean */
.hero .hero-eyebrow { color: var(--emerald-deep); }
.hero .hero-eyebrow::before { background: linear-gradient(90deg, var(--emerald-deep), rgba(22,133,90,0)); }
.hero .hero-eyebrow::after { background: var(--emerald-deep); box-shadow: 0 0 10px rgba(22,133,90,0.4); }
.hero .hero-h { color: #143a2a; }
.hero .hero-h .accent { color: var(--emerald-deep); }
.hero .hero-sub { color: #2c4a3c; }
.hero .hero-trust { color: #3a5749; }
.hero .hero-trust svg { stroke: var(--emerald-deep); }
.hero .btn-ghost {
  background: #ffffff; color: #143a2a;
  border-color: rgba(20,45,30,0.16); box-shadow: 0 2px 10px -2px rgba(20,45,30,0.18);
}
.hero .btn-ghost:hover { background: #f3faf5; border-color: var(--emerald-ring); }
.hero .hero-cue { border-color: rgba(20,45,30,0.28); }
.hero .hero-cue span { background: rgba(20,45,30,0.5); }
/* Mobile-only hero photo (hidden on desktop where the background photo is used) */
.hero-photo-mobile { display: none; }

/* ---------- Editorial showcase image (certificate in hand) ---------- */
/* Mobile-only: hidden on desktop, shown in the max-width:768px query below */
.showcase { display: none; padding-top: clamp(2rem, 5vw, 4rem); }
.showcase-figure { margin: 0 auto; max-width: 980px; }
.showcase-figure .bezel { padding: 8px; border-radius: 30px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.showcase-figure img { display: block; width: 100%; height: auto; border-radius: 22px; }

/* ---------- Partner laboratories logo row ---------- */
.partners { padding: 2.6rem 0 0.6rem; text-align: center; }
.partners-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.partners-logos { display: flex; align-items: center; justify-content: center; gap: clamp(2.2rem, 6vw, 4.5rem); flex-wrap: wrap; }
.partner-logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.62; transition: opacity 0.3s var(--ease-out); }
.partner-logo--unilabs { height: 40px; }
.partner-logo:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .partner-logo { transition: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.03); }
.mq-track { display: flex; align-items: center; gap: 1.6rem; padding: 0.95rem 0; width: max-content; animation: mq 32s linear infinite; }
.mq-i { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-soft); text-transform: uppercase; white-space: nowrap; }
.mq-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); flex: 0 0 auto; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(5.5rem, 11vw, 10rem) 0; }
.section-inner { width: var(--container); margin: 0 auto; }
.section-narrow { width: var(--container-narrow); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--emerald-bright); margin-bottom: 0.8rem; }
.section-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 5.2vw, 4.2rem); line-height: 1.0; letter-spacing: -0.03em; }
.section-lede { font-size: 1.08rem; color: var(--text-soft); margin-top: 1rem; }
.section-note { font-size: 0.92rem; color: var(--muted); margin-top: 1.6rem; }

/* ---------- Certificate cards ---------- */
/* Auto-scrolling certificate marquee (pauses on hover/focus) */
.cards-scroll {
  overflow: hidden; padding: 0.5rem 0 1.2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.cards-track {
  display: flex; gap: 22px; width: max-content; padding: 0 22px;
  animation: cardScroll 52s linear infinite; will-change: transform;
}
.cards-scroll:hover .cards-track,
.cards-scroll:focus-within .cards-track { animation-play-state: paused; }
@keyframes cardScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cards-track { animation: none; } }
.cards-track .card { flex: 0 0 320px; width: 320px; min-height: 300px; }
/* Slim image-tile strip under the nav (above hero) */
.strip { padding-top: clamp(88px, 11vh, 108px); padding-bottom: 0.5rem; overflow: hidden; }
.strip-scroll {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.strip-track { display: flex; gap: 16px; width: max-content; padding: 0 16px; animation: cardScroll 46s linear infinite; will-change: transform; }
.strip-scroll:hover .strip-track, .strip-scroll:focus-within .strip-track { animation-play-state: paused; }
/* JS enables manual touch/drag scrolling (auto-scroll then driven via scrollLeft) */
.strip-scroll.is-interactive { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.strip-scroll.is-interactive::-webkit-scrollbar { display: none; }
.strip-scroll.is-interactive .strip-track { animation: none; width: max-content; }
.tile { position: relative; flex: 0 0 244px; width: 244px; border-radius: 18px; overflow: hidden; padding: 0; border: 1px solid var(--border); box-shadow: var(--shadow-card); cursor: pointer; background: #fff; display: flex; flex-direction: column; text-align: left; }
.tile img { width: 100%; height: 134px; object-fit: contain; background: #fff; display: block; transition: transform 0.7s var(--ease-out); }
.tile:hover img { transform: scale(1.05); }
.tile-overlay { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; padding: 0.6rem 0.85rem 0.75rem; background: #fff; border-top: 1px solid rgba(20,40,30,0.07); }
.tile-name { flex: 1 1 auto; color: #143a2a; font-weight: 700; font-size: 0.84rem; letter-spacing: -0.01em; line-height: 1.2; }
.tile-price { flex: 0 0 auto; color: var(--emerald-deep); font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(20,40,30,0.06); pointer-events: none; }
@media (max-width: 560px) { .tile { flex-basis: 158px; width: 158px; } .tile img { height: 88px; } }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1.7rem 1.5rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--emerald-ring); background: var(--surface-2); }
.card-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--emerald-soft); display: grid; place-items: center; margin-bottom: 0.4rem; }
.card-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--emerald); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Per-certificate accent so the four cards read as distinct, not monotone green */
.card[data-cert="reseintyg"] .card-ic { background: rgba(47,107,255,0.12); }
.card[data-cert="reseintyg"] .card-ic svg { stroke: #2F6BFF; }
.card[data-cert="friskintyg"] .card-ic { background: rgba(31,157,107,0.13); }
.card[data-cert="friskintyg"] .card-ic svg { stroke: #1F9D6B; }
.card[data-cert="vaccinationsrad"] .card-ic { background: rgba(217,119,46,0.14); }
.card[data-cert="vaccinationsrad"] .card-ic svg { stroke: #D9772E; }
.card[data-cert="arbetsgivarintyg"] .card-ic { background: rgba(124,92,255,0.13); }
.card[data-cert="arbetsgivarintyg"] .card-ic svg { stroke: #7C5CFF; }
.card[data-cert="reseintyg"]:hover { border-color: rgba(47,107,255,0.3); }
.card[data-cert="vaccinationsrad"]:hover { border-color: rgba(217,119,46,0.32); }
.card[data-cert="arbetsgivarintyg"]:hover { border-color: rgba(124,92,255,0.3); }
.card-h { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
.card-p { font-size: 0.95rem; color: var(--text-soft); flex: 1 1 auto; }
.card-price { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.4rem 0 0.9rem; }
.card-amt { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); }
.card-per { font-size: 0.82rem; color: var(--muted); }
.cards-note { font-size: 0.9rem; color: var(--muted); margin-top: 1.8rem; max-width: 760px; }

/* ---------- How it works (pinned split) ---------- */
.hiw-wrap { width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); }
.hiw-left { position: sticky; top: 130px; align-self: start; }
.hiw-line { margin-top: 1.8rem; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.hiw-line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--emerald), var(--blue)); }
/* White panel behind the steps; each step glides in on scroll */
.hiw-right { display: flex; flex-direction: column; background: #fff; border-radius: 28px; padding: 0.4rem 2.2rem; box-shadow: var(--shadow-card); border: 1px solid rgba(20,40,30,0.06); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; padding: 2.6rem 0; border-bottom: 1px solid rgba(20,40,30,0.09); }
.step:last-child { border-bottom: none; }
.step-num { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-soft); color: var(--emerald-deep); border: 1px solid var(--emerald-ring); }
.step-t { font-size: 1.18rem; font-weight: 700; color: #143a2a; margin-bottom: 0.35rem; }
.step-d { font-size: 0.97rem; color: #4a5a52; }

/* ---------- Safety / word reveal ---------- */
.saf-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.saf-figure { margin: 0; }
.saf-figure .bezel { padding: 8px; border-radius: 30px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.saf-figure img { display: block; width: 100%; height: auto; border-radius: 22px; }
.saf-cap { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .saf-split { grid-template-columns: 1fr; } }
.saf-lede { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-family: var(--font-display); line-height: 1.35; margin: 1.4rem 0 2rem; }
.saf-lede .w { transition: opacity 0.2s linear; }
.safe-list { display: grid; gap: 0.8rem; }
.safe-list li { position: relative; padding-left: 2rem; color: var(--text-soft); font-size: 1rem; }
.safe-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 11px; border-left: 2.5px solid var(--emerald); border-bottom: 2.5px solid var(--emerald); transform: rotate(-45deg) translateY(-2px); border-bottom-left-radius: 2px; }

/* ---------- Limits ---------- */
.lim-list { display: grid; gap: 0.9rem; margin-top: 1.8rem; }
.lim-list li { display: flex; align-items: flex-start; gap: 0.9rem; color: var(--text-soft); font-size: 1.02rem; }
.lim-x { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong); position: relative; margin-top: 2px; }
.lim-x::before, .lim-x::after { content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 2px; background: var(--muted); border-radius: 2px; }
.lim-x::before { transform: rotate(45deg); }
.lim-x::after { transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; text-align: left; font-size: 1.05rem; font-weight: 600; }
.faq-q svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: var(--text-soft); stroke-width: 2; transition: transform 0.3s var(--ease-out); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out); }
.faq-a p { padding: 0 0 1.3rem; color: var(--text-soft); font-size: 0.98rem; max-width: 64ch; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.0; letter-spacing: -0.03em; max-width: 16ch; }
.cta-h .cta-accent { font-style: italic; color: var(--emerald-bright); }
.cta-pill { display: inline-grid; place-items: center; width: 0.95em; height: 0.95em; border-radius: 50%; background: linear-gradient(135deg, var(--emerald), var(--emerald-deep)); vertical-align: -0.08em; margin: 0 0.1em; }
.cta-pill svg { width: 0.55em; height: 0.55em; fill: none; stroke: #06140D; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cta-sub { color: var(--text-soft); font-size: 1.08rem; margin: 1.3rem 0 2rem; max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0; background: rgba(0,0,0,0.22); }
.footer-inner { width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.foot-legal { font-size: 0.85rem; color: var(--muted); max-width: 90ch; line-height: 1.7; }
.foot-contact { font-size: 0.88rem; color: var(--text-soft); }
.foot-contact a { color: var(--text-soft); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.foot-contact a:hover { color: var(--text); }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.foot-links a { font-size: 0.88rem; color: var(--text-soft); text-decoration: none; }
.foot-links a:hover { color: var(--emerald); }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 70; width: min(680px, 94vw); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; background: #12241B; border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.cookie[hidden] { display: none; }
.cookie-text { flex: 1 1 240px; font-size: 0.88rem; color: var(--text-soft); }
.cookie-actions { display: flex; align-items: center; gap: 0.6rem; }
.cookie-link { font-size: 0.85rem; color: var(--text-soft); text-decoration: underline; margin-right: 0.3rem; }
.btn-cookie { padding: 0.55rem 1.1rem; border-radius: var(--r-sm); font-weight: 700; font-size: 0.88rem; background: linear-gradient(135deg, var(--emerald), var(--emerald-deep)); color: #06140D; }
.btn-cookie.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }

/* ---------- Floating CTA ---------- */
.floating-cta { position: fixed; bottom: 18px; right: 18px; z-index: 65; display: none; align-items: center; gap: 0.5rem; padding: 0.75rem 1.15rem; border-radius: var(--r-md); background: linear-gradient(180deg, #2FD49A, var(--emerald-deep)); color: #042016; font-weight: 700; box-shadow: 0 12px 30px -6px rgba(31,157,107,0.5), inset 0 1px 0 rgba(255,255,255,0.4); }
.floating-cta.show { display: inline-flex; }
.floating-cta img { width: 22px; height: 22px; }
.floating-cta:hover { transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .topnav { display: none; }
  .hiw-wrap { grid-template-columns: 1fr; }
  .hiw-left { position: static; }
  .hero-visual::after {
    background:
      linear-gradient(180deg, rgba(10,22,17,0.4) 0%, rgba(10,22,17,0.75) 46%, var(--bg) 100%);
  }
  .hero-poster { justify-content: center; padding-right: 0; align-items: flex-start; padding-top: 6rem; }
  .poster-card { transform: rotate(-5deg) scale(0.82); }
}
@media (max-width: 768px) {
  /* Hero: stack text over photo (not side-by-side), clean mint bg */
  .hero { min-height: auto; padding: 2rem 0 3.5rem; flex-direction: column; align-items: stretch;
    background: linear-gradient(180deg, #DCF6E7 0%, #F1FBF5 100%); }
  .hero-h { font-size: clamp(1.8rem, 7.4vw, 3rem); line-height: 1.06; }
  .hero-content > * { max-width: 100%; }
  /* Eyebrow: centered, no leading dash / trailing dot on mobile */
  .hero-eyebrow { justify-content: center; width: 100%; }
  .hero-eyebrow::before, .hero-eyebrow::after { display: none; }
  /* Hand-holding-certificate photo now lives inside the hero on phones (see .hero-photo-mobile);
     hide the standalone showcase section so it isn't shown twice */
  .showcase { display: none; }
  /* Mobile hero photo: sits under the headline + buttons, framed like the showcase bezel */
  .hero-photo-mobile { display: block; margin: 1.8rem auto 0; max-width: 300px; width: 100%; }
  .hero-photo-mobile .bezel { padding: 7px; border-radius: 26px; background: rgba(255,255,255,0.55); border: 1px solid rgba(20,45,30,0.12); box-shadow: 0 18px 40px -16px rgba(20,45,30,0.35); }
  .hero-photo-mobile img { display: block; width: 100%; border-radius: 20px; aspect-ratio: 941 / 1392; height: auto; object-fit: cover; object-position: center bottom; }
  /* Absolute-positioned scroll cue overlaps the stacked photo on phones; hide it */
  .hero-cue { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .topbar { padding-left: 1rem; gap: 0.5rem; }
  .floating-cta .fcta-label { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-cue span { animation: none; }
  .card, .btn, .btn-card { transition: none; }
}
