/* ============================================================================
   RoofLocal — Brand Homepage
   Dark/charcoal palette + RoofLocal red accent.
   Mobile-first; 720px breakpoint expands to desktop grid.
   ============================================================================ */

:root {
    --rl-bg:           #0d0d0f;
    --rl-bg-elevated:  #17171a;
    --rl-surface:      #1f1f24;
    --rl-surface-2:    #1a1a1d;
    --rl-border:       #2a2a30;
    --rl-border-soft:  #232329;
    --rl-text:         #f5f5f5;
    --rl-text-muted:   #a8a8b3;
    --rl-text-dim:     #7a7a85;
    --rl-accent:       #e53935;
    --rl-accent-hover: #ff4757;
    --rl-accent-soft:  rgba(229, 57, 53, 0.12);
    --rl-radius:       10px;
    --rl-radius-lg:    16px;
    --rl-shadow:       0 6px 22px rgba(0, 0, 0, 0.35);
    --rl-shadow-red:   0 8px 26px rgba(229, 57, 53, 0.30);
    --rl-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rl-font-script: 'Brush Script MT', 'Lucida Handwriting', cursive;
    --rl-max-width: 1180px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--rl-bg);
    color: var(--rl-text);
    font-family: var(--rl-font);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

a { color: inherit; }

.rl-container {
    max-width: var(--rl-max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.rl-section {
    padding: 3.5rem 0;
}

.rl-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--rl-accent);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.rl-h2 {
    font-size: 1.75rem;
    line-height: 1.18;
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.015em;
    color: var(--rl-text);
}

.rl-prose {
    color: var(--rl-text-muted);
    max-width: 540px;
    font-size: 0.97rem;
    line-height: 1.65;
    margin: 0;
}

.rl-prose strong {
    color: var(--rl-text);
    font-weight: 600;
}

.rl-accent-text { color: var(--rl-accent); }

/* ─────────────── Header / Nav ─────────────── */
.rl-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 13, 15, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--rl-border-soft);
}

.rl-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    max-width: var(--rl-max-width);
    margin: 0 auto;
}

.rl-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--rl-text);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.rl-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--rl-accent);
}

.rl-brand-wordmark {
    font-weight: 900;
    letter-spacing: 0.03em;
    font-size: 1rem;
}

.rl-brand-img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

/* Desktop nav links */
.rl-nav {
    display: none;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    justify-content: center;
    margin: 0 1rem;
}

.rl-nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rl-text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: color 140ms ease, background 140ms ease;
}

.rl-nav-link:hover {
    color: var(--rl-text);
    background: rgba(255,255,255,0.05);
}

.rl-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: var(--rl-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
    margin-left: auto;
    flex-shrink: 0;
}

.rl-header-cta:hover {
    background: var(--rl-accent-hover);
    transform: translateY(-1px);
}

/* ─────────────── Hero ─────────────── */
.rl-hero {
    padding: 3.5rem 0 4rem;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(229,57,53,0.18) 0%, transparent 55%),
        var(--rl-bg);
    position: relative;
    overflow: hidden;
}

.rl-hero::after {
    /* Subtle roofline silhouette in the background */
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'><polygon points='600,120 800,260 1000,260 1000,500 600,500' fill='%23151517' opacity='0.55'/><polygon points='800,180 1000,310 1200,310 1200,500 800,500' fill='%23121214' opacity='0.6'/></svg>");
    background-size: cover;
    background-position: right bottom;
    pointer-events: none;
    z-index: 0;
}

.rl-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.rl-hero-text { max-width: 600px; }

.rl-hero-headline {
    font-size: 2.25rem;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin: 0 0 1.1rem;
    color: var(--rl-text);
}

.rl-hero-sub {
    font-size: 1rem;
    color: var(--rl-text-muted);
    max-width: 480px;
    margin: 0 0 1.6rem;
    line-height: 1.6;
}

.rl-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.rl-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rl-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--rl-text-dim);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--rl-border);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}

.rl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
    cursor: pointer;
    line-height: 1;
}

.rl-btn-primary {
    background: var(--rl-accent);
    color: #fff;
    box-shadow: var(--rl-shadow-red);
}

.rl-btn-primary:hover {
    background: var(--rl-accent-hover);
    transform: translateY(-1px);
}

.rl-btn-ghost {
    background: rgba(255,255,255,0.04);
    color: var(--rl-text);
    border-color: var(--rl-border);
}

.rl-btn-ghost:hover {
    border-color: var(--rl-text-muted);
    background: rgba(255,255,255,0.07);
}

.rl-btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }

.rl-play-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rl-accent);
    color: #fff;
    font-size: 0.6rem;
    padding-left: 2px;
}

/* ─────────────── Hero side card ─────────────── */
.rl-hero-card {
    background: var(--rl-surface-2);
    border: 1px solid var(--rl-border);
    border-radius: var(--rl-radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--rl-shadow);
    text-align: center;
    position: relative;
}

.rl-hero-card-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--rl-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: -3.25rem auto 1rem;
    box-shadow: var(--rl-shadow-red);
}

.rl-hero-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1.5rem;
    color: var(--rl-text);
}

.rl-mini-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.4rem;
}

.rl-mini-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    flex: 1;
    min-width: 0;
}

/* Decorative arrow between steps — rendered via CSS so the OL only
   contains LI children (valid HTML5). aria-hidden via the parent
   pseudo-element naturally hides it from assistive tech. */
.rl-mini-step + .rl-mini-step::before {
    content: '→';
    position: absolute;
    left: -0.7rem;
    top: 0.35rem;
    color: var(--rl-text-dim);
    font-size: 1rem;
    pointer-events: none;
}

.rl-mini-icon {
    color: var(--rl-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rl-mini-label {
    font-size: 0.74rem;
    color: var(--rl-text-muted);
    line-height: 1.35;
}

/* ─────────────── What Is — feature grid ─────────────── */
.rl-section-features {
    background: var(--rl-surface-2);
    padding: 4rem 0;
}

.rl-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.rl-features-intro h2 { margin-bottom: 0.85rem; }

.rl-feature-card {
    background: transparent;
    padding: 0.5rem 0;
    text-align: left;
}

.rl-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--rl-accent);
    border-radius: 10px;
    color: var(--rl-accent);
    margin-bottom: 1rem;
}

.rl-feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rl-text);
    margin: 0 0 0.4rem;
    line-height: 1.25;
}

.rl-feature-body {
    font-size: 0.85rem;
    color: var(--rl-text-muted);
    margin: 0;
    line-height: 1.5;
    max-width: 180px;
}

/* ─────────────── Brand callout band ─────────────── */
.rl-callout-band {
    background: #050506;
    padding: 2rem 0;
}

.rl-callout-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rl-callout-image {
    display: block;
    width: 100%;
    max-width: 920px;
    height: auto;
    border-radius: var(--rl-radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.55);
}

/* ─────────────── Two-column: Who Helps + About ─────────────── */
.rl-section-twocol { padding: 4rem 0; }

.rl-twocol-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.rl-twocol-block .rl-h2 { margin-bottom: 1.25rem; }

.rl-help-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rl-help-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.95rem;
    background: var(--rl-surface-2);
    border: 1px solid var(--rl-border-soft);
    border-radius: var(--rl-radius);
    color: var(--rl-text);
    font-size: 0.92rem;
}

.rl-help-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--rl-accent-soft);
    border: 1px solid rgba(229,57,53,0.35);
    color: var(--rl-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rl-script {
    font-family: var(--rl-font-script);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--rl-accent);
    margin: 1.25rem 0 0;
    line-height: 1;
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
}

.rl-script::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rl-accent), transparent);
    opacity: 0.7;
}

/* ─────────────── Final CTA strip ─────────────── */
.rl-final-strip {
    background: linear-gradient(90deg, #b71c1c 0%, var(--rl-accent) 100%);
    padding: 1.75rem 0;
}

.rl-final-strip-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    color: #fff;
}

.rl-final-strip-text h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: #fff;
}

.rl-final-strip-text p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.93rem;
}

.rl-final-strip .rl-btn-primary {
    background: #1a1a1d;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.rl-final-strip .rl-btn-primary:hover {
    background: #000;
}

/* ─────────────── Footer ─────────────── */
.rl-footer {
    background: #0a0a0c;
    padding: 2.5rem 0 1.5rem;
    color: var(--rl-text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--rl-border-soft);
}

.rl-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.rl-footer-brand p {
    color: var(--rl-text-muted);
    max-width: 280px;
    font-size: 0.83rem;
    line-height: 1.55;
    margin: 0.75rem 0 0;
}

.rl-footer-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--rl-text);
    font-weight: 800;
}

.rl-footer-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
}

.rl-footer-col h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--rl-text-dim);
    margin: 0 0 0.7rem;
    font-weight: 700;
}

.rl-footer-col p,
.rl-footer-col a {
    margin: 0.3rem 0;
    color: var(--rl-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rl-footer-col a:hover { color: var(--rl-text); }

.rl-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rl-text-dim);
}

.rl-social-row { display: flex; gap: 0.6rem; margin-top: 0.25rem; }

.rl-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rl-surface-2);
    border: 1px solid var(--rl-border);
    color: var(--rl-text-muted);
    text-decoration: none;
    transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.rl-social:hover {
    color: var(--rl-accent);
    border-color: var(--rl-accent);
    background: var(--rl-accent-soft);
}

.rl-footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rl-border-soft);
    color: var(--rl-text-dim);
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.rl-footer-legal {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.rl-footer-legal a {
    color: var(--rl-text-dim);
    text-decoration: none;
}

.rl-footer-legal a:hover { color: var(--rl-text-muted); }

/* ─────────────── Desktop ─────────────── */
@media (min-width: 720px) {
    .rl-hero { padding: 5rem 0 6rem; }
    .rl-hero-inner { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
    .rl-hero-headline { font-size: 3.25rem; }
    .rl-h2 { font-size: 2rem; }
    .rl-nav { display: flex; }

    .rl-features-grid {
        grid-template-columns: 1.4fr repeat(4, 1fr);
        gap: 1.75rem;
        align-items: start;
    }

    .rl-twocol-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }

    .rl-final-strip-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .rl-final-strip-text h2 { font-size: 1.7rem; }

    .rl-footer-inner {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 2.5rem;
    }
    .rl-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .rl-callout-image { max-width: 1024px; }
}

@media (min-width: 1024px) {
    .rl-hero-headline { font-size: 3.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ─────────────── Legal pages (Privacy Policy, future Terms) ───────────────
   Scoped under .rl-legal so these rules cannot bleed back into the brand
   homepage layout. Single-column readable text on the same dark shell. */
.rl-legal-section {
    padding: 3rem 0 4rem;
}

.rl-legal {
    max-width: 760px;
    color: var(--rl-text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.rl-legal-head {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rl-border-soft);
}

.rl-legal-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--rl-text);
    letter-spacing: -0.02em;
    margin: 0.4rem 0 0.6rem;
    line-height: 1.15;
}

.rl-legal-meta {
    font-size: 0.85rem;
    color: var(--rl-text-dim);
    margin: 0;
}

.rl-legal-intro {
    font-size: 1.02rem;
    color: var(--rl-text);
    margin: 0 0 2rem;
}

.rl-legal-h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--rl-text);
    margin: 2.25rem 0 0.75rem;
    letter-spacing: -0.005em;
    line-height: 1.3;
}

.rl-legal p {
    margin: 0 0 1rem;
    color: var(--rl-text-muted);
}

.rl-legal ul {
    margin: 0.5rem 0 1.25rem;
    padding-left: 1.25rem;
    color: var(--rl-text-muted);
}

.rl-legal li {
    margin: 0.35rem 0;
    line-height: 1.6;
}

.rl-legal li::marker {
    color: var(--rl-accent);
}

.rl-legal strong {
    color: var(--rl-text);
    font-weight: 600;
}

.rl-legal a {
    color: var(--rl-accent);
    text-decoration: none;
    word-break: break-word;
}

.rl-legal a:hover {
    text-decoration: underline;
}

.rl-legal-back {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rl-border-soft);
}

.rl-legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--rl-text-muted);
}

.rl-legal-back-link:hover {
    color: var(--rl-accent);
    text-decoration: none;
}

@media (min-width: 720px) {
    .rl-legal-title { font-size: 2.5rem; }
    .rl-legal-h2 { font-size: 1.3rem; }
    .rl-legal-section { padding: 4rem 0 5rem; }
}
