/* utan-uc.se — static build of the hero/marquee spec. No framework, ~0 JS. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600&display=swap');

:root {
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: Outfit, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #0a1b33;
  --muted: #64748b;
  --border: #e2e8f0;
  --ink: #0a152d;
  --accent: #0f7b4f;
  --accent-soft: #e6f4ec;
  --warn: #a15c07;
  --warn-soft: #fdf3e3;
  --link: #1a5fb4;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --surface: #1c1f26;
    --text: #e8eaed;
    --muted: #a0a6b1;
    --border: #2b2f38;
    --ink: #e8eaed;
    --accent: #4ade80;
    --accent-soft: #16281f;
    --warn: #fbbf24;
    --warn-soft: #2a2314;
    --link: #7cb0f0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   HERO
   ============================================================ */

.hero-shell { padding: 24px 20px 0; }

.hero {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 48px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  height: 600px;
  display: flex;
  flex-direction: column;
}

.hero-video-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  user-select: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Readability scrim — the source video is bright enough that #0a1b33 text
   drops below WCAG AA without it. Kept to the text column only so the
   video reads as uncovered. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.86) 34%,
    rgba(255, 255, 255, 0.36) 62%,
    rgba(255, 255, 255, 0) 84%
  );
}

.hero-content {
  position: relative;
  z-index: 20;
  flex: 1;
  padding: 48px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0a1b33;
  margin: 0 0 18px;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 28px;
  max-width: 44ch;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a152d;
  color: #fff;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease;
}

.hero-cta:hover { transform: scale(1.04); box-shadow: 0 10px 30px rgba(10, 21, 45, 0.22); }
.hero-cta:active { transform: scale(0.98); }

@media (min-width: 768px) {
  .hero-content { padding: 64px 64px 0; }
  .hero-title { font-size: 56px; }
  .hero-sub { font-size: 15px; }
}

/* ---------- floating bottom navbar ---------- */

.hero-nav-wrap {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  max-width: calc(100% - 32px);
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.4);
}

.hero-nav-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #0a1b33;
  font-size: 13px;
  text-decoration: none;
}

.hero-nav-link {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 180ms ease;
}

.hero-nav-link:hover { color: #0a1b33; }

.hero-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0a1b33;
  text-decoration: none;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  transition: border-color 180ms ease, transform 180ms ease;
}

.hero-nav-cta:hover { border-color: #cbd5e1; transform: translateY(-1px); }
.hero-nav-cta svg { width: 14px; height: 14px; }

/* ---------- entrance motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes riseNav {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to   { opacity: 1; transform: translateX(-50%); }
}

.hero-title { animation: rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-sub   { animation: rise 800ms cubic-bezier(0.16, 1, 0.3, 1) 90ms both; }
.hero-cta   { animation: rise 800ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both; }
.hero-nav-wrap { animation: riseNav 800ms cubic-bezier(0.16, 1, 0.3, 1) 340ms both; }

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.chip {
  position: relative;
  height: 96px;
  min-width: 160px;
  flex-shrink: 0;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: border-color 300ms ease;
}

.chip:hover { border-color: #cbd5e1; }

.chip-glow {
  position: absolute;
  inset: 0;
  transform: scale(1.5);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 400ms ease;
}

.chip:hover .chip-glow { transform: scale(1); opacity: 1; }

.chip-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: #0a1b33;
  white-space: nowrap;
  transition: color 300ms ease;
}

.chip:hover .chip-label { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-title, .hero-sub, .hero-cta, .hero-nav-wrap { animation: none; }
  .hero-cta:hover { transform: none; }
}

/* mobile hero */
@media (max-width: 767px) {
  .hero { height: 540px; border-radius: 32px; }
  .hero-shell { padding: 16px 14px 0; }
  .hero-nav-link { padding: 8px 10px; }
  .hero-nav-cta { padding: 8px 14px; }
  .chip { height: 84px; min-width: 140px; padding: 0 22px; }
  .chip-label { font-size: 12px; }
}

/* Narrow phones: the four nav items exceed the hero width, so drop the
   in-page anchor and keep the cross-page link plus the CTA. */
@media (max-width: 480px) {
  .hero-nav-wrap { bottom: 28px; max-width: calc(100% - 20px); }
  .hero-nav-link[href^="#"] { display: none; }
  .hero-nav-link { padding: 8px 8px; font-size: 11.5px; }
  .hero-nav-cta { padding: 8px 13px; font-size: 11.5px; }
  .hero-title { font-size: 36px; }
}

/* ============================================================
   CONTENT
   ============================================================ */

h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.5vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 0 0 14px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 3.6vw, 25px);
  line-height: 1.28;
  letter-spacing: -0.014em;
  margin: 44px 0 12px;
}

h3 { font-family: var(--font-display); font-size: 18px; margin: 28px 0 8px; }

p { margin: 0 0 16px; }
a { color: var(--link); }

.lede { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
.updated { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.content-top { padding-top: 56px; }

/* ---------- header (subpages) ---------- */

header.site {
  padding: 22px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

header.site a.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

header.site nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
}

header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--text); text-decoration: underline; }

/* ---------- answer box ---------- */

.answer {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 32px;
}

.answer h2 { margin: 0 0 10px; font-size: 19px; }
.answer p:last-child { margin-bottom: 0; }

/* ---------- operator cards ---------- */

.op {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

.op-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.op-head h3 { margin: 0; font-size: 21px; }

.tag {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.tag.yes { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.tag.partial { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); }

.price { font-size: 15px; color: var(--muted); margin-bottom: 14px; }

.op ul { margin: 0 0 18px; padding-left: 20px; }
.op li { margin-bottom: 6px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) { .btn { color: #0b1410; } }

.btn:hover { transform: scale(1.03); filter: brightness(1.06); }

/* ---------- table ---------- */

.table-scroll { overflow-x: auto; margin: 20px 0 6px; }
.scroll-hint { display: none; font-size: 13px; color: var(--muted); margin: 0 0 28px; }
@media (max-width: 620px) { .scroll-hint { display: block; } }

table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }

th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { font-weight: 600; background: var(--surface); }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--muted); }
.faq details[open] summary::before { content: "– "; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- disclosure + footer ---------- */

.disclosure {
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 28px;
}

footer.site {
  margin-top: 56px;
  padding: 24px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

footer.site a { color: var(--muted); }

/* ---------- kreditvarning + lagstadgad finstilt (endast /lan-utan-uc/) ---------- */

.warnbox {
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 20px;
  font-size: 15px;
}

.warnbox p { margin: 0 0 8px; }
.warnbox p:last-child { margin-bottom: 0; }

.legal {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 30px;
}

.legal p { margin: 0 0 8px; }
.legal p:last-child { margin-bottom: 0; }

/* ---------- korsreferens till angränsande guide ---------- */

.crosslink {
  border-left: 3px solid var(--border);
  padding: 2px 0 2px 16px;
  margin: 26px 0 30px;
  font-size: 15px;
  color: var(--muted);
}

.crosslink strong { color: var(--text); }
