/* Fimbul landing – ljus, nordisk layout med blå accent */

:root {
  --blue: #1e73be;
  --blue-dark: #155a96;
  --blue-soft: #eaf3fb;
  --ink: #1a2f4a;
  --muted: #5a7390;
  --line: #d8e4f0;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(21, 90, 150, 0.1);
  --radius: 14px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

/* Hero: logga vänster, text höger */
.hero {
  background: var(--blue-soft);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero .logo {
  flex-shrink: 0;
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.hero .logo img {
  display: block;
  height: 48px;
  width: auto;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.hero .lead {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--muted);
  max-width: 40rem;
}

.hero .intro {
  margin: 1.25rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.examples {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.examples-header { margin-bottom: 1.75rem; }

.examples-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  color: var(--ink);
}

.examples-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.example-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.example-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.example-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.example-card-head {
  padding: 1rem 1.15rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fafcff 0%, #fff 100%);
}

.example-card-head h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--blue);
}

.example-card-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.example-live {
  padding: 0.85rem;
  background: #f4f8fc;
  flex: 1;
  min-height: 0;
}

.example-live iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.webcam-box {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #0a1520;
  border: 1px solid var(--line);
  line-height: 0;
}

.webcam-photo {
  display: block;
  width: 100%;
  height: auto;
}

.webcam-banner {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
}

.webcam-caption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.services {
  background: var(--blue-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
}

.services h2 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  text-align: center;
  color: var(--ink);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.service-item h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--blue);
}

.service-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  background: #0f2840;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  padding: 2rem 1.25rem 1.25rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
}

.footer-col h4 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
}

.footer-col p {
  margin: 0;
  line-height: 1.6;
}

.footer-col ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.7;
}


.site-footer a { color: rgba(255,255,255,0.95); }

@media (max-width: 820px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .example-duo { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-inner { padding: 1.25rem 1rem; }
}
