/* ============================================================================
   marketing.css — Forest theme for the public-facing marketing site
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Spline+Sans+Mono:wght@400;500&display=swap');

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

/* ── Light theme (default) ─────────────────────────────────────────────────── */
:root,
[data-theme="light"] {
    --bg:          #fbfcf4;
    --sage:        #e8efdf;
    --surface:     #fbfcf4;
    --soft:        #edf3e4;
    --hair:        #dde8d2;
    --ink:         #1b2a20;
    --ink2:        #52614e;
    --muted:       #79866e;
    --muted2:      #a3ae93;
    --accent:      #26845c;
    --accent2:     #15623f;
    --accent-soft: #d5e8d6;
    --on-accent:   #fbfcf4;
    --panel:       #15281d;
    --panel-ink2:  #a8c4b3;
    --panel-hair:  #2a3930;
    --panel-accent: #8fd2ad;
}

/* ── Dark theme ─────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
    --bg:          #0f1c16;
    --sage:        #16261d;
    --surface:     #18271e;
    --soft:        #1f2d24;
    --hair:        #2a3930;
    --ink:         #e9f0e5;
    --ink2:        #b4c2b6;
    --muted:       #8a988b;
    --muted2:      #6e7c70;
    --accent:      #34a473;
    --accent2:     #2a8a5f;
    --accent-soft: #1d3328;
    --on-accent:   #fbfcf4;
    --panel:       #1d3026;
    --panel-ink2:  #a8c4b3;
    --panel-hair:  #314236;
    --panel-accent: #8fd2ad;
}

html { font-size: 16px; }

body {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(38,132,92,.18); }

/* ── Type helpers ─────────────────────────────────────────────────────────── */
.mkt-serif  { font-family: 'Newsreader', Georgia, serif; }
.mkt-mono   { font-family: 'Spline Sans Mono', ui-monospace, monospace; }
.mkt-text-center { text-align: center; }

.mkt-h1 {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: clamp(40px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin: 0 0 20px;
}
.mkt-h2 {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: clamp(30px, 4.4vw, 42px);
    letter-spacing: -0.4px;
    margin: 10px 0 0;
}
.mkt-h3 {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: 30px;
    margin: 8px 0 12px;
}
.mkt-h3-sm {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: 26px;
    margin: 8px 0 10px;
}
.mkt-body    { font-size: 15.5px; line-height: 1.6; color: var(--ink2); margin: 0; }
.mkt-body-lg { font-size: 16.5px; line-height: 1.6; color: var(--ink2); margin: 0; }
.mkt-code {
    font-family: 'Spline Sans Mono', ui-monospace, monospace;
    font-size: 14px;
    background: var(--soft);
    padding: 1px 7px;
    border-radius: 6px;
}

/* ── Section layout ───────────────────────────────────────────────────────── */
.mkt-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 84px 28px 20px;
}
.mkt-section__eyebrow {
    font-family: 'Spline Sans Mono', ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}
.mkt-eyebrow-brass {
    font-family: 'Spline Sans Mono', ui-monospace, monospace;
    font-size: 12px;
    color: #bb8a24;
    font-weight: 600;
    letter-spacing: .5px;
}

/* ── Logo mark ─────────────────────────────────────────────────────────────── */
.logo__leaf {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.logo__leaf-inner {
    width: 17px;
    height: 17px;
    background: linear-gradient(140deg, #2f9367, var(--accent2));
    border-radius: 1px 100% 1px 100%;
    transform: rotate(45deg);
    display: block;
}
.logo__wordmark {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--ink);
}
.logo__dot      { color: var(--accent); }
.logo__secondary { font-weight: 500; color: var(--ink2); }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.mkt-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hair);
    transition: background .25s ease;
}
.mkt-nav__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.mkt-nav__logo {
    display: flex;
    align-items: center;
    gap: 11px;
}
.mkt-nav__links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink2);
    white-space: nowrap;
}
.mkt-nav__signin { color: var(--muted); }
.mkt-nav__cta {
    background: var(--accent);
    color: var(--on-accent);
    padding: 9px 18px;
    border-radius: 11px;
    font-weight: 700;
    box-shadow: 0 6px 16px -8px rgba(21,98,63,.7);
}
.mkt-nav__cta:hover { opacity: .92; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.mkt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s;
    white-space: nowrap;
}
.mkt-btn:hover { opacity: .9; text-decoration: none; }
.mkt-btn--lg { padding: 15px 26px; border-radius: 13px; font-size: 16px; }
.mkt-btn--full { display: block; text-align: center; padding: 13px; border-radius: 13px; font-size: 15px; }
.mkt-btn--primary  { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px rgba(21,98,63,.8); }
.mkt-btn--ghost    { background: var(--surface); border: 1.5px solid var(--hair); color: var(--ink); }
.mkt-btn--outline  { background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent); }
.mkt-btn--accent   { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px rgba(38,132,92,.9); }
.mkt-btn--white    { background: var(--on-accent); color: var(--accent2); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }

/* ── Badge / chip helpers ─────────────────────────────────────────────────── */
.mkt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    color: var(--accent2);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.mkt-badge-coming {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}
.mkt-badge-coming--brass { color: #bb8a24; background: #f3e9c8; }
.mkt-badge-coming--green { color: var(--accent); background: var(--accent-soft); }
.mkt-badge-soon {
    font-size: 11px;
    color: #bb8a24;
    font-weight: 700;
    align-self: center;
}
.mkt-chip {
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--hair);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 9px;
}
.mkt-chip--mono   { font-family: 'Spline Sans Mono', ui-monospace, monospace; font-size: 12px; }
.mkt-chip--accent { background: var(--accent-soft); border-color: #c2dcc6; color: var(--accent2); font-size: 12px; font-weight: 700; }
.mkt-check { color: var(--accent); font-weight: 800; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.mkt-hero {
    background: linear-gradient(180deg, var(--sage), var(--bg));
    padding: 72px 28px 80px;
}
.mkt-hero__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 48px;
    align-items: center;
}
.mkt-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mkt-hero__sub {
    font-size: 19px;
    line-height: 1.6;
    color: var(--ink2);
    margin: 0 0 30px;
    max-width: 480px;
}
.mkt-hero__disclaimer {
    font-family: 'Spline Sans Mono', ui-monospace, monospace;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 20px;
}

/* Product mock card */
.mkt-hero__mock { position: relative; }
.mkt-mock-card {
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 30px 60px -28px rgba(21,98,63,.45);
}
.mkt-mock-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.mkt-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
}
.mkt-mock-card__hero {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 16px;
    padding: 18px 20px;
    color: var(--on-accent);
    margin-bottom: 14px;
}
.mkt-mock-card__bar {
    height: 7px;
    background: rgba(255,255,255,.28);
    border-radius: 999px;
    margin-top: 10px;
    overflow: hidden;
}
.mkt-mock-card__feed { display: flex; flex-direction: column; gap: 9px; }
.mkt-mock-card__row {
    display: flex;
    align-items: center;
    gap: 11px;
}
.mkt-cat-dot {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex: 0 0 auto;
}
.mkt-cat-dot--food      { background: rgba(38,132,92,.13); border: 1.5px solid rgba(38,132,92,.33); }
.mkt-cat-dot--transport { background: rgba(107,140,174,.15); border: 1.5px solid rgba(107,140,174,.35); }
.mkt-savings-badge {
    position: absolute;
    bottom: -18px;
    left: -16px;
    background: #bb8a24;
    color: #fbfcf4;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 12px;
    box-shadow: 0 12px 24px -10px rgba(187,138,36,.7);
    transform: rotate(-3deg);
    white-space: nowrap;
}

/* ── Trust strip ──────────────────────────────────────────────────────────── */
.mkt-trust {
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    background: var(--surface);
}
.mkt-trust__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 22px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    justify-content: center;
    align-items: center;
    font-size: 14.5px;
    color: var(--muted);
    font-weight: 600;
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.mkt-features { padding-bottom: 20px; }

.mkt-feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 44px;
    align-items: center;
}
.mkt-feature-row--flip .mkt-feature-activity { order: 1; }
.mkt-feature-row--flip .mkt-feature-row__text { order: 2; }

.mkt-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 15px;
    color: var(--ink);
}
.mkt-check-list li { display: flex; gap: 9px; }

.mkt-terminal {
    background: var(--panel);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 24px 50px -26px rgba(0,0,0,.6);
    font-family: 'Spline Sans Mono', ui-monospace, monospace;
}
.mkt-terminal--sm { border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.mkt-terminal__dots {
    display: flex;
    gap: 7px;
    margin-bottom: 16px;
}
.mkt-terminal__dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}
.mkt-terminal__body {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--panel-ink2);
}
.mkt-terminal--sm .mkt-terminal__body { font-size: 12.5px; line-height: 1.8; }
.mkt-terminal__prompt { color: var(--panel-accent); }

.mkt-feature-activity {
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 20px 44px -28px rgba(21,98,63,.4);
}
.mkt-activity-item {
    display: flex;
    gap: 11px;
    margin-bottom: 11px;
}
.mkt-activity-item:last-child { margin-bottom: 0; }
.mkt-activity-item__bubble {
    background: var(--soft);
    border-radius: 12px;
    padding: 9px 12px;
    flex: 1;
}

.mkt-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.mkt-feature-tile { border-radius: 20px; padding: 28px; }
.mkt-feature-tile--sage  { background: var(--sage); }
.mkt-feature-tile--panel { background: var(--panel); }

.mkt-budget-preview {
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 14px;
    padding: 14px;
}
.mkt-progress-track {
    height: 8px;
    background: #dbe6cd;
    border-radius: 999px;
    margin-top: 8px;
    overflow: hidden;
}
.mkt-insight-quote {
    background: rgba(213,232,214,.1);
    border-left: 3px solid var(--panel-accent);
    border-radius: 10px;
    padding: 14px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--on-accent);
}
.mkt-theme-swatch {
    flex: 1;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--hair);
}
.mkt-theme-swatch--light { background: var(--sage); }
.mkt-theme-swatch--dark  { background: #10201a; border-color: #2a3930; }

/* ── Roadmap ──────────────────────────────────────────────────────────────── */
.mkt-roadmap { background: var(--sage); margin-top: 84px; padding: 80px 28px; }
.mkt-roadmap__inner { max-width: 1140px; margin: 0 auto; }
.mkt-roadmap__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}
.mkt-roadmap-card {
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    flex-direction: column;
}
.mkt-roadmap-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.mkt-chat-preview {
    background: var(--soft);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mkt-chat-preview__sent {
    align-self: flex-end;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 13px;
    padding: 7px 11px;
    border-radius: 12px 12px 3px 12px;
}
.mkt-chat-preview__recv {
    align-self: flex-start;
    background: var(--surface);
    border: 1px solid var(--hair);
    font-size: 13px;
    padding: 7px 11px;
    border-radius: 12px 12px 12px 3px;
}
.mkt-email-preview {
    background: var(--soft);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    font-size: 13px;
}

/* ── Security ─────────────────────────────────────────────────────────────── */
.mkt-security { background: var(--panel); padding: 80px 28px; color: var(--on-accent); }
.mkt-security__inner { max-width: 1140px; margin: 0 auto; }
.mkt-security__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.mkt-security-card {
    background: rgba(213,232,214,.05);
    border: 1px solid var(--panel-hair);
    border-radius: 18px;
    padding: 26px;
}
.mkt-security-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(143,210,173,.14);
    color: var(--panel-accent);
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.mkt-security-card__title { font-size: 19px; font-weight: 700; margin: 0 0 8px; color: var(--on-accent); }
.mkt-security-card__body  { font-size: 14.5px; line-height: 1.6; color: var(--panel-ink2); margin: 0; }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.mkt-pricing { padding-bottom: 84px; }
.mkt-billing-toggle {
    display: inline-flex;
    background: var(--soft);
    border: 1px solid var(--hair);
    border-radius: 999px;
    padding: 4px;
    margin: 26px auto 36px;
    display: flex;
    justify-content: center;
    width: fit-content;
}
.mkt-billing-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--ink2);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.mkt-billing-btn--active {
    background: var(--accent);
    color: var(--surface);
}
.mkt-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
    align-items: start;
}
.mkt-plan {
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 22px;
    padding: 30px;
    position: relative;
}
.mkt-plan--featured {
    background: var(--panel);
    border-color: transparent;
    box-shadow: 0 28px 56px -28px rgba(21,98,63,.7);
    color: var(--on-accent);
}
.mkt-plan__name    { font-size: 14px; font-weight: 700; color: var(--muted); }
.mkt-plan__tagline { font-size: 15px; color: var(--muted); margin: 4px 0 18px; }
.mkt-plan__price   { display: flex; align-items: baseline; gap: 6px; }
.mkt-plan__period  { font-size: 15px; color: var(--muted); }
.mkt-plan__note    { font-size: 11.5px; color: var(--muted); margin: 4px 0 22px; }
.mkt-plan__popular {
    position: absolute;
    top: 22px;
    right: 22px;
    background: #bb8a24;
    color: var(--panel);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 999px;
}
.mkt-plan__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 14.5px;
}
.mkt-plan__features li  { display: flex; gap: 9px; }
.mkt-plan__feature--soon { color: var(--muted2); }

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.mkt-cta-band {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    padding: 76px 28px;
    text-align: center;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.mkt-footer { background: var(--panel); color: var(--panel-ink2); padding: 44px 28px; }
.mkt-footer__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}
.mkt-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--panel-ink2);
}
.mkt-footer__links a:hover { color: var(--on-accent); }
.mkt-footer__theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--panel-hair);
    background: transparent;
    color: var(--panel-ink2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.mkt-footer__theme-btn:hover { border-color: var(--panel-accent); color: var(--on-accent); }
.mkt-footer__copy { font-size: 12px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .mkt-nav__links { gap: 14px; }
    .mkt-nav__links a:not(.mkt-nav__cta):not(.mkt-nav__signin) { display: none; }
    .mkt-hero { padding: 44px 20px 60px; }
    .mkt-hero__inner { gap: 36px; }
    .mkt-savings-badge { display: none; }
    .mkt-section { padding: 60px 20px 20px; }
    .mkt-feature-row--flip .mkt-feature-activity { order: 2; }
    .mkt-feature-row--flip .mkt-feature-row__text { order: 1; }
    .mkt-roadmap { padding: 60px 20px; }
    .mkt-security { padding: 60px 20px; }
    .mkt-footer__inner { flex-direction: column; align-items: flex-start; }
    .mkt-footer__copy  { order: 3; }
}
