/* ==========================================================================
   Solar Exit Group — Rep hub, sale entry, sales materials
   Extends css/site.css + css/paysheets.css tokens.
   ========================================================================== */

.gate-lock { display: none; }
html.gate-locked .gate-lock { display: block; }
html.gate-locked .gate-open { display: none !important; }

/* ---------- hub ---------- */
.hub-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.hub-head .eyebrow {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: .5rem;
}
.hub-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.hub-head p { color: var(--body-dim); margin-top: .75rem; font-size: 1.0625rem; }

.hub-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hub-card {
  display: flex; flex-direction: column; gap: .625rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  padding: 1.5rem 1.5rem 1.625rem;
  text-decoration: none; color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.hub-card:hover,
.hub-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--gold);
}
.hub-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; flex: none;
  background: rgba(201, 162, 74, .14); color: var(--navy);
  margin-bottom: .375rem;
}
.hub-icon svg { width: 22px; height: 22px; }
.hub-card h2 {
  font-family: var(--font-display); font-size: 1.1875rem;
  font-weight: 600; letter-spacing: -0.01em; margin: 0;
}
.hub-card p { color: var(--body-dim); font-size: .9375rem; margin: 0; line-height: 1.55; }
.hub-card .go {
  margin-top: auto; padding-top: .875rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: .4rem;
}
.hub-card .go svg { width: 14px; height: 14px; }

/* ---------- form card ---------- */
.form-card {
  width: 100%; max-width: 560px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.form-card h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.form-card .sub { color: var(--body-dim); font-size: .9375rem; margin-bottom: 1.75rem; }

.field select {
  width: 100%; padding: .75rem .875rem; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6376' stroke-width='2.2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
  padding-right: 2.4rem;
}
.field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.18); }

.field-row { display: grid; gap: 1.125rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.form-success {
  border: 1px solid rgba(31,122,77,.35); background: rgba(31,122,77,.07);
  border-radius: var(--r-md); padding: 1rem 1.125rem; margin-bottom: 1.25rem;
  color: #14603A; font-size: .9375rem;
}
.form-success strong { display: block; margin-bottom: .2rem; }

/* ---------- resources ---------- */
.res-section { margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.res-section > h2 {
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: .375rem;
}
.res-section > .res-note { color: var(--body-dim); font-size: .9375rem; margin-bottom: 1.25rem; }

/* ---------- quick links ---------- */
.ql-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ql-list > li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
}
.ql-card {
  display: block; padding: 1.125rem 1.25rem; text-decoration: none; color: inherit;
  transition: background .2s var(--ease);
}
.ql-card:hover, .ql-card:focus-visible { background: rgba(197,160,71,.07); }
.ql-head { display: flex; align-items: center; gap: .625rem; }
.ql-head > svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.ql-title { font-weight: 600; font-size: 1rem; }
.ql-head .ql-out { width: 15px; height: 15px; margin-left: auto; color: var(--body-dim); opacity: .7; }
.ql-sub { display: block; margin-top: .375rem; color: var(--body-dim); font-size: .875rem; }
.ql-creds {
  border-top: 1px dashed var(--line); padding: .875rem 1.25rem 1rem;
  background: rgba(0,0,0,.015); margin-top: auto;
}
.ql-creds > div {
  display: flex; align-items: baseline; gap: .5rem;
  font-size: .875rem; padding: .1875rem 0; flex-wrap: wrap;
}
.ql-lab {
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--body-dim); min-width: 62px;
}
.ql-creds code {
  font-size: .84375rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 5px; padding: .125rem .375rem;
  word-break: break-all;
}
.ql-lab-block { display: block; margin: 0 0 .5rem; }
.ql-steps {
  margin: 0; padding-left: 1.125rem;
  display: grid; gap: .3125rem;
  font-size: .84375rem; color: var(--body); line-height: 1.45;
}
.ql-steps li::marker { color: var(--gold); font-weight: 700; }
.ql-warn { margin: .625rem 0 0; font-size: .78125rem; color: var(--body-dim); }
.ql-warn a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); }
.ql-wide { grid-column: 1 / -1; }
.ql-card-static { cursor: default; }
.ql-card-static:hover { background: none; }
.ql-phones {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .375rem .75rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.ql-phones li {
  display: flex; align-items: baseline; gap: .625rem;
  font-size: .875rem; padding: .3125rem 0;
  border-bottom: 1px dotted var(--line);
}
.ql-phones li > span { color: var(--body-dim); }
.ql-phones li > a {
  margin-left: auto; white-space: nowrap; font-weight: 600;
  color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold);
}
.ql-phones li > a:hover, .ql-phones li > a:focus-visible { color: var(--gold); }

.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.dl-list a {
  display: flex; align-items: center; gap: .875rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: .9375rem 1.125rem;
  text-decoration: none; color: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.dl-list a:hover, .dl-list a:focus-visible { border-color: var(--gold); box-shadow: var(--sh-1); }
.dl-list svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.dl-list .dl-text { min-width: 0; }
.dl-list .dl-title { font-weight: 600; font-size: .96875rem; display: block; }
.dl-list .dl-sub { color: var(--body-dim); font-size: .84375rem; }
.dl-list .dl-soon {
  display: flex; align-items: center; gap: .875rem;
  background: rgba(255,255,255,.5); border: 1px dashed var(--line);
  border-radius: var(--r-md); padding: .9375rem 1.125rem;
}
.dl-list .dl-soon svg { color: var(--body-dim); opacity: .6; }
.dl-list .dl-soon .dl-title { color: var(--body-dim); }
.dl-list .dl-soon .dl-tag {
  margin-left: auto; flex: none; font-size: .75rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--body-dim);
}

.video-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.video-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
}
.video-frame { position: relative; padding-top: 56.25%; background: var(--navy); }
.video-frame iframe, .video-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-body { padding: 1rem 1.125rem 1.25rem; }
.video-body h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .25rem; }
.video-body p { color: var(--body-dim); font-size: .875rem; margin: 0; }
.video-body .video-link { margin-top: .625rem; font-size: .8125rem; }
.video-body .video-link a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); }
.video-body .video-link a:hover, .video-body .video-link a:focus-visible { color: var(--gold); }

.placeholder-note {
  border: 1px dashed var(--line); border-radius: var(--r-md);
  padding: 1.125rem 1.25rem; color: var(--body-dim); font-size: .9375rem;
  background: rgba(255,255,255,.6);
}

/* ---------- back link ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 600; color: var(--body-dim);
  text-decoration: none; margin-bottom: 1.25rem;
}
.back-link:hover { color: var(--navy); }
.back-link svg { width: 15px; height: 15px; }

.video-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .625rem; background: var(--navy); color: rgba(255,255,255,.62);
}
.video-empty svg { width: 34px; height: 34px; color: var(--gold); opacity: .85; }
.video-empty span {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
