/* =========================================================
   RYBERG WD – styles.css
   Identitet: varm gräddvit bas · svart bläck-text · korall accent
   Rubriker: Fraunces · Brödtext: Inter
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #FBF9F6;          /* varm gräddvit bas */
  --surface: #FFFFFF;
  --surface-alt: #F4F0E9; /* mjuk sektionsbakgrund */
  --ink: #17181B;         /* nästan svart text */
  --ink-soft: #56575C;    /* sekundär text */
  --line: #E7E1D6;        /* diskreta ramar */
  --accent: #FF5A36;      /* korall (dekor, knapp-hover) */
  --accent-ink: #C4401E;  /* korall för text/länk – WCAG AA på ljust */
  --accent-soft: #FFEDE6; /* korall-tint bakgrund */
  --navy: #141B2E;        /* mörk grund för footer/kontakt */

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 12px 30px -12px rgba(20,20,20,.12);
  --shadow-lg: 0 30px 60px -24px rgba(20,20,20,.22);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / bas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 780px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--surface-alt); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; margin-top: .25rem; }

.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 0 0 1rem;
}
.hl {
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: .06em;
  height: .34em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 3px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 999; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: "Inter", sans-serif;
  font-weight: 600; font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(20,20,20,.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: var(--accent);
  font-family: "Fraunces", serif; font-weight: 700; font-size: 1.15rem;
}
.logo-text { font-family: "Fraunces", serif; font-weight: 700; letter-spacing: .02em; font-size: 1.15rem; white-space: nowrap; }
.logo-thin { font-weight: 400; color: var(--ink-soft); }

.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-desktop a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; white-space: nowrap; transition: color .2s var(--ease); }
.nav-desktop a:not(.btn):hover { color: var(--accent-ink); }
/* Knapp i menyn: säkerställ vit text (högre specificitet än .nav-desktop a) */
.nav-desktop a.btn-primary { color: #fff; }
.nav-desktop a.btn-primary:hover { color: var(--ink); }
.nav-desktop a:not(.btn) { position: relative; }
.nav-desktop a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav-desktop a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.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); }

.nav-mobile[hidden] { display: none; }
.nav-mobile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 22px 26px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.nav-mobile a.btn { border: 0; margin-top: 10px; color: #fff; }
.nav-mobile a.btn:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); margin-top: .5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  list-style: none; padding: 0; margin: 0;
  font-size: .92rem; color: var(--ink-soft);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: "✓"; color: var(--accent-ink); font-weight: 700; }

/* Hero-mockup (egenbyggd, inga stockfoton) */
.hero-visual { position: relative; }
.mock-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.mock-bar { display: flex; gap: 7px; padding: 14px 16px; background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d8d2c6; }
.mock-bar span:first-child { background: var(--accent); }
.mock-body { padding: 26px; }
.mock-hero { margin-bottom: 22px; }
.mock-pill { width: 82px; height: 20px; border-radius: 999px; background: var(--accent-soft); margin-bottom: 16px; }
.mock-line { height: 16px; border-radius: 6px; background: #e9e3d8; margin-bottom: 12px; }
.mock-line.w70 { width: 70%; height: 22px; background: #cfc9bd; }
.mock-line.w50 { width: 50%; }
.mock-btn { width: 130px; height: 40px; border-radius: 999px; background: var(--ink); margin-top: 18px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mock-card { height: 74px; border-radius: 10px; background: var(--surface-alt); border: 1px solid var(--line); }
.mock-card:nth-child(2) { background: var(--accent-soft); border-color: #f6d8cd; }

.hero-badge {
  position: absolute; bottom: -18px; left: -14px;
  background: var(--ink); color: #fff;
  padding: 14px 18px; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
  display: flex; flex-direction: column; line-height: 1.1;
}
.hero-badge strong { font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--accent); }
.hero-badge span { font-size: .78rem; letter-spacing: .04em; }

/* ---------- Om ---------- */
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.signature { font-family: "Fraunces", serif; font-style: italic; color: var(--ink); margin-top: 1.4rem; font-size: 1.1rem; }

/* ---------- Kort (tjänster) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #dcd4c6; }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Process ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 30px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step-num {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: 1.05rem; color: var(--accent-ink);
  display: inline-block; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 2px solid var(--accent);
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* ---------- Varför oss ---------- */
.grid-2-sticky { align-items: start; }
.why-intro { position: sticky; top: 100px; }
.why-intro .btn { margin-top: 22px; }
.why-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.why-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 0; }
.why-check {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.why-list h3 { margin-bottom: .2em; font-size: 1.15rem; }
.why-list p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.port-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.port-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
/* Koncept-mockuper: små, färgade "webbsidor" byggda i ren CSS */
.demo {
  height: 244px; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 14px 14px 0; background: var(--d-desk, #ece7dd);
}
.demo-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: #f3eee6;
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.demo-bar span { width: 8px; height: 8px; border-radius: 50%; background: #cdc6b8; }
.demo-bar span:first-child { background: var(--accent); }
.demo-bar em {
  margin-left: 6px; flex: 1; text-align: center; font-style: normal;
  font-size: .62rem; letter-spacing: .02em; color: var(--ink-soft);
  background: #fff; border-radius: 6px; padding: 3px 10px;
}
.demo-screen {
  flex: 1; overflow: hidden; background: #fff;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.demo-nav {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
}
.demo-nav b { width: 20px; height: 8px; border-radius: 3px; background: var(--d-accent); }
.demo-nav u { width: 20px; height: 5px; border-radius: 3px; background: rgba(23,24,27,.15); }
.demo-nav u:first-of-type { margin-left: auto; }
.demo-hero {
  padding: 16px 14px 15px; background: var(--d-hero);
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
}
.demo-eyebrow {
  margin: 0; font-size: .56rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--d-eyebrow);
}
.demo-title {
  margin: 0; max-width: 94%;
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 1.05rem; line-height: 1.12; color: var(--d-title, #17181B);
}
.demo-btn {
  margin-top: 3px; font-size: .6rem; font-weight: 700;
  color: var(--d-btn-ink, #fff); background: var(--d-accent);
  padding: 5px 11px; border-radius: 7px;
}
.demo-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px; }
.demo-tiles i { height: 36px; border-radius: 7px; background: var(--d-tile); }

/* Teman per bransch */
.demo-food {
  --d-desk: #efe4d9; --d-accent: #C4562F; --d-eyebrow: #C4562F;
  --d-hero: linear-gradient(135deg, #fff5ef, #ffe1d1);
  --d-tile: linear-gradient(135deg, #ffd6c2, #f4ad8f);
}
.demo-build {
  --d-desk: #dde1e5; --d-accent: #E7A63A; --d-btn-ink: #202a36; --d-eyebrow: #E9B45E;
  --d-hero: linear-gradient(135deg, #202a36, #2f3f52); --d-title: #ffffff;
  --d-tile: linear-gradient(135deg, #384858, #55697f);
}
.demo-consult {
  --d-desk: #dee2ec; --d-accent: #2E4A8F; --d-eyebrow: #2E4A8F;
  --d-hero: linear-gradient(135deg, #eef1fb, #d9e1f6);
  --d-tile: linear-gradient(135deg, #c2cef0, #97a9e2);
}
.demo-shop {
  --d-desk: #f0e2dd; --d-accent: #FF5A36; --d-eyebrow: #C4401E;
  --d-hero: linear-gradient(135deg, #fff2ee, #ffdfd5);
  --d-tile: linear-gradient(135deg, #ffd0c1, #ff9d84);
}
.port-meta { padding: 22px 24px 26px; }
.port-meta h3 { margin-bottom: .25em; }
.port-meta p { color: var(--ink-soft); font-size: .96rem; margin: 0 0 14px; }
.tag {
  display: inline-block; font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Pris ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-featured {
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow);
  position: relative;
}
.price-badge {
  position: absolute; top: -13px; left: 30px;
  background: var(--accent); color: var(--ink);
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px;
}
.price-name { font-size: 1.5rem; margin-bottom: .15em; }
.price-for { color: var(--ink-soft); font-size: .95rem; min-height: 46px; margin-bottom: 8px; }
.price-amount { font-family: "Fraunces", serif; font-size: 2.1rem; font-weight: 600; color: var(--ink); margin: 0 0 20px; }
.price-from { font-family: "Inter", sans-serif; font-size: .85rem; color: var(--ink-soft); font-weight: 500; display: block; }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: .96rem; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }
.price-note { text-align: center; margin-top: 34px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; text-align: left;
  font-family: "Fraunces", serif; font-size: 1.18rem; font-weight: 600; color: var(--ink);
}
.faq-q:hover { color: var(--accent-ink); }
.faq-q:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.faq-ico { flex: none; position: relative; width: 20px; height: 20px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--accent-ink); border-radius: 2px;
}
.faq-ico::before { width: 15px; height: 2.5px; }
.faq-ico::after { width: 2.5px; height: 15px; transition: transform .25s var(--ease); }
.faq-q[aria-expanded="true"] .faq-ico::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .3s var(--ease); }
.faq-a p { color: var(--ink-soft); margin: 0 4px; padding: 0 0 24px; }

/* ---------- Kontakt ---------- */
.section-contact { background: var(--navy); color: #EDEBE6; }
.section-contact h2 { color: #fff; }
.section-contact .eyebrow { color: #FF8163; }
.section-contact .section-sub { color: #B9BAC2; }
.contact-grid { align-items: start; gap: clamp(36px, 6vw, 72px); }
.contact-details { list-style: none; padding: 0; margin: 30px 0 26px; display: flex; flex-direction: column; gap: 16px; }
.contact-details li { display: flex; align-items: center; gap: 14px; }
.contact-details a { color: #fff; text-decoration: none; font-weight: 500; font-size: 1.08rem; }
.contact-details a:hover { color: #FF8163; text-decoration: underline; }
.contact-ico {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,255,255,.08); color: #FF8163;
  display: grid; place-items: center;
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-social { color: #9EA0AA; font-size: .95rem; }
.contact-social .muted { color: #C6C8D0; }

.contact-form {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field .opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: .9rem; margin: 14px 0 0; min-height: 1.2em; }
.form-hint.ok { color: #1a7f52; }
.form-hint.err { color: var(--accent-ink); }

/* ---------- Footer ---------- */
.site-footer { background: #0F1523; color: #C6C8D0; padding: 64px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.logo-light .logo-text, .logo-light { color: #fff; }
.logo-light .logo-thin { color: #9EA0AA; }
.footer-brand p { margin-top: 16px; max-width: 300px; color: #9EA0AA; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h4, .footer-contact h4 {
  color: #fff; font-family: "Inter", sans-serif; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .12em; margin: 0 0 6px;
}
.footer-nav a, .footer-contact a { color: #C6C8D0; text-decoration: none; font-size: .96rem; width: fit-content; }
.footer-nav a:hover, .footer-contact a:hover { color: #FF8163; }
.footer-cta { margin-top: 8px; color: #fff !important; }
.footer-cta:hover { color: var(--ink) !important; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 24px; font-size: .86rem; color: #7E8090;
}
.footer-bottom p { margin: 0; }
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  order: 3; flex-basis: 100%;
  padding-top: 12px; margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-legal a, .footer-legal .linklike {
  color: #9A9CAB; font-size: .86rem; text-decoration: none;
}
.footer-legal a:hover, .footer-legal .linklike:hover { color: #fff; }
.linklike {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; cursor: pointer;
}

/* =========================================================
   JURIDIKSIDOR (integritetspolicy / cookies)
   ========================================================= */
.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal .lead { color: var(--ink-soft); font-size: 1.15rem; }
.legal-meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 { margin: 2.4rem 0 .6rem; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.legal h3 { margin: 1.6rem 0 .4rem; }
.legal ul { padding-left: 1.2em; margin: 0 0 1rem; }
.legal li { margin: .3rem 0; }
.legal table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem;
}
.legal th, .legal td {
  text-align: left; vertical-align: top; padding: 12px 14px;
  border: 1px solid var(--line);
}
.legal th { background: var(--surface-alt); font-weight: 600; }
.legal .todo {
  display: inline-block; background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 6px; padding: 1px 7px; font-size: .85em; font-weight: 600;
}
.back-link { display: inline-block; margin-top: 2.5rem; font-weight: 600; }

/* =========================================================
   COOKIE-SAMTYCKE (GDPR)
   ========================================================= */
.cookie-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; justify-content: center;
  padding: 16px clamp(12px, 4vw, 24px);
  pointer-events: none;
}
.cookie-consent.is-open { pointer-events: auto; }
.cookie-card {
  width: 100%; max-width: 560px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 28px);
  transform: translateY(16px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cookie-consent.is-open .cookie-card { transform: none; opacity: 1; }
.cookie-title { font-size: 1.35rem; margin: 0 0 .5rem; }
.cookie-text { color: var(--ink-soft); font-size: .96rem; margin: 0 0 1.1rem; }
.cookie-text a { color: var(--accent-ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 auto; }

.cookie-cats { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 14px; }
.cookie-cat {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; background: var(--bg);
}
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-cat-name { font-weight: 600; color: var(--ink); }
.cookie-cat-locked { font-size: .8rem; color: var(--ink-soft); }
.cookie-cat-desc { margin: .4rem 0 0; font-size: .88rem; color: var(--ink-soft); }

/* Toggle-switch */
.cookie-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: relative; flex: 0 0 auto; width: 42px; height: 24px;
  background: #CDC7BB; border-radius: 999px; transition: background .25s var(--ease);
}
.cookie-slider::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .25s var(--ease);
}
.cookie-switch input:checked + .cookie-slider { background: var(--accent); }
.cookie-switch input:checked + .cookie-slider::after { transform: translateX(18px); }
.cookie-switch input:focus-visible + .cookie-slider {
  outline: 2px solid var(--accent-ink); outline-offset: 2px;
}

@media (max-width: 480px) {
  .cookie-actions .btn { flex-basis: 100%; }
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* mild stagger för kort-rutnät */
.cards .card:nth-child(2), .steps .step:nth-child(2),
.portfolio-grid .port-card:nth-child(2), .pricing .price-card:nth-child(2),
.why-list li:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3), .steps .step:nth-child(3),
.pricing .price-card:nth-child(3), .why-list li:nth-child(3) { transition-delay: .16s; }
.steps .step:nth-child(4), .why-list li:nth-child(4) { transition-delay: .24s; }
.steps .step:nth-child(5), .why-list li:nth-child(5) { transition-delay: .32s; }
.steps .step:nth-child(6) { transition-delay: .40s; }

/* =========================================================
   RESPONSIVT
   ========================================================= */

/* Tablet */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-top: 10px; }
  .grid-2, .grid-2-sticky, .contact-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .price-for { min-height: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Meny → hamburgare innan desktop-navet blir trångt */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobil */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .steps, .portfolio-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .contact-form { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .section-head { margin-bottom: 40px; }
}

/* Respektera minskad rörelse */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
