/* Underlag.se – publika säljsidor (laddas bara i den publika layouten)
   Design och utveckling: Ludwig Lindström (ludwig.se) */

.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.section-head { max-width: 46rem; }
.section-head.row-between { max-width: none; }
.section-head .lead { margin-bottom: 0; }

/* Knappar på mörk bakgrund */
.btn-light { background: #fff; color: var(--brand-900); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-950); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

/* Hero */
.hero-pro { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 10%, var(--brand-50), transparent 60%), var(--bg); }
.hero-pro h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); max-width: 13em; letter-spacing: -.02em; }
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .3rem .9rem .3rem .3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; font-weight: 500; text-decoration: none; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.pill:hover { border-color: var(--brand-600); color: var(--brand-900); }
.pill-tag { background: var(--brand-700); color: #fff; border-radius: 999px; padding: .15rem .65rem; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.trust-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--ink-2); font-size: .95rem; }
.trust-list li { display: inline-flex; align-items: center; gap: .45rem; }
.trust-list svg { width: 18px; height: 18px; color: var(--brand-600); flex: none; }

.hero-visual { position: relative; padding: 1rem 0; }
.float-card { position: absolute; display: flex; align-items: center; gap: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; font-size: .88rem; line-height: 1.4; box-shadow: 0 18px 40px -16px rgba(24, 24, 27, .35); }
.float-card b { font-weight: 600; color: var(--brand-950); }
.float-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; flex: none; }
.float-icon svg { width: 18px; height: 18px; }
.float-a { left: -1.5rem; top: 47%; }
.float-b { right: -1rem; bottom: 12%; }
@media (max-width: 1100px) { .float-a { left: 0; } .float-b { right: 0; } }
@media (max-width: 520px) { .float-card { display: none; } }

/* Tjänsteremsa */
.service-strip { border-block: 1px solid var(--line); background: var(--surface); }
.service-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.6rem; padding: 1.1rem 0; font-size: .95rem; }
.service-strip a { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.service-strip a:hover { color: var(--brand-800); }
.service-strip svg { width: 18px; height: 18px; color: var(--brand-600); }

/* Före/efter */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare-col { border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); }
.compare-before { background: var(--surface-2); }
.compare-after { background: var(--surface); border: 2px solid var(--brand-700); box-shadow: var(--shadow); }
.compare-col li { margin: .65rem 0; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

/* Tjänstekort */
.service-card { display: flex; flex-direction: column; }
.service-card .checklist { margin-bottom: 1.25rem; }
.checklist-sm li { font-size: .93rem; margin: .3rem 0; }
.card-more { margin-top: auto; color: var(--brand-700); font-weight: 600; }
.service-card:hover .card-more { color: var(--brand-900); }

/* Funktionssektioner med skärmbild */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-reverse > :first-child { order: 2; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } .feature-reverse > :first-child { order: 0; } }

.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -28px rgba(24, 24, 27, .35); overflow: hidden; }
.mock-bar { display: flex; gap: .4rem; padding: .75rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-body { padding: 1.25rem; display: grid; gap: .65rem; }
.mock-title { font-family: var(--serif); font-size: 1.15rem; color: var(--brand-950); margin-bottom: .25rem; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.mock-file { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-file svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.bubble { max-width: 85%; padding: .7rem .9rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.bubble b { display: block; font-size: .78rem; color: var(--brand-700); margin-bottom: .15rem; }
.bubble-them { background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble-me { background: var(--brand-700); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }

/* Mörk sektion */
.section-dark { background: var(--brand-950); color: #e4e4e7; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #fbbf24; }
.section-dark .lead { color: #d4d4d8; }
.section-dark .icon-circle { background: rgba(255, 255, 255, .08); color: #fbbf24; }
.sec-item h3 { font-size: 1.15rem; }
.sec-item p { color: #d4d4d8; font-size: .95rem; }

/* Vanliga frågor */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .faq-layout { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 600; color: var(--brand-950); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand-700); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-2); max-width: 40em; }

/* Avslutande uppmaning */
.cta-band { background: var(--brand-800); color: #e4e4e7; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band-inner > div:first-child { max-width: 36rem; }

/* Tjänstesidan */
.service-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.service-nav a { padding: .45rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; background: var(--surface); }
.service-nav a:hover { border-color: var(--brand-700); color: var(--brand-900); }
.service-detail { scroll-margin-top: 90px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding: 2rem 0; border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: 0; }
.service-detail h2 { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.service-detail h2 .icon-circle { margin: 0; }
@media (max-width: 880px) { .service-detail { grid-template-columns: 1fr; } }
.split-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.split-roles > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.split-roles h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .35rem; }
.split-roles .we { background: var(--brand-50); }
.split-roles .we h3 { color: var(--brand-700); }
.split-roles ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.split-roles li { margin: .25rem 0; }
@media (max-width: 520px) { .split-roles { grid-template-columns: 1fr; } }

.price-xl { font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1.1; }
.price-card .checklist b { font-weight: 600; }
.feature-top { align-items: start; }

/* Kommer snart */
.soonlist { list-style: none; padding: 0; margin: 0; color: var(--ink-2); }
.soonlist li { padding-left: 1.8rem; position: relative; margin: .45rem 0; }
.soonlist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px dashed var(--line-2); }
.service-card .badge-soon, .service-detail .badge-soon { margin-left: 0; }
.service-card h3 .badge-soon { display: table; margin-top: .4rem; font-size: .75rem; }
.badge-soon { background: var(--blue-bg); color: var(--blue-ink); border: 1px solid #e4e4e7; font-size: .82rem; }
.badge-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-ink); opacity: .7; }
.service-card h3 .badge-soon { font-size: .8rem; }
.soonlist li::before { border-color: #e4e4e7; }

/* Demoläge: demokonton på inloggningssidan */
.demo-logins { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.demo-logins dl { display: grid; gap: .2rem; margin: 0; }
.demo-logins dt { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: .5rem; }
.demo-logins dd { margin: 0; }
.demo-logins code { user-select: all; }

/* På gång (roadmap) */
.roadmap-label { font-size: 1rem; margin: 2rem 0 1rem; }
.roadmap-grid { margin-top: 0; }
.roadmap-item h4 { font-size: 1.05rem; margin: .9rem 0 .4rem; }
.roadmap-item p { font-size: .95rem; }
.roadmap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.roadmap-list li { display: flex; gap: .75rem; align-items: flex-start; }
.roadmap-list svg { width: 22px; height: 22px; flex: none; margin-top: .15rem; color: var(--brand-800); }
.roadmap-list b { display: block; }
.roadmap-list span { color: var(--muted); font-size: .95rem; }
.roadmap-list b { color: var(--ink); }
.roadmap-note { margin-top: 2rem; }

/* Flytt från andra program */
.move-sources { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.move-sources li { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .92rem; font-weight: 600; color: var(--ink); }
.move-points { display: grid; gap: 1rem; }
.move-point { display: flex; gap: .9rem; align-items: flex-start; }
.move-point h3 { font-family: var(--sans); font-size: 1.02rem; margin: 0 0 .15rem; }
.move-no { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-800); color: #fff; font-weight: 700; font-size: .9rem; }
.move-free { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand-800); }
.move-free svg { width: 20px; height: 20px; }
.move-mock-progress { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--muted); }
.move-mock-progress i { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; display: block; }
.move-mock-progress b { display: block; width: 71%; height: 100%; background: var(--brand-800); }
.move-mock-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.move-mock-summary div { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; display: grid; }
.move-mock-summary b { font-family: var(--serif); font-size: 1.3rem; color: var(--brand-950); }
.move-mock-summary span { font-size: .78rem; color: var(--muted); }

/* Säljande startsida */
.hero-offer { margin: 1rem 0 0; font-size: .95rem; font-weight: 600; color: var(--brand-800); }
.cmp { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.15fr; }
.cmp-row > span { padding: .9rem 1rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); display: flex; align-items: center; gap: .5rem; }
.cmp-head > span { border-top: 0; font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.cmp-q { font-weight: 600; color: var(--ink) !important; }
.cmp-row > .cmp-us { background: var(--brand-50); color: var(--brand-950); font-weight: 600; }
.cmp-head > .cmp-us { background: var(--brand-700); color: #fff; font-size: .95rem; }
.cmp-head .logo-mark { width: 22px; height: 22px; flex: none; }
.cmp-us > svg { width: 18px; height: 18px; flex: none; color: var(--brand-700); }
@media (max-width: 760px) {
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; padding: .4rem 0; border-top: 1px solid var(--line); }
  .cmp-row:first-of-type + .cmp-row { border-top: 0; }
  .cmp-row > span { border-top: 0; padding: .3rem 1rem; display: block; }
  .cmp-row > span[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 500; font-size: .85rem; }
  .cmp-row > .cmp-us { margin: .2rem .6rem .4rem; border-radius: var(--radius-sm); padding: .5rem .6rem; }
  .cmp-row > .cmp-us > svg { display: none; }
  .cmp-q { padding-top: .6rem !important; }
}
.offer { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.offer-box { background: var(--surface); border: 2px solid var(--brand-700); border-radius: 18px; padding: 1.75rem; box-shadow: var(--shadow); }
.offer-price { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--brand-950); margin-bottom: 1rem; }
.offer-price span { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-left: .4rem; }
@media (max-width: 820px) { .offer { grid-template-columns: 1fr; } }
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem 16px calc(.65rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(24, 24, 27, .08); font-weight: 600; font-size: .95rem; color: var(--brand-950); }
  body:has(.sticky-cta) { padding-bottom: 72px; }
}

/* Två sätt att använda Underlag.se */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.path-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--shadow); }
.path-card:first-child { border: 2px solid var(--brand-700); }
.path-card h3 { margin: 0; font-size: 1.4rem; }
.path-card p { margin: 0; color: var(--ink-2); }
.path-card .checklist { margin: 0; }
.path-card .btn { align-self: flex-start; margin-top: auto; }
.path-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: flex; align-items: center; justify-content: center; }
.path-icon svg { width: 24px; height: 24px; }

/* Automatiskt: vad tjänsten sköter åt kunden */
.auto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
@media (max-width: 960px) { .auto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .auto-grid { grid-template-columns: minmax(0, 1fr); } }
.auto-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.auto-item h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.auto-ai { display: flex; gap: 1.25rem; align-items: center; margin-top: 1rem; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--brand-900); color: #e4e4e7; }
.auto-ai h3 { color: #fff; font-size: 1.25rem; margin: .35rem 0 .3rem; }
.auto-ai p { color: #d4d4d8; max-width: 52em; }
.auto-ai-mark { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fbbf24; }
.auto-ai-mark svg { width: 28px; height: 28px; }
.auto-ai-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fbbf24; }
@media (max-width: 600px) { .auto-ai { flex-direction: column; align-items: flex-start; padding: 1.25rem; } }
