/* =============================================================
   Praktisk visdom — Stilmall
   Ljus, WCAG-anpassad, modern sans-serif

   Palette (hex):
     Primary       #4285F4   (brand, logo, accenter)
     Primary dark  #1A73E8   (knappar, länkar, hover)
     Primary deep  #1557B0   (mörka accenter, footer hover)
     Soft blue     #EAF2FE   (mjuk sektionsbakgrund)
     Card          #FFFFFF
     Background    #FAFAFA
     Ink (text)    #434343
     Ink heading   #1A1A1A
     Muted         #707070
     Border        #DBDBDB
   ============================================================= */

:root {
  --bg: #FAFAFA;
  --card: #FFFFFF;
  --ink: #434343;
  --ink-strong: #1A1A1A;
  --mute: #707070;
  --soft: #EAF2FE;
  --soft-2: #F5F8FE;
  --border: #DBDBDB;
  --primary: #4285F4;
  --primary-dark: #1A73E8;
  --primary-deep: #1557B0;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.08);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --content-max: 1100px;
  --content-narrow: 720px;

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

/* ----- reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 .6em 0;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em 0; }

/* Skip-link, helt dold tills den får fokus */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  background: var(--primary-dark);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  width: auto; height: auto;
  clip: auto;
  overflow: visible;
  outline: 2px solid var(--primary);
}

/* ----- container ----- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow { max-width: var(--content-narrow); }

/* ----- nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink-strong);
  text-decoration: none;
  font-weight: 700;
}
.nav__mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  border-radius: 10px;
}
.nav__brand {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.nav__links a {
  color: var(--mute);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  padding: .35rem .1rem;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav__links a:hover { color: var(--ink-strong); text-decoration: none; }
.nav__links a.is-active {
  color: var(--ink-strong);
  border-bottom-color: var(--primary);
}
.nav__toggle {
  display: none;
  background: none; border: 0;
  width: 36px; height: 36px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  align-items: center;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink-strong);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: .5rem 1.25rem 1rem;
}
.nav__mobile a {
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-strong);
  font-weight: 500;
}
.nav__mobile a:last-child { border-bottom: 0; }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__mobile[data-open="true"] { display: flex; }
}

/* ----- hero ----- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(66, 133, 244, .10), transparent 70%),
    linear-gradient(180deg, #F5F8FE 0%, #FAFAFA 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero__inner {
  max-width: 820px;
  margin: 0 auto;
}
.hero__quote {
  margin: 0 0 1rem 0;
  padding: 0;
  font-family: var(--sans);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink-strong);
}
.hero__quote p { margin: 0; }
.hero__cite {
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--mute);
  font-weight: 600;
  margin: 0 0 2rem 0;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0 0 .85rem 0;
}
.hero__sub {
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero__cta {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(66,133,244,.4); outline-offset: 2px; }
.btn--primary {
  background: var(--primary-dark);
  color: #fff;
}
.btn--primary:hover { background: var(--primary-deep); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--ink-strong);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--ink-strong); background: #fff; }
.btn--large { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ----- sections ----- */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.section--soft { background: var(--soft); }
.section__title {
  margin: 0 0 1rem 0;
}
.section__lead {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 1.2rem 0;
}

/* ----- dimensioner grid: tre per rad på desktop ----- */
.dim-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.5rem;
}
@media (max-width: 820px) { .dim-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .dim-grid { grid-template-columns: 1fr; } }

.dim-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dim-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c8c8c8;
}
.dim-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--primary-dark);
  margin-bottom: .85rem;
}
.dim-card h3 {
  margin: 0 0 .35rem 0;
  font-size: 1.1rem;
  color: var(--ink-strong);
}
.dim-card p {
  margin: 0;
  color: var(--ink);
  font-size: .95rem;
}

/* ----- step cards ----- */
.step-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.5rem;
}
@media (max-width: 820px) { .step-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.step-card__num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--primary);
  display: block;
  margin-bottom: .5rem;
  line-height: 1;
}
.step-card h3 {
  margin: 0 0 .25rem 0;
  color: var(--ink-strong);
  font-size: 1.2rem;
}
.step-card__dim {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 600;
  margin: 0 0 .85rem 0;
}

/* ----- pedagogik list ----- */
.ped-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: grid;
  gap: .75rem;
}
.ped-list li {
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
}
.ped-list strong { color: var(--ink-strong); }

/* ----- quote band ----- */
.quote-band {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--primary-deep);
  color: #fff;
  text-align: center;
}
.quote-band blockquote {
  margin: 0;
  padding: 0;
}
.quote-band blockquote p {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  line-height: 1.45;
  color: #fff;
  margin: 0 0 .9rem 0;
}
.quote-band blockquote cite {
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .12em;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  text-transform: uppercase;
}

/* ----- FAQ ----- */
.faq {
  display: grid;
  gap: .6rem;
  margin-top: 1.25rem;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  list-style: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-dark);
  transition: transform .15s;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: .75rem 0 0 0;
  color: var(--ink);
}
.faq a { color: var(--primary-dark); }

/* ----- CTA band ----- */
.cta-band {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; margin: 0 0 .5rem 0; }
.cta-band p { margin: 0 0 1.5rem 0; opacity: .95; }
.cta-band .btn--primary {
  background: #fff;
  color: var(--primary-deep);
}
.cta-band .btn--primary:hover { background: #f3f8ff; color: var(--primary-deep); }

/* ----- page head ----- */
.page-head {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  background: var(--soft);
  border-bottom: 1px solid var(--border);
}
.page-head h1 { margin: 0 0 .9rem 0; }
.page-head__lead {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
}

/* ----- material file cards ----- */
.file-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 760px) { .file-grid { grid-template-columns: 1fr; } }
.file-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: transform .15s, box-shadow .15s;
}
.file-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.file-card__icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.file-card__body { flex: 1; min-width: 0; }
.file-card h3 {
  margin: 0 0 .4rem 0;
  color: var(--ink-strong);
}
.file-card p {
  color: var(--ink);
  font-size: .95rem;
  margin: 0 0 1.1rem 0;
}

/* ----- how list ----- */
.how-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  counter-reset: how;
}
.how-list li {
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  counter-increment: how;
}
.how-list li::before {
  content: counter(how);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.how-list li:last-child { border-bottom: 0; }
.how-list strong { color: var(--ink-strong); }

/* ----- forms ----- */
.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.form__row { display: grid; gap: .4rem; }
.form__row label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-strong);
}
.form__row label span { color: var(--primary-dark); }
.form__row input, .form__row textarea {
  font: inherit;
  font-size: 1rem;
  padding: .8rem .95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form__row input:focus, .form__row textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, .18);
}
.form__hp {
  position: absolute;
  left: -10000px; top: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form__row--actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: .5rem;
}
.form__note {
  font-size: .82rem;
  color: var(--mute);
  margin: 0;
  flex: 1;
  min-width: 240px;
}
.form__error {
  background: #fff3f3;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
}

/* ----- footer ----- */
.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 2.5rem 0 1.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}
.footer__brand {
  font-family: var(--sans);
  font-weight: 700;
  margin: 0 0 .25rem 0;
  color: var(--ink-strong);
}
.footer__mute {
  color: var(--mute);
  margin: 0;
  font-size: .9rem;
}
.footer__nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer__nav a {
  color: var(--mute);
  font-size: .9rem;
  text-decoration: none;
  font-weight: 500;
}
.footer__nav a:hover { color: var(--ink-strong); }
.footer__copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin: 1rem 0 0 0;
  color: var(--mute);
  font-size: .82rem;
}

@media (max-width: 600px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ----- print ----- */
@media print {
  .nav, .footer, .cta-band, .hero__cta { display: none !important; }
  body { background: #fff; color: #000; }
}
