:root {
    --bg: #f6f2e8;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --ink: #17221f;
    --muted: #66706d;
    --line: #dcd6c8;
    --accent: #214d3b;
    --accent-strong: #16392b;
    --highlight: #e9dfbf;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(31, 51, 43, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a { color: inherit; }

.shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    overflow: hidden;
    border-bottom: 1px solid rgba(74, 91, 71, 0.16);
    background:
        radial-gradient(circle at 8% 18%, rgba(255, 107, 0, 0.20) 0 7%, transparent 22%),
        radial-gradient(ellipse at 86% 92%, rgba(183, 226, 0, 0.16) 0 12%, transparent 34%),
        linear-gradient(100deg, rgba(248, 242, 224, 0.98), rgba(242, 239, 218, 0.98) 52%, rgba(234, 242, 232, 0.98));
    backdrop-filter: blur(12px);
}

.site-header::before,
.site-header::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.site-header::before {
    width: 720px;
    height: 230px;
    right: -120px;
    bottom: -142px;
    border: 25px solid rgba(28, 78, 58, 0.075);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(-9deg);
    box-shadow: 0 0 0 30px rgba(175, 222, 0, 0.045);
}

.site-header::after {
    inset: 0;
    opacity: 0.34;
    background:
        radial-gradient(ellipse at 68% 100%, rgba(71, 112, 84, 0.14), transparent 35%),
        radial-gradient(ellipse at 38% -20%, rgba(255, 255, 255, 0.80), transparent 40%);
    filter: blur(12px);
}

.header-inner {
    position: relative;
    z-index: 1;
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
    border-radius: 14px;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.brand:hover,
.brand:focus-visible {
    transform: translateY(-1px);
}

.brand-logo {
    display: block;
    width: 90px;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand-copy strong {
    color: #13221e;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.brand-copy small {
    color: rgba(33, 77, 59, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.site-nav a {
    padding: 9px 12px;
    color: #24322d;
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta):focus-visible {
    color: #153c2d;
    background: rgba(255, 255, 255, 0.48);
}

.nav-cta {
    margin-left: 4px;
    padding: 10px 17px;
    border: 1px solid rgba(33, 77, 59, 0.72);
    border-radius: 13px;
    color: var(--accent);
    background: rgba(255, 253, 248, 0.36);
    font-weight: 800;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.hero { padding: 92px 0 78px; }

.home-page .hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(33, 77, 59, 0.10);
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 106, 0, 0.13), transparent 17%),
        radial-gradient(ellipse at 74% 92%, rgba(130, 167, 140, 0.17), transparent 30%),
        radial-gradient(ellipse at 20% 86%, rgba(183, 226, 0, 0.09), transparent 28%),
        linear-gradient(160deg, #f8f3e8 0%, #f5f0e2 46%, #eef3e9 100%);
}

.home-page .hero::before,
.home-page .hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.home-page .hero::before {
    width: 920px;
    height: 350px;
    right: -170px;
    top: -170px;
    border: 34px solid rgba(28, 78, 58, 0.065);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(-8deg);
    box-shadow: 0 0 0 38px rgba(175, 222, 0, 0.038);
}

.home-page .hero::after {
    width: 520px;
    height: 290px;
    left: -120px;
    bottom: -160px;
    border-radius: 48% 52% 60% 40%;
    background: rgba(79, 120, 89, 0.065);
    filter: blur(4px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    gap: 62px;
    align-items: center;
}

.home-hero-grid {
    min-height: 490px;
}

.hero-motto {
    margin: 22px 0 0;
    color: rgba(33, 77, 59, 0.72);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-products {
    display: grid;
    gap: 16px;
}

.hero-product {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(33, 77, 59, 0.13);
    border-radius: 21px;
    color: var(--ink);
    background: rgba(255, 253, 248, 0.74);
    box-shadow: 0 18px 46px rgba(43, 68, 55, 0.08);
    text-decoration: none;
    backdrop-filter: blur(7px);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.hero-product:hover,
.hero-product:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(33, 77, 59, 0.28);
    box-shadow: 0 22px 54px rgba(43, 68, 55, 0.12);
}

.hero-product img {
    display: block;
    width: 78px;
    height: auto;
    object-fit: contain;
}

.hero-product-beforeagree img {
    width: 72px;
}

.hero-product span,
.hero-product small,
.hero-product strong,
.hero-product em {
    display: block;
}

.hero-product small {
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-product strong {
    margin-bottom: 4px;
    font-size: 1.35rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero-product em {
    color: var(--muted);
    font-size: 0.91rem;
    font-style: normal;
    line-height: 1.45;
}

.hero-product-balancetrail {
    background: linear-gradient(135deg, rgba(248, 253, 246, 0.88), rgba(250, 252, 238, 0.75));
}

.hero-product-beforeagree {
    background: linear-gradient(135deg, rgba(255, 251, 244, 0.90), rgba(251, 245, 234, 0.78));
}

.eyebrow,
.card-kicker,
.product-label {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent);
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

h1 {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: clamp(3rem, 7vw, 6rem);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    margin-bottom: 16px;
    font-size: 2rem;
}

.hero-text {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.15s ease, background 0.15s ease;
}

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

.button.primary {
    background: var(--accent);
    color: white;
}

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

.button.secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
}

.hero-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.focus-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.focus-list li {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-weight: 700;
}

.focus-list li:last-child { padding-bottom: 0; }

.section { padding: 86px 0; }

.section-muted {
    background: rgba(255, 255, 255, 0.46);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.split,
.callout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.section-copy {
    color: var(--muted);
    font-size: 1.08rem;
}

.section-copy p:first-child { margin-top: 0; }
.section-heading { margin-bottom: 28px; }

.product-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 34px;
    border-radius: var(--radius);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.product-card p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
}

.product-actions { margin-top: 0; }

.coming-soon {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--ink);
    font-weight: 700;
}

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

.callout {
    padding: 36px;
    border-radius: var(--radius);
    background: var(--highlight);
}

.callout p:last-child {
    margin: 0;
    align-self: center;
    color: #4f574f;
    font-size: 1.08rem;
}

.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-inner strong { color: var(--ink); }
.footer-inner p { margin: 5px 0 0; }

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.footer-links a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}


@media (max-width: 980px) {
    .brand-copy small { display: none; }
    .header-inner { gap: 20px; }
    .site-nav { gap: 2px; }
    .site-nav a { padding-inline: 9px; }
}

@media (max-width: 820px) {
    .site-nav a:not(.nav-cta) { display: none; }
    .header-inner { min-height: 92px; }
    .brand-logo { width: 70px; }
    .brand-copy strong { font-size: 1.22rem; }
    .hero { padding-top: 64px; }
    .home-hero-grid { min-height: 0; }

    .hero-grid,
    .split,
    .callout,
    .product-card {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .split,
    .callout {
        gap: 34px;
    }

    .product-actions { margin-top: 8px; }
    .footer-inner { flex-direction: column; }
    .footer-links { align-items: flex-start; }
}

@media (max-width: 520px) {
    .shell { width: min(100% - 28px, 1120px); }
    .header-inner { min-height: 82px; }
    .brand { gap: 9px; }
    .brand-logo { width: 58px; }
    .brand-copy strong { font-size: 1rem; }
    .brand span:last-child { font-size: 0.94rem; }

    .nav-cta {
        padding: 8px 11px;
        font-size: 0.84rem;
    }

    h1 { font-size: clamp(2.6rem, 13vw, 4rem); }

    .hero-card,
    .product-card,
    .callout {
        padding: 24px;
    }
}


.page-title {
    max-width: 760px;
    font-size: clamp(2.7rem, 6vw, 5rem);
}

.contact-section {
    padding-top: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.contact-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
    font-size: 0.92rem;
}

.contact-form small {
    color: var(--muted);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 12px 14px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(33, 77, 59, 0.10);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .button {
    border: 0;
    cursor: pointer;
    width: fit-content;
}

.form-help {
    margin: -5px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.form-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
}

.form-notice.success {
    background: #edf7f1;
    border: 1px solid #b9d9c4;
}

.form-notice.error {
    background: #fff3f1;
    border: 1px solid #e8c0ba;
}

.form-notice ul {
    margin-bottom: 0;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 820px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}



/* Product identity */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.product-grid .product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.product-grid .product-card p {
    max-width: none;
}

.product-grid .product-actions {
    margin-top: auto;
    padding-top: 28px;
}

.product-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.product-brand-row h3,
.product-brand-row .product-label {
    margin-bottom: 0;
}

.product-logo {
    display: block;
    width: 76px;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}

.beforeagree-card {
    border-color: #cad8cd;
}

/* BeforeAgree landing page */
.ba-hero {
    padding: 88px 0 62px;
}

.ba-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 64px;
    align-items: center;
}

.ba-micro {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.ba-demo-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.ba-demo-top {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.ba-demo-top img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.ba-demo-top strong,
.ba-demo-top span {
    display: block;
}

.ba-demo-top span {
    margin-top: 2px;
    color: var(--muted);
    font-size: .78rem;
}

.ba-finding {
    padding: 21px;
    border-bottom: 1px solid var(--line);
}

.ba-finding:last-child { border-bottom: 0; }
.ba-finding.compact { padding: 17px 21px; }
.ba-finding h3 { margin: 7px 0 7px; font-size: 1.08rem; letter-spacing: -.015em; }
.ba-finding p { margin: 0; color: var(--muted); font-size: .94rem; }

.ba-category {
    color: var(--accent);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .09em;
}

.ba-evidence {
    margin-top: 15px;
    padding: 13px 14px;
    border-left: 3px solid #d8ba67;
    background: #fbf6e8;
    color: #5a5a50;
    font-size: .88rem;
}

.ba-evidence strong {
    display: block;
    margin-bottom: 4px;
    color: #786a46;
    font-size: .69rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ba-trust {
    padding: 0 0 68px;
}

.ba-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.ba-trust-grid > div {
    padding: 18px 4px;
    border-top: 1px solid var(--line);
}

.ba-trust-grid strong,
.ba-trust-grid span {
    display: block;
}

.ba-trust-grid span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .91rem;
}

.ba-heading { max-width: 840px; }

.ba-steps,
.ba-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ba-steps article,
.ba-feature-grid article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-strong);
}

.ba-steps article > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 850;
}

.ba-steps h3,
.ba-feature-grid h3 {
    margin-bottom: 10px;
    font-size: 1.12rem;
    letter-spacing: -.02em;
}

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

.ba-privacy-points {
    border-top: 1px solid var(--line);
}

.ba-privacy-points p {
    margin: 0;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.ba-privacy-points strong { color: var(--ink); }
.ba-privacy-points a { color: var(--accent); font-weight: 800; text-decoration: none; }
.ba-privacy-points a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ba-beta-grid {
    display: grid;
    grid-template-columns: 1.25fr .85fr .85fr;
    gap: 18px;
    align-items: stretch;
}

.ba-status-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-strong);
}

.ba-status-card > span {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-top: 7px;
    border-radius: 50%;
    background: #4f755f;
}

.ba-status-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.ba-final-callout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
}

.ba-final-callout img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}

.ba-final-callout h2 { margin-bottom: 5px; font-size: 1.75rem; }
.ba-final-callout p { margin: 0; color: #e2ece6; }
.ba-final-callout .button.secondary { background: #fff; color: var(--ink); border-color: #fff; }

.ba-legal-note {
    max-width: 820px;
    margin: 28px auto 0;
    padding: 0 20px;
    text-align: center;
    color: var(--muted);
    font-size: .84rem;
}

.ba-policy-shell { max-width: 860px; }
.ba-policy-shell > p,
.ba-policy-shell li { color: var(--muted); font-size: 1.02rem; }
.ba-policy-shell h2 { margin: 42px 0 12px; font-size: 1.65rem; }
.policy-updated { margin-top: -8px; font-size: .9rem; }

@media (max-width: 900px) {
    .product-grid,
    .ba-hero-grid,
    .ba-beta-grid {
        grid-template-columns: 1fr;
    }

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

    .ba-hero-grid { gap: 40px; }
}

@media (max-width: 820px) {
    .site-nav a:nth-child(3) { display: none; }
    .ba-trust-grid { grid-template-columns: 1fr; }
    .ba-final-callout { grid-template-columns: auto 1fr; }
    .ba-final-callout .button { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .ba-hero { padding-top: 58px; }
    .ba-steps,
    .ba-feature-grid {
        grid-template-columns: 1fr;
    }
    .product-brand-row { align-items: flex-start; }
}

/* BeforeAgree Firefox beta download */
.ba-status-ready a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.ba-status-ready a:hover,
.ba-status-ready a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}
