/* ------------------------------------------------------------------
   SCOPING FIX 2026-08-06 (svc265)
   This file was lifted from a standalone single-page drawer demo and still
   carried demo scaffolding at global scope. Measured damage before the fix,
   on the live homepage at 390x844:
     computed html font-size  = 15px   (should be 16px, so every rem in
                                        raydn.css rendered 6.25% small)
     computed body font-family = -apple-system  (should be Satoshi, Inter)
     computed body background  = rgb(4,7,13)    (should be #fff)
     46 of 50 long homepage paragraphs rendered in the system font
   Cause: this file loads AFTER raydn.css, so its html,body rule won.
   Fix: the html,body rule is removed, the bare * rule is scoped to the
   drawer, and the unused demo wrappers are neutralised. The drawer's own
   look is unaffected because .cc carries its own background, border and
   shadow, and the :root custom properties collide with raydn.css on only
   two names (--navy, --amber) which hold identical values.
   ------------------------------------------------------------------ */
:root{
    --navy:#0d1b2e; --navy2:#0a1526; --navy3:#081127;
    --amber:#f5a524; --amber-lo:#f0a300; --amber-hi:#f7b23a; --amber-ink:#e59a1f;
    --green:#4ade80; --green-lo:#7ef2a6;
    --grey:#8a94a6; --off:#f4f6fb; --dim:#c7d0dd;
    --hair:rgba(255,255,255,.08); --hair-hi:rgba(255,255,255,.14);
    --lift:0 1px 0 rgba(255,255,255,.06) inset, 0 12px 40px rgba(0,0,0,.55);
    --glass:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    --sp:16px;
  }
  .cc,.cc *{-webkit-tap-highlight-color:transparent}  /* SCOPED 2026-08-06: was a bare *{} selector. box-sizing dropped, raydn.css already sets it globally. */
  /* REMOVED 2026-08-06: html,body{...font:400 15px/1.45 -apple-system...} forced a 15px root, the system font stack and a near-black page background onto all 79 pages carrying this drawer. See banner at top of file. */
  /* NEUTRALISED 2026-08-06, demo scaffolding, zero usages in any of 87 HTML files: .page{max-width:390px;margin:0 auto;min-height:100vh;background:radial-gradient(120% 60% at 50% -10%, #0f1e35 0%, #060c1a 55%, #04070d 100%)} */
  /* NEUTRALISED 2026-08-06, demo scaffolding, zero usages in any of 87 HTML files: .stage{padding:12px 12px 40px} */
  /* NEUTRALISED 2026-08-06, demo scaffolding, zero usages in any of 87 HTML files: .caption{color:var(--grey);font-size:12px;text-transform:uppercase;letter-spacing:.14em;margin:22px 6px 10px} */

  /* ============================================================
     THE DRAWER
     ============================================================ */
  .cc{
    position:relative;border-radius:22px;overflow:hidden;
    background:linear-gradient(180deg, rgba(16,28,49,.86), rgba(9,17,35,.92));
    backdrop-filter:saturate(140%) blur(24px);-webkit-backdrop-filter:saturate(140%) blur(24px);
    border:1px solid var(--hair);
    box-shadow:var(--lift);
  }
  .cc::before{
    /* ambient amber glow at top and green at bottom */
    content:"";position:absolute;inset:0;pointer-events:none;
    background:
      radial-gradient(120% 40% at 20% -5%, rgba(245,165,36,.16) 0%, transparent 60%),
      radial-gradient(90% 30% at 90% 105%, rgba(74,222,128,.09) 0%, transparent 70%);
    mix-blend-mode:screen;
  }

  /* ---- hero payback card ---- */
  .cc__hero{position:relative;padding:16px 16px 18px;border-bottom:1px solid var(--hair)}
  .cc__hero-inner{
    position:relative;isolation:isolate;
    border-radius:16px;padding:16px;
    background:
      linear-gradient(180deg, rgba(245,165,36,.14), rgba(245,165,36,.06)) padding-box,
      linear-gradient(180deg, rgba(245,165,36,.55), rgba(245,165,36,.12)) border-box;
    border:1px solid transparent;
    box-shadow:0 10px 30px rgba(245,165,36,.12), 0 0 0 1px rgba(255,255,255,.03) inset;
  }
  .cc__hero-inner::before{
    content:"";position:absolute;inset:0;border-radius:16px;pointer-events:none;
    background:radial-gradient(80% 80% at 20% 10%, rgba(255,255,255,.10), transparent 55%);
  }
  .cc__hero-eyebrow{color:var(--amber);font:600 11px/1 -apple-system;letter-spacing:.16em;text-transform:uppercase;margin:0 0 6px}
  .cc__hero-title{font:600 20px/1.15 "SF Pro Display","Inter",system-ui,sans-serif;letter-spacing:-.015em;margin:0 0 10px;color:#fff}
  .cc__hero-title em{color:var(--amber);font-style:normal}
  .cc__hero-num{display:flex;align-items:baseline;gap:8px;margin:2px 0 12px}
  .cc__hero-num-big{font:700 30px/1 "SF Pro Display",-apple-system;letter-spacing:-.03em;color:#fff}
  .cc__hero-num-suf{font:500 12px/1 -apple-system;color:var(--dim);letter-spacing:.02em}
  .cc__hero-btn{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    width:100%;padding:12px 16px;border-radius:12px;text-decoration:none;
    background:linear-gradient(180deg, #f7b23a 0%, #f0a300 100%);
    color:#0a1526;font:600 15px/1.2 -apple-system;letter-spacing:-.005em;
    border:1px solid rgba(255,255,255,.25);
    box-shadow:0 6px 20px rgba(240,163,0,.35), 0 1px 0 rgba(255,255,255,.35) inset;
    position:relative;overflow:hidden;
  }
  .cc__hero-btn::after{
    /* sheen sweep */
    content:"";position:absolute;top:0;bottom:0;left:-30%;width:30%;
    background:linear-gradient(115deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
    transform:skewX(-18deg);animation:sheen 4.6s ease-in-out infinite;
  }
  @keyframes sheen{
    0%,55%{transform:translateX(0) skewX(-18deg)}
    75%{transform:translateX(600%) skewX(-18deg)}
    100%{transform:translateX(600%) skewX(-18deg)}
  }
  .cc__hero-btn svg{width:16px;height:16px;flex:0 0 auto}
  .cc__hero-btn em{font-style:normal;font-weight:500;opacity:.62}

  /* one line replaces the storyboard */
  .cc__hero-path{
    margin:2px 0 12px;color:var(--dim);
    font:500 12.5px/1.45 -apple-system;letter-spacing:.005em;
    text-align:left;
  }

  /* ---- summer bill ticker ---- */
  .cc__bills{
    display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin:2px 0 12px;
  }
  .cc__bill{
    position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
    padding:8px 4px;border-radius:10px;
    background:linear-gradient(180deg, rgba(74,222,128,.10), rgba(74,222,128,.03));
    border:1px solid rgba(74,222,128,.24);
  }
  .cc__bill-mo{color:var(--dim);font:600 10px/1 -apple-system;letter-spacing:.14em;text-transform:uppercase;margin-bottom:4px}
  .cc__bill-amt{color:var(--green-lo);font:700 14px/1 "SF Pro Display",-apple-system;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
  .cc__bill--live{background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));border-color:var(--hair-hi)}
  .cc__bill--live .cc__bill-amt{color:var(--dim);font-size:11px;font-weight:500;letter-spacing:.02em}
  .cc__bill--live::after{
    content:"";position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;
    background:var(--amber);box-shadow:0 0 0 0 rgba(245,165,36,.6);
    animation:pulse 1.8s ease-in-out infinite;
  }
  @keyframes pulse{
    0%,100%{box-shadow:0 0 0 0 rgba(245,165,36,.55)}
    50%{box-shadow:0 0 0 6px rgba(245,165,36,0)}
  }



  /* ---- tab bar, now at the top ---- */
  .cc__tabs{
    display:grid;grid-template-columns:repeat(3,1fr);gap:4px;
    margin:14px 12px 4px;padding:4px;border-radius:12px;
    background:rgba(0,0,0,.32);border:1px solid var(--hair);
    position:relative;
  }
  .cc__tab{
    appearance:none;background:transparent;border:0;color:var(--dim);
    padding:9px 6px;border-radius:9px;font:600 13px/1 -apple-system;letter-spacing:-.005em;
    display:flex;align-items:center;justify-content:center;gap:6px;
    cursor:pointer;transition:color .2s ease;position:relative;z-index:2;
  }
  .cc__tab[aria-selected="true"]{color:#0a1526}
  .cc__tab svg{width:14px;height:14px}
  .cc__tab-thumb{
    position:absolute;top:4px;bottom:4px;width:calc((100% - 8px)/3);left:4px;z-index:1;
    background:linear-gradient(180deg, #f7b23a 0%, #f0a300 100%);
    border-radius:9px;box-shadow:0 3px 10px rgba(240,163,0,.35), 0 1px 0 rgba(255,255,255,.3) inset;
    transition:transform .34s cubic-bezier(.32,.72,.24,1);
  }
  .cc__tab-thumb[data-i="1"]{transform:translateX(calc(100% + 4px))}
  .cc__tab-thumb[data-i="2"]{transform:translateX(calc(200% + 8px))}

  /* ---- search ---- */
  .cc__search{
    position:relative;margin:12px 12px 4px;
    display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:11px;
    background:rgba(0,0,0,.28);border:1px solid var(--hair);
  }
  .cc__search svg{width:16px;height:16px;color:var(--grey);flex:0 0 auto}
  .cc__search input{
    flex:1;background:transparent;border:0;outline:0;color:var(--off);
    font:500 14px/1.2 -apple-system;letter-spacing:-.005em;
  }
  .cc__search input::placeholder{color:var(--grey)}
  .cc__search-kbd{color:var(--grey);font:500 11px/1 -apple-system;letter-spacing:.06em}

  /* ---- panels ---- */
  .cc__panels{position:relative;overflow:hidden}
  .cc__panel{padding:8px 12px 18px;display:none}
  .cc__panel[data-active="true"]{display:block;animation:slideIn .32s cubic-bezier(.32,.72,.24,1)}
  @keyframes slideIn{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:translateX(0)}}

  /* ---- services grid: 4 hero tiles + secondary list ---- */
  .cc__grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:6px 0 14px}
  .tile{
    position:relative;overflow:hidden;isolation:isolate;
    display:flex;flex-direction:column;justify-content:space-between;
    min-height:112px;padding:12px;border-radius:14px;text-decoration:none;color:var(--off);
    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)) padding-box,
      linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04)) border-box;
    border:1px solid transparent;
    box-shadow:0 6px 22px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.05) inset;
    transition:transform .18s ease, box-shadow .18s ease;
  }
  .tile::before{
    content:"";position:absolute;inset:-1px;border-radius:14px;pointer-events:none;z-index:-1;
    background:radial-gradient(70% 60% at 15% 10%, var(--tile-glow,rgba(245,165,36,.18)), transparent 65%);
    opacity:.9;
  }
  .tile:active{transform:scale(.97)}
  .tile__ic{
    width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;
    background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
    border:1px solid var(--hair-hi);color:var(--tile-fg,var(--amber));
  }
  .tile__ic svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .tile__t{font:600 15px/1.2 "SF Pro Display","Inter",system-ui,sans-serif;letter-spacing:-.01em;color:#fff;margin-top:auto}
  .tile__p{font:500 12px/1.35 -apple-system;color:var(--dim);margin-top:2px;letter-spacing:.005em}
  .tile__p b{color:var(--tile-fg,var(--amber));font-weight:600}
  /* one accent, amber. Different intensities per tile so they still read as four things. */
  .tile--solar{--tile-fg:#f7b23a;--tile-glow:rgba(245,165,36,.26)}
  .tile--battery{--tile-fg:#f5a524;--tile-glow:rgba(245,165,36,.16)}
  .tile--ev{--tile-fg:#f7b23a;--tile-glow:rgba(245,165,36,.12)}
  .tile--elec{--tile-fg:#f0a300;--tile-glow:rgba(245,165,36,.10)}

  /* ---- secondary service list ---- */
  .cc__more{margin:8px 0 0;padding:6px 4px 2px}
  .cc__more h4{font:600 11px/1 -apple-system;color:var(--grey);letter-spacing:.16em;text-transform:uppercase;margin:8px 4px 8px}
  .cc__more-list{list-style:none;padding:0;margin:0;display:grid;gap:2px}
  .cc__more-row{
    display:flex;align-items:center;gap:12px;padding:11px 10px;border-radius:11px;text-decoration:none;color:var(--off);
    transition:background .18s ease;
  }
  .cc__more-row:active{background:rgba(255,255,255,.04)}
  .cc__more-row .ic{
    width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;
    background:rgba(255,255,255,.04);border:1px solid var(--hair);color:var(--amber-hi);flex:0 0 auto;
  }
  .cc__more-row .ic svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .cc__more-row .lbl{font:500 14px/1.25 -apple-system;letter-spacing:-.005em;flex:1}
  .cc__more-row .lbl small{display:block;color:var(--grey);font:400 12px/1.3 -apple-system;margin-top:1px}
  .cc__more-row .chev{color:var(--grey);width:14px;height:14px;flex:0 0 auto}

  /* ---- calculators panel ---- */
  .cc__calc-hero{
    display:flex;align-items:center;gap:12px;padding:14px 14px;border-radius:14px;text-decoration:none;color:#0a1526;
    background:linear-gradient(180deg, #f7b23a 0%, #f0a300 100%);
    box-shadow:0 8px 26px rgba(240,163,0,.35), 0 1px 0 rgba(255,255,255,.35) inset;
    border:1px solid rgba(255,255,255,.2);
    margin:6px 0 10px;position:relative;overflow:hidden;
  }
  .cc__calc-hero::after{
    content:"";position:absolute;top:0;bottom:0;left:-30%;width:30%;
    background:linear-gradient(115deg, transparent 20%, rgba(255,255,255,.32) 50%, transparent 80%);
    transform:skewX(-18deg);animation:sheen 5.4s ease-in-out infinite;
  }
  .cc__calc-hero .ic{
    width:38px;height:38px;border-radius:10px;background:rgba(10,21,38,.15);
    display:flex;align-items:center;justify-content:center;color:#0a1526;
  }
  .cc__calc-hero .ic svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .cc__calc-hero .txt{flex:1}
  .cc__calc-hero .txt b{display:block;font:700 16px/1.15 "SF Pro Display",-apple-system;letter-spacing:-.01em}
  .cc__calc-hero .txt small{display:block;font:500 12px/1.35 -apple-system;opacity:.8;margin-top:2px}
  .cc__calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .cc__calc-item{
    display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:12px;text-decoration:none;color:var(--off);
    background:rgba(255,255,255,.03);border:1px solid var(--hair);min-height:76px;
    transition:transform .16s ease, background .16s ease;
  }
  .cc__calc-item:active{transform:scale(.97);background:rgba(255,255,255,.05)}
  .cc__calc-item .ic{width:26px;height:26px;border-radius:7px;background:rgba(245,165,36,.10);border:1px solid rgba(245,165,36,.24);color:var(--amber-hi);display:flex;align-items:center;justify-content:center}
  .cc__calc-item .ic svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .cc__calc-item b{font:600 14px/1.15 -apple-system;letter-spacing:-.005em;color:#fff}
  .cc__calc-item small{font:500 11px/1.3 -apple-system;color:var(--grey);letter-spacing:.005em}
  .cc__score{
    margin-top:10px;
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:12px 14px;border-radius:12px;text-decoration:none;
    background:linear-gradient(180deg, rgba(74,222,128,.14), rgba(74,222,128,.05));
    border:1px solid rgba(74,222,128,.28);color:#e8fff0;
  }
  .cc__score b{font:600 14px/1.15 -apple-system;color:#7ef2a6}
  .cc__score small{display:block;color:var(--dim);font:500 12px/1.3 -apple-system;margin-top:1px}
  .cc__score svg{width:16px;height:16px;color:#7ef2a6}

  /* ---- company panel ---- */
  .cc__co-list{display:grid;gap:8px;margin-top:6px}
  .cc__co-row{
    display:flex;align-items:center;gap:12px;padding:12px 12px;border-radius:12px;text-decoration:none;color:var(--off);
    background:rgba(255,255,255,.02);border:1px solid var(--hair);transition:background .18s ease;
  }
  .cc__co-row:active{background:rgba(255,255,255,.05)}
  .cc__co-row .ic{width:32px;height:32px;border-radius:9px;background:rgba(255,255,255,.04);border:1px solid var(--hair);display:flex;align-items:center;justify-content:center;color:var(--amber-hi)}
  .cc__co-row .ic svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .cc__co-row b{font:600 14px/1.15 -apple-system;color:#fff;letter-spacing:-.005em}
  .cc__co-row small{display:block;color:var(--grey);font:500 12px/1.3 -apple-system;margin-top:1px}

  /* ---- bottom call bar ---- */
  .cc__foot{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:14px 16px;border-top:1px solid var(--hair);
    background:linear-gradient(180deg, rgba(255,255,255,.01), rgba(0,0,0,.24));
  }
  .cc__foot .l b{display:block;font:600 15px/1.15 -apple-system;color:#fff;letter-spacing:-.005em}
  .cc__foot .l small{display:block;color:var(--grey);font:500 12px/1.3 -apple-system;margin-top:2px}
  .cc__foot .r{
    display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;text-decoration:none;
    color:#0a1526;background:linear-gradient(180deg,#f7b23a,#f0a300);
    box-shadow:0 6px 20px rgba(240,163,0,.35), 0 1px 0 rgba(255,255,255,.35) inset;
    font:600 14px/1 -apple-system;letter-spacing:-.005em;
  }
  .cc__foot .r svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

  /* ---- entrance choreography ---- */
  .cc{animation:drawer-in .42s cubic-bezier(.22,.9,.29,1) both}
  @keyframes drawer-in{
    from{opacity:0;transform:translateY(10px) scale(.985)}
    to{opacity:1;transform:none}
  }
  .cc .stagger > *{opacity:0;transform:translateY(6px);animation:pop .38s cubic-bezier(.22,.9,.29,1) forwards}
  .cc .stagger > *:nth-child(1){animation-delay:.08s}
  .cc .stagger > *:nth-child(2){animation-delay:.14s}
  .cc .stagger > *:nth-child(3){animation-delay:.20s}
  .cc .stagger > *:nth-child(4){animation-delay:.26s}
  .cc .stagger > *:nth-child(5){animation-delay:.32s}
  .cc .stagger > *:nth-child(6){animation-delay:.38s}
  @keyframes pop{to{opacity:1;transform:none}}

  @media (prefers-reduced-motion:reduce){
    .cc,.cc__panel,.cc .stagger > *{animation:none !important}
    .cc__hero-btn::after,.cc__calc-hero::after{display:none}
  }