/**
 * Design tokens — Transfer Jeri (site público)
 * Única fonte de verdade para cores, tipografia, sombras e layout.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Brand */
    --brand: #0A2A43;
    --brand-light: #0c3149;
    --brand-dark: #071e30;
    --brand-muted: #1a3d5c;

    /* Surfaces */
    --surface-canvas: #f1f5f9;
    --surface-elevated: #ffffff;
    --surface-muted: #e8edf3;
    --surface-subtle: #f8fafc;
    --surface-inverse: var(--brand);

    /* Borders */
    --border-faint: rgba(15, 23, 42, 0.06);
    --border-default: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-card: rgba(15, 23, 42, 0.08);

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --text-on-inverse: #f8fafc;
    --text-on-inverse-muted: rgba(248, 250, 252, 0.72);

    /* Accent */
    --accent: #0770e3;
    --accent-hover: #0560c7;
    --accent-soft: #e0f0ff;
    --accent-secondary: #0d7377;
    --accent-secondary-hover: #0a5c5f;

    /* Header / hero (dark zone) */
    --header-bg: var(--brand);
    --header-border: rgba(255, 255, 255, 0.12);
    --header-text: var(--text-on-inverse);
    --header-control-border: rgba(255, 255, 255, 0.22);
    --header-control-hover-bg: rgba(255, 255, 255, 0.10);

    --hero-bg: var(--brand);
    --hero-gradient: linear-gradient(180deg, var(--brand) 0%, var(--brand-light) 100%);
    --shadow-on-dark: 0 16px 48px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);

    /* Semantic */
    --success: #15803d;
    --success-bg: #ecfdf5;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #d97706;
    --warning-bg: #fffbeb;

    /* Focus & interaction */
    --ring: var(--accent);
    --ring-offset: var(--surface-elevated);
    --state-hover-bg: rgba(10, 42, 67, 0.04);
    --state-active-bg: rgba(10, 42, 67, 0.08);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 0 0 1px var(--border-faint), 0 4px 20px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 8px 32px rgba(5, 32, 60, 0.12), 0 1px 3px rgba(5, 32, 60, 0.06);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 14px;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --text-display: clamp(2.8rem, 5vw, 4.8rem);
    --text-h2: clamp(2rem, 3vw, 2.8rem);
    --text-body: 1.5rem;
    --text-sm: 1.35rem;
    --text-xs: 1.2rem;

    /* Layout */
    --tj-container: min(1120px, calc(100% - 3.2rem));
    --tj-checkout-container: min(127.8rem, calc(100% - 3rem));
    --tj-checkout-header-gap: 4rem;

    /* Checkout typography */
    --tj-checkout-text-xs: 1.3rem;
    --tj-checkout-text-sm: 1.45rem;
    --tj-checkout-text-base: 1.65rem;
    --tj-checkout-text-md: 1.9rem;
    --tj-checkout-text-lg: 2.3rem;
    --tj-checkout-text-xl: 2.5rem;
    --tj-checkout-line-tight: 1.3;
    --tj-checkout-line-normal: 1.5;
    --tj-checkout-line-relaxed: 1.55;
    --tj-checkout-divider: rgba(15, 23, 42, 0.05);
    --tj-checkout-border-panel: rgba(15, 23, 42, 0.06);
}

@media (max-width: 900px) {
    :root {
        --tj-checkout-container: 100%;
        --tj-checkout-gutter: 1.2rem;
    }
}

html,
body {
    font-family: var(--font-sans);
}

body.tj-funnel {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--surface-canvas);
}

body.tj-funnel > header {
    background: var(--header-bg);
    box-shadow: none;
}
