/* Public marketing homepage — brand green family (#045A2D) */
@import url('variables.css?v=20260714-dark-green');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.pub-site {
    font-family: var(--font-family, 'Inter', system-ui, sans-serif);
    font-size: var(--text-base, 15px);
    line-height: 1.55;
    color: var(--color-text, #111);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(4, 90, 45, 0.12), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(10, 125, 63, 0.08), transparent 50%),
        linear-gradient(180deg, #f4faf6 0%, #ffffff 38%, #f7f7f7 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.pub-site a { color: inherit; text-decoration: none; }

.pub-wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

/* Nav */
.pub-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(4, 90, 45, 0.08);
}

.pub-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.pub-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #045A2D;
}

.pub-brand img {
    height: 32px;
    width: auto;
    display: block;
}

.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Mobile: logo + currency + login only (Plans / Get started live in hero) */
@media (max-width: 767px) {
    .pub-wrap {
        width: min(1120px, calc(100% - 1.25rem));
    }

    .pub-nav-inner {
        gap: 0.5rem;
        padding: 0.65rem 0;
        flex-wrap: nowrap;
    }

    .pub-brand {
        min-width: 0;
        flex: 0 1 auto;
    }

    .pub-brand img {
        height: 28px;
        max-width: 140px;
        object-fit: contain;
    }

    .pub-nav-links {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .pub-nav-desktop-only {
        display: none !important;
    }

    .pub-nav-link {
        padding: 0.4rem 0.65rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .pub-currency {
        margin-right: 0;
        padding: 0.15rem 0.35rem 0.15rem 0.4rem;
    }

    .pub-currency-icon {
        font-size: 16px !important;
    }

    .pub-currency-select {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }
}

.pub-nav-link {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    transition: background 0.15s ease, color 0.15s ease;
}

.pub-nav-link:hover { background: rgba(4, 90, 45, 0.08); color: #045A2D; }

.pub-currency {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.25rem;
    padding: 0.2rem 0.45rem 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(4, 90, 45, 0.2);
    background: #fff;
}

.pub-currency-icon {
    font-size: 18px !important;
    color: #045A2D;
}

.pub-currency-select {
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.88rem;
    color: #045A2D;
    padding: 0.25rem 0.15rem;
    cursor: pointer;
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pub-btn:hover { transform: translateY(-1px); }

.pub-btn-primary {
    background: #045A2D;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(4, 90, 45, 0.22);
}

.pub-btn-primary:hover { background: #034722; }

.pub-btn-secondary {
    background: #fff;
    color: #045A2D !important;
    border: 1px solid rgba(4, 90, 45, 0.25);
}

.pub-btn-secondary:hover { background: #E8F5EE; }

.pub-btn-ghost {
    background: transparent;
    color: #045A2D !important;
    border: 1px solid transparent;
}

.pub-btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }

/* Hero — one composition */
.pub-hero {
    padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.pub-hero-grid {
    display: grid;
    gap: 2rem;
    align-items: end;
}

.pub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #045A2D;
    background: rgba(4, 90, 45, 0.08);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
}

.pub-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 750;
    color: #0b1f14;
    max-width: 14ch;
    margin-bottom: 1rem;
}

.pub-hero-brand {
    display: block;
    color: #045A2D;
}

.pub-hero p {
    font-size: 1.05rem;
    color: #4a5560;
    max-width: 38ch;
    margin-bottom: 1.75rem;
}

.pub-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.pub-hero-panel {
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: 320px;
    background:
        linear-gradient(145deg, rgba(2, 50, 24, 0.94), rgba(4, 90, 45, 0.88) 55%, rgba(10, 125, 63, 0.82)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #fff;
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 20px 50px rgba(4, 90, 45, 0.25);
}

.pub-hero-panel-art {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.pub-hero-panel-art img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.pub-hero-panel-copy {
    position: relative;
    z-index: 1;
}

.pub-hero-panel strong {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 0.35rem;
}

.pub-hero-panel span {
    opacity: 0.88;
    font-size: 0.92rem;
    line-height: 1.45;
    display: block;
}

@media (min-width: 900px) {
    .pub-hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3rem;
    }

    .pub-hero-panel {
        min-height: 360px;
        padding: 1.5rem 1.5rem 1.75rem;
    }
}

/* Plans */
.pub-section {
    padding: 2.5rem 0 4rem;
}

.pub-section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.pub-section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: #0b1f14;
}

.pub-section-head p {
    color: #5a6570;
    max-width: 42ch;
    margin-inline: auto;
}

.pub-plans {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pub-plan {
    background: #fff;
    border: 1px solid rgba(4, 90, 45, 0.1);
    border-radius: 1rem;
    padding: 1.4rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pub-plan:hover {
    border-color: rgba(4, 90, 45, 0.35);
    box-shadow: 0 12px 28px rgba(4, 90, 45, 0.1);
    transform: translateY(-2px);
}

.pub-plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0b1f14;
}

.pub-plan-desc {
    color: #66707a;
    font-size: 0.92rem;
}

.pub-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pub-plan-price .amount {
    font-size: 1.75rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #045A2D;
}

.pub-plan-price .per {
    color: #6a747e;
    font-size: 0.9rem;
}

.pub-plan-trial {
    font-size: 0.82rem;
    color: #045A2D;
    font-weight: 600;
}

.pub-plan-features {
    list-style: none;
    margin: 0.15rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.pub-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #3d474f;
}

.pub-plan-features .material-symbols-rounded {
    font-size: 1.05rem;
    color: #045A2D;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.pub-plan .pub-btn { width: 100%; margin-top: auto; }

.pub-plans-empty {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px dashed rgba(4, 90, 45, 0.25);
    color: #5a6570;
}

/* Features strip */
.pub-features {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 0.5rem;
}

.pub-feature {
    padding: 1.1rem 1.15rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(4, 90, 45, 0.08);
}

.pub-feature .icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E8F5EE;
    color: #045A2D;
    margin-bottom: 0.65rem;
}

.pub-feature h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #0b1f14;
}

.pub-feature p {
    font-size: 0.9rem;
    color: #66707a;
}

/* CTA band */
.pub-cta-band {
    margin: 1rem 0 3rem;
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background: linear-gradient(120deg, #023218, #045A2D 55%, #0A7D3F);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.pub-cta-band h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.pub-cta-band p { opacity: 0.88; max-width: 40ch; }

.pub-cta-band .pub-btn-secondary {
    border-color: transparent;
}

/* Footer */
.pub-footer {
    border-top: 1px solid rgba(4, 90, 45, 0.1);
    padding: 1.5rem 0 2rem;
    color: #6a747e;
    font-size: 0.88rem;
}

.pub-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    justify-content: space-between;
}

.pub-footer a:hover { color: #045A2D; }

/* Inner public pages (terms / pricing) */
.pub-page-hero {
    padding: clamp(2.25rem, 6vw, 3.75rem) 0 1.25rem;
}

.pub-page-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0.75rem 0 0.65rem;
    color: #0b1f14;
    max-width: 18ch;
}

.pub-page-hero p {
    color: #5a6570;
    font-size: 1.05rem;
    max-width: 46ch;
}

.pub-prose {
    background: #fff;
    border: 1px solid rgba(4, 90, 45, 0.1);
    border-radius: 1.1rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    color: #2c3640;
    line-height: 1.7;
}

.pub-prose h2,
.pub-prose h3 {
    color: #0b1f14;
    letter-spacing: -0.02em;
    margin: 1.5rem 0 0.55rem;
}

.pub-prose h2:first-child,
.pub-prose h3:first-child { margin-top: 0; }

.pub-prose p { margin: 0 0 0.9rem; }

.pub-prose ul,
.pub-prose ol {
    margin: 0 0 1rem 1.2rem;
}

.pub-prose li { margin-bottom: 0.35rem; }

.pub-prose a {
    color: #045A2D;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

[data-theme="dark"] body.pub-site,
html[data-theme="dark"] body.pub-site {
    background:
        radial-gradient(1000px 500px at 0% 0%, rgba(74, 222, 128, 0.08), transparent 50%),
        #0b120e;
    color: #e8efe9;
}

html[data-theme="dark"] .pub-nav {
    background: rgba(11, 18, 14, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .pub-brand,
html[data-theme="dark"] .pub-nav-link,
html[data-theme="dark"] .pub-section-head h2,
html[data-theme="dark"] .pub-plan-name,
html[data-theme="dark"] .pub-feature h3,
html[data-theme="dark"] .pub-hero h1 { color: #f2f7f3; }

html[data-theme="dark"] .pub-nav-link:hover { background: rgba(74, 222, 128, 0.1); color: #4ADE80; }

html[data-theme="dark"] .pub-plan,
html[data-theme="dark"] .pub-feature,
html[data-theme="dark"] .pub-plans-empty {
    background: #121a15;
    border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .pub-hero p,
html[data-theme="dark"] .pub-plan-desc,
html[data-theme="dark"] .pub-plan-features li,
html[data-theme="dark"] .pub-feature p,
html[data-theme="dark"] .pub-section-head p,
html[data-theme="dark"] .pub-footer { color: #a7b3ab; }

html[data-theme="dark"] .pub-plan-features .material-symbols-rounded { color: #4ADE80; }

html[data-theme="dark"] .pub-page-hero h1 { color: #f2f7f3; }
html[data-theme="dark"] .pub-page-hero p { color: #a7b3ab; }
html[data-theme="dark"] .pub-prose {
    background: #121a15;
    border-color: rgba(255, 255, 255, 0.06);
    color: #c9d4cc;
}
html[data-theme="dark"] .pub-prose h2,
html[data-theme="dark"] .pub-prose h3 { color: #f2f7f3; }
html[data-theme="dark"] .pub-prose a { color: #4ADE80; }
