/* Solar Analysis — modern corporate energy-tech interface.
   Palette: orange, white, light gray, and charcoal. UI-only layer. */
:root {
  --ui-orange: #f46a24;
  --ui-orange-hover: #df5a19;
  --ui-orange-soft: #fff1e8;
  --ui-orange-line: #ffd9c6;
  --ui-charcoal: #202832;
  --ui-muted: #667085;
  --ui-muted-soft: #8a93a1;
  --ui-page: #f3f4f6;
  --ui-surface: #ffffff;
  --ui-border: #e5e7eb;
  --ui-border-strong: #d8dde4;
  --ui-success: #16835d;
  --ui-success-soft: #eaf7f0;

  --brand-evergreen: var(--ui-charcoal);
  --brand-dark-teal: #3d4653;
  --brand-yellow-green: var(--ui-orange);
  --brand-cayenne: var(--ui-orange);
  --brand-soft-linen: #f3f4f6;
  --brand-page: var(--ui-page);
  --brand-white: var(--ui-surface);
  --brand-tint: var(--ui-orange-soft);
  --brand-line: var(--ui-border);
  --forest: var(--ui-charcoal);
  --forest-deep: #171d26;
  --forest-soft: var(--ui-orange-soft);
  --green: #45505e;
  --lime: var(--ui-orange);
  --ink: var(--ui-charcoal);
  --muted: var(--ui-muted);
  --muted-dark: #475467;
  --line: var(--ui-border);
  --paper: var(--ui-page);
  --white: var(--ui-surface);
  --gold: var(--ui-orange);
  --shadow: 0 8px 24px rgba(32, 40, 50, .055);
}

html { background: var(--ui-page); }
body {
  color: var(--ui-charcoal);
  background: var(--ui-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body p { color: var(--ui-muted); }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select { font-family: inherit; }
:focus-visible {
  outline: 3px solid rgba(244, 106, 36, .28) !important;
  outline-offset: 2px;
}

.ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.sidebar-link-icon .ui-icon { width: 19px; height: 19px; }
.brand-mark .ui-icon { width: 25px; height: 25px; }
.overview-metric-icon .ui-icon { width: 19px; height: 19px; }
.form-section-icon .ui-icon { width: 15px; height: 15px; }
.metric-icon .ui-icon { width: 17px; height: 17px; }
.package-icon .ui-icon { width: 20px; height: 20px; }
.provider-location-card > span .ui-icon { width: 19px; height: 19px; }

/* Workspace frame and navigation */
.app-shell, .app-main, .app-workspace { background: var(--ui-page); }
.app-sidebar {
  color: var(--ui-charcoal) !important;
  background: var(--ui-surface) !important;
  border-right: 1px solid var(--ui-border) !important;
  box-shadow: 3px 0 18px rgba(32, 40, 50, .025);
}
.sidebar-brand .brand-mark {
  color: #fff !important;
  background: var(--ui-orange) !important;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(244, 106, 36, .18);
}
.sidebar-brand .brand-copy strong,
.sidebar-account strong { color: var(--ui-charcoal) !important; }
.sidebar-brand .brand-copy small,
.sidebar-account small,
.account-menu { color: var(--ui-muted) !important; }
.sidebar-new, .sidebar-new.button-primary {
  color: #fff !important;
  background: var(--ui-orange) !important;
  border-color: var(--ui-orange) !important;
  box-shadow: 0 5px 12px rgba(244, 106, 36, .16) !important;
}
.sidebar-new:hover, .sidebar-new.button-primary:hover {
  color: #fff !important;
  background: var(--ui-orange-hover) !important;
  border-color: var(--ui-orange-hover) !important;
}
.sidebar-label { color: #98a0ac !important; }
.sidebar-link {
  color: #596273 !important;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.sidebar-link:hover {
  color: var(--ui-orange-hover) !important;
  background: #fff7f2 !important;
}
.sidebar-link.is-active {
  color: var(--ui-orange-hover) !important;
  background: var(--ui-orange-soft) !important;
  border-color: var(--ui-orange-line) !important;
  font-weight: 750;
}
.sidebar-link-icon { color: inherit !important; }
.sidebar-account { border-top: 1px solid var(--ui-border) !important; }
.account-avatar {
  color: #fff !important;
  background: var(--ui-orange) !important;
}
.site-header {
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid var(--ui-border) !important;
  box-shadow: 0 3px 12px rgba(32, 40, 50, .025);
}
.topbar-eyebrow, .topbar-context > strong { color: var(--ui-charcoal) !important; }
.topbar-slash, .topbar-actions { color: var(--ui-muted) !important; }
.topbar-status { color: #485261 !important; }
.status-dot {
  background: var(--ui-orange) !important;
  box-shadow: 0 0 0 3px rgba(244, 106, 36, .13) !important;
}
.menu-toggle {
  background: #fff !important;
  border-color: var(--ui-border-strong) !important;
}
.menu-toggle span { background: var(--ui-charcoal) !important; }
.mobile-nav {
  background: #fff !important;
  border-color: var(--ui-border) !important;
  box-shadow: 0 12px 28px rgba(32, 40, 50, .12) !important;
}
.mobile-nav a { color: #475467 !important; }
.mobile-nav a:hover { color: var(--ui-orange-hover) !important; background: var(--ui-orange-soft) !important; }

/* Typography and page rhythm */
.section-kicker { color: var(--ui-orange-hover) !important; letter-spacing: .095em; font-weight: 800; }
.workspace-kicker-dot { background: var(--ui-orange) !important; }
.workspace-heading h1, .section-heading h2, .method-copy h2,
.results-header h3 { color: var(--ui-charcoal) !important; }
.workspace-heading h1 { font-weight: 760; letter-spacing: -.045em; }
.workspace-heading h1 span, .final-cta h2 span { color: var(--ui-orange) !important; }
.workspace-heading p, .section-heading p, .method-copy > p { color: var(--ui-muted) !important; }
.app-section {
  border-top: 1px solid var(--ui-border) !important;
  scroll-margin-top: 82px;
}
.section-pad { padding-top: 54px; padding-bottom: 54px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2, .method-copy h2 {
  font-weight: 730;
  letter-spacing: -.035em;
}
.reference-size, .estimate-label, .preview-badge {
  color: #596273 !important;
  background: #fff !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 9px !important;
}

/* Overview and metric cards */
.workspace-overview { background: transparent !important; }
.workspace-overview > .container { padding-top: 30px; padding-bottom: 34px; }
.workspace-heading { align-items: flex-end; gap: 26px; }
.workspace-heading h1 { max-width: 760px; }
.overview-benefits span {
  color: #5b6472 !important;
  background: #fff !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 7px !important;
}
.overview-status-line { color: var(--ui-muted) !important; }
.overview-estimate-status { color: var(--ui-orange-hover) !important; font-weight: 700; }
.overview-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.overview-metric {
  min-height: 112px;
  padding: 18px !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(32, 40, 50, .035) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.overview-metric:hover {
  transform: translateY(-2px);
  border-color: #f2c7b0 !important;
  box-shadow: 0 10px 22px rgba(32, 40, 50, .07) !important;
}
.overview-metric-icon {
  color: var(--ui-orange-hover) !important;
  background: var(--ui-orange-soft) !important;
  border-radius: 10px !important;
}
.overview-metric strong { color: var(--ui-charcoal) !important; font-weight: 760 !important; }
.overview-metric-label { color: var(--ui-muted) !important; font-weight: 650; }
.overview-metric small { color: var(--ui-muted-soft) !important; }
.overview-inputs {
  padding: 14px 18px;
  border: 1px solid var(--ui-border);
  border-radius: 13px;
  background: #fff;
}
.overview-inputs > div + div { border-left-color: var(--ui-border) !important; }
.overview-inputs span { color: var(--ui-muted) !important; }
.overview-inputs strong { color: var(--ui-charcoal) !important; }
.provider-preview {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--ui-border) !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(32, 40, 50, .035);
}
.provider-preview h2 { color: var(--ui-charcoal) !important; letter-spacing: -.025em; }
.provider-preview p { color: var(--ui-muted) !important; }
.provider-preview-status {
  color: var(--ui-orange-hover) !important;
  background: var(--ui-orange-soft) !important;
  border: 1px solid var(--ui-orange-line) !important;
}
.provider-location-card { background: #f8f9fb !important; border-color: var(--ui-border) !important; }
.provider-location-card > span { color: var(--ui-orange) !important; background: var(--ui-orange-soft) !important; }
.provider-location-card strong { color: var(--ui-charcoal) !important; }
.provider-preview-link, .text-link { color: var(--ui-orange-hover) !important; }
.overview-how { margin-top: 30px; }
.overview-how h2 { color: var(--ui-charcoal) !important; font-weight: 720; letter-spacing: -.03em; }
.overview-steps article {
  background: #fff !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 13px !important;
  padding: 17px !important;
}
.overview-steps article > span {
  color: var(--ui-orange-hover) !important;
  background: var(--ui-orange-soft) !important;
  border: 1px solid var(--ui-orange-line);
  border-radius: 9px !important;
}
.overview-steps strong { color: var(--ui-charcoal) !important; }
.overview-steps p { color: var(--ui-muted) !important; }

/* Buttons, inputs, and assessment workspace */
.button {
  border-radius: 10px !important;
  font-weight: 720 !important;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary, .button-submit, .button-package {
  color: #fff !important;
  background: var(--ui-orange) !important;
  border-color: var(--ui-orange) !important;
  box-shadow: 0 5px 12px rgba(244, 106, 36, .14) !important;
}
.button-primary:hover, .button-submit:hover, .button-package:hover {
  color: #fff !important;
  background: var(--ui-orange-hover) !important;
  border-color: var(--ui-orange-hover) !important;
  box-shadow: 0 8px 16px rgba(244, 106, 36, .19) !important;
}
.button-quiet, .button-outline {
  color: #475467 !important;
  background: #fff !important;
  border: 1px solid var(--ui-border-strong) !important;
}
.button-quiet:hover, .button-outline:hover { color: var(--ui-orange-hover) !important; border-color: #f0b99c !important; background: #fff9f5 !important; }
.input-card, .mini-result, .analysis-card {
  border: 1px solid var(--ui-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(32, 40, 50, .035) !important;
}
.input-card { padding: 24px !important; }
.card-topline h3, .form-section h4 { color: var(--ui-charcoal) !important; }
.step-pill, .form-section-icon {
  color: var(--ui-orange-hover) !important;
  background: var(--ui-orange-soft) !important;
  border: 1px solid var(--ui-orange-line);
}
.form-section { border-top: 1px solid var(--ui-border) !important; }
.field > span:first-child { color: #475467 !important; }
.field input, .field select, .input-wrap {
  color: var(--ui-charcoal) !important;
  background: #fff !important;
  border: 1px solid var(--ui-border-strong) !important;
  border-radius: 9px !important;
}
.field input:hover, .field select:hover { border-color: #c2cad4 !important; }
.field input:focus, .field select:focus, .input-wrap:focus-within {
  border-color: var(--ui-orange) !important;
  box-shadow: 0 0 0 3px rgba(244, 106, 36, .11) !important;
  outline: none !important;
}
.field > small, .form-footnote { color: var(--ui-muted-soft) !important; }
.choice-option > span { border-color: var(--ui-border-strong) !important; background: #fff !important; }
.choice-option input:checked + span {
  border-color: var(--ui-orange) !important;
  background: var(--ui-orange-soft) !important;
  box-shadow: inset 0 0 0 1px var(--ui-orange) !important;
}
.choice-option strong { color: var(--ui-charcoal) !important; }
.choice-option small { color: var(--ui-muted) !important; }

.results-header h3 { color: var(--ui-charcoal) !important; }
.results-primary {
  color: var(--ui-charcoal) !important;
  background: linear-gradient(135deg, #fff5ef 0%, #fff 100%) !important;
  border: 1px solid var(--ui-orange-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 5px 18px rgba(32, 40, 50, .035) !important;
}
.result-label, .results-primary > p { color: #667085 !important; }
.result-tag { color: var(--ui-orange-hover) !important; background: var(--ui-orange-soft) !important; }
.capacity-line strong { color: var(--ui-orange-hover) !important; }
.capacity-line span { color: #475467 !important; }
.result-divider { border-color: var(--ui-orange-line) !important; }
.metric-icon {
  color: var(--ui-orange-hover) !important;
  background: var(--ui-orange-soft) !important;
}
.result-metric-grid small { color: var(--ui-muted) !important; }
.result-metric-grid strong { color: var(--ui-charcoal) !important; }
.mini-result { padding: 15px !important; }
.mini-result > span, .mini-result small { color: var(--ui-muted) !important; }
.mini-result strong { color: var(--ui-charcoal) !important; }
.analysis-heading strong { color: var(--ui-charcoal) !important; }
.analysis-heading small, #analysis-summary { color: var(--ui-muted) !important; }
.analysis-spark { color: var(--ui-orange) !important; background: var(--ui-orange-soft) !important; }
.analysis-point span { color: var(--ui-orange-hover) !important; background: var(--ui-orange-soft) !important; }
.result-disclaimer { color: var(--ui-muted) !important; }

/* Solar system comparison and pricing */
.package-grid { gap: 16px !important; }
.package-card {
  display: flex;
  flex-direction: column;
  padding: 22px !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(32, 40, 50, .035) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.package-card:hover { transform: translateY(-3px); border-color: #f0c4ad !important; box-shadow: 0 12px 26px rgba(32, 40, 50, .07) !important; }
.package-card h3 { color: var(--ui-charcoal) !important; font-weight: 740 !important; }
.package-card > p, .package-card li { color: var(--ui-muted) !important; }
.package-icon { color: var(--ui-orange-hover) !important; background: var(--ui-orange-soft) !important; border-radius: 10px !important; }
.package-fit { color: #667085 !important; }
.package-featured { border-color: #f3b18e !important; box-shadow: 0 8px 24px rgba(244, 106, 36, .08) !important; }
.featured-ribbon { color: #fff !important; background: var(--ui-orange) !important; }
.package-price { border-color: var(--ui-border) !important; background: #f8f9fb !important; }
.package-price small, .package-price span { color: var(--ui-muted) !important; }
.package-price strong { color: var(--ui-charcoal) !important; }
.market-reference {
  border: 1px solid var(--ui-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(32, 40, 50, .035) !important;
}
.market-reference-head h3 { color: var(--ui-charcoal) !important; }
.market-reference-head p, .reference-match-note { color: var(--ui-muted) !important; }
.reference-date { color: var(--ui-muted) !important; background: #f8f9fb !important; border: 1px solid var(--ui-border) !important; border-radius: 8px !important; }
.price-table th { color: #596273 !important; background: #f3f4f6 !important; border-bottom: 1px solid var(--ui-border) !important; }
.price-table td { color: #475467 !important; border-bottom: 1px solid var(--ui-border) !important; }
.price-table td strong { color: var(--ui-charcoal) !important; }
.price-table a { color: var(--ui-orange-hover) !important; }
.type-chip { border-radius: 7px !important; }

/* Public board, provider workspace, and homeowner workspace */
.public-bidding-board, .bidding-panel {
  border: 1px solid var(--ui-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(32, 40, 50, .035) !important;
}
.bidding-panel-heading h3, .bidding-list-heading h3 { color: var(--ui-charcoal) !important; }
.bidding-panel-heading p, .bidding-list-heading p { color: var(--ui-muted) !important; }
.bidding-count, .bidding-step-count {
  color: var(--ui-orange-hover) !important;
  background: var(--ui-orange-soft) !important;
  border: 1px solid var(--ui-orange-line) !important;
  border-radius: 8px !important;
}
.bidding-project-card, .bidding-empty {
  border: 1px solid var(--ui-border) !important;
  border-radius: 13px !important;
  background: #fff !important;
}
.bidding-project-card h4 { color: var(--ui-charcoal) !important; }
.bidding-project-state.is-open { color: #147a55 !important; background: var(--ui-success-soft) !important; }
.bidding-project-budget { background: #f8f9fb !important; }
.bidding-project-budget strong { color: var(--ui-charcoal) !important; }
.bidding-role-button { color: #475467 !important; border-color: var(--ui-border) !important; background: #fff !important; }
.bidding-role-button.is-active { color: #fff !important; border-color: var(--ui-orange) !important; background: var(--ui-orange) !important; }
.bidding-form-message.is-error, .bidding-system-message { color: #a23c24; }
.public-project-action .button { width: 100%; }

/* Method, status notices, and lower page surfaces */
.method-copy, .method-steps {
  border: 1px solid var(--ui-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(32, 40, 50, .035) !important;
}
.method-steps h3 { color: var(--ui-charcoal) !important; }
.method-steps p { color: var(--ui-muted) !important; }
.method-number { color: var(--ui-orange-hover) !important; background: var(--ui-orange-soft) !important; }
.final-cta { color: var(--ui-charcoal) !important; background: #fff !important; border-top: 1px solid var(--ui-border) !important; }
.final-cta h2 { color: var(--ui-charcoal) !important; }
.final-cta p { color: var(--ui-muted) !important; }

/* Smaller screens */
@media (max-width: 1100px) {
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .app-sidebar { box-shadow: 0 10px 28px rgba(32, 40, 50, .12); }
  .workspace-overview > .container { padding-top: 22px; }
  .section-pad { padding-top: 38px; padding-bottom: 38px; }
  .provider-preview { padding: 18px; }
  .input-card { padding: 18px !important; }
  .results-column { position: static !important; }
  .method-copy { position: static !important; }
}
@media (max-width: 600px) {
  .overview-metrics { grid-template-columns: minmax(0, 1fr); }
  .overview-inputs { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .overview-inputs > div + div { padding-top: 10px; border-top: 1px solid var(--ui-border); border-left: 0 !important; }
  .workspace-heading h1 { font-size: 30px !important; }
  .workspace-heading p { font-size: 14px !important; }
  .section-heading h2, .method-copy h2 { font-size: 23px !important; }
  .input-card { padding: 15px !important; }
  .field-grid-three, .field-grid-two { grid-template-columns: minmax(0, 1fr) !important; }
  .field-wide, .field-full { grid-column: 1 / -1; }
  .choice-row { grid-template-columns: minmax(0,1fr) !important; }
  .result-actions { align-items: stretch; }
  .result-actions .button { width: 100%; }
  .package-card { padding: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* User-provided house photo as a proportional watermark on every app page.
   "cover" keeps its aspect ratio and crops overflow; it never stretches the photo. */
.app-main {
  position: relative;
  isolation: isolate;
}
.app-main::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: 64px;
  right: 0;
  bottom: 0;
  left: 252px;
  background-image: url("images/solarhouse.jpeg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: .35;
  pointer-events: none;
}
.site-header,
.app-workspace {
  position: relative;
  z-index: 1;
}
.app-workspace,
.app-view {
  background-color: transparent !important;
}
@media (max-width: 850px) {
  .app-main::before {
    top: 57px;
    left: 0;
    background-position: center center;
  }
}
@media (max-width: 560px) {
  .app-main::before {
    background-position: center center;
  }
}
