/* Publik startsida */
:root {
  --ink: #142033;
  --ink-2: #44506a;
  --muted: #66718a;
  --line: #e1e6ee;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --primary: #1f4e79;
  --primary-hover: #173c5e;
  --primary-soft: #e8eff7;
  --primary-ink: #0f2e4b;
  --ok: #1e8e3e;
  --todo: #d93025;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px -12px rgba(16, 24, 40, .18);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body.lp { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; }
.lp a { color: var(--primary); }
.lp h1, .lp h2, .lp h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.lp p { margin: 0; }
.lp ul, .lp ol { margin: 0; padding: 0; list-style: none; }
.lp a:focus-visible { outline: 3px solid rgba(31, 78, 121, .4); outline-offset: 2px; border-radius: 4px; }

.lp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- knappar */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: .98rem;
  background: var(--primary); color: #fff !important; text-decoration: none;
  border: 1px solid var(--primary); transition: background .15s, border-color .15s;
}
.lp-btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.lp-btn-sm { padding: 8px 14px; font-size: .92rem; }
/* Registrering har egen färg (grön) så att den skiljer sig från Logga in (blå). */
.lp-btn-register { background: #1e7a46; border-color: #1e7a46; }
.lp-btn-register:hover { background: #17633a; border-color: #17633a; }
.lp-trial { margin-top: 14px !important; font-size: .92rem; color: var(--muted); }
.lp-btn-ghost { background: transparent; color: var(--primary) !important; border-color: var(--line); }
.lp-btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary-soft); }
.lp-btn-light { background: #fff; color: var(--primary-ink) !important; border-color: #fff; }
.lp-btn-light:hover { background: #e8eff7; border-color: #e8eff7; }
.lp-btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .45); }
.lp-btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* --- sidhuvud */
.lp-top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.lp-top-inner { height: 68px; display: flex; align-items: center; gap: 32px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink) !important; text-decoration: none; }
.lp-logo { display: block; height: 30px; width: auto; }
.lp-foot .lp-logo { height: 24px; }
.lp-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.lp-nav { display: flex; gap: 4px; }
.lp-nav a { color: var(--ink-2); text-decoration: none; font-size: .94rem; padding: 6px 10px; border-radius: 6px; }
.lp-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.lp-top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lp-link { color: var(--ink-2) !important; text-decoration: none; font-size: .94rem; font-weight: 500; }
.lp-link:hover { color: var(--primary) !important; }

/* --- hero */
.lp-hero { padding: 88px 0 72px; background: linear-gradient(180deg, #f3f6fa 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.lp-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px !important; }
.lp-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -.02em; }
.lp-lead { font-size: 1.15rem; color: var(--ink-2); margin-top: 20px !important; max-width: 560px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px !important; color: var(--muted); font-size: .9rem; }
.lp-proof li { position: relative; padding-left: 20px; }
.lp-proof li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* --- produktbild: som ett fotografi med vit ram, lätt böjt (skuggade hörn) och roterat */
.lp-hero { overflow: hidden; }
.lp-photo-wrap { position: relative; width: min(400px, 100%); justify-self: center; transform: rotate(20deg); transform-origin: 50% 50%; margin: 56px auto 72px; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.lp-photo-wrap:hover { transform: rotate(17deg) translateY(-6px); }
/* Skuggorna under de uppböjda hörnen ligger bakom fotot (negativt z-index i omslagets staplingskontext). */
.lp-photo-wrap::before, .lp-photo-wrap::after {
  content: ""; position: absolute; z-index: -1; bottom: 16px; width: 46%; height: 24%;
  background: transparent; box-shadow: 0 22px 18px rgba(16, 24, 40, .34);
}
.lp-photo-wrap::before { left: 12px; transform: rotate(-5deg) skew(-10deg); }
.lp-photo-wrap::after { right: 12px; transform: rotate(5deg) skew(10deg); }
.lp-photo {
  position: relative; background: #fff; padding: 14px 14px 22px; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .14), 0 0 0 1px rgba(16, 24, 40, .05), 0 26px 50px -24px rgba(16, 24, 40, .45);
}
/* Ljus och skugga över ytan ger känslan av papper som buktar något. */
.lp-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 3px; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .28) 70%, rgba(255, 255, 255, 0) 82%),
    linear-gradient(180deg, rgba(16, 24, 40, 0) 70%, rgba(16, 24, 40, .06) 100%),
    linear-gradient(90deg, rgba(16, 24, 40, .05) 0%, rgba(16, 24, 40, 0) 12%, rgba(16, 24, 40, 0) 88%, rgba(16, 24, 40, .05) 100%);
}
.lp-mock { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
@media (max-width: 1000px) { .lp-photo-wrap { transform: rotate(12deg); max-width: 520px; margin: 24px auto 48px; } .lp-photo-wrap:hover { transform: rotate(10deg) translateY(-4px); } }
@media (max-width: 640px) { .lp-photo-wrap { transform: rotate(6deg); width: calc(100% - 40px); margin: 16px auto 40px; } .lp-photo-wrap:hover { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .lp-photo-wrap { transition: none; } }
.lp-mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.lp-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #dfe3ea; }
.lp-mock-body { padding: 22px 24px 24px; }
.lp-mock-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.lp-mock-kicker { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.lp-mock-title { font-weight: 650; font-size: 1.08rem; margin-top: 2px; }
.lp-mock-count { font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
.lp-progress { height: 6px; background: #edf0f4; border-radius: 99px; margin: 12px 0 16px; overflow: hidden; }
.lp-progress-fill { display: block; height: 100%; width: 69%; background: var(--ok); border-radius: 99px; }
.lp-mock-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #f0f2f6; font-size: .93rem; }
.lp-mock-list li:first-child { border-top: 0; }
.lp-mock-list em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }
.dot.todo { background: var(--todo); }
.lp-mock-sign { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: #e6f4ea; color: #145c2a; }
.lp-mock-sign strong { display: block; font-size: .9rem; }
.lp-mock-sign span { font-size: .8rem; color: #2f6b40; }
.lp-check { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }

/* --- områden */
.lp-strip { padding: 28px 0; border-bottom: 1px solid var(--line); }
.lp-strip-label { text-align: center; font-size: .86rem; color: var(--muted); margin-bottom: 14px !important; }
.lp-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-tags li { font-size: .86rem; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }

/* --- sektioner */
.lp-section { padding: 96px 0; }
.lp-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-section-head { max-width: 680px; margin-bottom: 48px; }
.lp-section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 700; letter-spacing: -.015em; }
.lp-section-head > p:not(.lp-eyebrow) { color: var(--ink-2); font-size: 1.06rem; margin-top: 16px; }

.lp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.lp-card h3 { font-size: 1.1rem; margin-top: 18px; }
.lp-card p { color: var(--ink-2); margin-top: 8px; font-size: .97rem; }
.lp-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.lp-icon svg { width: 24px; height: 24px; }

/* --- steg */
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.lp-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.lp-step-no { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .92rem; }
.lp-steps h3 { font-size: 1.04rem; margin-top: 16px; }
.lp-steps p { color: var(--ink-2); font-size: .94rem; margin-top: 8px; }

.lp-phases { margin-top: 56px; }
.lp-phases-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lp-phases ol { display: flex; gap: 4px; }
.lp-phases li {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 14px 22px 14px 26px; min-height: 72px; background: var(--primary); color: #fff;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}
.lp-phases li:first-child { padding-left: 16px; border-radius: 8px 0 0 8px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.lp-phases li:nth-child(even) { background: #2a5f8f; }
.lp-phases strong { font-size: .88rem; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; }
.lp-phases span { font-size: .76rem; opacity: .85; }
.lp-phases-note { color: var(--muted); font-size: .9rem; margin-top: 14px !important; }

/* --- innehåll */
.lp-chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lp-chapter-group { border-top: 3px solid var(--primary); padding-top: 18px; }
.lp-chapter-group h3 { font-size: 1rem; margin-bottom: 12px; }
.lp-chapter-group li { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--ink-2); font-size: .95rem; border-bottom: 1px solid #f0f2f6; }
.lp-chapter-group li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9fb3c8; flex: none; }

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.lp-features h3 { font-size: 1rem; }
.lp-features p { color: var(--ink-2); font-size: .94rem; margin-top: 6px; }

/* --- roller */
.lp-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.lp-roles article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.lp-roles h3 { font-size: .98rem; color: var(--primary); }
.lp-roles p { color: var(--ink-2); font-size: .9rem; margin-top: 8px; }

/* --- säkerhet */
.lp-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.lp-split .lp-section-head { margin-bottom: 0; }
.lp-checklist { display: grid; gap: 4px; }
.lp-checklist li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.lp-checklist li:last-child { border-bottom: 0; }
.lp-checklist li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 11px; height: 6px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.lp-checklist strong { color: var(--ink); }

/* --- priser */
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-pricing { background: var(--bg-alt); border-top: 1px solid var(--line); }
.lp-price-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lp-price { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; }
.lp-price th, .lp-price td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lp-price tbody tr:last-child > * { border-bottom: 0; }
.lp-price thead th { padding-top: 24px; padding-bottom: 18px; background: #fafbfd; border-bottom: 2px solid var(--line); }
.lp-price thead td { background: #fafbfd; border-bottom: 2px solid var(--line); }
.lp-price thead th + th, .lp-price td + td { border-left: 1px solid var(--line); }
.lp-plan { display: block; font-size: 1.1rem; font-weight: 700; color: var(--primary-ink); }
.lp-plan-for { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.lp-price tbody th { font-weight: 600; color: var(--ink-2); width: 24%; font-size: .9rem; }
.lp-price tbody th span { display: block; font-weight: 400; font-size: .8rem; color: var(--ok); margin-top: 2px; }
.lp-price-row td strong { font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lp-price-year td strong { font-size: 1.05rem; color: var(--ink-2); }
.lp-price td { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.lp-price-all td { color: var(--ink-2); font-size: .9rem; line-height: 1.7; background: #fbfcfe; }
.lp-price-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 24px; }
.lp-price-foot p { color: var(--muted); font-size: .9rem; max-width: 620px; }

/* --- kontakt */
.lp-contact { background: var(--primary-ink); color: #fff; padding: 80px 0; }
.lp-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.lp-contact h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.lp-contact p { color: #c9d6e6; margin-top: 12px; max-width: 600px; }
.lp-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* --- sidfot */
.lp-foot { padding: 32px 0; border-top: 1px solid var(--line); }
.lp-foot-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.lp-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-foot nav a { color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.lp-foot nav a:hover { color: var(--primary); }
.lp-foot p { margin-left: auto; color: var(--muted); font-size: .85rem; }

/* --- responsivt */
@media (max-width: 1100px) {
  .lp-phases ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
  .lp-phases li, .lp-phases li:first-child { clip-path: none; border-radius: 6px; padding: 12px 14px; min-height: 0; }
}
@media (max-width: 1000px) {
  .lp-nav { display: none; }
  .lp-hero-grid, .lp-split { grid-template-columns: 1fr; gap: 48px; }
  .lp-steps, .lp-chapters { grid-template-columns: repeat(2, 1fr); }
  .lp-roles { grid-template-columns: repeat(2, 1fr); }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-contact-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 16px; }
  .lp-top-inner { gap: 12px; }
  .lp-top-actions { gap: 12px; }
  .lp-top-actions a { white-space: nowrap; }
  .lp-brand { font-size: .95rem; }
  .lp-btn-sm { padding: 7px 12px; font-size: .88rem; }
  .lp-hero { padding: 56px 0 48px; }
  .lp-section { padding: 64px 0; }
  .lp-grid3, .lp-steps, .lp-chapters, .lp-roles, .lp-features { grid-template-columns: 1fr; }
  .lp-cta .lp-btn { flex: 1 1 100%; }
  .lp-foot p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Sidhuvudets knappar: aldrig radbrytning. Menyn och "Boka demo" döljs i tid så att Logga in och Registrera får plats. */
.lp-top-actions a { white-space: nowrap; }
@media (max-width: 1200px) { .lp-nav { display: none; } }
@media (max-width: 480px) { .lp-reg-long { display: none; } .lp-top-actions { gap: 10px; } .lp-top-inner { gap: 10px; } .lp-top-actions .lp-btn-sm { padding: 7px 10px; } }
@media (max-width: 360px) { .lp-top-actions .lp-link { display: none; } }
