/* ────────────────────────────────────────────────────────────────────
   RetainCall design system
   Shared across every page. Edit here = propagate everywhere.
   ──────────────────────────────────────────────────────────────────── */

:root {
    /* Core neutrals */
    --ink: #0b1220;
    --ink-2: #1e293b;
    --muted: #5b6b7f;
    --line: #e7ebf1;
    --bg: #fbfbfd;
    --bg-soft: #f4f6fb;

    /* Brand green (RetainCall root) */
    --brand: #2E7D32;
    --brand-2: #1b5e20;
    --brand-3: #43a047;     /* lighter — for highlights */
    --brand-soft: #e8f5e9;  /* tint for backgrounds */

    /* Action blue */
    --accent: #2563eb;
    --accent-2: #1d4ed8;
    --accent-3: #3b82f6;
    --accent-soft: #eff6ff;

    /* HVAC = warm (heating/cooling) */
    --hvac: #ea580c;        /* orange */
    --hvac-2: #c2410c;
    --hvac-soft: #fff7ed;

    /* Plumbing = cool (water) */
    --plumb: #0891b2;       /* cyan */
    --plumb-2: #0e7490;
    --plumb-soft: #ecfeff;

    /* Purple for AI/tech accents */
    --ai: #7c3aed;
    --ai-2: #6d28d9;
    --ai-soft: #f5f3ff;

    /* Semantic */
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(10, 16, 30, 0.04), 0 1px 3px rgba(10, 16, 30, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 16, 30, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 16, 30, 0.12);

    /* Signature gradient — pure green, dark to light for depth */
    --grad-brand: linear-gradient(135deg, #1b5e20 0%, #2E7D32 50%, #43a047 100%);
    --grad-warm: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    --grad-cool: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    --grad-ai: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);

    --radius: 14px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ─── Nav bar ─────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.brand-mark {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: var(--grad-brand);
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.25);
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--grad-brand);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
    transition: transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(46, 125, 50, 0.35); }
.nav-login {
    color: var(--ink) !important;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    transition: background 0.15s, border-color 0.15s;
}
.nav-login:hover { background: #f3f4f6; border-color: #d1d5db; }
@media (max-width: 760px) {
    .nav-links li:not(:last-child):not(:nth-last-child(2)) { display: none; }
}

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
    white-space: nowrap;
    font-family: inherit;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10, 16, 30, 0.25); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; border-color: #cbd5e1; transform: translateY(-1px); }
/* .btn-accent is an alias of .btn-brand — we standardized on green.
   Kept so existing markup doesn't need to be mass-renamed. */
.btn-accent {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.25);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(46, 125, 50, 0.4); }
.btn-brand {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.25);
}
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(46, 125, 50, 0.4); }
.btn-warm {
    background: var(--grad-warm);
    color: #fff;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25);
}
.btn-warm:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(234, 88, 12, 0.4); }
.btn-cool {
    background: var(--grad-cool);
    color: #fff;
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.25);
}
.btn-cool:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(8, 145, 178, 0.4); }

/* Gradient text utility */
.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.grad-text-warm {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.grad-text-cool {
    background: var(--grad-cool);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── Page hero (for sub-pages that aren't the landing) ──────────── */
.page-hero {
    padding: 72px 0 40px;
    background:
        radial-gradient(700px 400px at 90% -20%, rgba(46, 125, 50, 0.14), transparent 60%),
        radial-gradient(600px 400px at -10% 110%, rgba(67, 160, 71, 0.12), transparent 60%),
        #fff;
    border-bottom: 2px solid var(--brand);
    text-align: center;
}
.page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--brand-soft);
    border: 1.5px solid var(--brand);
    color: var(--brand-2);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
}
.page-hero .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.page-hero h1 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 12px;
}
.page-hero p {
    color: var(--muted);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto;
}

/* ─── Section utilities ──────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-soft {
    background:
        radial-gradient(500px 250px at 80% 0%, rgba(46, 125, 50, 0.08), transparent 60%),
        radial-gradient(500px 250px at 20% 100%, rgba(67, 160, 71, 0.06), transparent 60%),
        var(--bg-soft);
    border-top: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
}
.section-brand {
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(46, 125, 50, 0.12), transparent 60%),
        var(--brand-soft);
    border-top: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* ─── Cards ─────────────────────────────────────────────────────── */
.card {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.card-lg { padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.card-hover { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(46, 125, 50, 0.15);
    border-color: var(--brand);
}

/* ─── Grids ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Form controls ──────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="url"],
.field select,
.field textarea,
.input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ─── Footer ────────────────────────────────────────────────────── */
.foot {
    padding: 40px 0 48px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
    background: #fff;
}
.foot-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ─── Utility ────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-soft);
    color: var(--muted);
}
.badge-brand { background: rgba(46, 125, 50, 0.1); color: var(--brand-2); }
.badge-accent { background: rgba(37, 99, 235, 0.1); color: var(--accent-2); }
.badge-demo { background: #fef3c7; color: #92400e; }

/* ─── Legal prose (privacy, terms, cookie, refund, tcpa) ────────── */
.legal-shell {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}
.legal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    margin: 40px 0;
}
@media (max-width: 700px) { .legal-card { padding: 28px 22px; } }
.legal-meta {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.legal-meta h1 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 8px;
}
.legal-meta .last-updated {
    font-size: 14px;
    color: var(--muted);
}
.legal-prose {
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.7;
}
.legal-prose h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 32px 0 12px;
    letter-spacing: -0.01em;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 20px 0 8px;
}
.legal-prose p { margin-bottom: 14px; }
.legal-prose ul, .legal-prose ol { padding-left: 22px; margin-bottom: 14px; }
.legal-prose li { margin-bottom: 6px; }
.legal-prose strong { color: var(--ink); font-weight: 600; }
.legal-prose a { color: var(--accent); }
.legal-prose a:hover { text-decoration: underline; }
.legal-prose code {
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Monaco, Menlo, monospace;
    font-size: 13px;
}
.legal-callout {
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
}
.legal-callout.warn {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #854d0e;
}
.legal-callout.warn strong { color: #854d0e; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout ul:last-child, .legal-callout ol:last-child { margin-bottom: 0; }
.legal-toc {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 14px;
}
.legal-toc strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 8px;
}
.legal-toc ol {
    list-style: decimal;
    padding-left: 22px;
    margin: 0;
}
.legal-toc li { margin-bottom: 4px; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }
