/* ==========================================================================
   RoofLeadHQ — Public Visual System ("Field-Ready Precision")
   Phase 1 (2026-09-24). Shared by the public marketing pages that opt in by
   linking this file. Everything is scoped under `.rl` (set on <body>) so a page
   that does NOT opt in — dashboard, signup, legal, visibility, pilot — is
   untouched even if this file is loaded by mistake.

   Palette sampled from the existing brand:
     - Logo navy  #000850 / logo blue #0070B8 (sampled from roofleadhq-logo-small.png)
     - Ember/copper #D97E1F (tokens.css, the existing primary action color)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Surfaces */
  --rl-midnight: #070E22;      /* hero / premium dark — deepened from logo navy */
  --rl-navy: #0C1733;          /* dark sections */
  --rl-slate: #16223D;         /* product framing on dark */
  --rl-slate-2: #1F2C4A;       /* raised surface on dark */
  --rl-warm: #FAF7F2;          /* warm-white editorial sections */
  --rl-paper: #FFFFFF;
  --rl-mist: #F1F3F6;          /* cool light surface */

  /* Ink */
  --rl-ink: #111A2E;           /* headlines on light */
  --rl-body: #3A4457;          /* body on light  (9.4:1 on warm) */
  --rl-muted: #5A6477;         /* secondary on light (5.6:1 on warm) */
  --rl-on-dark: #F4F6FA;
  --rl-on-dark-2: #B9C2D3;     /* secondary on navy (8.9:1) */

  /* Lines */
  --rl-line: #E2DDD4;          /* warm hairline */
  --rl-line-cool: #D9DEE6;
  --rl-line-dark: rgba(255, 255, 255, 0.12);

  /* Action — the existing RoofLeadHQ ember, used purposefully */
  --rl-copper: #D97E1F;
  --rl-copper-hover: #BE6D18;
  --rl-copper-ink: #1E2327;    /* label on copper: 5.25:1 */
  --rl-copper-text: #A85A0E;   /* copper as text on light: 4.8:1 on white */
  --rl-brand-blue: #0A72B9;    /* logo blue, informational accents only */

  /* Status — only for genuine states */
  --rl-green: #1E9E6A;         /* reached / qualified / booked */
  --rl-green-soft: rgba(30, 158, 106, 0.14);
  --rl-green-on-dark: #4FD39A;
  --rl-amber: #C98600;         /* follow-up / team action */
  --rl-amber-soft: rgba(224, 161, 0, 0.16);
  --rl-amber-on-dark: #F2BE45;
  --rl-red: #C8423B;           /* urgent / genuine error */
  --rl-red-soft: rgba(200, 66, 59, 0.13);
  --rl-red-on-dark: #F27A70;

  /* Type */
  --rl-display: 'Archivo', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rl-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape */
  --rl-radius: 6px;            /* moderately squared */
  --rl-radius-lg: 10px;
  --rl-shadow: 0 1px 2px rgba(7, 14, 34, 0.06), 0 8px 24px rgba(7, 14, 34, 0.08);
  --rl-shadow-dark: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.35);

  /* Layout */
  --rl-max: 1240px;
  --rl-gutter: clamp(20px, 4vw, 40px);
  --rl-section: clamp(72px, 9vw, 128px);

  /* Motion timing hierarchy */
  --rl-t-micro: 170ms;
  --rl-t-comp: 300ms;
  --rl-t-reveal: 560ms;
  --rl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------------------------------------------------------------- base -- */
.rl { margin: 0; background: var(--rl-warm); color: var(--rl-body); font-family: var(--rl-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.rl *, .rl *::before, .rl *::after { box-sizing: border-box; }
.rl img, .rl svg { max-width: 100%; display: block; }
.rl a { color: inherit; }
.rl h1, .rl h2, .rl h3, .rl h4 { font-family: var(--rl-display); color: var(--rl-ink); margin: 0; letter-spacing: -0.015em; line-height: 1.08; font-weight: 800; }
.rl p { margin: 0; }
.rl ul { margin: 0; padding: 0; list-style: none; }
.rl .hidden { display: none !important; }       /* used by script.js for the mobile menu */
.rl [hidden] { display: none !important; }
.rl .tnum { font-variant-numeric: tabular-nums; }
.rl :focus-visible { outline: 3px solid rgba(217, 126, 31, 0.6); outline-offset: 3px; border-radius: 4px; }
.rl .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.rl .skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--rl-copper); color: var(--rl-copper-ink); font-weight: 700; padding: 10px 16px; border-radius: var(--rl-radius); text-decoration: none; transition: top var(--rl-t-micro); }
.rl .skip-link:focus { top: 12px; }

.rl .wrap { width: 100%; max-width: var(--rl-max); margin: 0 auto; padding: 0 var(--rl-gutter); }
.rl .section { padding: var(--rl-section) 0; position: relative; }
.rl .section--warm { background: var(--rl-warm); }
.rl .section--paper { background: var(--rl-paper); }
.rl .section--mist { background: var(--rl-mist); }
.rl .section--dark { background: var(--rl-navy); color: var(--rl-on-dark-2); }
.rl .section--midnight { background: var(--rl-midnight); color: var(--rl-on-dark-2); }
.rl .section--dark h1, .rl .section--dark h2, .rl .section--dark h3, .rl .section--dark h4,
.rl .section--midnight h1, .rl .section--midnight h2, .rl .section--midnight h3, .rl .section--midnight h4 { color: var(--rl-on-dark); }

.rl .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--rl-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rl-copper-text); }
.rl .eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.rl .section--dark .eyebrow, .rl .section--midnight .eyebrow { color: var(--rl-copper); }
.rl .h-display { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.025em; }
.rl .h-section { font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.02em; }
.rl .h-sub { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.rl .lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--rl-body); max-width: 62ch; }
.rl .section--dark .lead, .rl .section--midnight .lead { color: var(--rl-on-dark-2); }
.rl .measure { max-width: 62ch; }
.rl .rule { height: 1px; background: var(--rl-line); border: 0; margin: 0; }
.rl .section--dark .rule, .rl .section--midnight .rule { background: var(--rl-line-dark); }

/* ------------------------------------------------------------- buttons -- */
.rl .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--rl-radius); font-family: var(--rl-sans); font-size: 16px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color var(--rl-t-micro) var(--rl-ease), color var(--rl-t-micro), border-color var(--rl-t-micro), transform var(--rl-t-micro) var(--rl-ease), box-shadow var(--rl-t-micro); line-height: 1.1; white-space: nowrap; }
.rl .btn:active { transform: translateY(1px); }
.rl .btn--primary { background: var(--rl-copper); color: var(--rl-copper-ink); box-shadow: 0 6px 18px rgba(217, 126, 31, 0.28); }
.rl .btn--primary:hover { background: var(--rl-copper-hover); color: #fff; }
.rl .btn--ghost-dark { border-color: rgba(255,255,255,0.35); color: #fff; background: transparent; }
.rl .btn--ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.rl .btn--ghost { border-color: var(--rl-ink); color: var(--rl-ink); background: transparent; }
.rl .btn--ghost:hover { background: var(--rl-ink); color: #fff; }
.rl .btn--dark { background: var(--rl-ink); color: #fff; }
.rl .btn--dark:hover { background: #000; }
.rl .btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.rl .btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.rl .text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--rl-ink); text-decoration: none; border-bottom: 2px solid var(--rl-copper); padding-bottom: 2px; transition: gap var(--rl-t-micro) var(--rl-ease), color var(--rl-t-micro); }
.rl .text-link:hover { gap: 12px; color: var(--rl-copper-text); }
.rl .section--dark .text-link, .rl .section--midnight .text-link { color: #fff; }
.rl .section--dark .text-link:hover, .rl .section--midnight .text-link:hover { color: var(--rl-copper); }

/* -------------------------------------------------------------- status -- */
.rl .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px; line-height: 1.3; white-space: nowrap; }
.rl .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rl .pill--green { color: var(--rl-green); background: var(--rl-green-soft); }
.rl .pill--amber { color: #8A5B00; background: var(--rl-amber-soft); }
.rl .pill--red { color: var(--rl-red); background: var(--rl-red-soft); }
.rl .pill--neutral { color: var(--rl-muted); background: rgba(90, 100, 119, 0.12); }
.rl .on-dark .pill--green, .rl .section--dark .pill--green, .rl .section--midnight .pill--green { color: var(--rl-green-on-dark); background: rgba(79, 211, 154, 0.12); }
.rl .on-dark .pill--amber, .rl .section--dark .pill--amber, .rl .section--midnight .pill--amber { color: var(--rl-amber-on-dark); background: rgba(242, 190, 69, 0.13); }
.rl .on-dark .pill--red, .rl .section--dark .pill--red, .rl .section--midnight .pill--red { color: var(--rl-red-on-dark); background: rgba(242, 122, 112, 0.13); }
.rl .on-dark .pill--neutral, .rl .section--dark .pill--neutral, .rl .section--midnight .pill--neutral { color: var(--rl-on-dark-2); background: rgba(255,255,255,0.08); }

/* -------------------------------------------------------------- header -- */
.rl .site-header { position: sticky; top: 0; z-index: 60; background: rgba(7, 14, 34, 0.92); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rl-line-dark); color: var(--rl-on-dark); }
.rl .site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.rl .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.rl .brand img { width: 44px; height: 44px; }
.rl .brand span { font-family: var(--rl-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: #fff; }
.rl .site-nav { display: none; align-items: center; gap: 30px; }
.rl .site-nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--rl-on-dark-2); transition: color var(--rl-t-micro); padding: 10px 0; }
.rl .site-nav a:hover { color: #fff; }
.rl .site-header__cta { display: none; }
.rl .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--rl-radius); border: 1px solid var(--rl-line-dark); background: transparent; color: #fff; cursor: pointer; }
.rl .menu-btn svg { width: 22px; height: 22px; }
.rl .mobile-menu { border-top: 1px solid var(--rl-line-dark); padding: 12px var(--rl-gutter) 24px; background: var(--rl-midnight); }
.rl .mobile-menu a { display: flex; align-items: center; min-height: 52px; text-decoration: none; color: var(--rl-on-dark); font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--rl-line-dark); }
.rl .mobile-menu .btn { margin-top: 18px; width: 100%; border-bottom: 0; color: var(--rl-copper-ink); }
@media (min-width: 1024px) {
  .rl .site-nav, .rl .site-header__cta { display: flex; }
  .rl .menu-btn { display: none; }
  .rl .mobile-menu { display: none !important; }
}

/* -------------------------------------------------------------- footer -- */
.rl .site-footer { background: var(--rl-midnight); color: var(--rl-on-dark-2); padding: 72px 0 40px; font-size: 15px; }
.rl .footer-top { display: grid; gap: 40px; grid-template-columns: 1fr; }
.rl .footer-brand p { margin-top: 14px; max-width: 34ch; }
.rl .footer-groups { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rl .footer-groups h2 { font-family: var(--rl-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; line-height: 1.3; }
.rl .footer-groups li + li { margin-top: 4px; }
.rl .footer-groups a { display: inline-flex; min-height: 34px; align-items: center; text-decoration: none; color: var(--rl-on-dark-2); transition: color var(--rl-t-micro); }
.rl .footer-groups a:hover { color: #fff; }
.rl .footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rl-line-dark); font-size: 14px; }
.rl .footer-bottom a { color: var(--rl-on-dark-2); }
@media (min-width: 720px) { .rl .footer-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rl .footer-top { grid-template-columns: 1.1fr 3fr; } .rl .footer-groups { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ------------------------------------------------------ mobile action bar -- */
.rl .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(7, 14, 34, 0.96); border-top: 1px solid var(--rl-line-dark); }
.rl .action-bar .btn { flex: 1; min-height: 48px; padding: 0 12px; font-size: 15px; }
.rl.has-action-bar { padding-bottom: 76px; }
@media (min-width: 1024px) { .rl .action-bar { display: none; } .rl.has-action-bar { padding-bottom: 0; } }

/* ------------------------------------------------------ motion utilities --
   Default = the COMPLETED, static state. Motion is opt-in: public-motion.js
   adds `.rl-motion` to <html> only when JS runs AND the visitor has not asked
   for reduced motion. So with JS off, or with prefers-reduced-motion, every
   path and status is visible in its finished form and nothing is hidden. */
.rl-motion .rl [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--rl-t-reveal) var(--rl-ease), transform var(--rl-t-reveal) var(--rl-ease); }
.rl-motion .rl [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rl *, .rl *::before, .rl *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .rl-motion .rl [data-reveal] { opacity: 1 !important; transform: none !important; }
}
