/* Landing page of clubnetz.app. Plain CSS, no build step, no external resources. */

:root {
    --green: #059669;
    --green-dark: #047857;
    --green-deep: #064e3b;
    --green-night: #022c22;
    --green-soft: #d1fae5;
    --indigo: #6366f1;
    --amber: #f59e0b;

    --bg: #f8fbf9;
    --surface: #ffffff;
    --text: #0f172a;
    --text-soft: #475569;
    --line: #e2e8f0;
    --accent-text: #047857;
    --slot: #eef2f1;

    --radius: 16px;
    --width: 1080px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #071310;
        --surface: #0d1f1a;
        --text: #ecfdf5;
        --text-soft: #a7b8b1;
        --line: #1c3a31;
        --accent-text: #6ee7b7;
        --green-soft: #064e3b;
        --slot: #142b25;
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0;
}

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

.wrap {
    width: 100%;
    max-width: var(--width);
    margin: 0 auto;
    padding: 0 20px;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 12px;
    top: 12px;
    z-index: 10;
    background: var(--surface);
    padding: 8px 12px;
    border-radius: 8px;
}

/* Header */

.top {
    background: var(--green-deep);
    color: #fff;
}

.top__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.top__nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
}

.top__nav a {
    color: #d1fae5;
    text-decoration: none;
}

.top__nav a:hover,
.top__nav a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.top__nav .nav-section {
    display: none;
}

.lang {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 3px 12px;
}

/* The way into the app for members who land here */
.top__nav .login {
    background: #fff;
    color: var(--green-deep);
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 18px;
    white-space: nowrap;
}

.top__nav .login:hover,
.top__nav .login:focus-visible {
    background: #d1fae5;
    color: var(--green-deep);
    text-decoration: none;
}

@media (max-width: 420px) {
    .top__nav {
        gap: 10px;
    }
}

@media (min-width: 760px) {
    .top__nav .nav-section {
        display: inline;
    }
}

/* Hero */

.hero {
    background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-dark) 55%, var(--green) 100%);
    color: #fff;
    padding: 48px 0 64px;
}

.hero__grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 5.2vw, 3.2rem);
    letter-spacing: -0.02em;
}

.hero__lead {
    margin-top: 18px;
    font-size: 1.15rem;
    color: #d1fae5;
    max-width: 34em;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__note {
    margin-top: 14px;
    font-size: 0.92rem;
    color: #a7f3d0;
}

@media (min-width: 900px) {
    .hero {
        padding: 72px 0 88px;
    }

    .hero__grid {
        grid-template-columns: 0.95fr 1.05fr;
    }
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn--primary {
    background: #fff;
    color: var(--green-deep);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: #d1fae5;
}

.btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn--solid {
    background: var(--green);
    color: #fff;
}

.btn--solid:hover,
.btn--solid:focus-visible {
    background: var(--green-dark);
}

/* Screenshots: a desktop screen with a phone in front of it */

.shot {
    position: relative;
    margin: 0;
    padding: 0 7% 9% 0;
}

.shot__desktop {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(2, 44, 34, 0.18);
}

.shot__phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 27%;
    height: auto;
    border-radius: 22px;
    border: 5px solid #0f172a;
    background: #0f172a;
    box-shadow: 0 18px 40px rgba(2, 44, 34, 0.35);
}

/* Only a desktop screen: no room needed for the phone */
.shot:not(:has(.shot__phone)) {
    padding: 0;
}

.shot--hero .shot__desktop {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 70px rgba(2, 44, 34, 0.55);
}

@media (max-width: 520px) {
    .shot__phone {
        border-width: 3px;
        border-radius: 14px;
    }
}

/* Tour with screenshots */

.tour {
    display: grid;
    gap: 56px;
}

.tour__row {
    display: grid;
    gap: 24px;
    align-items: center;
}

.tour__text h3 {
    font-size: clamp(1.3rem, 2.6vw, 1.6rem);
    letter-spacing: -0.01em;
}

.tour__text > p:not(.tour__new) {
    margin-top: 10px;
    color: var(--text-soft);
}

.tour__new {
    display: inline-block;
    margin-bottom: 10px;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--amber);
    color: #422006;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (min-width: 900px) {
    .tour {
        gap: 88px;
    }

    .tour__row {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 48px;
    }

    .tour__row:nth-child(even) .tour__text {
        order: 2;
    }
}

/* Sections */

section {
    padding: 64px 0;
}

.section-head {
    max-width: 40em;
    margin-bottom: 32px;
}

.eyebrow {
    color: var(--accent-text);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    letter-spacing: -0.01em;
}

.section-head p:not(.eyebrow) {
    margin-top: 12px;
    color: var(--text-soft);
}

.facts {
    padding: 0;
    margin-top: -28px;
}

.facts ul {
    list-style: none;
    margin: 0;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 12px 24px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    font-weight: 600;
}

.facts li {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.facts li::before {
    content: "✓";
    color: var(--accent-text);
    font-weight: 800;
}

.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.card__icon {
    font-size: 1.6rem;
    line-height: 1;
}

.card h3 {
    font-size: 1.08rem;
    margin-top: 12px;
}

.card p {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.97rem;
}

.alt {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.alt .card {
    background: var(--bg);
}

.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.steps li {
    counter-increment: step;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--accent-text);
    font-weight: 800;
    margin-bottom: 10px;
}

.steps h3 {
    font-size: 1.08rem;
}

.steps p {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.97rem;
}

.center {
    margin-top: 28px;
}

.split {
    display: grid;
    gap: 32px;
    align-items: start;
}

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

.split p + p {
    margin-top: 14px;
}

.split .soft {
    color: var(--text-soft);
}

pre {
    margin: 0;
    background: var(--green-night);
    color: #d1fae5;
    border-radius: var(--radius);
    padding: 18px 20px;
    overflow-x: auto;
    font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
    font-size: 0.88rem;
    line-height: 1.7;
}

.stack {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack li {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.88rem;
}

.faq {
    max-width: 46em;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
}

.faq details p {
    margin-top: 10px;
    color: var(--text-soft);
}

.cta {
    background: var(--green-deep);
    color: #fff;
    text-align: center;
}

.cta p {
    color: #d1fae5;
    margin: 12px auto 26px;
    max-width: 36em;
}

footer {
    background: var(--green-night);
    color: #a7f3d0;
    padding: 28px 0;
    font-size: 0.93rem;
}

.foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
}

.foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

footer a {
    color: #d1fae5;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Documentation pages (/docs/...) */

.top__nav a[aria-current="page"] {
    color: #fff;
    font-weight: 700;
}

.docs-hero {
    background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-dark) 100%);
    color: #fff;
    padding: 44px 0 52px;
}

.docs-hero__eyebrow {
    color: #a7f3d0;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.docs-hero h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    letter-spacing: -0.02em;
}

.docs-hero__lead {
    margin-top: 14px;
    max-width: 44em;
    font-size: 1.1rem;
    color: #d1fae5;
}

.docs {
    display: grid;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 64px;
}

.docs__toc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 0.95rem;
}

.docs__toc-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.docs__toc ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 4px;
}

.docs__toc a {
    text-decoration: none;
}

.docs__toc a:hover,
.docs__toc a:focus-visible {
    text-decoration: underline;
}

@media (min-width: 960px) {
    .docs {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 48px;
        align-items: start;
    }

    .docs__toc {
        position: sticky;
        top: 20px;
    }
}

.docs__content {
    min-width: 0;
}

.docs__content section {
    padding: 0 0 40px;
    scroll-margin-top: 16px;
}

.docs__content h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.docs__content h3 {
    font-size: 1.12rem;
    margin-top: 28px;
}

.docs__content p,
.docs__content ul,
.docs__content ol,
.docs__content pre,
.docs__content dl,
.docs__content .docs__table {
    margin-top: 14px;
}

.docs__content ul,
.docs__content ol {
    padding-left: 22px;
    margin-bottom: 0;
}

.docs__content li + li {
    margin-top: 6px;
}

.docs__content code {
    font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
    font-size: 0.9em;
}

.docs__content :not(pre) > code {
    background: var(--slot);
    border-radius: 6px;
    padding: 1px 6px;
    overflow-wrap: anywhere;
}

.docs__content pre code {
    font-size: 1em;
}

.docs__note {
    background: var(--green-soft);
    border-left: 4px solid var(--green);
    border-radius: 0 12px 12px 0;
    padding: 12px 16px;
    font-size: 0.97rem;
}

.docs__muted {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.docs__facts {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 0;
}

.docs__facts > div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.docs__facts dt {
    font-weight: 700;
}

.docs__facts dd {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.docs__table {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.docs__table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.docs__table th,
.docs__table td {
    text-align: left;
    vertical-align: top;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.docs__table tr:last-child td {
    border-bottom: 0;
}

.docs__table th {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-soft);
    white-space: nowrap;
}

/* Endpoint reference, rendered by /docs/api/reference.js */

.api-ref {
    margin-top: 24px;
}

.api-ref__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.api-ref__filter {
    flex: 1 1 280px;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.api-ref__count {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.docs__content .api-ref__group {
    padding: 0;
    margin-top: 28px;
}

.api-ref__group > h3 {
    margin-top: 0;
}

.api-ref__group > p {
    margin-top: 4px;
}

.api-ref__operation {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.api-ref__operation > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
}

.api-ref__operation > summary::-webkit-details-marker {
    display: none;
}

.api-ref__operation[open] > summary {
    border-bottom: 1px solid var(--line);
}

.api-ref__method {
    flex: 0 0 auto;
    min-width: 4.6em;
    text-align: center;
    border-radius: 6px;
    padding: 1px 8px;
    font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: #475569;
}

.api-ref__method--get {
    background: #047857;
}

.api-ref__method--post {
    background: #4338ca;
}

.api-ref__method--put,
.api-ref__method--patch {
    background: #b45309;
}

.api-ref__method--delete {
    background: #b91c1c;
}

.docs__content .api-ref__path {
    background: none;
    padding: 0;
    font-weight: 600;
}

.api-ref__summary {
    color: var(--text-soft);
    font-size: 0.93rem;
}

.api-ref__body {
    padding: 2px 14px 16px;
}

.api-ref__label {
    margin: 18px 0 0;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.api-ref__body .docs__table,
.api-ref__body pre,
.api-ref__body p {
    margin-top: 8px;
}

.api-ref__body pre {
    font-size: 0.82rem;
    line-height: 1.55;
}

.api-ref__required {
    color: var(--accent-text);
    font-size: 0.8rem;
    font-weight: 700;
}

.api-ref__write {
    font-size: 0.88rem;
    color: var(--text-soft);
}

.api-ref__error {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
}

/* API section of the landing page */

.checks {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.checks li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    color: var(--text-soft);
}

.checks li::before {
    content: "✓";
    color: var(--accent-text);
    font-weight: 800;
}

.card__link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}
