/* =============================================================
   TYPOGRAPHY DESIGN SYSTEM — Unified Marketing Pages
   Based on the temporary-landing.blade.php reference design
   and Fundrise-style fintech best practices.
   ============================================================= */

:root {
    /* ── Override Bootstrap root font size to 16px baseline ── */
    --bs-root-font-size: 16px;

    /* ── Font Families ── */
    --font-primary: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* ── Type Scale (fluid via clamp) ── */
    --text-display-1: clamp(2.75rem, 6vw, 4.5rem);
    --text-display-2: clamp(2.25rem, 4.5vw, 3.5rem);
    --text-h2:        clamp(2rem, 4vw, 3rem);
    --text-h3:        clamp(1.5rem, 2.5vw, 1.875rem);
    --text-h4:        1.25rem;
    --text-h5:        1.125rem;
    --text-body:      1rem;
    --text-lead:      clamp(1.08rem, 2vw, 1.25rem);
    --text-small:     0.875rem;
    --text-eyebrow:   0.82rem;

    /* ── Line Heights ── */
    --lh-display: 1.05;
    --lh-heading: 1.15;
    --lh-body:    1.6;
    --lh-lead:    1.55;

    /* ── Letter Spacing ── */
    --ls-eyebrow: 0.08em;
    --ls-tight:  -0.01em;

    /* ── Font Weights ── */
    --fw-normal: 400;
    --fw-medium: 600;
    --fw-bold:   700;
    --fw-black:  800;

    /* ── Brand Colors ── */
    --color-ink:         #161612;
    --color-muted:       #5e665b;
    --color-soft-muted:  #7a8276;
    --color-cream:       #f7f8f6;
    --color-paper:       #ffffff;
    --color-charcoal:    #090603;
    --color-blue:        #0686fc;
    --color-green:       #43795f;
    --color-line:        #dfe5dc;
    --color-wash:        #edf3ee;
}

/* ── Base Typography ── */
body {
    font-family: var(--font-primary) !important;
    font-size: var(--text-body);
    line-height: var(--lh-body);
    color: var(--color-ink);
}

/* ── Heading Defaults ── */
h1, .h1 {
    font-family: var(--font-display);
    font-size: var(--text-display-1);
    line-height: var(--lh-display);
    font-weight: var(--fw-bold);
    color: var(--color-ink);
    letter-spacing: var(--ls-tight);
}

h2, .h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    line-height: var(--lh-heading);
    font-weight: var(--fw-bold);
    color: var(--color-ink);
}

h3, .h3 {
    font-family: var(--font-display);
    font-size: var(--text-h3);
    line-height: var(--lh-heading);
    font-weight: var(--fw-bold);
    color: var(--color-ink);
}

h4, .h4 {
    font-family: var(--font-primary);
    font-size: var(--text-h4);
    line-height: var(--lh-heading);
    font-weight: var(--fw-medium);
    color: var(--color-ink);
}

h5, .h5 {
    font-family: var(--font-primary);
    font-size: var(--text-h5);
    line-height: var(--lh-heading);
    font-weight: var(--fw-medium);
    color: var(--color-ink);
}

h6, .h6 {
    font-family: var(--font-primary);
    font-size: var(--text-small);
    line-height: var(--lh-heading);
    font-weight: var(--fw-medium);
    color: var(--color-ink);
}

/* ── Utility Classes ── */
.text-display-1 {
    font-size: var(--text-display-1) !important;
    line-height: var(--lh-display) !important;
    font-weight: var(--fw-bold) !important;
    letter-spacing: var(--ls-tight);
}

.text-display-2 {
    font-size: var(--text-display-2) !important;
    line-height: var(--lh-display) !important;
    font-weight: var(--fw-bold) !important;
}

.text-h2 {
    font-size: var(--text-h2) !important;
    line-height: var(--lh-heading) !important;
    font-weight: var(--fw-bold) !important;
}

.text-h3 {
    font-size: var(--text-h3) !important;
    line-height: var(--lh-heading) !important;
    font-weight: var(--fw-bold) !important;
}

.text-h4 {
    font-size: var(--text-h4) !important;
    line-height: var(--lh-heading) !important;
    font-weight: var(--fw-medium) !important;
}

.text-h5 {
    font-size: var(--text-h5) !important;
    line-height: var(--lh-heading) !important;
    font-weight: var(--fw-medium) !important;
}

.text-lead {
    font-size: var(--text-lead) !important;
    line-height: var(--lh-lead) !important;
    color: var(--color-muted);
}

.text-eyebrow {
    font-size: var(--text-eyebrow) !important;
    font-weight: var(--fw-black) !important;
    letter-spacing: var(--ls-eyebrow) !important;
    text-transform: uppercase !important;
    color: var(--color-green);
}

.text-body-lg {
    font-size: var(--text-lead) !important;
    line-height: var(--lh-body) !important;
}

.text-body {
    font-size: var(--text-body) !important;
    line-height: var(--lh-body) !important;
}

.text-sm {
    font-size: var(--text-small) !important;
    line-height: var(--lh-body) !important;
}

/* ── Color Utilities ── */
.color-ink        { color: var(--color-ink) !important; }
.color-muted      { color: var(--color-muted) !important; }
.color-soft-muted { color: var(--color-soft-muted) !important; }
.color-blue       { color: var(--color-blue) !important; }
.color-green      { color: var(--color-green) !important; }

/* ── Display Overrides (replaces Sandbox theme display-* classes) ── */
.display-1 {
    font-family: var(--font-display) !important;
    font-size: var(--text-display-1) !important;
    line-height: var(--lh-display) !important;
    font-weight: var(--fw-bold) !important;
    letter-spacing: var(--ls-tight);
}

.display-2 {
    font-family: var(--font-display) !important;
    font-size: var(--text-display-2) !important;
    line-height: var(--lh-display) !important;
    font-weight: var(--fw-bold) !important;
}

.display-3 {
    font-family: var(--font-display) !important;
    font-size: var(--text-h2) !important;
    line-height: var(--lh-heading) !important;
    font-weight: var(--fw-bold) !important;
}

.display-4 {
    font-family: var(--font-display) !important;
    font-size: var(--text-h3) !important;
    line-height: var(--lh-heading) !important;
    font-weight: var(--fw-bold) !important;
}

/* ── Lead Text ── */
.lead {
    font-size: var(--text-lead) !important;
    line-height: var(--lh-lead) !important;
}

/* ── Section Patterns ── */
.section-eyebrow {
    display: inline-block;
    font-size: var(--text-eyebrow);
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--color-green);
    margin-bottom: 12px;
}

.section-heading {
    font-size: var(--text-h2);
    line-height: var(--lh-heading);
    font-weight: var(--fw-bold);
    color: var(--color-ink);
    margin-bottom: 16px;
}

.section-lead {
    font-size: var(--text-lead);
    line-height: var(--lh-lead);
    color: var(--color-muted);
    max-width: 760px;
}

/* ── Hero Patterns ── */
.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-display-1);
    line-height: var(--lh-display);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
}

.hero-subtitle {
    font-size: var(--text-lead);
    line-height: var(--lh-lead);
    max-width: 600px;
}

/* ── Card Patterns ── */
.card-title-lg {
    font-size: var(--text-h3) !important;
    line-height: var(--lh-heading) !important;
    font-weight: var(--fw-bold) !important;
    color: var(--color-ink);
}

.card-title {
    font-size: var(--text-h4) !important;
    line-height: var(--lh-heading) !important;
    font-weight: var(--fw-medium) !important;
    color: var(--color-ink);
}

.card-title-sm {
    font-size: var(--text-h5) !important;
    line-height: var(--lh-heading) !important;
    font-weight: var(--fw-medium) !important;
    color: var(--color-ink);
}

/* ── Metric/Stat Display ── */
.metric-value {
    font-size: clamp(2rem, 4vw, 2.75rem) !important;
    line-height: 1 !important;
    font-weight: var(--fw-bold) !important;
    color: var(--color-ink);
}

.metric-label {
    font-size: var(--text-body) !important;
    color: var(--color-muted);
}

/* ── Button Typography ── */
.btn {
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
}

/* ── Footer Typography Alignment ── */
footer .widget-title {
    font-size: var(--text-small);
    font-weight: var(--fw-medium);
    letter-spacing: 0.03em;
}

footer address,
footer p,
footer li,
footer a {
    font-size: var(--text-small);
    line-height: var(--lh-body);
}

footer .footer__disclaimers p {
    font-size: 0.8125rem;
    line-height: 1.65;
}
