/* Memberbase landing. Warm paper background, deep teal ink, saffron accent.
   Signature: the "membership stamp" (round badge) used on the hero photo, the step marks and the logo. */
@font-face { font-family: "Young Serif"; src: url("/fonts/memberbase/young-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/memberbase/hanken-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/memberbase/hanken-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/memberbase/hanken-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --ink: #173f45;
    --text: #263235;
    --muted: #5b6a6d;
    --line: #e4dccd;
    --paper: #fbf7ef;
    --card: #ffffff;
    --alt: #f3ecdf;
    --accent: #e3a33b;
    --accent-soft: #f7dfb0;
    --cta: #1d6b70;
    --cta-dark: #155257;
    --error: #b42318;
    --link: #1d6b70;
    --band: #173f45;
    --field: #ffffff;
    --field-text: #263235;
    --shadow: rgba(23, 63, 69, 0.15);
    --radius: 14px;
    color-scheme: light;
}

/* Dark mode: every colour comes from these tokens; contrast checked at WCAG AA. */
@media (prefers-color-scheme: dark) {
    :root {
        --ink: #a9dcdf;
        --text: #e7e2d9;
        --muted: #bdb6aa;
        --line: #36423f;
        --paper: #131b1c;
        --card: #1c2628;
        --alt: #182224;
        --accent: #e3a33b;
        --accent-soft: #5b4521;
        --cta: #1d6b70;
        --cta-dark: #155257;
        --error: #ff9b8f;
        --link: #8fd0d4;
        --band: #0d2225;
        --field: #10181a;
        --field-text: #e7e2d9;
        --shadow: rgba(0, 0, 0, 0.45);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font: 17px/1.65 "Hanken Grotesk", system-ui, sans-serif;
    color: var(--text);
    background: var(--paper);
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 700px; }
.wrap.narrow { margin: 0 auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); color: var(--text); padding: 8px; z-index: 10; }

.pi { width: 24px; height: 24px; color: var(--ink); fill: var(--accent-soft); flex: none; vertical-align: middle; }
.pi-lg { width: 44px; height: 44px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 400 1.35rem "Young Serif", Georgia, serif; color: var(--ink); text-decoration: none; }
.logo .pi { width: 30px; height: 30px; }
.nav { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

h1, h2 { font-family: "Young Serif", Georgia, serif; font-weight: 400; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.15; margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 24px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; color: var(--ink); }
a { color: var(--link); }

.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.18rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.hero-photo { position: relative; margin: 0; }
.hero-photo img { border-radius: 24px 24px 24px 120px; box-shadow: 0 18px 40px var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.stamp { position: absolute; left: -18px; bottom: 28px; display: flex; align-items: center; gap: 8px; background: var(--card); color: var(--ink); font-weight: 700; padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 20px var(--shadow); }

.section { padding: 64px 0; }
.section.alt { background: var(--alt); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .pi-lg { margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.tile { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px var(--shadow); }
.tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tile-body { padding: 18px 20px 22px; }
.tile-body p { margin: 0; color: var(--muted); }

.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.steps li { position: relative; padding-top: 8px; }
.step-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--ink); color: var(--ink); font: 400 1.3rem "Young Serif", Georgia, serif; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); }

.note-card { display: flex; gap: 18px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.note-card p { margin: 0; color: var(--muted); }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 24px 0; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tier p { margin: 4px 0; }
.tier-featured { border: 2px solid var(--accent); }
.tier-included { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 0.95rem; margin-top: 12px !important; }
.price { font: 400 2rem "Young Serif", Georgia, serif; color: var(--ink); }
.price span { font: 400 0.95rem "Hanken Grotesk", sans-serif; color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }

.signup { background: var(--band); }
.signup-card { background: var(--card); border-radius: 20px; padding: 32px; }

.btn { display: inline-block; background: var(--cta); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--cta-dark); }

form label { display: block; font-weight: 600; margin: 14px 0 4px; }
form input, form select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--field); color: var(--field-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--error); font-weight: 600; }

.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid address { font-style: normal; }
.footer-grid li { margin-bottom: 4px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-top: 0; font: 400 1.2rem "Young Serif", Georgia, serif; color: var(--ink); }
.footer-grid strong { color: var(--ink); }

.legal h2 { font-size: 1.3rem; margin-top: 28px; }
.credits li { margin-bottom: 6px; }

@media (max-width: 860px) {
    .hero { padding-top: 32px; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .stamp { left: 12px; }
    .signup-card { padding: 22px; }
}
a[href^="tel:"] { white-space: nowrap; }
