/* POWERSÅNG – huvudhemsida
   Färger och typografi enligt Powersångs brandtoolbox.
   Archivo ligger lokalt på Netlify (ingen Google Fonts-hämtning). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-standard-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-standard-italic.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-standard-italic.woff2") format("woff2");
}

:root {
  --esp: #241C19;      /* Deep Espresso */
  --ivory: #F5F0E8;    /* Warm Ivory */
  --white: #FFF9F2;    /* Warm White */
  --sand: #E8DED1;     /* Warm Sand */
  --body: #302824;     /* Dark Body Text */
  --orange: #D96B32;   /* Burnt Orange – accent, sparsamt */
  --terra: #B8543A;    /* Muted Terracotta – hover */
  --line: #E3D8CA;
  --esp-2: #2D2420;
  --muted-dark: #B9ADA0;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--esp); }
.dark strong { color: var(--ivory); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Typografi ---------- */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--body); margin: 0 0 18px;
}
.kicker::before { content: ""; flex: 0 0 28px; height: 2px; background: var(--orange); }
.dark .kicker { color: var(--sand); }
.kicker .num { color: var(--orange); font-weight: 700; letter-spacing: .12em; }

h1, h2, h3 { margin: 0; color: var(--esp); }
.dark h1, .dark h2, .dark h3 { color: var(--ivory); }
.h-display {
  font-weight: 800; font-stretch: 75%; text-transform: uppercase;
  font-size: clamp(42px, 7.2vw, 92px); line-height: .98; letter-spacing: -.005em;
}
.h-section {
  font-weight: 800; font-stretch: 78%; text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.02;
}
.h-card {
  font-weight: 800; font-stretch: 80%; text-transform: uppercase;
  font-size: 22px; line-height: 1.1; letter-spacing: .01em;
}
.lead { font-weight: 500; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--body); max-width: 680px; }
.dark .lead { color: var(--sand); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head .lead { margin-top: 16px; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 26px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--terra); }
.btn-ghost { border-color: currentColor; color: var(--esp); background: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--esp); color: var(--ivory); border-color: var(--esp); }
.dark .btn-ghost { color: var(--ivory); }
.dark .btn-ghost:hover, .dark .btn-ghost:focus-visible { background: var(--ivory); color: var(--esp); border-color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.text-link:hover { color: var(--terra); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Sidhuvud ---------- */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--esp); color: var(--ivory); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--esp); color: var(--ivory); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.brand img { height: 38px; width: auto; }
.brand-word { font-weight: 800; font-stretch: 80%; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--sand); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--ivory); }
.nav a[aria-current="page"] { color: var(--ivory); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav .nav-cta { margin-left: 8px; color: var(--ivory); border: 2px solid var(--sand); border-radius: 999px; padding: 8px 16px; }
.nav .nav-cta:hover { background: var(--ivory); color: var(--esp); border-color: var(--ivory); }
.nav-toggle {
  display: none; background: transparent; border: 2px solid var(--sand); color: var(--ivory);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--esp); padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(232,222,209,.15);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(232,222,209,.12); font-size: 15px; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--orange); }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; }
}

/* ---------- Sektioner ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.dark { background: var(--esp); color: var(--sand); }
.sand { background: var(--sand); }
.white { background: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.hero-text { padding-bottom: clamp(40px, 6vw, 72px); }
.hero-text .lead { margin-top: 24px; }
.hero-ghost {
  position: absolute; right: -2vw; top: 4%; font-weight: 800; font-stretch: 75%;
  font-size: clamp(160px, 28vw, 380px); line-height: .8; color: var(--esp-2); pointer-events: none; user-select: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-voiceline { position: relative; z-index: 1; margin-top: 8px; }
.hero-voiceline svg { width: 100%; height: auto; }
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }
.page-hero .lead { margin-top: 20px; }

/* Fotoplatser (byts mot Cecilias egna foton) */
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--esp-2);
  aspect-ratio: 4 / 5; width: 100%;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.wide { aspect-ratio: 16 / 10; }
.photo-slot {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px;
  border: 2px dashed var(--orange); background: var(--white); color: var(--body); padding: 24px;
  font-size: 14px; font-weight: 600; line-height: 1.4;
}
.dark .photo-slot { background: var(--esp-2); color: var(--sand); }
.photo-slot span { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.hero .photo { margin-bottom: clamp(40px, 6vw, 72px); }

/* Kort och rutnät */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.dark .card { background: var(--esp-2); border-color: rgba(232,222,209,.12); }
.card p { margin-top: 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }

/* Känner du igen dig */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks li { position: relative; padding: 18px 0 18px 40px; border-top: 1px solid var(--line); font-size: 18px; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0; top: 30px; width: 20px; height: 2px; background: var(--esp); }

/* Princip */
.principle {
  display: inline-block; background: var(--esp); color: var(--ivory); border-radius: 10px;
  padding: 14px 22px; font-weight: 800; font-stretch: 80%; letter-spacing: .05em; text-transform: uppercase;
  font-size: clamp(18px, 2.4vw, 26px); line-height: 1.2;
}
.principle em { font-style: normal; color: var(--orange); }

/* Processen */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.process li { border-top: 3px solid var(--esp); padding-top: 18px; }
.dark .process li { border-top-color: var(--sand); }
.process b { display: block; font-weight: 800; font-stretch: 78%; font-size: 26px; letter-spacing: .03em; text-transform: uppercase; color: var(--esp); margin-bottom: 8px; }
.dark .process b { color: var(--ivory); }
.process li:first-child { border-top-color: var(--orange); }
.process .step { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--body); display: block; margin-bottom: 6px; }
.dark .process .step { color: var(--sand); }

/* Kursserien */
.course { display: flex; flex-direction: column; min-height: 230px; }
.course .num { font-weight: 700; font-size: 15px; letter-spacing: .14em; color: var(--orange); margin-bottom: 12px; }
.course .sub { font-weight: 500; color: var(--body); margin-top: 8px; }
.dark .course .sub { color: var(--sand); }
.course .status { margin-top: auto; padding-top: 20px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--body); }
.course .status.live { color: var(--esp); }
.course .status.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: 1px; }
.course a.cover-link { text-decoration: none; }
.course.featured { border: 2px solid var(--esp); }

/* Detaljlistor */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 170px 1fr; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts dt, .facts .k { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--body); padding-top: 3px; }
.dark .facts li { border-color: rgba(232,222,209,.15); }
.dark .facts .k { color: var(--sand); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.tools li { padding: 16px 0; border-top: 1px solid var(--line); }
.tools b { display: block; font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .04em; color: var(--esp); font-size: 18px; margin-bottom: 4px; }
.modules { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.modules li { padding: 16px 0 16px 56px; position: relative; border-top: 1px solid var(--line); }
.modules li::before { counter-increment: m; content: "0" counter(m); position: absolute; left: 0; top: 14px; font-weight: 800; font-stretch: 75%; font-size: 22px; color: var(--esp); }
.modules li:first-child::before { color: var(--orange); }
.modules b { display: block; color: var(--esp); font-weight: 700; }

/* Citat */
.quote { margin: 0; max-width: 820px; }
.quote p { font-weight: 500; font-size: clamp(22px, 3vw, 32px); line-height: 1.35; color: var(--ivory); }
.quote footer { margin-top: 22px; font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--sand); }
.quote footer::before { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--orange); margin-right: 12px; vertical-align: 4px; }

/* Fyll i-markeringar (syns bara tills de är ersatta) */
.fill {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--body); background: var(--white);
  border: 1px dashed var(--orange); border-radius: 8px; padding: 3px 10px; line-height: 1.4;
}
.dark .fill { background: var(--esp-2); color: var(--sand); }

/* Avslut */
.cta-band { text-align: left; }
.cta-band .h-section { max-width: 820px; }

/* Sidfot */
.site-footer { background: var(--esp); color: var(--sand); padding: 56px 0 40px; font-size: 15px; border-top: 1px solid rgba(232,222,209,.15); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(232,222,209,.15); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: var(--muted-dark); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--sand); cursor: pointer; text-decoration: none; }
.linkbtn:hover { color: var(--ivory); text-decoration: underline; }

/* Löptext (policy m.m.) */
.prose { max-width: 720px; }
.prose h2 { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 22px; margin: 40px 0 12px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* Samtyckesruta (visas bara när annonsmätning är aktiverad i CONFIG) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 560px; margin: 0 auto;
  background: var(--esp); color: var(--sand); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: 0 12px 40px rgba(36,28,25,.35); font-size: 15px;
}
.consent h2 { color: var(--ivory); font-size: 16px; font-weight: 800; font-stretch: 80%; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.consent a { color: var(--ivory); }
.consent .btn-row { margin-top: 16px; }
.consent .btn { min-height: 44px; padding: 10px 18px; font-size: 13px; }
.consent .btn-ghost { color: var(--ivory); }

/* Responsivt */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero .photo { max-width: 420px; margin-bottom: 0; }
  .hero-text { padding-bottom: 8px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .tools { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .card { padding: 22px; }
  .course { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ghost { display: none; }
}
.hero-voiceline svg { height: clamp(80px, 15vw, 220px); }
