:root {
        --sand: #f4f0e8;
        --paper: #fffdf9;
        --ink: #1f2a1f;
        --pine: #215341;
        --moss: #4f7c5a;
        --sun: #f2bf5e;
        --line: #d7d0c2;
        --shadow: 0 24px 50px rgba(30, 42, 32, 0.2);
      }

      * { box-sizing: border-box; }
      html { scroll-behavior: smooth; }

      body {
        margin: 0;
        min-height: 100vh;
        font-family: "Sora", "Segoe UI", sans-serif;
        color: var(--ink);
        background:
          radial-gradient(circle at 12% 18%, rgba(242, 191, 94, 0.35), transparent 38%),
          radial-gradient(circle at 88% 82%, rgba(79, 124, 90, 0.28), transparent 30%),
          linear-gradient(120deg, #f9f4ea 0%, #edf3e6 100%);
      }

      .page-wrap {
        width: min(1080px, 94vw);
        margin: 2rem auto 5rem;
      }

      .site-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 2rem;
        padding: 0.85rem 1rem;
        border: 1px solid rgba(215, 208, 194, 0.82);
        border-radius: 18px;
        background:
          linear-gradient(135deg, rgba(255, 253, 249, 0.9), rgba(244, 240, 232, 0.72));
        box-shadow: 0 14px 34px rgba(30, 42, 32, 0.1);
        backdrop-filter: blur(12px);
      }

      .brand {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        color: var(--ink);
      }

      .brand-mark {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
      }

      .brand-logo {
        width: 58px;
        height: 58px;
        object-fit: contain;
        display: block;
      }

      .brand-name {
        font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
        font-size: 1.45rem;
        font-weight: 700;
        line-height: 1;
      }

      .site-nav {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        flex-wrap: wrap;
      }

      .site-nav a {
        color: var(--pine);
        text-decoration: none;
        font-size: 0.92rem;
        font-weight: 600;
      }

      .site-nav a:hover {
        text-decoration: underline;
      }

      .lang-switch {
        border: 1px solid var(--line);
        background: rgba(255, 253, 249, 0.95);
        color: var(--pine);
        border-radius: 999px;
        padding: 0.5rem 0.9rem;
        font: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
      }

      .hero {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: 1.4rem;
        align-items: stretch;
      }

      .hero-card,
      .content-card,
      .mini-card,
      .city-card {
        background: rgba(255, 253, 249, 0.95);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: 0 2px 12px rgba(30, 42, 32, 0.07);
      }

      .hero-copy { padding: 2rem 1.8rem; }

      .eyebrow {
        margin: 0 0 0.5rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        font-size: 0.74rem;
        color: var(--pine);
        font-weight: 600;
      }

      h1, h2, h3 {
        font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
      }

      h1 {
        margin: 0 0 1rem;
        font-size: clamp(2.3rem, 5vw, 4.4rem);
        line-height: 1.02;
        color: var(--ink);
        letter-spacing: -0.04em;
        max-width: 11ch;
      }

      .lead {
        margin: 0;
        font-size: 1.03rem;
        line-height: 1.75;
        color: var(--ink);
        opacity: 0.86;
        max-width: 58ch;
      }

      .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.9rem;
        margin-top: 1.7rem;
      }

      .btn-primary,
      .btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        min-height: 52px;
        padding: 0.85rem 1.45rem;
        border-radius: 999px;
        text-decoration: none;
        transition: opacity 0.15s, transform 0.15s;
        font-family: "Space Grotesk", sans-serif;
        font-weight: 700;
        font-size: 1rem;
      }

      .btn-primary {
        background: linear-gradient(135deg, var(--pine) 0%, var(--moss) 100%);
        color: #fff;
        box-shadow: var(--shadow);
      }

      .btn-secondary {
        background: transparent;
        color: var(--pine);
        border: 1px solid var(--line);
      }

      .btn-primary:hover,
      .btn-secondary:hover,
      .city-card:hover {
        opacity: 0.92;
        transform: translateY(-1px);
      }

      .hero-points {
        display: flex;
        flex-wrap: wrap;
        gap: 0.42rem 0.68rem;
        margin-top: 1.4rem;
        color: rgba(31, 42, 31, 0.72);
        font-size: 0.82rem;
        font-weight: 750;
        line-height: 1.45;
      }

      .hero-points span {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        color: var(--pine);
      }

      .hero-points span::before {
        content: "";
        flex: 0 0 auto;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--pine);
      }

      .hero-visual {
        padding: 1rem;
        display: flex;
        align-items: stretch;
      }

      .map-mock {
        width: 100%;
        min-height: 100%;
        border-radius: 18px;
        overflow: hidden;
        background:
          radial-gradient(circle at 20% 30%, rgba(242, 191, 94, 0.24), transparent 18%),
          radial-gradient(circle at 75% 26%, rgba(79, 124, 90, 0.2), transparent 20%),
          linear-gradient(135deg, #e8efe2 0%, #edf3e6 45%, #f7f1e8 100%);
        border: 1px solid rgba(215, 208, 194, 0.9);
        position: relative;
        min-height: 420px;
      }

      .map-grid {
        position: absolute;
        inset: 0;
        background-image:
          linear-gradient(rgba(33, 83, 65, 0.07) 1px, transparent 1px),
          linear-gradient(90deg, rgba(33, 83, 65, 0.07) 1px, transparent 1px);
        background-size: 42px 42px;
      }

      .road {
        position: absolute;
        background: rgba(33, 83, 65, 0.13);
        border-radius: 999px;
      }

      .road.one { width: 72%; height: 10px; top: 26%; left: 10%; transform: rotate(-14deg); }
      .road.two { width: 58%; height: 12px; top: 58%; left: 20%; transform: rotate(12deg); }
      .road.three { width: 14px; height: 58%; top: 18%; left: 54%; }

      .pin {
        position: absolute;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        box-shadow: 0 0 0 6px rgba(255,255,255,0.36);
      }

      .pin.free { background: var(--moss); }
      .pin.charge { background: var(--pine); }
      .pin.one { top: 20%; left: 24%; }
      .pin.two { top: 35%; left: 64%; }
      .pin.three { top: 64%; left: 34%; }
      .pin.four { top: 72%; left: 72%; }

      .floating-panel {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 16px;
        background: rgba(255, 253, 249, 0.95);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 1rem 1rem;
        box-shadow: 0 10px 26px rgba(30, 42, 32, 0.12);
      }

      .floating-panel__title {
        margin: 0 0 0.35rem;
        font-size: 0.98rem;
        font-weight: 700;
        color: var(--pine);
      }

      .floating-panel__text {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.55;
        opacity: 0.82;
      }

      .section { margin-top: 1.5rem; }

      .section-title {
        font-size: 1.28rem;
        font-weight: 700;
        color: var(--pine);
        margin: 0 0 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--line);
      }

      .section-subtitle {
        margin: 1.35rem 0 0.85rem;
        color: var(--pine);
        font-size: 1.05rem;
        font-weight: 700;
      }

      .features {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
      }

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

      @media (max-width: 900px) {
        .split-grid {
          grid-template-columns: 1fr;
        }
      }

      .use-case-list,
      .trust-list {
        display: grid;
        gap: 0.7rem;
        margin: 0;
        padding: 0;
        list-style: none;
      }

      .use-case-list li,
      .trust-list li {
        display: flex;
        gap: 0.55rem;
        align-items: flex-start;
        line-height: 1.55;
        opacity: 0.88;
      }

      .use-case-list li::before,
      .trust-list li::before {
        content: "?";
        color: var(--pine);
        font-weight: 900;
      }

      .mini-card { padding: 1.25rem 1.2rem; }

      .mini-card__icon {
        font-size: 1.45rem;
        margin-bottom: 0.55rem;
      }

      .mini-card__title {
        margin: 0 0 0.4rem;
        font-size: 1rem;
        color: var(--pine);
      }

      .mini-card__text {
        margin: 0;
        font-size: 0.92rem;
        line-height: 1.65;
        opacity: 0.82;
      }

      .content-card { padding: 1.35rem 1.35rem; }

      .content-card p {
        margin: 0 0 1rem;
        line-height: 1.75;
        opacity: 0.9;
      }

      .content-card p:last-child { margin-bottom: 0; }

      .city-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.9rem;
      }

      .city-card {
        display: block;
        text-decoration: none;
        color: inherit;
        padding: 1rem 1rem;
      }

      .city-card__name {
        margin: 0 0 0.25rem;
        font-size: 1rem;
        color: var(--pine);
      }

      .city-card__text {
        margin: 0;
        font-size: 0.88rem;
        line-height: 1.55;
        opacity: 0.78;
      }

      .events-section__header {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1rem;
        border-bottom: 2px solid var(--line);
      }

      .events-section__header .section-title {
        margin-bottom: 0;
        border-bottom: 0;
      }

      .events-section__link {
        margin-bottom: 0.65rem;
        color: var(--pine);
        font-size: 0.9rem;
        font-weight: 800;
        text-decoration: none;
      }

      .events-section__link:hover {
        text-decoration: underline;
      }

      .landing-events-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        margin-bottom: 1rem;
      }

      .landing-events-tab {
        padding: 0.58rem 0.95rem;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--paper);
        color: var(--pine);
        font: inherit;
        font-size: 0.84rem;
        font-weight: 800;
        cursor: pointer;
      }

      .landing-events-tab.is-active {
        border-color: var(--pine);
        background: var(--pine);
        color: #fff;
      }

      .landing-events-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
      }

      .landing-events-status {
        margin: 0;
        color: rgba(31, 42, 31, 0.72);
        font-size: 0.92rem;
        font-weight: 700;
      }

      .landing-event-card {
        position: relative;
        display: grid;
        grid-template-rows: auto auto;
        min-height: 100%;
      }

      .landing-event-card--featured {
        border-color: rgba(242, 191, 94, 0.78);
        background: rgba(255, 249, 235, 0.96);
      }

      .landing-event-card--featured::after {
        content: "Nosto";
        position: absolute;
        top: 0.7rem;
        right: 0.7rem;
        padding: 0.25rem 0.52rem;
        border-radius: 999px;
        background: rgba(242, 191, 94, 0.96);
        color: #6f4700;
        font-size: 0.68rem;
        font-weight: 900;
      }

      .landing-event-card__map-link {
        display: grid;
        grid-template-rows: auto 1fr;
        gap: 0.56rem;
        color: inherit;
        text-decoration: none;
      }

      .filter-popup__event-card {
        width: 100%;
        padding: 0.55rem;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.94);
        color: #1f2a1f;
        text-align: left;
        box-shadow: 0 8px 18px rgba(30, 42, 32, 0.08);
        transition:
          transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
          border-color 180ms ease,
          box-shadow 180ms ease;
      }

      .filter-popup__event-card:hover,
      .filter-popup__event-card:focus-within {
        border-color: rgba(31, 74, 159, 0.35);
        box-shadow: 0 12px 24px rgba(30, 42, 32, 0.12);
        transform: translateY(-1px);
      }

      .filter-popup__event-image {
        width: 100%;
        aspect-ratio: 16 / 9;
        border: 1px solid rgba(215, 208, 194, 0.92);
        border-radius: 8px;
        background:
          linear-gradient(135deg, rgba(33, 83, 65, 0.12), rgba(242, 191, 94, 0.16)),
          rgba(245, 242, 235, 0.74);
        overflow: hidden;
      }

      .filter-popup__event-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
      }

      .filter-popup__event-body {
        min-width: 0;
        display: grid;
        align-content: start;
        gap: 0.25rem;
      }

      .filter-popup__event-name {
        color: var(--pine);
        font-size: 0.98rem;
        line-height: 1.15;
        overflow-wrap: anywhere;
      }

      .filter-popup__event-detail {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.22rem;
        margin: 0;
        color: rgba(31, 42, 31, 0.78);
        font-size: 0.72rem;
        font-weight: 750;
        line-height: 1.25;
      }

      .filter-popup__event-detail-key {
        color: rgba(31, 42, 31, 0.92);
        font-weight: 850;
      }

      .filter-popup__event-detail-value {
        min-width: 0;
        overflow-wrap: anywhere;
      }

      .filter-popup__event-link {
        align-self: end;
        margin: 0.45rem 0.1rem 0;
        color: #1f4a9f;
        font-size: 0.76rem;
        font-weight: 850;
        line-height: 1.2;
        overflow-wrap: anywhere;
        text-decoration: underline;
        text-underline-offset: 2px;
      }

      .filter-popup__event-details {
        display: -webkit-box;
        margin: 0.2rem 0 0;
        overflow: hidden;
        color: rgba(31, 42, 31, 0.76);
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.28;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
      }
      .organizer-cta {
        margin: 1.6rem 0 2rem;
        padding: 1.25rem 1.2rem;
        background: rgba(255, 253, 249, 0.96);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: 0 2px 12px rgba(30, 42, 32, 0.07);
      }

      .organizer-cta__title {
        margin: 0 0 0.45rem;
        color: var(--pine);
        font-family: "Space Grotesk", sans-serif;
        font-size: 1.2rem;
      }

      .organizer-cta__text {
        margin: 0 0 1rem;
        color: rgba(31, 42, 31, 0.84);
        font-size: 0.92rem;
        line-height: 1.6;
      }

      .organizer-cta__actions {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        flex-wrap: wrap;
      }

      .cta-block {
        margin-top: 1.6rem;
        padding: 2.1rem 1.5rem;
        background: linear-gradient(135deg, var(--pine) 0%, var(--moss) 100%);
        border-radius: 22px;
        text-align: center;
        box-shadow: var(--shadow);
      }

      .cta-block__title {
        margin: 0 0 0.6rem;
        font-size: 1.5rem;
        color: #fff;
      }

      .cta-block__text {
        margin: 0 auto 1.35rem;
        max-width: 720px;
        font-size: 0.97rem;
        color: rgba(255,255,255,0.86);
        line-height: 1.65;
      }

      .cta-btn {
        display: inline-block;
        background: var(--sun);
        color: var(--ink);
        font-family: "Space Grotesk", sans-serif;
        font-weight: 700;
        font-size: 1rem;
        border: none;
        border-radius: 50px;
        padding: 0.8rem 2rem;
        cursor: pointer;
        text-decoration: none;
        transition: opacity 0.15s, transform 0.15s;
      }

      .cta-btn:hover {
        opacity: 0.9;
        transform: translateY(-1px);
      }

      .page-footer {
        margin-top: 3rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--line);
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: clamp(1.5rem, 4vw, 3rem);
        font-size: 0.84rem;
        opacity: 0.66;
      }

      .page-footer > span {
        flex: 0 0 auto;
        white-space: nowrap;
      }

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

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

      .osm-credit {
        flex-basis: 100%;
        max-width: 760px;
        line-height: 1.45;
      }

      .footer-links {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        flex: 1 1 auto;
        justify-content: space-between;
        gap: 1rem;
      }

      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      @media (max-width: 900px) {
        .hero,
        .features,
        .split-grid,
        .landing-events-grid,
        .city-grid {
          grid-template-columns: 1fr 1fr;
        }

        .hero {
          grid-template-columns: 1fr;
        }
      }

      @media (max-width: 640px) {
        .page-wrap { margin-top: 1.4rem; }

        .site-header {
          flex-direction: column;
          align-items: flex-start;
        }

        .features,
        .split-grid,
        .hero-points,
        .landing-events-grid,
        .city-grid {
          grid-template-columns: 1fr;
        }

        .events-section__header {
          display: grid;
          align-items: start;
        }

        .hero-copy,
        .content-card,
        .mini-card {
          padding-left: 1.1rem;
          padding-right: 1.1rem;
        }

        .map-mock { min-height: 340px; }
      }
