:root{--rc-191d14:#191d14;--rc-d8d1c1:#d8d1c1;--rc-fff:#fff;--rc-e8e4d9:#e8e4d9;--rc-c4c1b4:#c4c1b4;--rc-b6b0a3:#b6b0a3;--rc-99948a:#99948a;--rc-b4453a:#b4453a;--rc-a8a293:#a8a293}
/* ═══════════════════════════════════════════════════════════
   MYCEON — Levande nätverk
   Palett: creme · varm jordaccent · dämpad skogs-oliv
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f4f1e7;
  --text: #2b2f26;
  --text-soft: #676b5b;
  --accent: #bd7443;
  --accent-hover: #a45f2e;
  --accent-soft: #e6d5c2;
  --accent-warm: #f1e7d8;
  --olive: #6d7a4c;
  --moss: #7d8a5c;
  --olive-soft: #dfe3cf;
  --olive-dark: #333a26;
  --olive-deeper: #14180f;
  --white: #fffdf8;
  --hairline: #e4ded0;
  --radius: 8px;
  --max-width: 780px;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ── Mycel-nätverk — subtilt bakgrundslager ── */
.mycel {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--moss);
  opacity: 0.17;
  overflow: hidden;
}

.mycel svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mycel-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: mycel-breathe 8s ease-in-out infinite;
}

.mycel-pulse-2 { animation-duration: 10s; animation-delay: 1.6s; }
.mycel-pulse-3 { animation-duration: 12s; animation-delay: 3.2s; }

@keyframes mycel-breathe {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50%      { transform: scale(2.2); opacity: 1; }
}

/* Allt innehåll ligger över nätverket */
.nav, .hero, .manifesto, .values, .team,
.fund, .features, .for-whom, .waitlist, .admin-secret, .footer {
  position: relative;
  z-index: 1;
}

/* ── Typografi ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--rc-191d14);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-soft);
}

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

/* ── Navigering ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav .nav-logo,
.nav .nav-logo[aria-current],
.nav a[aria-current="location"] {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  background: transparent;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  letter-spacing: -0.03em;
  box-shadow: none;
}

/* Golvets nav_active-axel får aldrig lägga en färg bakom loggan */
.nav .nav-logo,
.nav .nav-logo[aria-current],
.nav .nav-logo:hover,
.nav .nav-logo:focus,
.nav .nav-logo:focus-visible {
  background: transparent !important;
  color: var(--text) !important;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-warm);
}

.nav-lang {
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--rc-d8d1c1);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s ease;
  font-family: var(--font-heading);
}

.lang-btn:hover {
  border-color: var(--accent);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-label {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }
  .nav-inner {
    padding: 0.65rem 1.25rem;
  }
}

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Knappar ── */
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--rc-fff);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 2.4rem;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  letter-spacing: -0.01em;
}

.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(189, 116, 67, 0.25);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 8rem 0 6.5rem;
  text-align: center;
  overflow: hidden;
}

/* Kvartscirkel — gryning, nedre högra hörnet */
.hero::after {
  content: '';
  position: absolute;
  bottom: -12%;
  right: -6%;
  width: 55vw;
  height: 55vw;
  max-width: 520px;
  max-height: 520px;
  background: var(--accent);
  opacity: 0.14;
  border-radius: 100% 0 0 0;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 2rem;
  line-height: 1.08;
}

.hero-sub {
  font-size: 1.18rem;
  max-width: 620px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* ═══════════════════════════════════════════════════════════
   VARFÖR VI FINNS
   ═══════════════════════════════════════════════════════════ */
.manifesto {
  background: var(--olive-deeper);
  color: var(--rc-e8e4d9);
  padding: 6.5rem 0 5.5rem;
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  margin-top: -2rem;
  overflow: hidden;
}

/* Stor kontur-ring — horisont, gemenskap */
.manifesto::before {
  content: '';
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(650px, 85vw);
  height: min(650px, 85vw);
  border: 1.5px solid var(--accent);
  opacity: 0.08;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.manifesto .container {
  position: relative;
  z-index: 1;
}

.manifesto h2 {
  color: var(--rc-fff);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 2rem;
}

.manifesto p {
  color: var(--rc-c4c1b4);
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 660px;
}

.manifesto p + p {
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   VAD VI STÅR FÖR
   ═══════════════════════════════════════════════════════════ */
.values {
  padding: 6rem 0 5rem;
  background: var(--white);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

.values h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.values-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 520px) {
  .values-list {
    grid-template-columns: 1fr 1fr;
  }
}

.values-list li {
  background: var(--accent-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.01em;
}

.values-footer {
  max-width: 620px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   TEAMET
   ═══════════════════════════════════════════════════════════ */
.team {
  padding: 5.5rem 0 5rem;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

/* Kontur-cirkel — ny horisont, övre vänstra */
.team::before {
  content: '';
  position: absolute;
  top: -55%;
  left: -12%;
  width: min(460px, 65vw);
  height: min(460px, 65vw);
  border: 1.5px solid var(--accent);
  opacity: 0.09;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.team h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.team-body {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.85;
}

/* ═══════════════════════════════════════════════════════════
   FONDEN — 50M-vinsttaket
   ═══════════════════════════════════════════════════════════ */
.fund {
  padding: 6rem 0 5rem;
  background: var(--white);
  border-top: 1px solid var(--hairline);
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
  margin-top: -2rem;
  overflow: hidden;
}

/* Små cirklar utspridda — frön som sprids */
.fund::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 8%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    12vw 5vh 0 0 rgba(189, 116, 67, 0.14),
    30vw 3vh 0 4px rgba(189, 116, 67, 0.12),
    48vw 10vh 0 0 rgba(189, 116, 67, 0.09),
    68vw 4vh 0 6px rgba(189, 116, 67, 0.11),
    84vw 14vh 0 0 rgba(189, 116, 67, 0.08),
    6vw 28vh 0 3px rgba(189, 116, 67, 0.10),
    22vw 35vh 0 0 rgba(189, 116, 67, 0.13),
    40vw 25vh 0 8px rgba(189, 116, 67, 0.07),
    58vw 32vh 0 0 rgba(189, 116, 67, 0.12),
    76vw 28vh 0 2px rgba(189, 116, 67, 0.09),
    90vw 40vh 0 0 rgba(189, 116, 67, 0.06),
    15vw 48vh 0 5px rgba(189, 116, 67, 0.08),
    52vw 45vh 0 0 rgba(189, 116, 67, 0.11),
    70vw 50vh 0 7px rgba(189, 116, 67, 0.06);
}

.fund h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.fund-intro {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.fund-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 700px) {
  .fund-content {
    grid-template-columns: 1fr 1fr;
  }
}

.fund-block {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--hairline);
}

.fund-block h3 {
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.fund-block p {
  font-size: 0.98rem;
  line-height: 1.7;
}

.fund-stat {
  text-align: center;
  margin: 2rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

.fund-stat-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}

.fund-stat-label {
  font-size: 1rem;
  color: var(--text-soft);
  margin-top: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════
   VAD DU FÅR
   ═══════════════════════════════════════════════════════════ */
.features {
  padding: 6rem 0 5rem;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}

/* Cirkelgrupp — community i rörelse */
.features::before {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    -70px -50px 0 25px rgba(189, 116, 67, 0.13),
    -150px -15px 0 15px rgba(189, 116, 67, 0.10),
    -30px -110px 0 40px rgba(189, 116, 67, 0.08),
    -120px -95px 0 18px rgba(189, 116, 67, 0.15),
    -200px -60px 0 8px rgba(189, 116, 67, 0.11);
}

.features h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.feature-card {
  flex: 1 1 0;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-warm);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.features-footer {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2.75rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.features-footer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.features-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.features-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ═══════════════════════════════════════════════════════════
   VEM DET ÄR FÖR
   ═══════════════════════════════════════════════════════════ */
.for-whom {
  padding: 6rem 0 5rem;
  background: var(--white);
  border-top: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}

.for-whom::before {
  content: '';
  position: absolute;
  top: -55%;
  left: -12%;
  width: min(500px, 70vw);
  height: min(500px, 70vw);
  border: 1.5px solid var(--accent);
  opacity: 0.10;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.for-whom h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.for-whom-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.audience-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (min-width: 500px) {
  .audience-list {
    grid-template-columns: 1fr 1fr;
  }
}

.audience-list li {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text);
  text-align: center;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   WAITLIST
   ═══════════════════════════════════════════════════════════ */
.waitlist {
  padding: 6rem 0 5rem;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}

/* Koncentriska ringar — ringar på vatten */
.waitlist::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2.5px solid rgba(189, 116, 67, 0.14);
  pointer-events: none;
  z-index: 0;
  box-shadow:
    0 0 0 55px rgba(189, 116, 67, 0.12),
    0 0 0 120px rgba(189, 116, 67, 0.10),
    0 0 0 200px rgba(189, 116, 67, 0.08),
    0 0 0 295px rgba(189, 116, 67, 0.06),
    0 0 0 410px rgba(189, 116, 67, 0.04);
}

.waitlist .container {
  position: relative;
  z-index: 1;
}

.waitlist h2 {
  margin-bottom: 0.75rem;
}

.waitlist-sub {
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.waitlist-box {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1.25rem;
  border: 1.5px solid var(--rc-d8d1c1);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  min-width: 260px;
  transition: border-color 0.2s ease;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(189, 116, 67, 0.12);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--rc-b6b0a3);
}

.waitlist-note {
  font-size: 0.85rem;
  color: var(--rc-99948a);
  margin-top: 1rem;
}

.form-message,
.waitlist-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.5rem;
}

.form-message.success,
.waitlist-message.success {
  color: var(--olive);
}

.form-message.error,
.waitlist-message.error {
  color: var(--rc-b4453a);
}

/* ═══════════════════════════════════════════════════════════
   ADMIN-SEKTION (#admin-secret)
   ═══════════════════════════════════════════════════════════ */
.admin-secret {
  padding: 4rem 0;
  background: var(--white);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--olive-soft);
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--olive);
}

.admin-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--hairline);
}

.admin-table tbody tr:hover {
  background: var(--olive-soft);
}

.admin-back {
  margin-top: 1.5rem;
}

.admin-back a {
  color: var(--accent);
  text-decoration: none;
}

.admin-back a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 3.5rem 0;
  border-top: 1px solid var(--hairline);
  background: var(--white);
}

.footer p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-tagline {
  color: var(--rc-a8a293);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL-ANIMATIONER
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVT
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 4.5rem 0 4rem;
  }

  .hero-sub {
    font-size: 1.02rem;
  }

  .manifesto {
    padding: 5rem 0 4rem;
    clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
  }

  .values,
  .team,
  .fund,
  .features,
  .for-whom,
  .waitlist {
    padding: 4rem 0 3.5rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .fund-stat-number {
    font-size: 3.5rem;
  }
}

@media (min-width: 900px) {
  .hero h1 {
    font-size: 3.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   RÖRELSE-RESPEKT
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mycel-pulse {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cta:hover {
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   VARM FOKUS & MARKERING — inga blå toner någonstans
   ═══════════════════════════════════════════════════════════ */
a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

input:focus,
input:focus-visible,
button:focus,
button:focus-visible,
a:focus,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}
