/* ===== OM.HTML: samma grafit och ockra som startsidan (index.html) =====
   Samma tokens som Strukturen (portal/struktur.css). Ligger efter
   site/showcase.css och skriver över dess ljusa tokens. villkor.html och
   integritet.html har egna kopior av det gamla Huset-blocket och är ljusa
   tills de byts; de delar inte längre tokens med den här sidan.
   Delas av säljsidorna om.html, funktioner.html, priser.html, sakerhet.html och
   fragor.html (EG9, 2026-12-04). Ligger som fil i stället för i varje sida. */
  :root {
    --bg: #141518; --surface: #1B1C20; --surface-2: #222328; --surface-3: #222328;
    --border: #2C2D33; --border-2: #383A41; --text: #ECE8E1; --text-dim: #A29E96; --svag: #6E6A63;
    --accent: #C8902E; --accent-2: #C8902E; --ockra-mork: #3A2C14;
    --green: #7FD3A5; --red: #E07A2E; --orange: #E07A2E;
    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Karla", "Segoe UI", system-ui, sans-serif;
    --t-liten: 14.5px; --t-brod: 17px; --t-ingress: 19px; --t-h3: 22px;
    --t-h2: clamp(30px, 3.6vw, 40px); --t-h1: clamp(38px, 5vw, 58px);
    --luft: clamp(56px, 6.5vw, 88px);
    color-scheme: dark;
  }
  html, body { background: var(--bg); }
  body { font-size: var(--t-brod); line-height: 1.6; }
  h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
  a { text-decoration-color: var(--border); text-underline-offset: 3px; }
  .wrap { max-width: 1120px; padding: 0 28px; }
  .narrow { max-width: 760px; }
  section { padding: var(--luft) 0; }
  section + section { border-top: 1px solid var(--border); }
  .top + section { padding-top: 40px; }
  section[id] { scroll-margin-top: 24px; }
  .dot { background: var(--accent); box-shadow: none; animation: none; }

  /* toppfält, samma som startsidan */
  .top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; max-width: 1120px; margin: 0 auto; padding: 26px 28px; }
  .top .logo { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
  .top .logo i { width: 22px; height: 22px; border-radius: 5px; background: var(--accent); display: inline-block; flex-shrink: 0; box-shadow: inset -6px -6px 0 var(--ockra-mork); }
  .top nav { display: flex; gap: 26px; }
  .top nav a { color: var(--text-dim); font-size: 15px; text-decoration: none; }
  .top nav a:hover { color: var(--text); }
  /* Fem menylänkar ryms inte bredvid loggan på mobil (EG9): menyn får en egen rad och bryts. */
  @media (max-width: 640px) { .top { padding: 20px 20px 8px; gap: 10px 12px; } .top .logo { font-size: 16px; white-space: nowrap; } .top nav { width: 100%; flex-wrap: wrap; gap: 6px 16px; } .top nav a { font-size: 14px; white-space: nowrap; } }

  /* en överrad per avsnitt */
  .eyebrow, .badge { font-family: var(--font-body); font-size: 14.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: none; color: var(--accent-2); margin: 0 0 14px; background: none; border: 0; padding: 0; border-radius: 0; display: block; width: auto; opacity: 1; animation: none; }
  .eyebrow .dot, .badge .dot { display: none; }
  .eyebrow.center { justify-content: flex-start; text-align: left; }
  h1.section-title, h2.section-title { font-size: var(--t-h2); margin-bottom: 16px; }
  .section-lead { color: var(--text-dim); font-size: var(--t-ingress); line-height: 1.55; max-width: 640px; }
  .section-lead + .section-lead { margin-top: 14px; }

  /* mjuk in-tonning från synligt läge, aldrig dolt */
  .js .reveal { opacity: 1; transform: none; }
  .reveal.in { animation: tona .5s ease both; }
  @keyframes tona { from { opacity: .6; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  /* sidfot */
  footer { border-top: 1px solid var(--border); padding: 56px 0 72px; text-align: left; }
  footer .wrap { max-width: 1120px; }
  footer .built { font-family: var(--font-display); font-size: 17px; font-weight: 700; display: inline-flex; margin-bottom: 14px; }
  footer .fstats { font-size: var(--t-liten); line-height: 1.7; color: var(--text-dim); }
  footer .fstats a { color: var(--text); font-weight: 600; text-decoration-color: var(--border); }
  footer .footer-projects { max-width: none; margin-top: 36px; padding-top: 28px; }
  footer .footer-projects h2 { font-family: var(--font-body); font-size: var(--t-liten); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); margin: 0 0 14px; }
  footer .footer-projects ul { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 32px; }
  footer .footer-projects li { font-size: var(--t-liten); }
  footer .footer-projects a { color: var(--text); }

  /* juridisk brödtext */
  .legal { max-width: 740px; }
  .legal h1 { font-size: clamp(34px, 4.4vw, 46px); margin-bottom: 16px; }
  .legal h3 { font-size: var(--t-h3); margin: 40px 0 12px; padding-top: 26px; border-top: 1px solid var(--border); }
  .legal h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 44px; }
  .legal h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 26px 0 8px; }
  .legal p, .legal li { font-size: 16px; line-height: 1.65; }
  .legal p { margin: 0 0 14px; }
  .legal ul { margin: 0 0 16px 22px; display: flex; flex-direction: column; gap: 6px; }
  .legal a { color: var(--accent-2); }
  .lead-meta { font-family: var(--font-body); font-size: var(--t-liten); font-weight: 700; letter-spacing: 0.02em; text-transform: none; color: var(--accent-2); margin: 0 0 14px; }
  .legal .section-lead { margin-bottom: 8px; }
  .kort { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; margin: 0 0 20px; }
  .kort h4 { margin-top: 0; }
  .kort .fakta { margin-bottom: 0; }
  .legal ul.fakta, .fakta { list-style: none; margin: 12px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .fakta li { display: grid; grid-template-columns: 190px 1fr; gap: 12px; font-size: var(--t-brod); }
  .fakta li b { font-family: var(--font-body); font-size: var(--t-liten); letter-spacing: 0; text-transform: none; color: var(--text-dim); font-weight: 700; padding-top: 2px; }
  @media (max-width: 640px) { .fakta li { grid-template-columns: 1fr; gap: 0; } }
  .varning { border: 1px solid var(--border); border-left: 3px solid var(--red); background: var(--surface); padding: 20px 24px; margin: 0 0 20px; border-radius: 14px; }
  .varning h4 { margin-top: 0; color: var(--red); }
  .prisrad { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: var(--t-brod); }
  .prisrad:last-child { border-bottom: 0; }
  .prisrad b { font-weight: 700; }
  .prisrad span { font-family: var(--font-body); font-size: var(--t-brod); font-variant-numeric: tabular-nums; white-space: nowrap; }

  /* ===== om.html: sidspecifikt ===== */
  .wrap.narrow { max-width: 1120px; }
  .section-head, .section-head.center { max-width: 720px; text-align: left; margin-bottom: 0; }
  .section-head.center .section-lead { margin-left: 0; margin-right: 0; }
  .section-head + * { margin-top: 44px; }

  .knapp, .btn-lg.btn-primary-lg { display: inline-flex; align-items: center; background: var(--accent); color: #17130B; padding: 15px 26px; border-radius: 6px; font-family: var(--font-display); font-weight: 700; font-size: 17px; border: 0; text-decoration: none; transition: filter .18s; }
  .btn-lg.btn-primary-lg:hover { background: var(--accent); filter: brightness(1.08); transform: none; }

  /* hero */
  .hero { padding: clamp(40px, 6vw, 72px) 0 var(--luft); min-height: 0; display: block; }
  .hero h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; max-width: 22ch; margin: 0; opacity: 1; animation: none; }
  .hero .grad { color: var(--accent-2); display: block; }
  .hero p.sub { font-size: var(--t-ingress); line-height: 1.55; max-width: 640px; margin-top: 24px; opacity: 1; animation: none; }
  .hero p.sub strong { color: var(--text); font-weight: 700; }
  .hero p.sub + .cta-row { margin-top: 32px; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; opacity: 1; animation: none; }
  .hero p.sub.liten { font-size: var(--t-liten); margin-top: 18px; max-width: 560px; }
  .hero p.sub.liten strong { font-weight: 700; }
  .hero-grid { display: block; }

  /* Strukturens fyra delar */
  .fyra { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .fyra li { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
  .fyra b { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; }
  .fyra span { color: var(--text-dim); font-size: 15.5px; line-height: 1.5; }
  .fyra em { font-style: normal; margin-top: auto; padding-top: 10px; color: var(--text); font-size: 14px; font-weight: 700; }
  @media (max-width: 960px) { .fyra { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .fyra { grid-template-columns: minmax(0, 1fr); } }

  /* Lerverk-teamet som roller i avdelningar: ett kort per roll */
  .rack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
  .pbadge { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
  .pbadge::before, .pbadge::after { display: none; }
  .pbadge .vem { display: flex; align-items: center; gap: 12px; }
  .pbadge .vem .por { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  .pbadge h3 { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.015em; margin: 0; }
  .pbadge .avd { font-size: var(--t-liten); color: var(--accent); font-weight: 700; margin: 0; }
  .pbadge .roll { font-size: var(--t-liten); color: var(--text-dim); margin: 0; }
  .pbadge p { font-size: var(--t-liten); line-height: 1.55; color: var(--text); margin: 6px 0 0; }
  .pbadge .meta { margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--text-dim); }
  @media (max-width: 960px) { .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .rack { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

  /* körningens tabell */
  .section-lead strong { color: var(--text); font-weight: 700; }
  .tablewrap { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  table.liggare { min-width: 0; width: 100%; font-size: var(--t-liten); }
  table.liggare thead th { font-family: var(--font-body); font-size: 13.5px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--text-dim); padding: 16px 22px; border-bottom: 1px solid var(--border); }
  table.liggare tbody td { padding: 20px 22px; border-bottom: 1px solid var(--border); }
  table.liggare td.kv { font-size: var(--t-liten); line-height: 1.55; color: var(--text); max-width: 40ch; }
  table.liggare td.kv.tom { color: var(--text-dim); }
  table.liggare .nm img { width: 40px; height: 40px; border-radius: 50%; }
  table.liggare .nm b { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
  table.liggare .nm span { font-size: 13.5px; }
  table.liggare td.st { font-family: var(--font-body); font-size: var(--t-liten); font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
  table.liggare td.st::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: currentColor; }
  table.liggare tr.rejected { background: var(--surface-2); }
  table.liggare tr.rejected .nm b { text-decoration-thickness: 1.5px; }
  @media (max-width: 760px) {
    table.liggare thead { display: none; }
    table.liggare, table.liggare tbody, table.liggare tr, table.liggare td { display: block; width: 100%; }
    table.liggare tbody tr { padding: 20px 20px 6px; border-bottom: 1px solid var(--border); }
    table.liggare tbody tr:last-child { border-bottom: 0; }
    table.liggare tbody td { border: 0; padding: 0 0 14px; max-width: none; }
    table.liggare td.kv::before { content: attr(data-l); display: block; font-size: 13.5px; font-weight: 700; color: var(--text-dim); margin-bottom: 2px; }
    table.liggare td.kv.tom { display: none; }
    table.liggare td.st { padding-bottom: 14px; }
  }

  /* problem och så funkar det: tre kolumner under en linje */
  .problems, .flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border: 0; background: none; border-radius: 0; overflow: visible; }
  .prob, .flow-step { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 26px 0 0; }
  .prob .pi { display: none; }
  .prob h4, .flow-step h4 { font-size: var(--t-h3); margin: 0 0 10px; }
  .prob p, .flow-step p { font-size: var(--t-brod); line-height: 1.55; color: var(--text-dim); }
  .flow-step .n { font-family: var(--font-body); font-size: var(--t-liten); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--accent-2); margin-bottom: 10px; }
  .flow-step { border-right: 0; }
  .flow-step h4 { margin: 0 0 10px; }
  @media (max-width: 820px) { .problems, .flow { grid-template-columns: 1fr; gap: 28px; } }

  /* priser */
  .pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px 30px 30px; }
  .price-card.featured { border: 1.5px solid var(--accent); }
  .price-ribbon { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #17130B; font-family: var(--font-body); font-size: 13.5px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 4px 12px; border-radius: 999px; }
  .price-name { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.025em; }
  .price-for { font-size: var(--t-liten); line-height: 1.5; min-height: 44px; }
  .price-amount { font-size: 38px; font-weight: 700; margin: 18px 0 0; }
  .price-amount .per { font-size: var(--t-liten); }
  .price-list { margin: 22px 0 28px; gap: 12px; }
  .price-list li { font-size: var(--t-liten); line-height: 1.5; color: var(--text); }
  .price-cta { text-align: left; padding: 0; border: 0; border-radius: 0; font-family: var(--font-body); font-size: 16px; font-weight: 700; }
  .price-cta.outline { background: none; color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .price-cta.outline:hover { background: none; transform: none; text-decoration-color: var(--accent); }
  .price-cta.solid { display: inline-block; text-align: center; padding: 14px 22px; border-radius: 6px; background: var(--accent); color: #17130B; }
  .price-cta.solid:hover { background: var(--accent); filter: brightness(1.08); transform: none; }
  .price-card .price-cta.solid { width: 100%; }
  .price-note { text-align: left; font-size: var(--t-liten); line-height: 1.6; margin-top: 28px; max-width: 720px; }
  .price-note + .price-note { margin-top: 12px !important; }
  @media (max-width: 920px) { .pricing { grid-template-columns: 1fr; } .price-for { min-height: 0; } }

  /* förbrukningen */
  .panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 30px; max-width: 760px; font-size: var(--t-brod); }
  .panel .grupp { display: grid; gap: 12px; border-top: 1px solid var(--border); margin-top: 20px; padding-top: 20px; }
  .panel .rad { display: flex; justify-content: space-between; gap: 20px; font-size: var(--t-brod); }
  .panel .rad b { white-space: nowrap; }
  .panel p { line-height: 1.6; }
  #forbrukning .section-head ~ p { max-width: 760px; }
  h2.section-title.lag { font-size: var(--t-h3); }
  #forbrukning .section-head + .panel + .section-head { margin-top: 64px; }

  /* upplägg och byråer */
  .opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .opt-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px 30px; }
  .opt-card .opt-icon { display: none; }
  .opt-card h3 { font-size: var(--t-h3); }
  .opt-card .opt-tag { font-family: var(--font-body); font-size: var(--t-liten); letter-spacing: 0; text-transform: none; color: var(--text-dim); margin-top: 6px; }
  .opt-card p { font-size: var(--t-liten); line-height: 1.6; color: var(--text); margin-top: 16px; }
  .opt-card ul { margin-top: 16px; gap: 10px; }
  .opt-card li { font-size: var(--t-liten); line-height: 1.55; color: var(--text-dim); }
  .opt-foot { text-align: left; font-size: var(--t-liten); margin-top: 28px; color: var(--text-dim); }
  .opt-foot a, .opt-card a, .fa a, .contact a:not(.btn-lg) { color: var(--accent-2); }
  @media (max-width: 800px) { .opt-grid { grid-template-columns: 1fr; } }

  /* vanliga frågor */
  .faq { max-width: 760px; margin: 44px 0 0; gap: 10px; }
  .faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 24px; }
  .faq summary { font-family: var(--font-display); font-weight: 700; font-size: 17.5px; letter-spacing: -0.01em; padding: 20px 0; }
  .faq .fa { font-size: var(--t-brod); line-height: 1.6; padding: 0 0 22px; }

  /* kontakt */
  .contact { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: clamp(28px, 4vw, 44px); max-width: 760px; }
  .contact h2 { font-size: var(--t-h2); margin: 0; }
  .contact p { font-size: var(--t-ingress); line-height: 1.55; margin: 14px 0 0; max-width: 560px; color: var(--text-dim); }
  .contact .btn-lg { margin-top: 28px; }
  .contact .contact-mail { font-size: var(--t-liten); margin-top: 18px; }
  .contact + .contact { margin-top: 20px; }
  .contact + .contact h2 { font-size: var(--t-h3) !important; }
  .contact + .contact p { font-size: var(--t-brod); }

  /* listor och frågor: markörer som showcase.css hade */
  .price-list { list-style: none; display: flex; flex-direction: column; }
  .price-list li { position: relative; padding-left: 24px; }
  .price-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
  .price-cta { margin-top: auto; display: block; text-decoration: none; }
  .price-cta.outline { text-decoration: underline; text-decoration-color: var(--border); text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .opt-card ul { list-style: none; display: flex; flex-direction: column; }
  .opt-card li { position: relative; padding-left: 19px; }
  .opt-card li::before { content: '\00B7'; position: absolute; left: 5px; color: var(--accent); font-weight: 700; }
  .faq { display: flex; flex-direction: column; }
  .faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: '+'; color: var(--accent-2); font-size: 22px; line-height: 1; flex-shrink: 0; }
  .faq details[open] summary::after { content: '\2212'; }
