/* ==========================================================================
   FELIX PSYKOLOGI — styles.css
   felixpsykologi.se · byggd enligt designspec v1
   Systersida till ocdmottagningen.se: samma stomme, egen identitet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS (designspec §4)
   -------------------------------------------------------------------------- */
:root {
  /* Neutraler — varm papperston */
  --paper:        #F7F1EA;
  --paper-light:  #FBF7F2;
  --paper-dark:   #EDE4D9;
  --warm-white:   #FDFBF8;
  --stone:        #C9BBAB;

  /* Primär identitetsfärg — dovt petrolblått */
  --petrol:       #6E8894;
  --petrol-mid:   #446776;
  --petrol-deep:  #33525E;
  --petrol-footer:#2A424C;

  /* Sekundäraccent — varm ockra (sparsamt) */
  --ochre:        #B4763F;   /* endast dekor + text >= 24px */
  --ochre-deep:   #8C5A2E;   /* ockra som brödtextlänk (AA) */

  /* Text */
  --charcoal:       #2B2B2B;
  --charcoal-light: #4A4A4A;

  --border: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Outfit', sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. BAS
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;                 /* Outfit 400 som bas (spec §5, tillgänglighet) */
  overflow-x: clip;                 /* dekorativa element får aldrig bredda sidan (mobilbuggfix) */
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--warm-white);
  padding-top: var(--nav-height);   /* fast nav */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;   /* Source Serif 4: opsz-axeln följer graden */
  line-height: 1.2;
  letter-spacing: -0.01em;     /* stramar upp de stora graderna en aning */
  color: var(--charcoal);
}

/* Signaturgreppet: kursivt nyckelord i accentfärg */
h1 em, h2 em {
  font-style: italic;
  font-weight: inherit;
  color: var(--petrol-deep);
}

p { color: var(--charcoal-light); }
p + p { margin-top: 1.1rem; }

a { color: var(--petrol-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol-deep); }

strong { font-weight: 600; color: var(--charcoal); }

::selection { background: var(--petrol); color: #fff; }

/* Synligt tangentbordsfokus (spec §13) */
:focus-visible {
  outline: 2px solid var(--petrol-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ankare under fast nav */
[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

/* Hoppa till innehåll */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 2000;
  background: var(--petrol-deep);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Platshållare som ska ersättas före publicering — lätt att hitta visuellt */
.todo {
  background: rgba(180, 118, 63, 0.14);
  border-bottom: 1px dashed var(--ochre-deep);
  padding: 0 0.15em;
  border-radius: 2px;
}

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

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow { max-width: 780px; }
.container--medium { max-width: 920px; }

.section { padding: 6rem 0; }

/* Växlande sektionsbakgrunder — samma rytm som systersidan */
.bg-warm-white  { background: var(--warm-white); }
.bg-paper-light { background: var(--paper-light); }
.bg-paper       { background: var(--paper); }

/* --------------------------------------------------------------------------
   4. TYPOGRAFISKA KOMPONENTER
   -------------------------------------------------------------------------- */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--petrol-deep);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--charcoal-light);
  max-width: 640px;
}

.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin-inline: auto; }

/* Personlig röst / brevkänsla */
.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--charcoal);
}

/* Rak divider */
.divider {
  width: 48px; height: 1px;
  background: var(--stone);
  border: 0;
  margin: 0 0 2rem;
}
.divider--center { margin-inline: auto; }

/* Stigande linje-motiv (divider-variant, max en per sida) */
.line-motif {
  display: inline-block;
  width: 48px; height: 16px;
  color: var(--ochre);
}
.line-motif svg { display: block; width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   5. KNAPPAR (pillergeometri, spec §11–12)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.9rem;
  border-radius: 50px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}

.btn-primary {
  background: var(--petrol-deep);
  color: #fff;
}
.btn-primary:hover {
  background: var(--petrol-mid);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(51, 82, 94, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--petrol-deep);
  border-color: var(--petrol-deep);
}
.btn-secondary:hover {
  background: var(--petrol-deep);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--petrol-deep);
}
.btn-white:hover {
  background: var(--paper-light);
  color: var(--petrol-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-arrow { transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Mikrocopy-regeln: raden som alltid följer primärknappen (spec §12) */
.btn-microcopy {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--charcoal-light);
}

/* Sekundär handling = textlänk med pil, aldrig en andra knapp */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--petrol-mid);
  text-decoration: none;
}
.text-link .btn-arrow { color: inherit; }
.text-link:hover { color: var(--petrol-deep); }
.text-link:hover .btn-arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. NAVIGATION (fast, 72px, blur — spec §2)
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(253, 251, 248, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--petrol-deep); }
.nav-logo .line-motif { width: 36px; height: 12px; color: var(--ochre); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal-light);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--petrol-mid); }
.nav-link[aria-current="page"] { color: var(--petrol-mid); }

.nav-cta {
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. HERO — startsidan, delad 55/45 (spec §8)
   -------------------------------------------------------------------------- */
.hero-split {
  min-height: calc(88vh - var(--nav-height));
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 4rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;   /* endast vertikalt, containerns sidopadding ska bevaras */
}

.hero-content .section-label { margin-bottom: 1.4rem; }

.hero-title {
  font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 2.2rem;
}

.hero-figure {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
}

.hero-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px 96px 24px 24px;   /* signaturdetaljen (spec §6) */
  box-shadow: var(--shadow-lg);
}

/* Stigande linje bakom porträttet */
.hero-deco {
  position: absolute;
  z-index: 0;
  inset: -14% -18% auto auto;
  width: 120%;
  color: var(--petrol);
  opacity: 0.35;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. WELCOME — "Hej, jag heter Felix" (block 2)
   -------------------------------------------------------------------------- */
.welcome {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}
.welcome .line-motif { margin-bottom: 1.75rem; }
.welcome .section-title { margin-bottom: 1.5rem; }
.welcome p { text-align: left; }
.welcome .lede { text-align: center; margin-bottom: 1.5rem; }
.welcome .text-link { margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   9. CHIP-GRID — "Vad kan man söka för?" (ny komponent, spec §11)
   -------------------------------------------------------------------------- */
.chip-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 2.5rem 0;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 0.7rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--charcoal-light);
  white-space: normal;               /* radbrytning får inte klippa text */
  line-height: 1.35;
}

.chip-outro { max-width: 640px; }

/* --------------------------------------------------------------------------
   10. CALLOUT — OCD-hänvisning m.fl. (ny komponent)
   -------------------------------------------------------------------------- */
.callout {
  background: var(--paper);
  border-left: 3px solid var(--petrol);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-top: 2.5rem;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 0.75rem; }

.hero-note {
  margin-top: 1.5rem;
  max-width: 580px;
}

/* Lugn variant utan accentkant — t.ex. akutnotiser (1px ram, ingen röd färg) */
.callout--quiet {
  background: var(--paper-light);
  border: 1px solid var(--stone);
  border-left-width: 1px;
}

/* --------------------------------------------------------------------------
   11. STEPS — "Så går det till" (ny komponent)
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
  counter-reset: step;
  margin-top: 3rem;
}

/* tunn horisontell linje som binder stegen */
.steps::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 8%; right: 8%;
  height: 1px;
  background: var(--stone);
}

.step { position: relative; }

.step-number {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.5rem;
  line-height: 1.3;
  color: var(--ochre);
  background: var(--paper);          /* maskar linjen bakom siffran */
  padding: 0 0.75rem;
  margin-left: -0.75rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.step p { font-size: 1rem; }

/* Miljöbild under stegen */
.steps-figure { margin-top: 4rem; }
.steps-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.steps-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--charcoal-light);
}

/* --------------------------------------------------------------------------
   12. METHOD EXPLAINER — sticky tvåkolumn (f.d. erp-explainer)
   -------------------------------------------------------------------------- */
.method-explainer {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: start;
}

.method-explainer-heading {
  position: sticky;
  top: calc(var(--nav-height) + 3rem);
}

.method-explainer-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.9rem 0 0.5rem;
}
.method-explainer-body h3:first-child { margin-top: 0; }
.method-explainer-body .text-link { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   13. TRUST BAR — "Praktisk information" (block 6)
   -------------------------------------------------------------------------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.trust-item-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.trust-item-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--charcoal-light);
}

.trust-bar-link { margin-top: 3rem; text-align: center; }

/* --------------------------------------------------------------------------
   14. CTA-SEKTION (petrol-gradient, spec §4)
   -------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, #33525E 0%, #446776 100%);
  padding: 6rem 0;
  text-align: center;
  color: #fff;
}

.cta-section .section-title { color: #fff; }
.cta-section .section-title em { color: #fff; }
.cta-section p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto 2.2rem;
}
.cta-section .btn-microcopy { color: rgba(255, 255, 255, 0.85); }

/* --------------------------------------------------------------------------
   15. KORT — intro-card (KBT/MCT på /behandling)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.intro-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.intro-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.intro-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
}
.intro-card p { font-size: 1rem; }

/* --------------------------------------------------------------------------
   16. FASER — vertikal tidslinje (/behandling)
   -------------------------------------------------------------------------- */
.phases {
  list-style: none;
  counter-reset: phase;
  position: relative;
  margin-top: 3rem;
}

.phase {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.75rem;
  padding-bottom: 3rem;
}
.phase:last-child { padding-bottom: 0; }

/* vertikal linje */
.phase::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 3.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--stone);
}
.phase:last-child::before { display: none; }

.phase-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--ochre);
  text-align: center;
}

.phase h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.55rem 0 0.5rem;
}

/* --------------------------------------------------------------------------
   17. SIDHUVUD FÖR UNDERSIDOR
   -------------------------------------------------------------------------- */
.page-hero { padding: 5rem 0 4.5rem; }
.page-hero h1 {
  font-weight: 300;
  font-size: clamp(2.3rem, 4.5vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 1.4rem;
  max-width: 800px;
}
.page-hero .page-intro {
  font-size: 1.15rem;
  max-width: 680px;
  margin-bottom: 2.2rem;
}
.page-hero .cta-block:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   18. OM FELIX
   -------------------------------------------------------------------------- */
.about-hero {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4.5rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 5rem;   /* endast vertikalt, containerns sidopadding ska bevaras */
}

.about-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.about-hero h1 {
  font-weight: 300;
  font-size: clamp(2.3rem, 4.5vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 1.4rem;
}

/* Smalt förtroendeblock (HSL/IVO) */
.trust-note {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.trust-note p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--charcoal);
}
.trust-note .line-motif { margin-bottom: 1.75rem; }

/* --------------------------------------------------------------------------
   19. PRISER & KONTAKT
   -------------------------------------------------------------------------- */
.price-figure {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.price-figure small {
  font-size: 0.55em;
  color: var(--charcoal-light);
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.contact-option {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.contact-option h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.contact-option p {
  font-size: 0.95rem;
}

.contact-option p + p {
  margin-top: 0.75rem;
}

.map-embed {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* --------------------------------------------------------------------------
   20. FAQ — accordion utan JS (spec §10)
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }

.faq details { border-bottom: 1px solid var(--border); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0.25rem;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--charcoal);
  transition: color var(--transition);
}
.faq summary:hover { color: var(--petrol-mid); }
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--petrol-mid);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq-answer { padding: 0 0.25rem 1.6rem; max-width: 700px; }

/* --------------------------------------------------------------------------
   21. KONTAKT — formulär (Netlify)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 5rem;
  align-items: start;
}

.form-group { margin-bottom: 1.4rem; }

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--warm-white);
  border: 1px solid var(--stone);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group textarea { min-height: 160px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--petrol-mid);
  box-shadow: 0 0 0 3px rgba(68, 103, 118, 0.15);
}

.form-note { font-size: 0.85rem; margin-top: 1rem; }

.form-help {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: -0.2rem 0 0.55rem;
  color: var(--charcoal-light);
}

.contact-aside h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-aside address { font-style: normal; }
.contact-aside .contact-block + .contact-block { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   22. FOOTER (spec §8: mörk petrol, fyra kolumner)
   -------------------------------------------------------------------------- */
.footer {
  background: var(--petrol-footer);
  color: rgba(255, 255, 255, 0.85);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 1.1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .nav-logo { color: #fff; font-size: 1.3rem; }
.footer-brand .nav-logo span { color: #A8C2CC; }
.footer-brand .line-motif { color: var(--ochre); }
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
}

.footer h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.1rem;
}

.footer ul { list-style: none; }
.footer li + li { margin-top: 0.55rem; }

.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer a:hover { color: #fff; text-decoration: underline; }

.footer address { font-style: normal; font-size: 0.95rem; }
.footer .footer-small { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); margin-top: 1rem; }
.footer p { color: rgba(255, 255, 255, 0.85); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

/* --------------------------------------------------------------------------
   23. TACK-SIDOR
   -------------------------------------------------------------------------- */
.thanks {
  min-height: calc(70vh - var(--nav-height));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem 0;
}
.thanks h1 { font-weight: 300; font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.thanks p { max-width: 520px; margin-inline: auto; }
.thanks .text-link { margin-top: 2rem; }
.thanks .line-motif { margin-bottom: 1.75rem; }

/* --------------------------------------------------------------------------
   24. ANIMATIONER (samma stagger-mönster som systersidan)
   -------------------------------------------------------------------------- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim { opacity: 0; animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.anim-1 { animation-delay: 0.2s; }
.anim-2 { animation-delay: 0.4s; }
.anim-3 { animation-delay: 0.6s; }
.anim-4 { animation-delay: 0.8s; }

/* Scroll-reveal via IntersectionObserver (main.js).
   Döljningen gäller bara när JS finns (html.js) — utan JS syns allt direkt. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Reduced motion (spec §13) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .btn, .btn-arrow, .intro-card { transition: none !important; }
}

/* --------------------------------------------------------------------------
   25. SCROLLBAR
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-light); }
::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--petrol-mid); }


/* --------------------------------------------------------------------------
   9b. LÄNKADE CHIPS + FÖRDJUPNINGSLISTA (ämnessidor)
   -------------------------------------------------------------------------- */
.chip--link { padding: 0; }
.chip--link a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1.3rem;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}
.chip--link a::after {
  content: "\2192";
  font-size: 0.85em;
  color: var(--petrol-mid);
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chip--link:hover {
  border-color: var(--petrol-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(51, 82, 94, 0.10);
}
.chip--link:hover a::after { opacity: 1; transform: translateX(3px); }
.chip--link:focus-within { border-color: var(--petrol-mid); }

.link-list {
  list-style: none;
  border-top: 1px solid var(--border);
}
.link-list li { border-bottom: 1px solid var(--border); }
.link-list a {
  display: block;
  padding: 1.15rem 2.4rem 1.15rem 0.25rem;
  text-decoration: none;
  position: relative;
  transition: padding-left 0.25s ease, background 0.25s ease;
}
.link-list a::after {
  content: "\2192";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--petrol-mid);
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.link-list a:hover { padding-left: 0.75rem; background: rgba(110, 136, 148, 0.06); }
.link-list a:hover::after { opacity: 1; transform: translateY(-50%) translateX(3px); }
.link-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--petrol-deep);
  margin-bottom: 0.15rem;
}
.link-list span {
  display: block;
  font-size: 0.92rem;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   25b. INTEGRITETSPOLICY — juridisk löptext
   -------------------------------------------------------------------------- */
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 2.75rem 0 0.9rem;
}
.legal-content h2:first-of-type { margin-top: 0.5rem; }
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 1.75rem 0 0.5rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.legal-content li { margin-bottom: 0.35rem; }

/* --------------------------------------------------------------------------
   26. RESPONSIVT — 1024 / 768 (samma brytpunkter som systersidan)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-split { gap: 3rem; }
  .method-explainer { gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }

  /* Nav → hamburger; kontaktknappen flyttar in som första post */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.5rem 1.5rem;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-link { display: block; padding: 1rem 0.25rem; font-size: 1rem; }
  .nav-item-cta { order: -1; border-bottom: 0 !important; padding: 0.75rem 0 1rem; }
  .nav-item-cta .nav-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }

  /* Hero stackas: text + CTA före bild */
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 0;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .hero-title { font-size: 2.2rem; }
  .hero-figure { justify-self: stretch; width: 100%; }
  .hero-figure img { aspect-ratio: 1 / 1; border-radius: 16px 64px 16px 16px; }
  .hero-cta .btn-primary {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }

  .chip-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .chip { font-size: 0.88rem; padding: 0.6rem 0.9rem; }

  /* Steg vertikalt med vertikal linje */
  .steps { grid-template-columns: 1fr; gap: 2.25rem; }
  .steps::before {
    top: 1rem; bottom: 1rem;
    left: 28px; right: auto;   /* mitten av 56px-kolumnen */
    width: 1px; height: auto;
  }
  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 1.25rem;
    row-gap: 0.35rem;
  }
  .step-number { grid-column: 1; grid-row: 1 / span 2; }
  .step h3 { grid-column: 2; grid-row: 1; align-self: center; }
  .step p { grid-column: 2; grid-row: 2; }
  .step-number {
    margin: 0;
    padding: 0.4rem 0;
    text-align: center;
    font-size: 2rem;
  }

  /* Sticky av på mobil (buggfixen från kodbasen) */
  .method-explainer { grid-template-columns: 1fr; }
  .method-explainer-heading { position: static; margin-bottom: 0.5rem; }

  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  .card-grid { grid-template-columns: 1fr; }

  .phase { grid-template-columns: 52px 1fr; gap: 1.25rem; }
  .phase::before { left: 25px; }
  .phase-number { font-size: 2rem; }

  .about-hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; }

  .contact-options { grid-template-columns: 1fr; }

  .cta-block .btn-primary { width: 100%; justify-content: center; min-height: 48px; }
}
