/* ludwigfranke.se — färger och typsnitt från logotypen och Instagram-mallarna */

@font-face {
  font-family: "Quicksand";
  src: url("/fonts/quicksand-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --forest: #011907;
  --pine: #0b3020;
  --copper: #cd8545;
  --copper-deep: #93531d;
  --mist: #eef2ec;
  --paper: #fbfcfa;
  --ink: #011907;
  --ink-2: #3a4a40;
  --line: rgba(1, 25, 7, 0.14);
  --on-dark: #e9eee7;
  --on-dark-2: rgba(233, 238, 231, 0.74);
  --line-dark: rgba(233, 238, 231, 0.16);

  --display: "Quicksand", ui-rounded, "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--copper-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--copper); color: var(--forest); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-family: var(--body); font-size: 1rem; font-weight: 600;
  text-decoration: none; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-copper { background: var(--copper); color: var(--forest); }
.btn-copper:hover { background: #dc9658; }
.btn-forest { background: var(--forest); color: var(--on-dark); }
.btn-forest:hover { background: var(--pine); }
.btn-ghost { border: 1px solid var(--line-dark); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }

/* ---------- Sidhuvud ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--forest);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-dark); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 188px; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav a {
  color: var(--on-dark-2); text-decoration: none; font-size: 0.98rem;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--copper); }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 0.95rem; border-bottom: 0; color: var(--forest); }
.nav .btn:hover { color: var(--forest); }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line-dark); color: var(--on-dark);
  font: 600 0.95rem var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer;
}

@media (max-width: 960px) {
  .brand img { width: 158px; }
  .menu-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--forest); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 24px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav a:hover { border-bottom-color: var(--line-dark); }
  .nav .btn { margin-top: 18px; min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--forest); color: var(--on-dark);
  padding: clamp(24px, 4vw, 40px) 0 clamp(56px, 7vw, 96px);
}
/* den stora ellipsen från Instagram-mallarna */
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 1400px; height: 1560px; border-radius: 50%;
  left: 62%; top: -38%;
  background: var(--pine); opacity: .55;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

.bubble { position: relative; container-type: inline-size; max-width: 700px; }
.bubble-art { width: 100%; }
.bubble h1 {
  position: absolute; left: 19%; right: 19%; top: 20%; height: 41%;
  display: grid; place-items: center; text-align: center;
  font-size: 9.4cqw; font-weight: 600; line-height: 1.04; letter-spacing: -0.015em;
  color: var(--copper);
}

.hero-copy .lead {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.95rem); line-height: 1.3;
  color: var(--on-dark); margin-bottom: 0.9em;
}
.hero-copy p { color: var(--on-dark-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.hero-actions .tel { color: var(--on-dark); text-decoration: none; font-weight: 500; }
.hero-actions .tel span { color: var(--on-dark-2); font-weight: 400; }
.hero-actions .tel:hover { color: var(--copper); }

@media (prefers-reduced-motion: no-preference) {
  .bubble-art { animation: think 1.6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes think { from { opacity: 0; transform: scale(.94) rotate(-2deg); } to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bubble { margin-inline: auto; width: 100%; max-width: 520px; }
  .hero-copy .lead { font-size: 1.5rem; }
  .hero::before { left: 40%; top: 30%; width: 900px; height: 1000px; }
}

/* ---------- Sektioner ---------- */
.section { padding: var(--section) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--ink-2); margin-top: 18px; }

/* Om mig */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 104px); align-items: start;
}
.portrait { margin: 0; position: sticky; top: 108px; }
.portrait img { width: 100%; border-radius: 28px 28px 28px 4px; background: #5a5c5b; }
.portrait figcaption { margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); }
.about-copy h2 { margin-bottom: 28px; }
.about-copy .intro {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.3rem, 1.05rem + .7vw, 1.6rem); line-height: 1.4; margin-bottom: 1.2em;
}
.about-copy p { max-width: 62ch; color: var(--ink-2); }
.about-copy .intro { color: var(--ink); }
.signature { width: 230px; margin-top: 36px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 440px; }
}

/* Hur går det till */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px);
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 88px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1.45rem var(--display); color: var(--forest);
  background: var(--paper); border: 1px solid var(--line);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 72px; right: calc(-1 * clamp(28px, 4vw, 56px) + 16px);
  border-top: 1px dashed rgba(1, 25, 7, .28);
}
.steps h3 { margin-bottom: 14px; }
.steps p { color: var(--ink-2); font-size: 1.05rem; }

.outcome {
  margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
}
.outcome p {
  font-family: var(--display); font-weight: 500; margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.3; max-width: 30ch;
}
.outcome strong { color: var(--copper-deep); font-weight: 700; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps li { padding: 0 0 0 80px; min-height: 56px; }
  .steps li:not(:last-child)::after { top: 64px; bottom: -32px; left: 28px; right: auto; border-top: 0; border-left: 1px dashed rgba(1, 25, 7, .28); }
}

/* Behandlingsmetoder */
.methods-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.methods-grid article { padding: 36px clamp(20px, 3vw, 40px) 8px 0; }
.methods-grid article + article { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.methods-grid h3 { margin-bottom: 14px; }
.methods-grid p { color: var(--ink-2); font-size: 1.05rem; }
.more { margin-top: 48px; font-weight: 600; }

@media (max-width: 860px) {
  .methods-grid { grid-template-columns: 1fr; }
  .methods-grid article, .methods-grid article + article { padding: 28px 0; border-left: 0; }
  .methods-grid article + article { border-top: 1px solid var(--line); }
}

/* Pris och frågor */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.price {
  margin-top: 36px; padding: 28px 30px; border-radius: 20px;
  background: var(--mist);
}
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-row:first-of-type { padding-top: 0; }
.price-row span { color: var(--ink-2); font-size: 1rem; }
.price-row strong { font: 600 1.5rem/1 var(--display); color: var(--forest); white-space: nowrap; }
.price p { margin-top: 16px; }
.price p { color: var(--ink-2); font-size: 0.98rem; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font: 600 1.18rem/1.35 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--copper-deep); border-bottom: 2px solid var(--copper-deep);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 24px; max-width: 62ch; margin: 0; }

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

/* Kontakt */
.contact { background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.contact-intro p { color: var(--ink-2); max-width: 44ch; margin-top: 18px; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .k { font-size: 0.95rem; color: var(--ink-2); }
.contact-list a { font: 600 1.12rem/1.3 var(--display); color: var(--forest); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--copper-deep); }
.contact .fine { font-size: 0.95rem; color: var(--ink-2); margin-top: 22px; }

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

/* Sidfot */
.site-footer { background: var(--forest); color: var(--on-dark-2); font-size: 0.95rem; }
.footer-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: 36px 0 44px; border-top: 1px solid var(--line-dark);
}
.footer-bar img { width: 150px; }
.footer-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-bar a { color: var(--on-dark-2); text-decoration: none; }
.footer-bar a:hover { color: var(--on-dark); }

/* ---------- Undersida: behandlingsmetoder ---------- */
.page-hero { background: var(--forest); color: var(--on-dark); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 1200px; height: 1300px; border-radius: 50%; left: 70%; top: -60%;
  background: var(--pine); opacity: .55;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem); font-weight: 600; color: var(--copper); letter-spacing: -0.015em; }
.page-hero p { color: var(--on-dark-2); max-width: 52ch; margin-top: 22px; font-size: 1.2rem; }

.longread { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.toc { position: sticky; top: 108px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 1rem; }
.toc a:hover { color: var(--ink); border-left-color: var(--copper); }
.method + .method { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.method h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: 22px; }
.method p { color: var(--ink-2); max-width: 64ch; }
.cta-band { margin-top: clamp(64px, 8vw, 104px); padding: clamp(32px, 4vw, 48px); border-radius: 24px; background: var(--mist); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; font: 500 1.35rem/1.35 var(--display); max-width: 32ch; }

@media (max-width: 860px) {
  .longread { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* ---------- Tillägg: språk, hjälpområden, formulär, artikelsidor ---------- */
.nav .lang { font-size: 0.92rem; }

.hero-alt { margin-top: 18px; color: var(--on-dark-2); font-size: 1rem; }
.hero-alt a { color: var(--on-dark); text-decoration-color: rgba(233,238,231,.4); }
.hero-alt a:hover { color: var(--copper); }

.help-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.help-list li { border-bottom: 1px solid var(--line); }
.help-list a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 12px 48px; align-items: center;
  padding: 30px 0; color: inherit; text-decoration: none;
}
.help-list h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; transition: color .2s ease; }
.help-list p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.help-list .go { font-weight: 600; color: var(--copper-deep); white-space: nowrap; }
.help-list a:hover h3 { color: var(--copper-deep); }
.help-list a:hover .go { text-decoration: underline; }
@media (max-width: 860px) {
  .help-list a { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
}

/* Kontaktformulär */
.form { display: grid; gap: 18px; position: relative; padding-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.95rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; display: block;
  background: var(--paper); color: var(--ink);
  border: 1px solid rgba(1, 25, 7, 0.16); border-radius: 12px;
  font: inherit; font-size: 1rem; padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(1, 25, 7, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper-deep); box-shadow: 0 0 0 3px rgba(205,133,69,.22); }
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form .note { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.form .note a { color: var(--ink-2); }
.form button { border: 0; cursor: pointer; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-size: 1rem; border-radius: 12px; padding: 14px 16px; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.form-status.err { background: #fbeae6; color: #7a2412; }

/* Artikelsidor (ångest, stress, nedstämdhet) */
.article-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.prose h2 { font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.1rem); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); max-width: 66ch; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--copper-deep); }
.prose .faq { margin-top: 24px; }
.aside-box { position: sticky; top: 108px; background: var(--mist); border-radius: 24px; padding: 28px; }
.aside-box h3 { font-size: 1.25rem; margin-bottom: 12px; }
.aside-box p { color: var(--ink-2); font-size: 1rem; }
.aside-box .btn { width: 100%; margin-top: 8px; }
.aside-box .small { font-size: 0.92rem; margin-top: 14px; }
.urgent { margin-top: 48px; padding: 22px 24px; border-left: 3px solid var(--copper-deep); background: var(--mist); border-radius: 0 16px 16px 0; }
.urgent p { color: var(--ink); margin: 0; max-width: 66ch; }
.reviewed { margin-top: 40px; font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .article-grid { grid-template-columns: 1fr; }
  .aside-box { position: static; }
}

/* Sidfot med kolumner */
.footer-cols { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 32px; padding: 64px 0 36px; }
.footer-cols h2 { font: 600 1rem var(--display); color: var(--on-dark); margin-bottom: 12px; letter-spacing: 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { color: var(--on-dark-2); text-decoration: none; }
.footer-cols a:hover { color: var(--on-dark); }
.footer-cols img { width: 160px; margin-bottom: 14px; }
.footer-cols p { margin: 0; }
.footer-legal { padding: 0 0 40px; font-size: 0.9rem; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-cols { grid-template-columns: 1fr; } }

.simple-page { max-width: 760px; }
.simple-page h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.simple-page p, .simple-page li { color: var(--ink-2); }

.page-404 { min-height: 100vh; }
.page-404 a { color: var(--on-dark); }
.logo-404 { width: 180px; margin-bottom: 48px; }

/* ---------- Rörelse och interaktion (lätt: CSS först, lite JS) ---------- */
.btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.btn:active { transform: scale(.97); }

.help-list h3, .help-list .go { transition: transform .35s cubic-bezier(.2,.7,.2,1), color .2s ease, background-color .2s ease; }
.help-list .go { padding: 8px 16px; border-radius: 999px; }
.help-list a:hover h3 { transform: translateX(8px); }
.help-list a:hover .go { background: var(--forest); color: var(--paper); text-decoration: none; }

.bubble-art, .bubble h1 { transition: translate .9s cubic-bezier(.2,.7,.2,1); }
.bubble-art { translate: calc(var(--mx, 0) * 16px) calc(var(--my, 0) * 12px); }
.bubble h1 { translate: calc(var(--mx, 0) * -7px) calc(var(--my, 0) * -5px); }

@media (prefers-reduced-motion: no-preference) {
  /* tankebubblan andas lugnt efter att den har dykt upp */
  .bubble-art { animation: think 1.6s cubic-bezier(.2,.7,.2,1) both, drift 9s 1.6s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: none; } to { transform: translateY(-7px) rotate(.8deg); } }

  /* mjuka sidbyten mellan sidorna */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: sidhuvud; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

  /* frågor öppnas mjukt */
  @supports selector(::details-content) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; transition: height .32s ease, content-visibility .32s allow-discrete; }
    .faq details[open]::details-content { height: auto; }
  }

  /* innehåll glider fram när det kommer in i bild, styrt av scroll (ingen JS) */
  @supports (animation-timeline: view()) {
    .help-list li, .steps li, .methods-grid article, .portrait, .outcome, .method, .cta-band {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

    .steps li:not(:last-child)::after {
      transform-origin: left center;
      animation: draw-x linear both; animation-timeline: view(); animation-range: entry 40% cover 50%;
    }
    @keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

    .hero::before, .page-hero::before { animation: drift-ellipse linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes drift-ellipse { to { transform: translateY(140px) scale(1.06); } }
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 860px) {
  @supports (animation-timeline: view()) {
    .steps li:not(:last-child)::after { transform-origin: center top; animation-name: draw-y; }
    @keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }
}
