/* The Brunch: olive palette, Cormorant headings, DM Sans body,
   floating pill nav over a dark hero. Self-contained (no shared stylesheets). */
:root {
    --ink: #2a2c1c;
    --muted: #636650;
    --paper: #f7f4ea;
    --cream: #f3efe3;
    --line: rgba(42, 44, 28, 0.12);
    --olive: #5f6642;
    --olive-deep: #4a5134;
    --signal: #3a4028;
    --on: #9aa274;
    --gutter: clamp(16px, 3vw, 48px);
    --nav-h: 60px;
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 40% at 8% -8%, rgba(95, 102, 66, 0.09), transparent 52%),
        linear-gradient(180deg, #faf8f1 0%, var(--paper) 100%);
    color: var(--ink);
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
}

h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
}

.b-skip {
    position: absolute;
    left: -9999px;
    z-index: 2000;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--signal);
    color: #fff;
}

.b-skip:focus {
    left: 16px;
    top: 16px;
}

.b-kicker {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--olive);
}

/* Nav: floating glass pill. */
.b-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px var(--gutter) 0;
}

.b-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1240px;
    min-height: var(--nav-h);
    margin: 0 auto;
    padding: 8px 10px 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    box-shadow: 0 12px 26px rgba(22, 33, 25, 0.1);
}

.b-logo {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
}

.b-logo span {
    font-style: italic;
    font-weight: 500;
    color: var(--olive);
}

.b-nav-links {
    display: none;
    align-items: center;
    gap: 28px;
}

.b-nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--olive-deep);
}

.b-nav-links a:hover {
    color: var(--ink);
}

.b-nav-links a.b-nav-cta {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--signal);
    color: #fff;
}

.b-nav-links a.b-nav-cta:hover {
    background: var(--ink);
}

.b-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.b-nav-toggle span {
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--ink);
}

.b-mobile-menu {
    display: flex;
    flex-direction: column;
    max-width: 1240px;
    margin: 8px auto 0;
    padding: 8px 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(17, 28, 21, 0.14);
}

.b-mobile-menu[hidden] {
    display: none;
}

.b-mobile-menu a {
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.b-mobile-menu a + a {
    border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
    .b-nav-links {
        display: flex;
    }

    .b-nav-toggle,
    .b-mobile-menu {
        display: none;
    }
}

/* Hero: deep olive with a faint azulejo tile pattern, text at the bottom. */
.b-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: clamp(560px, 86vh, 880px);
    padding: calc(var(--nav-h) + 72px) 0 clamp(40px, 6vw, 76px);
    background:
        radial-gradient(ellipse 60% 70% at 85% 10%, rgba(154, 162, 116, 0.35), transparent 60%),
        linear-gradient(180deg, #3a4028 0%, #2a2c1c 100%);
    color: #fff;
    isolation: isolate;
}

.b-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 13px, #fff 14px, #fff 15px, transparent 16px),
        linear-gradient(45deg, transparent 47%, #fff 48%, #fff 52%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, #fff 48%, #fff 52%, transparent 53%);
    background-size: 60px 60px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 100%);
}

.b-hero-text {
    width: calc(100% - 2 * var(--gutter));
    max-width: 1240px;
    margin: 0 auto;
}

.b-hero-text > * {
    max-width: 46rem;
}

.b-hero .b-kicker {
    color: rgba(255, 255, 255, 0.82);
}

.b-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.b-hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: #e4e6cf;
}

.b-lede {
    margin: 0 0 26px;
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
}

.b-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.b-table6 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.78);
}

.b-table6 svg {
    flex: none;
    color: #e4e6cf;
}

/* Buttons */
.b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.b-btn:focus-visible,
.b-nav a:focus-visible,
.b-nav-toggle:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 3px;
}

.b-btn--light {
    background: #fff;
    color: var(--ink);
}

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

.b-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

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

.b-btn--solid:hover {
    background: var(--ink);
}

.b-btn--solid:disabled {
    opacity: 0.7;
    cursor: wait;
}

.b-btn--outline {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

/* Main column */
.b-main {
    width: calc(100% - 2 * var(--gutter));
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 0 72px;
}

.b-section {
    margin: 0 0 64px;
    scroll-margin-top: calc(var(--nav-h) + 32px);
}

.b-head {
    margin-bottom: 22px;
}

.b-head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.b-head p:not(.b-kicker) {
    margin: 0;
    max-width: 40rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--muted);
}

/* City picker + counter */
.b-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.b-cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

.b-city {
    appearance: none;
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.b-city:hover {
    border-color: var(--olive);
}

.b-city:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 2px;
}

.b-city[aria-pressed="true"] {
    border-color: var(--signal);
    box-shadow: inset 0 0 0 1px var(--signal), 0 10px 24px rgba(42, 44, 28, 0.08);
}

.b-city-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}

.b-city-name {
    font-weight: 600;
    font-size: 1.02rem;
}

.b-city-n {
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.b-bar {
    height: 5px;
    border-radius: 9px;
    background: var(--cream);
    overflow: hidden;
}

.b-bar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 9px;
    background: var(--olive);
}

.b-city-status {
    font-size: 0.8rem;
    color: var(--muted);
}

.b-city.is-first .b-city-status {
    color: var(--olive-deep);
    font-weight: 600;
}

.b-counter {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(42, 44, 28, 0.06);
}

.b-big {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.b-num {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.b-of {
    color: var(--muted);
    font-weight: 500;
}

.b-dots {
    display: grid;
    max-width: 360px;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
}

.b-dots span {
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--cream);
    box-shadow: inset 0 0 0 1px var(--line);
}

.b-dots span.is-on {
    background: var(--on);
    box-shadow: none;
}

.b-dots span.is-founder {
    background: var(--signal);
    box-shadow: none;
}

.b-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.84rem;
    color: var(--muted);
}

.b-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
}

.b-legend i.is-founder { background: var(--signal); }
.b-legend i.is-on { background: var(--on); }

.b-counter p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
}

/* How it works */
.b-how {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b-how li {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.b-step {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--olive-deep);
    font-weight: 700;
}

.b-how h3,
.b-addon h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.b-how p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

/* Add-ons: dark glass cards. */
.b-addons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.b-addon {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(154, 162, 116, 0.45), transparent 65%),
        #2c3f36;
    color: #fff;
}

.b-addon:nth-child(2) {
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(140, 160, 180, 0.4), transparent 65%),
        #2f4550;
}

.b-addon:nth-child(3) {
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(200, 170, 140, 0.4), transparent 65%),
        #4a3f34;
}

.b-tag {
    align-self: flex-start;
    margin: 0 0 auto;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
}

.b-addon h3 {
    margin-top: 28px;
    font-size: 1.5rem;
}

.b-addon p:not(.b-tag) {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

/* Form */
.b-form,
.b-done {
    display: grid;
    gap: 16px;
    max-width: 720px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(42, 44, 28, 0.06);
}

.b-form[hidden],
.b-done[hidden] {
    display: none;
}

.b-form .b-head {
    margin-bottom: 0;
}

.b-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.b-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.b-field label,
.b-field legend {
    padding: 0;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.b-field label span,
.b-field legend span {
    font-weight: 400;
    color: var(--muted);
}

.b-field[hidden] {
    display: none;
}

.b-field input:not([type="checkbox"]):not([type="radio"]),
.b-field select,
.b-field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #faf8f1;
    color: var(--ink);
    font: inherit;
    font-size: 0.98rem;
}

.b-field select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f6642' stroke-width='1.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.b-field textarea {
    resize: vertical;
    min-height: 3.2em;
    line-height: 1.45;
}

.b-field input:focus,
.b-field select:focus,
.b-field textarea:focus {
    outline: 2px solid rgba(95, 102, 66, 0.35);
    outline-offset: 1px;
    border-color: var(--olive);
}

.b-field .b-inline-input {
    margin-top: 10px;
}

.b-private {
    gap: 14px;
    padding: 18px;
    border: 1px dashed rgba(95, 102, 66, 0.4);
    border-radius: 14px;
    background: #fcfbf6;
}

.b-private-note {
    margin: 0 0 4px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--muted);
}

.b-private-note b {
    color: var(--olive-deep);
}

.b-consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    cursor: pointer;
}

.b-consent[hidden] {
    display: none;
}

.b-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--signal);
}

.b-consent a {
    color: var(--olive-deep);
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.b-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.b-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.b-chip {
    position: relative;
}

.b-chip input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.b-chip span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #faf8f1;
    font-size: 0.9rem;
    font-weight: 500;
}

.b-chip input:hover + span {
    border-color: var(--olive);
}

.b-chip input:checked + span {
    border-color: var(--signal);
    background: var(--signal);
    color: #fff;
}

.b-chip input:focus-visible + span {
    outline: 2px solid var(--olive);
    outline-offset: 2px;
}

.b-plans {
    gap: 8px;
}

.b-plans .b-plan {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #faf8f1;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.b-plans .b-plan:hover {
    border-color: var(--olive);
}

.b-plans .b-plan:has(input:checked) {
    border-color: var(--signal);
    background: var(--cream);
    box-shadow: inset 0 0 0 1px var(--signal);
}

.b-plan input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--signal);
}

.b-plan b {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    font-weight: 600;
}

.b-plan em {
    font-style: normal;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.b-plan small {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--muted);
}

.b-plans-note {
    margin: 4px 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--muted);
}

.b-turnstile {
    min-height: 65px;
}

.b-turnstile[hidden] {
    display: none;
}

.b-err {
    margin: 0;
    color: #8a3b2b;
    font-size: 0.92rem;
}

.b-privacy {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.b-privacy a {
    color: var(--olive-deep);
}

.b-done h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
}

.b-done p:not(.b-kicker) {
    margin: 0;
    line-height: 1.55;
}

.b-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.b-note {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Footer */
.b-footer {
    padding: 42px var(--gutter) 28px;
    border-top: 1px solid var(--line);
    background: var(--cream);
}

.b-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    max-width: 1240px;
    margin: 0 auto;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.b-footer-grid p {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: var(--muted);
}

.b-footer-brand {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.b-footer-grid .b-footer-brand {
    font-size: 1.5rem;
    color: var(--ink);
}

.b-footer h2 {
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--olive);
}

.b-footer-grid a {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    text-decoration: none;
}

.b-footer-grid a:hover {
    color: var(--olive-deep);
    text-decoration: underline;
}

.b-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 18px;
    max-width: 1240px;
    margin: 16px auto 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.b-footer-bottom p {
    margin: 0;
}

.b-footer-bottom a {
    text-underline-offset: 3px;
}

/* Privacy page */
.b-doc {
    max-width: 760px;
    padding-top: calc(var(--nav-h) + 56px);
}

.b-doc h1 {
    margin: 0 0 8px;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.b-doc h2 {
    margin: 36px 0 10px;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.b-doc p,
.b-doc li {
    line-height: 1.65;
}

.b-doc ul {
    padding-left: 1.2em;
}

.b-doc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

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

.b-doc .b-updated {
    color: var(--muted);
}

.b-doc mark {
    padding: 0 4px;
    border-radius: 4px;
    background: #fbe7a8;
    color: var(--ink);
}

@media (max-width: 960px) {
    .b-split,
    .b-how,
    .b-addons {
        grid-template-columns: minmax(0, 1fr);
    }

    .b-addon {
        min-height: 200px;
    }

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

@media (max-width: 560px) {
    .b-two {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .b-hero-actions .b-btn {
        flex: 1 1 auto;
    }

    .b-doc table,
    .b-doc tbody,
    .b-doc tr,
    .b-doc th,
    .b-doc td {
        display: block;
    }

    .b-doc thead {
        display: none;
    }

    .b-doc td:first-child {
        padding-bottom: 0;
        font-weight: 600;
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .b-bar i {
        transition: width 0.6s ease;
    }
}
