:root {
  --navy: var(--palette-primary, #081b33);
  --navy-dark: var(--palette-dark, #040f21);
  --orange: var(--palette-accent, #ff9720);
  --ink: #1a2b3c;
  --muted: #5c6b7a;
  --line: #e5e9ed;
  --soft: #f6f8fa;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 18px 55px rgba(var(--palette-dark-rgb, 4,15,33), .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; background: var(--white); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.ticker { min-height: 38px; display: grid; place-items: center; padding: 7px 24px; color: #fff; background: var(--navy-dark); font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 2px solid rgba(var(--palette-accent-rgb, 255,151,32),.9); background: linear-gradient(135deg, var(--navy-dark), var(--navy)); box-shadow: 0 10px 28px rgba(var(--palette-shadow-rgb, 2,11,24),.24); }
.header-inner { min-height: 94px; display: flex; align-items: center; gap: 18px; }
.brand { flex: 0 0 auto; }
.brand img { width: auto; height: 72px; object-fit: contain; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a, .nav-dropdown summary { color: #e5edf4; font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", Arial, sans-serif; font-size: .9rem; font-weight: 720; letter-spacing: .005em; line-height: 1.15; white-space: nowrap; }
.nav > a, .nav-dropdown > summary { position: relative; display: block; min-height: 42px; padding: 12px 11px 10px; border: 0; border-radius: 7px; transition: color .16s ease, background .16s ease; }
.nav > a::after, .nav-dropdown > summary::before { content: ""; position: absolute; right: 11px; bottom: 5px; left: 11px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: center; transition: transform .16s ease; }
.nav a:hover, .nav a.active, .nav-dropdown summary:hover, .nav-dropdown summary.active { color: var(--orange); }
.nav > a:hover, .nav-dropdown > summary:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav > a.active, .nav-dropdown > summary.active { background: rgba(var(--palette-accent-rgb, 255,151,32),.1); }
.nav > a.active::after, .nav-dropdown > summary.active::before, .nav-dropdown[open] > summary::before { transform: scaleX(1); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { cursor: pointer; list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: "⌄"; display: inline-block; margin-left: 7px; color: var(--orange); font-size: .9em; transition: transform .15s ease; }
.nav-dropdown[open] summary::after { transform: rotate(180deg); }
.nav-dropdown:not([open]) > .nav-menu { display: none; }
.nav-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 230px; display: grid; gap: 3px; padding: 9px; border: 1px solid #dce3e9; border-radius: 12px; background: #fff; box-shadow: 0 20px 50px rgba(var(--palette-dark-rgb, 4,15,33),.2); }
.nav-menu a { position: relative; display: block; padding: 11px 12px 11px 16px; border-radius: 7px; color: var(--navy); font-weight: 680; }
.nav-menu a::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 6px; width: 3px; border-radius: 3px; background: var(--orange); opacity: 0; }
.nav-menu a:hover, .nav-menu a.active { color: var(--navy); background: var(--palette-accent-soft, #fff3e4); }
.nav-menu a:hover::before, .nav-menu a.active::before { opacity: 1; }
.header-phone { padding: 8px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: #fff; background: rgba(255,255,255,.06); font-weight: 850; white-space: nowrap; }
.header-phone span { color: var(--orange); margin-right: 5px; }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(255,255,255,.07); color: #fff; padding: 9px 11px; font-weight: 800; letter-spacing: .03em; }
.hero { min-height: 590px; color: #fff; position: relative; display: flex; align-items: center; background: linear-gradient(90deg, rgba(var(--palette-dark-rgb, 4,15,33),.94) 0%, rgba(var(--palette-dark-rgb, 4,15,33),.75) 48%, rgba(var(--palette-dark-rgb, 4,15,33),.2) 100%), url("solar-home-hero.jpg") center/cover no-repeat; }
.hero.compact { min-height: 470px; }
.hero.referral-hero { min-height: 560px; background-image: linear-gradient(90deg, rgba(var(--palette-dark-rgb, 4,15,33),.97) 0%, rgba(var(--palette-dark-rgb, 4,15,33),.86) 43%, rgba(var(--palette-dark-rgb, 4,15,33),.2) 72%, rgba(var(--palette-dark-rgb, 4,15,33),.08) 100%), url("referral-flight-fund.png"); background-position: center; }
.referral-hero .hero-content { max-width: 620px; }
.hero-content { max-width: 660px; padding: 92px 0; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: .9rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; }
.hero h1 { color: #fff; font-size: clamp(2.45rem, 5vw, 4.7rem); letter-spacing: -.045em; max-width: 770px; }
.hero p { color: #eef3f7; font-size: 1.15rem; max-width: 620px; margin: 22px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; font-size: .92rem; font-weight: 800; }
.btn-primary { background: var(--orange); color: var(--palette-on-accent, #fff); }
.btn-secondary { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { min-height: 100px; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 22px; text-align: left; border-right: 1px solid var(--line); font-weight: 750; }
.trust-item:last-child { border-right: 0; }
.trust-icon { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--palette-accent-soft, #fff2e3); font-weight: 900; }
.section { padding: 92px 0; }
.section.soft { background: var(--soft); }
.section.navy { color: #fff; background: var(--navy-dark); }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.035em; }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section.navy .section-head > p:not(.eyebrow) { color: #c9d3de; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(var(--palette-dark-rgb, 4,15,33),.055); }
.card h3 { margin-bottom: 12px; font-size: 1.35rem; }
.card p { color: var(--muted); margin: 0; }
.card .card-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 10px; color: var(--navy); background: var(--palette-accent-soft, #fff2e3); font-size: 1.25rem; font-weight: 900; }
.values-section .card-icon { width: 60px; height: 60px; border-radius: 14px; }
.values-section .card-icon svg { display: block; width: 32px; height: 32px; }
.values-section .value-icon-accent { stroke: var(--orange); }
.card-link { display: inline-flex; margin-top: 20px; color: var(--palette-accent-ink, var(--orange)); font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.split-copy > p { color: var(--muted); font-size: 1.06rem; }
.photo-panel { min-height: 500px; border-radius: 18px; background: linear-gradient(180deg, rgba(var(--palette-primary-rgb, 8,27,51),.05), rgba(var(--palette-primary-rgb, 8,27,51),.28)), url("solar-home-hero.jpg") center/cover; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; }
.check-list li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--palette-on-accent, #fff); background: var(--orange); font-size: .75rem; font-weight: 900; }
.step { position: relative; padding-top: 52px; }
.step-no { position: absolute; top: 0; left: 0; color: var(--orange); font-size: 2.6rem; line-height: 1; font-weight: 900; opacity: .55; }
.package-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.package-card.featured { border: 2px solid var(--orange); transform: translateY(-8px); }
.package-label { position: absolute; top: 18px; right: -34px; width: 140px; padding: 5px; color: var(--palette-on-accent, #fff); background: var(--orange); text-align: center; transform: rotate(38deg); font-size: .72rem; font-weight: 900; }
.package-type { color: var(--palette-accent-ink, var(--orange)); font-size: .82rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.package-card h3 { margin-top: 8px; font-size: 1.65rem; }
.package-card ul { padding-left: 20px; color: var(--muted); }
.package-card .btn { margin-top: auto; }
.brand-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.brand-tile { min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(var(--palette-dark-rgb, 4,15,33),.055); }
.brand-wordmark { min-height: 76px; display: flex; align-items: center; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 900; letter-spacing: -.045em; }
.brand-wordmark.sig { letter-spacing: -.065em; }
.brand-type { color: var(--palette-accent-ink, var(--orange)); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.brand-tile p { color: var(--muted); margin: 12px 0 0; }
.notice { padding: 22px 26px; border-left: 4px solid var(--orange); border-radius: 6px; background: var(--palette-accent-soft, #fff7ed); color: var(--muted); }
.review { position: relative; padding-top: 58px; }
.review::before { content: "★★★★★"; position: absolute; top: 25px; left: 30px; color: var(--orange); letter-spacing: .12em; }
.review blockquote { margin: 0; color: var(--ink); font-size: 1.03rem; }
.review cite { display: block; margin-top: 20px; color: var(--navy); font-style: normal; font-weight: 800; }
.review cite span { display: block; color: var(--muted); font-size: .85rem; font-weight: 500; }
.phone-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 280px)); gap: 28px; justify-content: center; align-items: start; }
.phone { padding: 10px; border: 4px solid var(--palette-frame, #061427); border-radius: 36px; background: var(--palette-frame, #061427); box-shadow: 0 25px 55px rgba(0,0,0,.28); }
.phone-screen { min-height: 510px; overflow: hidden; border-radius: 26px; background: #f4f7f9; color: var(--ink); }
.phone-top { padding: 22px 18px 15px; color: #fff; background: var(--navy); }
.phone-top small { color: #cbd5df; }
.phone-top strong { display: block; margin-top: 4px; font-size: 1.12rem; }
.phone-body { padding: 16px; }
.phone-progress { height: 8px; margin: 12px 0 20px; overflow: hidden; border-radius: 8px; background: #dfe6eb; }
.phone-progress span { display: block; width: 72%; height: 100%; background: var(--orange); }
.phone-card { margin-bottom: 12px; padding: 14px; border: 1px solid #e2e7eb; border-radius: 10px; background: #fff; font-size: .82rem; }
.phone-card b { display: block; color: var(--navy); }
.pill { display: inline-flex; padding: 4px 9px; border-radius: 99px; color: var(--palette-accent-ink, #8c4d00); background: var(--palette-accent-soft, #fff0dc); font-size: .72rem; font-weight: 800; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; margin: 30px 0; }
.feature-list div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.reward-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reward-card { position: relative; overflow: hidden; }
.reward-card::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 74px; height: 74px; border: 14px solid var(--palette-accent-soft, #fff1df); border-radius: 50%; }
.referral-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: referral-step; }
.referral-step { counter-increment: referral-step; padding: 26px; border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(var(--palette-dark-rgb, 4,15,33),.06); }
.referral-step::before { content: "0" counter(referral-step); display: block; margin-bottom: 14px; color: var(--orange); font-weight: 900; letter-spacing: .08em; }
.referral-step h3 { margin-bottom: 10px; }
.referral-step p { margin: 0; color: var(--muted); }
.allocation { display: grid; gap: 14px; margin-top: 18px; }
.allocation-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: var(--navy); font-size: .82rem; font-weight: 800; }
.allocation-bar { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 99px; background: #e1e8ed; }
.allocation-bar span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.program-note { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--palette-accent-border, #f1d3ad); border-radius: 10px; color: var(--muted); background: var(--palette-accent-soft, #fff8ef); }
.rfds-photo { margin: 0; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.rfds-photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.rfds-photo figcaption { padding: 14px 18px 18px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.rfds-disclaimer { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; color: var(--navy); font-weight: 800; }
.faq details p { margin: 0 0 20px; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; }
.contact-panel { padding: 34px; border-radius: var(--radius); color: #fff; background: var(--navy); }
.contact-panel h2 { color: #fff; }
.contact-panel a { color: var(--orange); font-weight: 850; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: var(--navy); font-size: .88rem; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #ccd5dc; border-radius: 8px; background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }
.cta { padding: 70px 0; color: #fff; background: var(--navy); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.cta p { color: #c9d3de; margin-bottom: 0; }
.footer { padding: 62px 0 24px; color: #c9d3de; background: var(--navy-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer img { width: 150px; margin-bottom: 18px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 7px 0; }
.footer a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 30px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; padding: 14px 0; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-phone { margin-left: 0; }
  .nav { order: 3; width: 100%; display: none; flex-wrap: wrap; margin: 0; padding: 14px 0 4px; border-top: 1px solid rgba(255,255,255,.15); }
  .nav.open { display: flex; }
  .nav > a { width: 100%; min-height: 46px; padding: 14px 13px 12px; border-radius: 7px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown summary { min-height: 46px; padding: 14px 13px 12px; }
  .nav-menu { position: static; min-width: 0; margin: 3px 0 6px; padding: 5px 6px 5px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(var(--palette-overlay-rgb, 3,13,28),.35); box-shadow: none; }
  .nav-menu a { color: #dbe4ec; background: transparent; }
  .nav-menu a:hover, .nav-menu a.active { color: #fff; background: rgba(255,255,255,.08); }
  .trust-grid, .grid-4, .brand-showcase, .reward-grid, .referral-steps { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 780px) {
  .wrap { width: min(100% - 32px, 1160px); }
  .brand img { height: 60px; }
  .header-phone { display: none; }
  .hero, .hero.compact { min-height: 540px; background-position: 62% center; }
  .hero.referral-hero { min-height: 590px; background-position: 70% center; }
  .hero-content { padding: 70px 0; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.7rem); }
  .section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4, .brand-showcase, .split, .contact-layout, .footer-grid, .reward-grid, .referral-steps { grid-template-columns: 1fr; }
  .split { gap: 34px; }
  .photo-panel { min-height: 360px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); justify-content: flex-start; }
  .package-card.featured { transform: none; }
  .phone-grid { grid-template-columns: minmax(230px, 300px); }
  .feature-list { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
