/* Ragnar Energy – säljande landningssida */
:root {
  --navy: #0c1c2c;        /* mörk bakgrund / rubriker */
  --navy-soft: #16324a;
  --green: #16c47f;       /* accent: besparing/energi */
  --green-dark: #0fa869;
  --ink: #1a2733;         /* brödtext */
  --muted: #5a6b7a;       /* dämpad text */
  --bg: #ffffff;
  --bg-soft: #f4f8f7;     /* ljus sektionsbakgrund */
  --line: #e4ebe9;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(12, 28, 44, 0.10);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }

a { color: var(--green-dark); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.lead-intro { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.lead-intro p { color: var(--muted); font-size: 1.15rem; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; font-weight: 700; color: var(--green-dark); margin-bottom: 12px;
}

/* ---- Knappar ---- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-size: 1.05rem; font-weight: 700; font-family: inherit;
  padding: 16px 30px; border-radius: 999px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 24px rgba(22,196,127,.35); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-block { width: 100%; text-align: center; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,28,44,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; text-decoration: none; }
.brand span { color: var(--green); }
.site-header .btn { padding: 10px 22px; font-size: .95rem; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: #cfe0dc; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: #fff; }

/* ---- Hero ---- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(rgba(8,18,28,.78), rgba(8,18,28,.86)),
              url('/static/img/hero.jpg') center/cover no-repeat;
  padding: 0;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero-sub { font-size: 1.25rem; color: #d7e4e0; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 32px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-pill {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 12px 16px; min-width: 0;
}
.trust-pill b { display: block; color: var(--green); font-size: 1.25rem; }
.trust-pill span { font-size: .85rem; color: #cfe0dc; }

/* ---- Leadformulär (hero-kort) ---- */
.lead-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px;
}
.lead-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.lead-card .muted { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 13px 14px; font-size: 1rem; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.calc-result {
  background: var(--bg-soft); border: 1px dashed var(--green);
  border-radius: 10px; padding: 14px; margin: 4px 0 16px; text-align: center; display: none;
}
.calc-result.show { display: block; }
.calc-result b { color: var(--green-dark); font-size: 1.25rem; display: block; }
.calc-result span { font-size: .85rem; color: var(--muted); }
.form-msg { margin-top: 12px; font-weight: 600; text-align: center; }
.form-msg.ok { color: var(--green-dark); }
.form-msg.err { color: #d23f3f; }
.form-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---- Sifferkort / proof ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
}
.stat b { display: block; font-size: 2.4rem; color: var(--green-dark); font-weight: 800; line-height: 1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---- Generiska kortrutnät ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .ico { font-size: 1.8rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }

/* Problem-kort på mörk botten */
.problem { background: var(--navy); color: #cfe0dc; }
.problem h2 { color: #fff; }
.problem .lead-intro p { color: #aebfc9; }
.problem .card { background: var(--navy-soft); border-color: rgba(255,255,255,.08); box-shadow: none; }
.problem .card h3 { color: #fff; }
.problem .card p { color: #aebfc9; }

/* Lösning – checklista */
.solution-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; max-width: 820px; margin: 0 auto; }
.solution-list li { list-style: none; padding-left: 36px; position: relative; font-weight: 600; color: var(--ink); }
.solution-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}

/* ---- Steg ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; }
.step .num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; margin: 0 auto 14px;
}
.step p { color: var(--muted); margin: 0; }

/* ---- Målgrupper ---- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aud-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 170px;
  display: flex; align-items: flex-end; color: #fff; text-decoration: none;
  background: var(--navy);
}
.aud-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aud-card .label {
  position: relative; z-index: 2; padding: 16px; font-weight: 700; font-size: 1.05rem;
  width: 100%; background: linear-gradient(transparent, rgba(8,18,28,.85));
}

/* Kundtyper – enkla taggar */
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.tag { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: .92rem; color: var(--navy); }

/* ---- Bildband med CTA ---- */
.band{
  background:linear-gradient(rgba(8,18,28,.72),rgba(8,18,28,.82)),
             url('/static/img/band.jpg') center/cover no-repeat;
  color:#fff; text-align:center;
}
.band h2{color:#fff;}
.band p{color:#d7e4e0;font-size:1.2rem;max-width:600px;margin:0 auto 26px;}

/* ---- Teknik (nedtonad) ---- */
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tech img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- Slut-CTA ---- */
.final-cta { background: var(--green); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { font-size: 1.2rem; color: #eafff6; max-width: 600px; margin: 0 auto 28px; }
.final-cta .btn-primary { background: #fff; color: var(--green-dark); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.final-cta .btn-primary:hover { background: #f0fff9; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #8ea3af; padding: 40px 0; font-size: .9rem; }
.site-footer a { color: #cfe0dc; }
.site-footer .brand { font-size: 1.1rem; }

/* ---- Responsivt ---- */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .stats, .steps, .audience { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .tech { grid-template-columns: 1fr; }
  .solution-list { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  section { padding: 56px 0; }
  .stats, .audience { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
