@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0a0c0f;
    --panel: #121519;
    --terminal: #0d1013;
    --border: #23272e;
    --border-soft: #1a1e24;
    --text: #e6e8eb;
        --muted: #8a92a0;
    --muted-2: #5b6270;
    --accent: #f2c94c;
    --accent-dim: #a8863a;
    --green: #3fb950;
    --green-dim: rgba(63, 185, 80, 0.12);
    --red: #f85149;
    --red-dim: rgba(248, 81, 73, 0.12);

    /* Spacing scale (8px base) — use these instead of one-off values */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Type scale */
    --text-xs: 11px;
    --text-sm: 12px;
    --text-base: 13px;
    --text-md: 14px;
    --text-lg: 16px;
    --text-xl: 19px;
       --text-2xl: clamp(26px, 4.4vw, 36px);
    --text-3xl: clamp(20px, 3.2vw, 24px);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(242, 201, 76, 0.05), transparent 60%),
        radial-gradient(circle at 85% 100%, rgba(63, 185, 80, 0.04), transparent 60%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    display: flex;
    flex-direction: column;
}
.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ---------- Page structure (sticky footer) ---------- */
/* .page-main wraps every page's content between <nav> and <footer>.
   flex: 1 makes it fill remaining viewport height so the footer
   is always pinned to the bottom, even on short pages. */
.page-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* ---------- Top bar ---------- */
.navbar {
    flex: 0 0 auto;
    border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: var(--space-3);
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text);
    text-decoration: none;
    font-size: var(--text-md);
    font-weight: 600;
    letter-spacing: -0.01em;
    order: 1;
}

.brand .prompt {
    color: var(--accent);
}

.brand .caret {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--accent);
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    font-weight: 600;
    color: #0a0c0f;
    text-decoration: none;
    background: var(--accent);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    letter-spacing: -0.01em;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
    order: 3;
}

.nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -6px rgba(242, 201, 76, 0.5);
}

.nav-link:active {
    transform: translateY(0);
}

/* ---------- Main / no-scroll stage ---------- */
.stage {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 65px);
    padding: var(--space-4) 0;
}

.headline {
    text-align: center;
    margin-bottom: var(--space-5);
}

.headline h1 {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.headline .comment {
    color: var(--muted);
    font-size: var(--text-lg);
    line-height: 1.55;
    margin-top: var(--space-3);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.headline .comment .slash {
    color: var(--muted-2);
}

/* ---------- Terminal window ---------- */
.window {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(180deg, #15181d, #121519);
}

.dots {
    display: flex;
    gap: 7px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.window-body {
    background: var(--terminal);
    padding: var(--space-6) var(--space-6);
}

.line {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-md);
    color: var(--muted-2);
    margin-bottom: var(--space-1);
}

.line .k {
    color: var(--accent-dim);
}

.line .file {
    color: var(--accent);
    font-weight: 600;
}

.idea-line {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    margin: var(--space-3) 0 var(--space-4);
}
.idea-line .gt {
    color: var(--green);
    font-weight: 700;
    flex: 0 0 auto;
}

.idea-text {
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text);
}

.idea-text .quote {
    color: var(--muted-2);
}

.count-line {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--muted);
    margin-bottom: var(--space-4);
}

.count-line .bracket {
    color: var(--muted-2);
}

.count-line strong {
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Vote button ---------- */
.btn-vote {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-family: inherit;
    background: var(--accent);
    color: #14120a;
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-md);
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn-vote:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(242, 201, 76, 0.45);
}

.btn-vote:active:not(:disabled) {
    transform: translateY(0);
}

.btn-vote:disabled {
    cursor: default;
    background: var(--green-dim);
    color: var(--green);
    box-shadow: none;
}

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

/* ---------- Voted state / email capture (home page) ---------- */
.voted-state {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.voted-state.is-visible {
    display: flex;
}

.voted-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--green);
    background: var(--green-dim);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    width: 100%;
}

.email-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: none;
    border: none;
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--muted);
    cursor: pointer;
    padding: var(--space-1) 0;
    transition: color 0.15s ease;
}

.email-toggle .gt {
    color: var(--green);
    font-weight: 700;
}

.email-toggle:hover {
    color: var(--text);
}

.email-optional-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
}

.email-capture {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}

.email-capture.is-visible {
    max-height: 80px;
    opacity: 1;
    margin-top: var(--space-1);
}

/* Ligne réutilisable input + bouton (home + submit notify) */
.email-row {
    display: flex;
    gap: var(--space-2);
}

.email-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 var(--space-4);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-input-wrap:focus-within {
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.1);
}

.email-input-wrap .bracket {
    color: var(--muted-2);
    font-size: var(--text-base);
    margin-right: var(--space-2);
}

.email-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--text);
    padding: var(--space-3) 0;
}

.email-input-wrap input::placeholder {
    color: var(--muted-2);
}

.btn-notify {
    font-family: inherit;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 var(--space-6);
    height: 46px;
    font-size: var(--text-md);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
    margin-top: var(--space-3);
    margin-bottom: var(--space-3);
}

.btn-notify:hover:not(:disabled) {
    border-color: var(--accent-dim);
    background: rgba(242, 201, 76, 0.08);
    transform: translateY(-1px);
}

.btn-notify:disabled {
    cursor: default;
    opacity: 0.5;
}

/* ---------- How it works ---------- */
.how-it-works {
    flex: 0 0 auto;
    border-top: 1px solid var(--border-soft);
    padding: var(--space-12) 0;
}

.section-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-10);
}

.section-tag .path {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.section-tag .path .dot-sep {
    color: var(--accent-dim);
}

.section-tag::before,
.section-tag::after {
    content: "";
    height: 1px;
    width: 40px;
    background: var(--border);
}

.steps {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.step {
    flex: 1 1 180px;
    max-width: 220px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-4);
}

.step-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.step-number {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.step-arrow {
    color: var(--muted-2);
    font-size: var(--text-base);
}

.step p {
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.step-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.steps-note {
    text-align: center;
    max-width: 480px;
    margin: var(--space-6) auto 0;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--muted);
}

.steps-note .slash {
    color: var(--muted-2);
}

/* ---------- Closing CTA ---------- */
.closing {
    flex: 0 0 auto;
    border-top: 1px solid var(--border-soft);
    padding: var(--space-12) 0;
    text-align: center;
}

.closing .cmd {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.closing .cmd .prompt {
    color: var(--accent);
    margin-right: var(--space-2);
}

.closing .comment {
    margin-top: var(--space-2);
    font-size: var(--text-base);
    color: var(--muted);
}

.closing .comment .slash {
    color: var(--muted-2);
}

/* ---------- Footer strip ---------- */
.footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--border-soft);
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--muted-2);
}

.footer-inner .k {
    color: var(--accent-dim);
}

.footer-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6);
}

.footer-nav {
    display: flex;
    gap: var(--space-5);
}

.footer-nav a {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-nav a.is-active {
    color: var(--accent);
}

/* ---------- Submit page ---------- */
.window-body.form-body {
    padding: var(--space-6) var(--space-6) var(--space-5);
}

.field-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--muted);
    margin-bottom: var(--space-3);
}

.field-label .gt {
    color: var(--green);
    font-weight: 700;
}

textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: var(--text-md);
    color: var(--text);
    line-height: 1.55;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea::placeholder {
    color: var(--muted-2);
}

textarea:focus {
    outline: none;
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.1);
}

textarea.has-error {
    border-color: var(--red);
}

textarea.has-error:focus {
    box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.12);
}

.char-count {
    display: block;
    text-align: right;
    font-size: var(--text-xs);
    color: var(--muted-2);
    margin-top: var(--space-2);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.error-message {
    font-size: var(--text-sm);
    color: var(--red);
    font-weight: 500;
    min-height: 16px;
}

.btn-secondary {
    font-family: inherit;
    background: var(--accent);
    color: #14120a;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.15s ease;
    white-space: nowrap;
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(242, 201, 76, 0.45);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

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

/* Success state after a real submission */
.submit-success {
    text-align: center;
    padding: var(--space-3) 0 var(--space-1);
}

.submit-success .check {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green-dim);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    margin: 0 auto var(--space-4);
}

.submit-success h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text);
}

.submit-success p {
    font-size: var(--text-base);
    color: var(--muted);
    line-height: 1.5;
}

/* Notify block shown after submitting */
.notify-block {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-soft);
}

.notify-question {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-3);
}

.notify-block .email-row {
    max-width: 360px;
    margin: 0 auto;
}

.notify-hint {
    font-size: var(--text-xs);
    color: var(--muted-2);
    margin-top: var(--space-3);
}

/* ---------- Support page ---------- */
.support-stage {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) 0;
}

.support-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
    padding: var(--space-10) var(--space-8);
}

.support-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-5);
    border-radius: 50%;
    background: var(--red-dim);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
}

/* Card headline: bolder than body copy so the value prop lands
   before the eye reaches the CTA — key for a donation ask. */
.support-card h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
    color: var(--text);
}

.support-text {
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: var(--space-6);
}

.support-text:last-of-type {
    margin-bottom: var(--space-6);
}

/* Primary CTA: sized and weighted like .btn-secondary so every
   main call-to-action on the site reads with the same confidence. */
.btn-kofi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-family: inherit;
    background: var(--accent);
    color: #14120a;
    text-decoration: none;
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-kofi:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(242, 201, 76, 0.45);
}

.btn-kofi .arrow {
    transition: transform 0.15s ease;
}

.btn-kofi:hover .arrow {
    transform: translateX(3px);
}

.support-thanks {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--muted-2);
}

.heart-inline {
    filter: saturate(1.4);
}

/* ---------- Supporters list ---------- */
.supporters-block {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-soft);
}

.supporters-label {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: var(--space-2);
}

.supporters-empty {
    font-size: var(--text-base);
    font-style: italic;
    color: var(--muted);
}

/* ---------- Be featured note ---------- */
.featured-note {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-soft);
    font-size: var(--text-xs);
    line-height: 1.6;
    color: var(--muted-2);
}

.featured-note p {
    margin-bottom: var(--space-2);
}

.featured-note a {
    color: var(--accent) !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.featured-note a:visited {
    color: var(--accent);
}

.featured-note a:hover {
    color: var(--accent-dim);
}

.interested-count {
    display: none;
    font-size: var(--text-base);
    color: var(--muted);
    text-align: center;
    margin-bottom: var(--space-1);
}

.interested-count.is-visible {
    display: block;
}

.interested-count strong {
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Archive page ---------- */
.archive-stage {
    flex: 1 0 auto;
    padding: var(--space-12) 0 var(--space-16);
}

.archive-head {
    text-align: center;
    margin-bottom: var(--space-10);
}

.archive-head h1 {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.archive-head .comment {
    color: var(--muted);
    font-size: var(--text-md);
    margin-top: var(--space-2);
}

.archive-head .comment .slash {
    color: var(--muted-2);
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.archive-loading {
    text-align: center;
    font-size: var(--text-base);
    color: var(--muted);
    padding: var(--space-5) 0;
}

.archive-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -25px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.archive-card-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-5);
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(180deg, #15181d, #121519);
}

.archive-card-bar .dots {
    display: flex;
    gap: 7px;
}

.archive-date {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.archive-card-body {
    background: var(--terminal);
    padding: var(--space-6) var(--space-5);
}

.archive-idea {
    font-size: var(--text-lg);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text);
}

.archive-idea .quote {
    color: var(--muted-2);
}

.archive-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-6);
}
#subscriber-count {
    margin-top: calc(-1 * var(--space-4));
}

#subscriber-count:empty {
    display: none;
}
.btn-vote-sm {
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--accent);
    color: #14120a;
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.15s ease;
    white-space: nowrap;
}

.btn-vote-sm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(242, 201, 76, 0.45);
}

.btn-vote-sm:disabled {
    cursor: default;
    background: var(--green-dim);
    color: var(--green);
    box-shadow: none;
}

.archive-votes {
    font-size: var(--text-base);
    color: var(--muted);
    white-space: nowrap;
}

.archive-votes strong {
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Support button (discreet) ---------- */
.btn-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: var(--space-4) auto 0;
    font-family: inherit;
    background: transparent;
    color: var(--muted);
    border: none;
    padding: var(--space-2) var(--space-1);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.15s ease;
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
}

.btn-support:hover {
    color: var(--text);
    text-decoration-color: var(--text);
}
.btn-support .heart {
    color: #ff8a3d;
    font-size: var(--text-base);
    line-height: 1;
    transition: transform 0.15s ease;
}

.btn-support:hover .heart {
    transform: scale(1.15);
}

/* ---------- Discreet nav links ---------- */
.nav-links-discreet {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    order: 2;
}

.nav-link-discreet {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-link-discreet:hover {
    color: var(--text);
}

/* ---------- Hero (submit page) ---------- */
.hero {
    flex: 0 0 auto;
    padding: var(--space-12) 0 var(--space-2);
    text-align: center;
}

.hero h1 {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    color: var(--muted);
    font-size: var(--text-md);
    margin-top: var(--space-2);
}

/* ---------- Note text (submit page) ---------- */
.note {
    text-align: center;
    max-width: 480px;
    margin: var(--space-2) auto 0;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--muted);
}

.note a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

.note a:visited {
    color: var(--accent);
}

.note a:hover {
    color: var(--accent-dim);
    text-decoration: underline;
}

/* .submit-section sits inside .page-main and takes the remaining
   space so the footer stays pinned to the bottom of short pages. */
.submit-section {
    flex: 1 0 auto;
    padding-bottom: var(--space-10);
}

/* ---------- Rules page ---------- */
.rules-section {
    flex: 1 0 auto;
    padding: var(--space-6) 0 var(--space-16);
}

.rules-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
    padding: var(--space-8) var(--space-8) var(--space-10);
}

.rules-intro {
    font-size: var(--text-md);
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: var(--space-5);
}

.rules-subhead {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-3);
}

.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.rules-list li {
    position: relative;
    padding-left: var(--space-5);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--muted);
}

.rules-list li::before {
    content: "×";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--red);
    font-weight: 700;
}

.rules-divider {
    height: 1px;
    background: var(--border-soft);
    margin: var(--space-8) 0 var(--space-6);
}

.rules-h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-3);
}

.rules-text {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: var(--space-2);
}

.rules-text:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .rules-section { padding: var(--space-4) 0 var(--space-12); }
    .rules-card { padding: var(--space-6) var(--space-5) var(--space-6); }
}

@media (max-width: 480px) {
    .nav-inner {
        padding: var(--space-3) var(--space-4);
        row-gap: var(--space-2);
    }
    .brand {
        font-size: var(--text-base);
    }
    .nav-link {
        order: 2;
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
    }
    .nav-links-discreet {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        gap: var(--space-4);
        padding-top: var(--space-2);
        border-top: 1px solid var(--border-soft);
    }
    .nav-link-discreet {
        font-size: var(--text-xs);
    }
    .container { padding: 0 var(--space-4); }
    .window-body { padding: var(--space-6) var(--space-4); }
    .window-body.form-body { padding: var(--space-5) var(--space-4) var(--space-4); }
    .idea-text { font-size: 17px; }
    .footer-inner { font-size: var(--text-xs); }
    .form-footer { flex-direction: column; align-items: stretch; gap: var(--space-2); }
    .btn-secondary { width: 100%; }
    .how-it-works { padding: var(--space-10) 0; }
    .steps { flex-direction: column; align-items: center; }
    .step { width: 100%; max-width: 280px; }
    .closing { padding: var(--space-10) 0; }
    .closing .cmd { font-size: var(--text-md); }
    .notify-block .email-row { flex-direction: column; }
    .archive-stage { padding: var(--space-10) 0 var(--space-12); }
    .archive-card-body { padding: var(--space-5) var(--space-4); }
    .archive-footer { flex-direction: column; align-items: stretch; gap: var(--space-2); }
    .btn-vote-sm { justify-content: center; }
    .hero { padding: var(--space-6) 0 var(--space-1); }
    .support-card { padding: var(--space-8) var(--space-5); }
    .btn-kofi { width: 100%; }
    .footer-nav { gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
}