/* =========================================================================
   Equi — webbplats (App Store-lansering)
   Designsystem speglat från app/src/theme.ts: djup navy, varmt guld, grädde.
   Inga externa typsnitt/CDN (matchar appens systemtypsnitt + ingen
   tredjepartsspårning, jfr integritetspolicyn).
   ========================================================================= */

:root {
  /* Brand */
  --primary: #0F2742;        /* djup navy */
  --primary-soft: #1E3A5F;   /* ljusare navy */
  --gold: #C9A961;           /* varmt guld */
  --gold-soft: #E8DCC0;      /* mjukt guld */
  --gold-ink: #8A6B22;       /* mörkare guld för text på ljus bakgrund (kontrast) */

  /* Neutraler */
  --bg: #F8F5EE;             /* varm grädde */
  --bg-alt: #FFFFFF;
  --surface: #FDFBF6;
  --border: #E8E3D8;
  --border-strong: #D4CCBA;

  /* Text */
  --text: #0F172A;
  --text-secondary: #5C6373;
  --text-muted: #9BA2AE;
  --on-primary: #FFFFFF;

  /* Feedback / accenter */
  --success: #2F7A4E;
  --success-soft: #DCEBE0;
  --like: #E63946;
  --sire: #4A7FA7;
  --dam: #B87D9F;

  /* Mått */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;
  --max: 1120px;
  --max-read: 760px;

  /* Skuggor (låg opacitet, premiumkänsla — speglar shadow.md/lg) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 18px 48px rgba(15, 39, 66, 0.16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 14px;
}

.muted { color: var(--text-secondary); }

/* Skip-link för tangentbord/skärmläsare */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-md);
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* =============================== Navbar =============================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 238, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-decoration: none;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  display: block;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--primary); }

.nav-cta { display: inline-flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--primary);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* =============================== Knappar =============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--primary-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; }

/* App Store / Google Play-badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #0B0F19;
  color: #fff;
  border-radius: 14px;
  padding: 10px 18px;
  text-decoration: none;
  min-width: 184px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-badge svg { width: 26px; height: 26px; flex: none; fill: #fff; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .sb-small { font-size: 0.66rem; opacity: 0.85; letter-spacing: 0.02em; }
.store-badge .sb-big { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }

/* =============================== Hero =============================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
}
.hero::before {
  /* mjuk guldglöd uppe till höger */
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.28), rgba(201, 169, 97, 0) 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 20px;
  color: var(--primary);
}
.hero h1 .accent {
  background: linear-gradient(180deg, transparent 62%, var(--gold-soft) 62%);
  padding: 0 2px;
}
.hero-sub {
  font-size: 1.22rem;
  color: var(--text-secondary);
  margin: 0 0 30px;
  max-width: 30em;
}
.hero-actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.made-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.made-in .flag {
  width: 20px; height: 14px; border-radius: 2px; flex: none;
  background: linear-gradient(#006AA7 40%, #FECC02 40% 60%, #006AA7 60%);
  position: relative;
}
.made-in .flag::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 6px; width: 3px;
  background: #FECC02;
}

.hero-visual { display: flex; justify-content: center; }

/* =============================== Telefonram + app-UI =============================== */

.device {
  position: relative;
  width: 300px;
  max-width: 80vw;
  aspect-ratio: 300 / 620;
  background: linear-gradient(155deg, #15233a, #0a1422);
  border-radius: 46px;
  padding: 13px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.device::before {
  /* dynamic island */
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  background: #05080f;
  border-radius: var(--r-pill);
  z-index: 5;
}
.device-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.4;
}
.device.floating { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* App-statusrad + topbar */
.app-status {
  height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.app-status .dots { display: inline-flex; gap: 3px; align-items: center; }
.app-status .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text); display: inline-block; }
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 10px;
}
.app-logo { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); }
.app-topbar .ticons { display: inline-flex; gap: 12px; color: var(--primary); }
.app-topbar .ticons svg { width: 17px; height: 17px; }

.app-body { flex: 1; overflow: hidden; padding: 0 12px; }

/* Volt-rad */
.volt-row { display: flex; gap: 11px; padding: 2px 2px 12px; }
.volt { text-align: center; width: 46px; }
.volt .ring {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--border-strong);
  margin: 0 auto 4px;
  background-size: cover;
}
.volt.mine .ring { box-shadow: 0 0 0 2px var(--gold); }
.volt span { font-size: 9px; color: var(--text-secondary); display: block; white-space: nowrap; }

/* Inläggskort */
.post-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; }
.post-head .pa { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.post-head .pn { font-weight: 700; font-size: 11px; color: var(--text); }
.post-head .pt { font-size: 9px; color: var(--text-muted); }
.post-media { height: 132px; position: relative; }
.post-actions { display: flex; align-items: center; gap: 14px; padding: 8px 11px 4px; font-size: 11px; color: var(--text-secondary); font-weight: 600; }
.post-actions .ico { display: inline-flex; align-items: center; gap: 4px; }
.post-actions svg { width: 16px; height: 16px; }
.post-actions .like-on { color: var(--like); }
.post-cap { padding: 0 11px 11px; font-size: 11px; color: var(--text); }
.post-cap b { color: var(--text); }

/* App nedre flikrad */
.app-tabbar {
  height: 50px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  position: relative;
}
.app-tabbar .tab { color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8px; }
.app-tabbar .tab.active { color: var(--primary); }
.app-tabbar .tab svg { width: 19px; height: 19px; }
.app-tabbar .fab {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.5);
  margin-top: -14px;
}
.app-tabbar .fab svg { width: 22px; height: 22px; }

/* Hästprofil-skärm */
.app-hero-h {
  background: linear-gradient(160deg, var(--primary), var(--primary-soft));
  margin: 0 -12px;
  padding: 14px 16px 16px;
  color: #fff;
}
.app-hero-h .hname { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.app-hero-h .hsub { font-size: 10px; opacity: 0.82; margin-top: 2px; }
.app-hero-h .sale {
  display: inline-block; margin-top: 8px; background: var(--success);
  color: #fff; font-size: 9px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill);
}
.chip-row { display: flex; gap: 7px; padding: 12px 0; flex-wrap: wrap; }
.chip {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 5px 11px; font-size: 9.5px; font-weight: 600; color: var(--text-secondary);
}
.chip b { color: var(--primary); }
.app-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--border); padding: 0 1px 8px; margin-bottom: 11px; }
.app-tabs span { font-size: 10px; font-weight: 700; color: var(--text-muted); }
.app-tabs span.on { color: var(--primary); border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: -10px; }
.mini-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 9px 11px; margin-bottom: 9px; box-shadow: var(--shadow-sm);
}
.mini-card .mc-label { font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.ped-cells { display: flex; gap: 8px; }
.ped {
  flex: 1; background: var(--surface); border-radius: var(--r-sm); padding: 7px 9px;
  font-size: 10px;
}
.ped.sire { border-left: 3px solid var(--sire); }
.ped.dam { border-left: 3px solid var(--dam); }
.ped small { display: block; color: var(--text-muted); font-size: 8px; }
.ped b { color: var(--text); }
.row-line { display: flex; justify-content: space-between; align-items: center; font-size: 10px; padding: 4px 0; }
.row-line + .row-line { border-top: 1px solid var(--border); }
.row-line .tag-win { background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; border-radius: var(--r-sm); padding: 1px 6px; font-size: 9px; }

/* Ridtur-/GPS-skärm */
.ride-map {
  position: relative;
  height: 196px;
  margin: 0 -12px;
  background: linear-gradient(160deg, #1c3a2e, #0f2742);
  overflow: hidden;
}
.ride-map .route { position: absolute; inset: 0; width: 100%; height: 100%; }
.ride-trygg {
  position: absolute; top: 10px; left: 10px; right: 10px;
  background: rgba(47, 122, 78, 0.94);
  color: #fff; border-radius: var(--r-md);
  padding: 7px 10px; font-size: 9.5px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.ride-trygg svg { width: 14px; height: 14px; flex: none; }
.ride-stats { display: flex; justify-content: space-around; padding: 16px 0 8px; }
.ride-stats .rs { text-align: center; }
.ride-stats .rv { font-size: 19px; font-weight: 800; color: var(--primary); letter-spacing: -0.01em; }
.ride-stats .rl { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

/* Stallhubb-skärm */
.greet { font-size: 16px; font-weight: 800; color: var(--primary); padding: 4px 1px 12px; letter-spacing: -0.01em; }
.weather-card {
  background: linear-gradient(160deg, var(--primary), var(--primary-soft));
  color: #fff; border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 11px;
}
.weather-card .wt { display: flex; align-items: center; justify-content: space-between; }
.weather-card .deg { font-size: 26px; font-weight: 800; }
.weather-card .adv { font-size: 10px; opacity: 0.9; margin-top: 4px; }
.weather-card .sun { width: 34px; height: 34px; color: var(--gold); }
.list-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 10px 12px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.list-card .lc-h { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.chore { display: flex; align-items: center; gap: 8px; font-size: 10.5px; padding: 3px 0; color: var(--text); }
.chore .box { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--border-strong); flex: none; }
.chore.done .box { background: var(--success); border-color: var(--success); }
.chore.done span { color: var(--text-muted); text-decoration: line-through; }
.act { display: flex; gap: 8px; align-items: flex-start; font-size: 10px; padding: 5px 0; }
.act .ad { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.act .ad svg { width: 13px; height: 13px; }
.act .at { color: var(--text); }
.act .am { color: var(--text-muted); font-size: 9px; }

/* =============================== Trust-rad =============================== */

.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 38px;
  padding: 22px 24px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.trust-pill svg { width: 20px; height: 20px; color: var(--gold-ink); flex: none; }

/* =============================== Sektioner =============================== */

.section { padding: 84px 0; }
.section.tight { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--primary);
}
.section-head p { font-size: 1.12rem; color: var(--text-secondary); margin: 0; }

/* Alternerande funktionsrader */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 96px; }
.feature-row.flip .feature-text { order: 2; }
.feature-text .eyebrow { margin-bottom: 12px; }
.feature-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--primary);
}
.feature-text p { font-size: 1.08rem; color: var(--text-secondary); margin: 0 0 20px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.feature-list li svg { width: 22px; height: 22px; flex: none; color: var(--success); margin-top: 2px; }
.feature-media { display: flex; justify-content: center; }

/* Funktionsrutnät */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-card .fc-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--gold-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card .fc-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.18rem; font-weight: 800; margin: 0 0 8px; color: var(--primary); }
.feature-card p { font-size: 0.98rem; color: var(--text-secondary); margin: 0; }

/* =============================== Integritetsband (mörkt) =============================== */

.privacy-band {
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.privacy-band::before {
  content: "";
  position: absolute;
  bottom: -200px; left: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(201,169,97,0.22), rgba(201,169,97,0) 70%);
}
.privacy-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.privacy-band .eyebrow { color: var(--gold); }
.privacy-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; line-height: 1.12; }
.privacy-band > .privacy-inner p.lead { font-size: 1.12rem; color: rgba(255,255,255,0.78); margin: 0; }
.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.privacy-points li {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.privacy-points svg { width: 24px; height: 24px; flex: none; color: var(--gold); margin-top: 1px; }
.privacy-points b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.privacy-points span { color: rgba(255,255,255,0.72); font-size: 0.95rem; }

/* =============================== FAQ =============================== */

.faq-list { max-width: var(--max-read); margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s ease; flex: none; color: var(--gold-ink); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--text-secondary); font-size: 1.02rem; }
.faq-item .faq-body a { color: var(--gold-ink); font-weight: 600; }

/* =============================== CTA-band =============================== */

.cta-band { padding: 88px 0; text-align: center; }
.cta-card {
  background: linear-gradient(160deg, var(--primary), var(--primary-soft));
  border-radius: 32px;
  padding: 64px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-card::before {
  content: ""; position: absolute; top: -160px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(201,169,97,0.3), rgba(201,169,97,0) 68%);
}
.cta-card h2 { position: relative; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.cta-card p { position: relative; font-size: 1.15rem; color: rgba(255,255,255,0.82); margin: 0 0 32px; }
.cta-card .store-badges { position: relative; justify-content: center; }

/* =============================== Footer =============================== */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.98rem; margin: 0 0 18px; max-width: 28em; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =============================== Juridiska sidor (article) =============================== */

.legal { background: var(--bg); }
article {
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 56px 24px 96px;
}
article > .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
article > .back:hover { color: var(--primary); }
article > header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 36px;
}
article h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
article .meta { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
article h2 { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin: 44px 0 14px; letter-spacing: -0.01em; }
article h3 { font-size: 1.1rem; font-weight: 700; margin: 26px 0 10px; color: var(--text); }
article p, article li { color: var(--text); }
article a { color: var(--gold-ink); font-weight: 600; }
article ul { padding-left: 22px; }
article li { margin-bottom: 6px; }
article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.98rem; }
article th, article td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
article th { background: var(--gold-soft); font-weight: 700; color: var(--primary); }
article code { background: var(--bg-alt); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
article > footer {
  border-top: 1px solid var(--border);
  margin-top: 52px;
  padding-top: 26px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
article > footer a { color: var(--gold-ink); }

/* =============================== Support-sida =============================== */

.support-hero { padding: 64px 0 8px; text-align: center; }
.support-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3rem); font-weight: 800; color: var(--primary); letter-spacing: -0.02em; margin: 0 0 14px; }
.support-hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 36em; margin: 0 auto; }
.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.support-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 30px 26px; text-align: center;
}
.support-card .fc-icon { margin: 0 auto 16px; }
.support-card h3 { color: var(--primary); margin: 0 0 8px; font-size: 1.15rem; }
.support-card p { color: var(--text-secondary); margin: 0 0 16px; font-size: 0.98rem; }

/* =============================== Responsivt =============================== */

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-actions { align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero::before { right: -220px; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row .feature-text { order: 2 !important; text-align: center; }
  .feature-row .feature-media { order: 1; }
  .feature-list { text-align: left; max-width: 26em; margin: 0 auto; }
  .feature-text .eyebrow { margin-left: auto; margin-right: auto; }
  .privacy-inner { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .support-cards { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
  }
  .site-nav.open .nav-links li { width: 100%; }
  .site-nav.open .nav-links a { display: block; padding: 14px 24px; }
  .section { padding: 60px 0; }
  .feature-row + .feature-row { margin-top: 60px; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 24px; }
  .store-badges { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .device.floating { animation: none; }
  html { scroll-behavior: auto; }
}
