@link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@400;600;700&display=swap" rel="stylesheet" />

html, body {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    background: #eef2ef;
    min-height: 100vh;
    margin: 0;
}

.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #14352d;
    color: #e8f2ee;
    flex-shrink: 0;
}

.sidebar .nav-brand {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.sidebar .nav-link {
    color: #c5d9d1;
    border-radius: 0.4rem;
    padding: 0.45rem 0.75rem;
}

.sidebar .nav-link.active, .sidebar .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

main {
    flex: 1;
    min-width: 0;
}

.top-row {
    background: rgba(255,255,255,0.72);
    border-bottom: 1px solid rgba(20,53,45,0.08);
    height: 3.5rem;
    backdrop-filter: blur(8px);
}

.btn-primary {
    background: #1f6f5b;
    border-color: #1f6f5b;
}

.btn-primary:hover {
    background: #185a4a;
    border-color: #185a4a;
}

.stat-card {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(20,53,45,0.08);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.stat-card .stat {
    font-size: 1.75rem;
    font-weight: 700;
    color: #14352d;
}

.stat-card .label {
    color: #5a6b65;
    font-size: 0.9rem;
}

.willow-form { max-width: 520px; }

.context-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.context-pill-platform {
    background: rgba(255,255,255,0.12);
    color: #d7e6e0;
}

.context-pill-tenant {
    background: rgba(61, 168, 122, 0.25);
    color: #b8f0d4;
}

/* —— Marketing / Willow platform —— */
.mkt {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0c1c18;
    color: #f2f6f4;
}

.mkt-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
}

.mkt-logo {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.mkt-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.mkt-nav a {
    color: rgba(242,246,244,.88);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.mkt-nav a:hover { color: #fff; }

.mkt-main { flex: 1; }

.mkt-hero {
    min-height: calc(100vh - 4.5rem);
    display: grid;
    align-items: end;
    padding: clamp(2rem, 6vw, 5rem);
    background:
        linear-gradient(105deg, rgba(8,22,18,.88) 18%, rgba(8,22,18,.35) 55%, rgba(8,22,18,.55) 100%),
        url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
    animation: mkt-fade 1.1s ease both;
}

.mkt-hero-copy { max-width: 38rem; }

.mkt-brand {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0 0 1rem;
    color: #fff;
    animation: mkt-rise 0.9s 0.1s ease both;
}

.mkt-brand-sm {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.mkt-headline {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.6rem, 3.5vw, 2.35rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: #e8f2ee;
    animation: mkt-rise 0.9s 0.2s ease both;
}

.mkt-sub {
    font-size: 1.1rem;
    line-height: 1.55;
    color: rgba(232,242,238,.86);
    max-width: 34rem;
    margin: 0 0 1.75rem;
    animation: mkt-rise 0.9s 0.3s ease both;
}

.mkt-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: mkt-rise 0.9s 0.4s ease both;
}

.mkt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.35rem;
    border-radius: 0.35rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.mkt-btn-primary {
    background: #c4a574;
    color: #1a1510;
    border-color: #c4a574;
}

.mkt-btn-primary:hover {
    background: #d4b888;
    color: #1a1510;
}

.mkt-btn-ghost {
    background: transparent;
    color: #f2f6f4;
    border-color: rgba(242,246,244,.45);
}

.mkt-btn-ghost:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.mkt-btn-block { width: 100%; }

.mkt-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #f4f1ea;
    color: #1c2421;
}

.mkt-strip-item {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-right: 1px solid rgba(28,36,33,.1);
}

.mkt-strip-item:last-child { border-right: 0; }

.mkt-strip-item h2 {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
    margin: 0 0 0.65rem;
}

.mkt-strip-item p {
    margin: 0;
    color: #44514c;
    line-height: 1.5;
}

.mkt-foot {
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    font-size: 0.9rem;
    color: rgba(242,246,244,.65);
    background: #091411;
}

.mkt-foot-sep { margin: 0 0.5rem; }

.mkt-signup {
    min-height: calc(100vh - 8rem);
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        linear-gradient(160deg, rgba(8,22,18,.92), rgba(20,53,45,.75)),
        url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.mkt-signup-panel {
    width: min(520px, 100%);
    background: rgba(244,241,234,.96);
    color: #1c2421;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-radius: 0.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.mkt-signup-panel h1 {
    font-family: Fraunces, Georgia, serif;
    font-size: 2rem;
    margin: 0 0 0.5rem;
}

.mkt-signup-panel .mkt-sub { color: #44514c; }

.mkt-form .form-control, .mkt-form .input-group-text {
    border-radius: 0.35rem;
}

.mkt-protect-fields {
    min-height: 9rem;
    padding: 0.75rem 0;
}

.mkt-protect-note {
    color: #5a6762;
    font-size: 0.875rem;
    line-height: 1.4;
}

@keyframes mkt-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mkt-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* —— Association public shell —— */
.assoc-shell {
    --assoc-primary: #1f6f5b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f6f4ef;
    color: #1c2421;
}

.assoc-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem clamp(1rem, 3vw, 2rem);
    background: #fff;
    border-bottom: 1px solid rgba(28,36,33,.08);
}

.assoc-top-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #14352d;
    text-decoration: none;
}

.assoc-top-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.assoc-top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.assoc-top-nav a {
    color: #3d4f49;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.assoc-top-nav a:hover { color: var(--assoc-primary); }

.assoc-main { flex: 1; }

.assoc-hero {
    min-height: 58vh;
    display: grid;
    align-items: end;
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
    background:
        linear-gradient(120deg, rgba(12,28,24,.82), rgba(12,28,24,.4)),
        url("https://images.unsplash.com/photo-1475721027785-f74eccf877e2?auto=format&fit=crop&w=1600&q=80") center/cover;
    background-size: cover;
    background-position: center;
}

.assoc-hero-inner { max-width: 40rem; }

.assoc-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
    background: rgba(255,255,255,.9);
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
}

.assoc-brand {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
}

.assoc-tagline {
    font-size: 1.15rem;
    opacity: 0.9;
    margin: 0 0 1.5rem;
}

.assoc-home-html {
    max-width: 820px;
    margin: 0 auto;
}

.assoc-foot, .assoc-footer-html, .assoc-header-html {
    padding: 1rem clamp(1rem, 3vw, 2rem);
    color: #5a6b65;
    font-size: 0.9rem;
}

.assoc-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 3vw, 2rem) 3rem;
}

.assoc-page h1 {
    font-family: Fraunces, Georgia, serif;
    margin-bottom: 1.25rem;
}

.assoc-marquee {
    overflow: hidden;
    background: var(--assoc-primary, #1f6f5b);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0;
}

.assoc-marquee-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: assoc-scroll 28s linear infinite;
}

@keyframes assoc-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.assoc-body-split {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 0;
    align-items: start;
}

.assoc-sidebar {
    padding: 1.25rem clamp(1rem, 2vw, 1.5rem);
    background: rgba(255,255,255,.7);
    border-right: 1px solid rgba(28,36,33,.08);
    min-height: 40vh;
    font-size: 0.95rem;
}

.theme-fresh {
    background: #f3faf6;
}

.theme-urban {
    background: #eceff2;
}

.theme-urban .assoc-top {
    background: #2b323a;
    border-bottom-color: transparent;
}

.theme-urban .assoc-top-brand,
.theme-urban .assoc-top-nav a {
    color: #e8eef2;
}

.theme-coastal {
    background: #eef6f8;
}

.theme-classic {
    background: #f6f4ef;
}

@media print {
    .sidebar, .top-row, .no-print { display: none !important; }
    .page { display: block !important; }
    main, article.content { margin: 0 !important; width: 100% !important; }
    .letter { page-break-after: always; }
}

@media (max-width: 900px) {
    .mkt-strip { grid-template-columns: 1fr; }
    .mkt-strip-item { border-right: 0; border-bottom: 1px solid rgba(28,36,33,.1); }
    .page { flex-direction: column; }
    .sidebar { width: 100%; }
    .assoc-body-split { grid-template-columns: 1fr; }
    .assoc-sidebar { border-right: 0; border-bottom: 1px solid rgba(28,36,33,.08); min-height: 0; }
}

