/* Skolcoach — public site styles v2.
   Design: "2a" — professional warmth for elevhälsa, skolledning & huvudmän.
   No external fonts/assets: system font stack only, for speed + GDPR (zero
   third-party requests). To upgrade typography later, self-host Public Sans
   as woff2 in /fonts and add @font-face here — never via a CDN.
   WCAG AA contrast targeted. */

:root {
  --ink:        #1b2a2e;
  --ink-soft:   #46585c;
  --muted:      #7c8f8c;
  --primary:    #2d7d74;
  --primary-dk: #215f58;
  --tint:       #e7f0ee;
  --bg:         #ffffff;
  --bg-soft:    #f3f7f6;
  --line:       #e6ecea;
  --line-card:  #dfe8e6;
  --radius:     10px;
  --shadow-card: 0 12px 40px rgba(27,42,46,.10);
  --maxw:       1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.btn, .lead, p, h1, h2, h3 { overflow-wrap: break-word; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); margin: 0 0 .45em; line-height: 1.12; }
h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin: 0 0 .5em; }
h3 { font-size: 1.05rem; margin: 0 0 .4em; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
a  { color: var(--primary-dk); }

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

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 13px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.brand svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; padding: 9px 13px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--bg-soft); }
.nav-links a.btn { color: #fff; margin-left: 8px; }
.nav-links a.btn:hover { color: #fff; background: var(--primary-dk); }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; border-radius: 8px;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle .bar { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px auto; transition: transform .18s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(27,42,46,.10);
    padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-links a.btn { margin: 10px 0 0; justify-content: center; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 13px 24px; border-radius: 6px; font-weight: 600; font-size: .96rem;
  border: none; cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--primary-dk); }
.btn-link { color: var(--primary-dk); font-weight: 600; text-decoration: none; padding: 13px 8px; }
.btn-link:hover { text-decoration: underline; }

/* ---- Pilot badge ---- */
.badge {
  display: inline-flex; align-items: center;
  background: var(--tint); color: var(--primary-dk);
  padding: 6px 14px; border-radius: 4px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

/* ---- Eyebrow ---- */
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--primary); margin: 0 0 .7em; }

/* ---- Hero ---- */
.hero { background: linear-gradient(180deg, var(--bg-soft), #fff 85%); padding: 64px 0 56px; }
.hero .badge { margin-bottom: 20px; }
.hero .lead { font-size: 1.08rem; max-width: 50ch; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center; }
@media (max-width: 880px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-link { text-align: center; }
}

/* ---- Veckopuls mock (hero visual) ---- */
.puls-wrap { position: relative; max-width: 480px; }
@media (max-width: 880px) { .puls-wrap { margin: 0 auto; } }
.puls-card {
  background: #fff; border: 1px solid var(--line-card); border-radius: 12px;
  box-shadow: var(--shadow-card); overflow: hidden;
}
.puls-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 20px; border-bottom: 1px solid #eef3f2; background: #fbfcfc;
}
.puls-title { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--ink); }
.puls-role { font-size: .7rem; color: var(--muted); background: #eef3f2; padding: 3px 9px; border-radius: 4px; }
.puls-body { padding: 20px 20px 6px; }
.puls-q { margin: 0 0 10px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.puls-scale { display: flex; gap: 10px; margin-bottom: 20px; }
.puls-spacer { height: 52px; }
.ai-bubble {
  position: absolute; right: -8px; bottom: -24px;
  background: var(--primary); color: #fff; border-radius: 14px;
  padding: 14px 18px; box-shadow: 0 12px 32px rgba(27,42,46,.18); max-width: 250px;
}
.ai-bubble .ai-label { margin: 0 0 4px; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.ai-bubble p:last-child { margin: 0; font-size: .82rem; line-height: 1.5; color: #fff; }
.ai-bubble::after {
  content: ""; position: absolute; left: 26px; bottom: -7px;
  width: 15px; height: 15px; background: var(--primary);
  transform: rotate(45deg); border-radius: 2px;
}
@media (max-width: 880px) { .ai-bubble { right: 6px; } }

/* ---- Sections ---- */
section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-line { border-bottom: 1px solid var(--line); }
.section-head { max-width: 66ch; margin-bottom: 30px; }
.section-head p:last-child { margin-bottom: 0; }

/* ---- Card grid (så fungerar det) ---- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: .95rem; }
.card-head .ic { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--tint); display: grid; place-items: center; }
.card p { margin: 0; font-size: .86rem; line-height: 1.65; }

/* ---- Trust grid (integritet och trygghet) ---- */
.trust-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  padding: 0; margin: 0; list-style: none;
}
@media (max-width: 720px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-grid li { background: #fff; padding: 22px 26px; }
.trust-grid h3 { font-size: .95rem; margin: 0 0 6px; font-weight: 600; }
.trust-grid p { margin: 0; font-size: .86rem; line-height: 1.6; }
.trust-more { margin: 16px 0 0; font-size: .88rem; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 34px 38px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.cta-band h2 { font-size: 1.35rem; margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: .92rem; max-width: 56ch; }
.cta-band .btn { flex: none; }
@media (max-width: 720px) {
  .cta-band { flex-direction: column; align-items: stretch; text-align: center; padding: 26px 22px; }
  .cta-band p { margin-bottom: 6px; }
}

/* ---- Team (om oss) ---- */
.team { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .team { grid-template-columns: 1fr; } }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.member h3 { margin: 0 0 2px; font-size: 1.05rem; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--tint); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 1.8rem; font-weight: 700; color: var(--primary-dk);
}
.member .role { color: var(--primary-dk); font-weight: 600; font-size: .85rem; margin: 0 0 .6em; }
.member p:last-child { margin-bottom: 0; font-size: .88rem; }
.placeholder-note {
  background: var(--bg-soft); border: 1px dashed var(--line-card); border-radius: 8px;
  padding: 12px 16px; font-size: .88rem; color: var(--ink-soft);
}

/* ---- Prose (integritet, om oss) ---- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.5em; font-size: 1.3rem; }
.prose ul { padding-left: 1.2em; color: var(--ink-soft); }
.prose li { margin-bottom: .45em; }
.prose strong, .prose b { color: var(--ink); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #cdd8d6; padding: 32px 0; margin-top: 8px; font-size: .82rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.footer-row p { margin: 0; color: #cdd8d6; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---- Accessibility ---- */
a:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip-link:focus { left: 16px; }

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

/* ---- Small screens ---- */
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 40px 0; }
}
