/* Public pages (home, contact, privacy, terms, errors): warm honey tones, light and dark. */

:root {
    --bg: #fbf7ef;
    --surface: #ffffff;
    --band: #f4ecdc;
    --ink: #1c1917;
    --muted: #57534e;
    --line: #e7dcc8;
    --honey: #b45309;
    --honey-strong: #92400e;
    --honey-soft: #fdecc8;
    --on-honey: #ffffff;
    --shadow: 0 18px 50px rgb(68 44 12 / 0.16);
    --hex: #d9a441;
    color-scheme: light;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14110c;
        --surface: #1f1a13;
        --band: #1a1610;
        --ink: #f5efe4;
        --muted: #c2b8a6;
        --line: #3a3124;
        --honey: #f59e0b;
        --honey-strong: #fbbf24;
        --honey-soft: #3a2a0f;
        --on-honey: #1c1206;
        --shadow: 0 18px 50px rgb(0 0 0 / 0.45);
        --hex: #f59e0b;
        color-scheme: dark;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    margin: 0;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

figure {
    margin: 0;
}

a {
    color: var(--honey);
}

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

.wrap {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 24px;
}

/* Header */

.site-header {
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    align-items: center;
    display: flex;
    gap: 24px;
    min-height: 64px;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: flex;
    font-size: 1.2rem;
    font-weight: 800;
    gap: 10px;
    text-decoration: none;
}

.brand img {
    border-radius: 9px;
}

.header-nav {
    display: flex;
    gap: 22px;
}

.header-nav a,
.link-login {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-nav a:hover,
.link-login:hover {
    color: var(--ink);
}

.header-actions {
    align-items: center;
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.language-menu {
    position: relative;
}

.language-menu summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    list-style: none;
    padding: 6px 10px;
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-list {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    min-width: 170px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
}

.language-list form {
    margin: 0;
}

.language-list button {
    background: none;
    border: 0;
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    padding: 7px 10px;
    text-align: left;
    width: 100%;
}

.language-list button:hover,
.language-list button[aria-current] {
    background: var(--honey-soft);
}

/* Buttons */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    text-decoration: none;
    transition: transform 0.15s, background-color 0.15s;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--honey);
    color: var(--on-honey);
}

.button.primary:hover {
    background: var(--honey-strong);
}

.button.secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

.button.small {
    min-height: 40px;
    padding: 0 16px;
}

.button:focus-visible,
.header-nav a:focus-visible,
.language-menu summary:focus-visible {
    outline: 3px solid var(--honey);
    outline-offset: 2px;
}

/* Hero */

.hero {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23d9a441' stroke-opacity='.22' stroke-width='1.5'/%3E%3C/svg%3E") top right / 56px 97px,
        radial-gradient(ellipse at 80% 20%, var(--honey-soft), transparent 60%);
    overflow: hidden;
    padding: 72px 0 88px;
}

.hero-inner {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.eyebrow {
    color: var(--honey);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    letter-spacing: -0.02em;
}

.lead {
    color: var(--muted);
    font-size: 1.15rem;
    margin: 22px 0 30px;
}

.hero-note {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 18px 0 0;
}

.hero-shots {
    position: relative;
}

.browser-frame {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.browser-bar {
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 6px;
    padding: 10px 12px;
}

.browser-bar span {
    background: var(--line);
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.phone-frame {
    background: #1c1917;
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 8px;
}

.phone-frame img {
    border-radius: 23px;
}

.hero-phone {
    bottom: -48px;
    left: -40px;
    position: absolute;
    width: 30%;
}

/* Sections */

.section {
    padding: 88px 0;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.01em;
    margin-bottom: 40px;
    text-align: center;
}

.band {
    background: var(--band);
}

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

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
}

.feature svg {
    background: var(--honey-soft);
    border-radius: 10px;
    fill: none;
    height: 44px;
    padding: 10px;
    stroke: var(--honey);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 44px;
}

.feature h3 {
    font-size: 1.12rem;
    margin: 16px 0 8px;
}

.feature p,
.steps p,
.privacy-grid p {
    color: var(--muted);
    margin: 0;
}

/* Showcase rows: text beside a screenshot, alternating sides. */

.showcase {
    display: grid;
    gap: 96px;
}

.showcase-row {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.showcase-row.reverse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.showcase-row.reverse .showcase-text {
    order: 2;
}

.showcase-text h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    margin-bottom: 16px;
}

.showcase-text p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

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

.checks li {
    padding-left: 30px;
    position: relative;
}

.checks li::before {
    background: var(--honey-soft);
    border-radius: 50%;
    color: var(--honey);
    content: "✓";
    font-size: 0.8rem;
    font-weight: 800;
    height: 20px;
    left: 0;
    line-height: 20px;
    position: absolute;
    text-align: center;
    top: 2px;
    width: 20px;
}

.shot {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.credit {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 8px;
    text-align: right;
}

.credit a {
    color: inherit;
}

.phones {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.phones .phone-frame {
    width: min(42%, 270px);
}

.phones .phone-frame:last-child {
    margin-top: 48px;
}

.stack {
    display: grid;
    gap: 20px;
}

.stack .shot:last-child {
    margin-left: 12%;
    margin-top: -120px;
}

/* Getting started */

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

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

.steps li::before {
    align-items: center;
    background: var(--honey);
    border-radius: 50%;
    color: var(--on-honey);
    content: counter(step);
    display: flex;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    margin-bottom: 16px;
    width: 36px;
}

.steps h3,
.privacy-grid h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

.privacy-grid > div {
    border-top: 3px solid var(--honey);
    padding-top: 18px;
}

.final-cta {
    background: var(--honey-soft);
    text-align: center;
}

.final-cta h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 26px;
}

.final-cta .actions {
    justify-content: center;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
    padding: 28px 0;
}

.footer-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-inner a {
    color: var(--muted);
}

/* Messages after e.g. logging out */

.landing-toast-stack {
    left: 50%;
    max-width: min(34rem, calc(100vw - 2rem));
    position: fixed;
    top: 76px;
    transform: translateX(-50%);
    width: max-content;
    z-index: 20;
}

.landing-toast {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--honey);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 12px 16px;
}

/* Other public pages: a card or a reading column between the header and footer. */

body.page main {
    padding: 56px 16px 72px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: 620px;
    padding: 32px;
}

.panel h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 10px;
}

.panel > p {
    color: var(--muted);
    margin: 0 0 24px;
}

.panel label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.panel input:not([type="hidden"]),
.panel textarea {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font: inherit;
    margin-bottom: 16px;
    padding: 12px 14px;
    width: 100%;
}

.panel textarea {
    min-height: 160px;
    resize: vertical;
}

.panel input:focus,
.panel textarea:focus {
    border-color: var(--honey);
    box-shadow: 0 0 0 3px var(--honey-soft);
    outline: none;
}

.panel button[type="submit"] {
    background: var(--honey);
    border: 0;
    border-radius: 10px;
    color: var(--on-honey);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 48px;
    padding: 0 22px;
}

.panel button[type="submit"]:hover {
    background: var(--honey-strong);
}

.panel .button {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

.panel .actions {
    align-items: center;
}

.captcha {
    margin: 4px 0 20px;
}

.captcha altcha-widget {
    display: block;
    max-width: 100%;
}

.error {
    background: color-mix(in srgb, #dc2626 10%, var(--surface));
    border: 1px solid color-mix(in srgb, #dc2626 35%, var(--surface));
    border-radius: 8px;
    color: #b91c1c;
    font-size: 0.92rem;
    margin: -8px 0 16px;
    padding: 8px 12px;
}

.message {
    background: color-mix(in srgb, #16a34a 10%, var(--surface));
    border: 1px solid color-mix(in srgb, #16a34a 35%, var(--surface));
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 12px 14px;
}

@media (prefers-color-scheme: dark) {
    .error {
        color: #fca5a5;
    }
}

.legal {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin: 0 auto;
    max-width: 820px;
    padding: 36px 40px;
}

.legal h1 {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    margin: 18px 0 4px;
}

.legal h2 {
    color: var(--honey);
    font-size: 1.2rem;
    margin: 32px 0 10px;
}

.legal h3 {
    font-size: 1rem;
    margin: 20px 0 6px;
}

.legal p,
.legal li {
    color: var(--ink);
}

.legal table {
    border-collapse: collapse;
    font-size: 0.93rem;
    margin: 10px 0;
    width: 100%;
}

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

.legal .updated,
.legal-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.legal .missing {
    color: #b91c1c;
    font-weight: 600;
}

.legal-nav {
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 20px;
    padding-bottom: 12px;
}

.legal-nav a {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}

.legal-nav a[aria-current] {
    color: var(--honey);
}

/* Tablets and phones */

/* Five links and the account buttons fit only on a wide screen; the footer has the same links. */
@media (max-width: 1120px) {
    .header-nav {
        display: none;
    }
}

@media (max-width: 960px) {
    .header-nav {
        display: none;
    }

    .hero {
        padding: 48px 0 72px;
    }

    .hero-inner,
    .showcase-row,
    .showcase-row.reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .showcase-row.reverse .showcase-text {
        order: 0;
    }

    .hero-shots {
        margin: 0 auto;
        max-width: 640px;
        padding-left: 12%;
    }

    .hero-phone {
        left: 0;
        width: 28%;
    }

    .feature-grid,
    .privacy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .section {
        padding: 64px 0;
    }

    .showcase {
        gap: 72px;
    }
}

@media (max-width: 600px) {
    .wrap {
        padding: 0 16px;
    }

    .header-inner {
        gap: 12px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-actions .button.small {
        display: none;
    }

    .feature-grid,
    .privacy-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .actions .button {
        flex: 1 1 100%;
    }

    .stack .shot:last-child {
        margin: 0;
    }

    body.page main {
        padding: 24px 12px 48px;
    }

    .panel,
    .legal {
        padding: 22px 18px;
    }

    .legal table {
        display: block;
        overflow-x: auto;
    }
}

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

    .button {
        transition: none;
    }
}

/* An association's page (/<slug>/) */

.association .eyebrow {
    margin-bottom: 6px;
}

.association-about {
    margin-bottom: 24px;
}

.association-about p {
    margin: 0 0 12px;
}

.association-contact {
    border-top: 1px solid var(--line);
    list-style: none;
    margin: 0 0 24px;
    padding: 16px 0 0;
}

.association-contact li {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 4px 0;
}

.association-contact span {
    color: var(--muted);
    min-width: 140px;
}

.association-contact a {
    color: var(--honey);
    overflow-wrap: anywhere;
}

.association-join {
    background: var(--band);
    border-radius: 12px;
    padding: 20px;
}

.association-join h2 {
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.association-join p {
    color: var(--muted);
    margin: 0 0 16px;
}

.association-join .button.primary {
    background: var(--honey);
    border-color: transparent;
    color: var(--on-honey);
}

.association-join .button.primary:hover {
    background: var(--honey-strong);
}

.text-link {
    color: var(--honey);
    font-weight: 700;
}

.showcase-text p:has(.text-link) {
    margin-top: 20px;
}

.association-list {
    margin: 0 0 28px;
}

.association-steps-title {
    font-size: 1.25rem;
    margin: 0 0 10px;
}

.association-steps {
    margin: 0 0 24px;
    padding-left: 22px;
}

.association-steps li {
    padding: 3px 0;
}

.association-join .button {
    padding-bottom: 10px;
    padding-top: 10px;
    text-align: center;
}

.header-actions .button {
    white-space: nowrap;
}
