*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Kompensera för sticky nav-höjd vid anchor-scroll */
  scroll-padding-top: 52px;
}
:root {
  --green:     #2e7d32;
  --green-light: #4caf50;
  --green-pale: #e8f5e9;
  --accent:    #ff8f00;
  --text:      #212121;
  --muted:     #616161;
  --border:    #e0e0e0;
  --white:     #ffffff;
  --radius:    12px;
}
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #f5f5f5;
  line-height: 1.7;
}
/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: #f5f5f5;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  display: block;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  opacity: 0.92;
}
.hero .tagline {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
/* ── SECTION NAV ──────────────────────────────────── */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border-bottom: 2px solid var(--green-pale);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav-inner {
  display: flex;
  justify-content: center;
  min-width: 100%;
  padding: 0 1rem;
}
.section-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  touch-action: manipulation;
}
.section-nav a:hover {
  color: var(--green);
  border-bottom-color: var(--green-light);
}
.section-nav a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ── LAYOUT ───────────────────────────────────────── */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
section {
  margin: 2.5rem 0;
}
 /* ── INTRO CARD ───────────────────────────────────── */
.intro-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-left: 5px solid var(--green-light);
}
.intro-card h2 {
  color: var(--green);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
/* ── SECTION TITLE ────────────────────────────────── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--green-pale);
  border-radius: 2px;
}
/* ── ACCORDION (NOW VISIBLE BY DEFAULT) ────────────────────────────────── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.accordion-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.accordion-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.accordion-item.closed {
  border-color: var(--border);
}
.accordion-item.open {
  border-color: var(--green-light);
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
  min-height: 48px;
  touch-action: manipulation;
}
.accordion-header:hover { background: var(--green-pale); }
.accordion-item.open .accordion-header { background: var(--green-pale); }
.accordion-icon {
  font-size: 1.3rem;
  width: 2rem;
  text-align: center;
  flex-shrink: 0;
}
.accordion-chevron {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--green);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}
.accordion-body {
  /* CHANGED: Default to display: block so Google can see it */
  display: block;
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.accordion-item.closed .accordion-body {
  display: none;
}
/* ── PRICING ──────────────────────────────────────── */
.pricing-card {
  background: linear-gradient(135deg, var(--green) 0%, #388e3c 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.25rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(46,125,50,0.3);
}
.pricing-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.pricing-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.price-pill {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
}
.pricing-note {
  opacity: 0.85;
  font-size: 0.88rem;
}
/* ── CTA ──────────────────────────────────────────── */
.cta-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: center;
}
.cta-card h2 {
  color: var(--green);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.cta-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255,143,0,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  touch-action: manipulation;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,143,0,0.5);
}
/* ── HISTORY ──────────────────────────────────────── */
.history-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-top: 4px solid var(--green-light);
}
.history-card h2 {
  color: var(--green);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.history-card p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.history-card p:last-child { margin-bottom: 0; }
.history-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  touch-action: manipulation;
}
.history-chevron {
  margin-left: auto;
  color: var(--green);
  transition: transform 0.25s;
}
.history-content {
  display: block;
  padding: 0.75rem 0 0;
}
.history-content.closed {
  display: none;
}
.history-chevron.closed {
  transform: rotate(180deg);
}
/* ── FOOTER ───────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
footer a:hover { text-decoration: underline; }
.footer-sig {
  margin-top: 0.5rem;
  opacity: 0.7;
}
/* ── FAQ ─────────────────────────────────────────── */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.faq-item.open  { border-color: var(--green-light); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  transition: background 0.15s;
  min-height: 48px;
  touch-action: manipulation;
}
.faq-question:hover { background: var(--green-pale); }
.faq-item.open .faq-question { background: var(--green-pale); }
.faq-chevron {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  /* CHANGED: Default to display: block so Google can see it */
  display: block;
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.faq-item.closed .faq-answer {
  display: none;
}
/* ── CONTACT ──────────────────────────────────────── */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.contact-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.contact-text {
  flex: 1;
  min-width: 180px;
}
.contact-text strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.contact-text span {
  color: var(--muted);
  font-size: 0.88rem;
}
.contact-link {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-weight: 700;
  font-size: 0.97rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--green-light);
  transition: background 0.15s, transform 0.15s;
  word-break: break-all;
  touch-action: manipulation;
}
.contact-link:hover {
  background: var(--green-pale);
  transform: translateY(-1px);
  text-decoration: none;
  filter: brightness(0.95);
}

/* ── CODE ELEMENTS ────────────────────────────────── */
code {
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ── MOBILE: 640px och under ──────────────────────── */
@media (max-width: 640px) {
  /* Sätt en tydlig bas – förhindrar att webbläsaren skalar ned */
  body {
    font-size: 16px;
    line-height: 1.75;
  }

  section {
    margin: 1.75rem 0;
  }

  /* Hero */
  .hero {
    padding: 2.5rem 1rem 3.5rem;
  }
  .hero-icon {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .hero .tagline {
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    letter-spacing: 0.2px;
  }

  /* Cards */
  .intro-card,
  .cta-card,
  .history-card {
    padding: 1.25rem 1rem;
  }
  .intro-card h2,
  .cta-card h2 {
    font-size: 1.2rem;
  }
  /* Brödtext i korten – minst 1rem */
  .intro-card p,
  .cta-card p,
  .history-card p {
    font-size: 1rem;
  }

  /* Section title */
  .section-title {
    font-size: 1.25rem;
  }
  .section-title::after {
    display: none;
  }

  /* Accordion */
  .accordion-header {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    gap: 0.5rem;
  }
  .accordion-icon {
    font-size: 1.1rem;
    width: 1.5rem;
  }
  .accordion-body {
    padding: 0 1rem 1rem;
    font-size: 1rem;
    line-height: 1.75;
  }

  /* Pricing */
  .pricing-card {
    padding: 1.5rem 1rem 1.75rem;
  }
  .pricing-card h2 {
    font-size: 1.2rem;
  }
  .pricing-row {
    gap: 0.6rem;
  }
  .price-pill {
    width: 100%;
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  .pricing-note {
    font-size: 0.95rem;
  }

  /* FAQ */
  .faq-question {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    gap: 0.5rem;
  }
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1rem;
    line-height: 1.75;
  }

  /* Contact */
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
  }
  .contact-text strong {
    font-size: 1rem;
  }
  .contact-text span {
    font-size: 1rem;
  }
  .contact-link {
    width: 100%;
    text-align: center;
    word-break: normal;
    font-size: 1rem;
  }

  /* History */
  .history-toggle {
    font-size: 1.1rem;
  }

  /* Footer */
  footer {
    font-size: 1rem;
  }

  /* Buttons */
  .btn {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
  }
}

/* ── EXTRA LITET: 380px och under ─────────────────── */
@media (max-width: 380px) {
  .hero-icon { font-size: 2.5rem; }
  .hero .tagline { display: none; }
  .accordion-icon { display: none; }
}