/* Odla Inomhus — design system
   Palette: leaf green + warm grow-light amber + Swedish neutral.
   Fonts: system-ui stack (no Google Fonts, fast first paint). */

:root {
  --leaf: #3a8a3a;
  --leaf-dark: #1e6228;
  --leaf-deep: #154a1d;
  --leaf-soft: #e8f3e3;
  --leaf-tint: #f4f9f0;
  --grow: #f57f17;
  --grow-dark: #d96712;
  --grow-soft: #fff4e1;
  --bg: #ffffff;
  --bg-alt: #f7faf3;
  --surface: #ffffff;
  --border: #dee5da;
  --border-strong: #c4d0bd;
  --text: #1e2a1e;
  --text-soft: #4a5448;
  --text-muted: #6d7669;
  --shadow-sm: 0 1px 2px rgba(20, 50, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 50, 20, 0.08);
  --shadow-lg: 0 10px 30px rgba(20, 50, 20, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max: 1080px;
  --narrow: 740px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--leaf-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--leaf-deep); }

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

h1, h2, h3, h4 { color: var(--text); line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
h2 { font-size: clamp(22px, 3vw, 30px); margin: 40px 0 16px; }
h3 { font-size: clamp(18px, 2.2vw, 22px); margin: 28px 0 12px; }
p { margin: 0 0 16px; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { padding: 56px 0; background: var(--bg-alt); }
.section-tight { padding: 36px 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand span { letter-spacing: -0.01em; }
.brand-tag {
  display: inline-block;
  background: var(--leaf-soft);
  color: var(--leaf-dark);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.nav a:hover { color: var(--leaf-dark); }
.nav .nav-cta {
  background: var(--leaf);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
}
.nav .nav-cta:hover { background: var(--leaf-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform 0.2s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav .nav-cta { margin: 12px 20px; text-align: center; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(ellipse 800px 400px at 10% -20%, rgba(58, 138, 58, 0.10), transparent 70%),
    radial-gradient(ellipse 700px 350px at 95% 110%, rgba(245, 127, 23, 0.08), transparent 70%),
    linear-gradient(180deg, var(--leaf-tint) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero-decoration {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
}
.hero-decoration.left { left: -40px; top: 20px; width: 220px; }
.hero-decoration.right { right: -50px; bottom: -30px; width: 260px; }
@media (max-width: 720px) {
  .hero-decoration { display: none; }
}
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 18px; }
.hero p.lead {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--text-soft);
  max-width: 660px;
  margin: 0 auto 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Trust strip (under H1 or in hero) ---------- */
.trust-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 18px 0 8px;
}
.trust-strip .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}
.trust-strip .trust-item svg {
  flex-shrink: 0;
  color: var(--leaf-dark);
}
.trust-strip .trust-item strong { color: var(--text); font-weight: 600; }
.article .trust-strip {
  justify-content: flex-start;
  margin: 12px 0 28px;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(20, 50, 20, 0.08);
  display: none;
  gap: 10px;
  align-items: center;
  transform: translateY(120%);
  transition: transform 0.25s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .sticky-text {
  flex: 1;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.3;
}
.sticky-cta .sticky-text strong { color: var(--text); display: block; font-size: 14.5px; }
.sticky-cta .btn {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 14px;
}
@media (max-width: 860px) {
  .sticky-cta { display: flex; }
  /* leave room for sticky CTA at bottom of pages where it's active */
  body.has-sticky-cta { padding-bottom: 72px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.05s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--leaf);
  color: #fff;
}
.btn-primary:hover { background: var(--leaf-dark); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--leaf-dark);
  border: 1.5px solid var(--leaf);
}
.btn-secondary:hover { background: var(--leaf-soft); color: var(--leaf-deep); }
.btn-grow {
  background: var(--grow);
  color: #fff;
}
.btn-grow:hover { background: var(--grow-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--leaf-dark);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--leaf-soft); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-top: 0; font-size: 19px; }
.card p { color: var(--text-soft); margin-bottom: 14px; }
.card a.card-link {
  color: var(--leaf-dark);
  font-weight: 600;
  text-decoration: none;
}
.card a.card-link:hover { text-decoration: underline; }
.card-link::after { content: " →"; }

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--leaf-soft);
  color: var(--leaf-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* Product card */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.product-card .product-tag {
  display: inline-block;
  background: var(--grow-soft);
  color: var(--grow-dark);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-card h3 { font-size: 18px; margin: 0 0 8px; }
.product-card .product-meta {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 12px;
}
.product-card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 14.5px;
}
.product-card ul li { margin-bottom: 4px; }
.product-card .product-cta {
  margin-top: auto;
}

/* ---------- Snabb rekommendation block ---------- */
.recommend {
  background: var(--leaf-soft);
  border-left: 4px solid var(--leaf);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 28px 0;
}
.recommend strong { color: var(--leaf-deep); }
.recommend p:last-child { margin-bottom: 0; }
.recommend h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--leaf-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; margin: 28px 0; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}
table.compare th, table.compare td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.compare th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
table.compare tr:last-child td { border-bottom: none; }
table.compare tr:hover td { background: var(--leaf-tint); }
table.compare .winner { background: var(--grow-soft) !important; }
table.compare .pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
table.compare .pill-good { background: var(--leaf-soft); color: var(--leaf-deep); }
table.compare .pill-bad { background: #fbeaea; color: #a52828; }
table.compare .pill-mid { background: var(--grow-soft); color: var(--grow-dark); }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq details[open] { background: var(--leaf-tint); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: var(--leaf-dark);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--text-soft); }

/* ---------- Common mistakes ---------- */
.mistakes {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--grow);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}
.mistakes h3 { margin: 0 0 14px; color: var(--grow-dark); }
.mistakes ul { margin: 0; padding-left: 20px; color: var(--text-soft); }
.mistakes li { margin-bottom: 8px; }
.mistakes li strong { color: var(--text); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--leaf-dark) 0%, var(--leaf-deep) 100%);
  color: #fff;
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  margin: 44px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin: 0 0 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0 0 22px; }
.cta-banner .btn-primary {
  background: var(--grow);
}
.cta-banner .btn-primary:hover { background: var(--grow-dark); }

/* ---------- Affiliate disclosure block ---------- */
.disclosure {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 24px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.disclosure strong { color: var(--text-soft); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 16px 0 0;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--leaf-dark); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; color: var(--border-strong); }

/* ---------- Article ---------- */
.article { padding: 32px 0 56px; }
.article h2 { border-top: 1px solid var(--border); padding-top: 36px; margin-top: 48px; }
.article h2:first-of-type { border-top: none; padding-top: 0; margin-top: 32px; }
.article ul, .article ol { color: var(--text-soft); }
.article ul li, .article ol li { margin-bottom: 6px; }
.article blockquote {
  border-left: 4px solid var(--leaf);
  background: var(--leaf-tint);
  margin: 24px 0;
  padding: 14px 20px;
  color: var(--text-soft);
  border-radius: 0 8px 8px 0;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin: 32px 0;
}
.newsletter h3 { margin: 0 0 8px; }
.newsletter p { color: var(--text-soft); margin: 0 0 18px; }
.newsletter form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  flex: 1 1 220px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px var(--leaf-soft);
}
.newsletter .form-honeypot { position: absolute; left: -10000px; }
.newsletter-success {
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 500;
  display: none;
}
.newsletter-success.visible { display: block; }

/* ---------- Calculator (anti-LLM tool) ---------- */
.calc {
  background: linear-gradient(180deg, var(--leaf-tint) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}
.calc h3 { margin: 0 0 6px; color: var(--leaf-deep); }
.calc .calc-sub { color: var(--text-soft); margin-bottom: 24px; }
.calc-inputs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; }
.calc-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.calc-field select, .calc-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
}
.calc-field select:focus, .calc-field input:focus {
  outline: none;
  border-color: var(--leaf);
}
.calc-output {
  background: #fff;
  border: 2px solid var(--leaf);
  border-radius: var(--radius);
  padding: 22px;
}
.calc-output h4 { margin: 0 0 12px; color: var(--leaf-deep); font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }
.calc-numbers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.calc-num { text-align: center; }
.calc-num .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--leaf-deep);
  line-height: 1.1;
}
.calc-num .unit { color: var(--text-muted); font-size: 13px; }
.calc-num .label { color: var(--text-soft); font-size: 13.5px; margin-top: 4px; }
.calc-note { color: var(--text-soft); font-size: 13.5px; margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--leaf-deep);
  color: #d4e3cd;
  padding: 48px 0 24px;
  margin-top: 60px;
}
.site-footer .footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 2fr repeat(3, 1fr);
}
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.site-footer a {
  color: #bcd1b5;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 14px;
}
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand { color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.site-footer .footer-tag { color: #bcd1b5; font-size: 13.5px; }
.site-footer .footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 12.5px;
  color: #9ab094;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer .footer-legal a { display: inline; padding: 0; }

@media (max-width: 720px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Misc ---------- */
.tag {
  display: inline-block;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.tag-grow { background: var(--grow-soft); color: var(--grow-dark); }
.text-muted { color: var(--text-muted); }
.muted { color: var(--text-muted); font-size: 13.5px; }
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}
.stat-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.stat {
  background: var(--leaf-tint);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-soft);
}
.stat strong { color: var(--leaf-deep); }
