/* Inhouse Automations — brand från befintlig sajt:
   light-ash #eeedeb, ash #d9d5d1, off-black #262626, cioccolato #592a0f
   Rubriker: Libre Baskerville. Brödtext: Roboto. */

:root {
  --light-ash: #eeedeb;
  --ash: #d9d5d1;
  --off-black: #262626;
  --brown: #592a0f;
  --white: #fff;
  --font-heading: "Libre Baskerville", Georgia, serif;
  --font-body: Roboto, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 4.5rem; }

body {
  font-family: var(--font-body);
  color: var(--off-black);
  background: var(--light-ash);
  line-height: 1.65;
  font-size: 1.0625rem;
}

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

.container {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 44rem; }
.narrow-p { max-width: 44rem; }

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--off-black);
}

h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p + p { margin-top: 1rem; }
h2 + p { margin-top: 0; }

a { color: var(--brown); }

.kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown);
  margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  background: var(--light-ash);
  border-bottom: 1px solid var(--ash);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--off-black);
  text-decoration: none;
}

.site-nav { display: none; }

@media (min-width: 56rem) {
  .site-nav { display: flex; gap: 1.5rem; }
  .site-nav a {
    color: var(--off-black);
    text-decoration: none;
    font-size: 0.9375rem;
  }
  .site-nav a:hover { color: var(--brown); text-decoration: underline; }
  .site-nav a[aria-current="page"] { color: var(--brown); }
}

/* Knappar */
.btn {
  display: inline-block;
  border: 2px solid var(--brown);
  color: var(--brown);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background 0.15s, color 0.15s;
}

.btn:hover, .btn:focus-visible {
  background: var(--brown);
  color: var(--light-ash);
}

.btn-primary {
  background: var(--brown);
  color: var(--light-ash);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: transparent;
  color: var(--brown);
}

.btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.btn-invert {
  border-color: var(--light-ash);
  color: var(--light-ash);
}

.btn-invert:hover, .btn-invert:focus-visible {
  background: var(--light-ash);
  color: var(--brown);
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero .lead {
  font-size: 1.125rem;
  max-width: 40rem;
  margin-top: 1.25rem;
  opacity: 0.85;
}

.cta-block { margin-top: 2rem; }

.cta-note {
  font-size: 0.875rem;
  opacity: 0.75;
  margin-top: 0.75rem;
  max-width: 34rem;
}

.hero-compact { padding: 3rem 0 2.5rem; }

/* Sektioner */
.section { padding: 3.5rem 0; }

.section-alt { background: var(--ash); }

.section-cta {
  background: var(--brown);
  color: var(--light-ash);
}

.section-cta h2 { color: var(--light-ash); }
.section-cta .cta-note { opacity: 0.8; }

/* Kort */
.card {
  background: var(--white);
  border: 1px solid var(--ash);
  padding: 1.5rem;
}

.section-alt .card { border-color: rgba(38, 38, 38, 0.1); }

.card ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.card li + li { margin-top: 0.4rem; }

.two-col {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (min-width: 48rem) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

/* Steg */
.steps {
  list-style: none;
  counter-reset: steg;
  margin-top: 1.5rem;
}

.steps > li {
  counter-increment: steg;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 2rem;
}

.steps > li::before {
  content: counter(steg);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brown);
  color: var(--light-ash);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
}

.step-meta {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}

/* Moduler */
.modules {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 48rem) {
  .modules { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .modules { grid-template-columns: repeat(3, 1fr); }
}

/* Priser */
.pricing {
  display: grid;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

@media (min-width: 64rem) {
  .pricing { grid-template-columns: repeat(3, 1fr); }
}

.price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown);
}

.price span {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--off-black);
  opacity: 0.7;
}

.price-core {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.25rem 0 0.75rem;
}

.fine-print {
  font-size: 0.9375rem;
  opacity: 0.85;
  max-width: 44rem;
  margin-bottom: 1rem;
}

/* Löptext på undersidor */
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; margin: 1rem 0; }
.prose li + li { margin-top: 0.4rem; }

/* Företagsuppgifter */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid rgba(38, 38, 38, 0.1);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 1.5rem;
}

.facts dt {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-top: 0.75rem;
}

.facts dt:first-child { margin-top: 0; }

@media (min-width: 40rem) {
  .facts { grid-template-columns: 12rem 1fr; gap: 0.6rem 1rem; }
  .facts dt { margin-top: 0; padding-top: 0.15rem; }
}

/* FAQ */
details {
  background: var(--white);
  border: 1px solid var(--ash);
  margin-top: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 1.25rem;
  list-style-position: inside;
}

summary:hover { color: var(--brown); }

details > p { padding: 0 1.25rem 1.25rem; }

/* Footer */
.site-footer {
  background: var(--off-black);
  color: var(--light-ash);
  padding: 2.5rem 0;
}

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.trust-strip li { position: relative; }

.site-footer a { color: var(--light-ash); }

.footer-company {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 237, 235, 0.15);
  font-size: 0.875rem;
}

.footer-company:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.footer-company p + p { margin-top: 0.25rem; opacity: 0.8; }

.footer-lead { font-weight: 500; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-nav a { text-decoration: none; opacity: 0.9; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { text-decoration: underline; opacity: 1; }

.copyright {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  opacity: 0.6;
}

/* Större skärmar */
@media (min-width: 48rem) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 1.875rem; }
  .hero { padding: 5rem 0 5.5rem; }
  .hero .lead { font-size: 1.25rem; }
  .section { padding: 4.5rem 0; }
}

@media (min-width: 64rem) {
  h1 { font-size: 3.25rem; }
}
