/* =========================================================
   index.css  (för index.html)
   Ljust tema, luftig layout, “liknar” main.html.
   Lägg denna fil i: /css/index.css
   ========================================================= */

/* ---------- Design tokens ---------- */
:root{
  --bg:#ffffff;
  --bg-alt:#f6f8fb;
  --text:#0b1220;
  --muted:#556277;
  --line:rgba(11,18,32,.10);
  --shadow:0 18px 45px rgba(11,18,32,.08);
  --shadow-soft:0 10px 30px rgba(11,18,32,.06);
  --radius:20px;

  --primary:#2a64ff;
  --primary-2:#4b8bff;

  --focus:2px solid rgba(42,100,255,.35);

  /* headerhöjd för offset/ankare */
  --header-h:84px;
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.55;

  /* eftersom headern är fixed */
  padding-top: var(--header-h);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
img,svg{ display:block; max-width:100%; height:auto; }
button{ font:inherit; }

.container{
  width:min(1120px, calc(100% - 48px));
  margin-inline:auto;
}

/* ---------- Accessibility ---------- */
.skip-link{
  position:absolute;
  left:-999px;
  top:12px;
  background:#fff;
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:10px;
  z-index:9999;
}
.skip-link:focus{ left:12px; outline:var(--focus); }

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ---------- Header (matchar main.html-känsla) ---------- */
.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:2000;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid rgba(11,18,32,.08);
}

.header-inner{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 260px;
}
.brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(42,100,255,.14), rgba(75,139,255,.06));
  border:1px solid rgba(42,100,255,.20);
  box-shadow: var(--shadow-soft);
  display:grid;
  place-items:center;
}
.brand-mark img{
  width:26px;
  height:26px;
}
.brand-title{
  font-weight:800;
  letter-spacing:-.2px;
}
.brand-subtitle{
  margin-top:2px;
  font-size:13px;
  color:var(--muted);
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}
.nav a{
  color:rgba(11,18,32,.82);
  font-weight:650;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
}
.nav a:hover{
  background:rgba(42,100,255,.06);
  text-decoration:none;
}

/* Mobile toggle */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow-soft);
  cursor:pointer;
}
.nav-toggle:focus{ outline:var(--focus); }
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:rgba(11,18,32,.72);
  margin:4px auto;
  border-radius:2px;
}

/* Mobile nav */
.mobile-nav{
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.96);
}
.mobile-nav-inner{
  display:grid;
  gap:10px;
  padding:12px 0 18px;
}
.mobile-nav-inner a{
  padding:12px 10px;
  border-radius:14px;
  font-weight:700;
  color:rgba(11,18,32,.86);
}
.mobile-nav-inner a:hover{
  background:rgba(42,100,255,.06);
  text-decoration:none;
}

/* ---------- Hero (luftig) ---------- */
.hero{
  padding:56px 0 44px;
  position:relative;
}
.hero:before{
  content:"";
  position:absolute;
  inset:-120px 0 auto 0;
  height:320px;
  background:
    radial-gradient(900px 240px at 18% 20%, rgba(42,100,255,.14), transparent 60%),
    radial-gradient(700px 220px at 82% 10%, rgba(75,139,255,.10), transparent 55%),
    linear-gradient(to bottom, rgba(246,248,251,.85), transparent);
  pointer-events:none;
}

.index-card{
  position:relative;
  border:1px solid var(--line);
  border-radius: 26px;
  background:linear-gradient(180deg, #fff, rgba(246,248,251,.75));
  box-shadow: var(--shadow);
  padding:26px;
  display:grid;
  gap:18px;
  justify-items:center;
  text-align:center;
}

.index-logo{
  max-width:min(640px, 100%);
  height:auto;
}

.index-lead{
  margin:0;
  max-width:70ch;
  color:rgba(11,18,32,.72);
  font-size:15.5px;
  line-height:1.6;
}

/* Quick links (CTA chips) */
.index-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}
.index-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(11,18,32,.10);
  background:#fff;
  color:rgba(11,18,32,.82);
  font-weight:700;
  text-decoration:none;
  box-shadow: 0 10px 22px rgba(11,18,32,.05);
}
.index-links a:hover{
  background:rgba(42,100,255,.06);
  text-decoration:none;
}

.mini-note{
  margin:0;
  font-size:13px;
  color:rgba(11,18,32,.56);
}

/* ---------- Footer ---------- */
.site-footer{
  padding:26px 0;
  border-top:1px solid var(--line);
  background:#fff;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.footer-title{
  font-weight:850;
  letter-spacing:-.2px;
}
.footer-sub{
  margin-top:2px;
  color:var(--muted);
  font-size:13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .nav{ display:none; }
  .nav-toggle{ display:block; }
  .brand{ min-width: 0; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
}

/* Optional: statcounter image baseline */
.statcounter img{ display:inline-block; }
