/* =========================================================================
   pages.css : hero, figures band, product blocks, branch locator,
   channel verification, legal documents, proposal cover page.
   ========================================================================= */

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 62%, #0A1B39 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -30%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(162, 175, 142, 0.24) 0%, rgba(162, 175, 142, 0) 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
  padding-block: var(--sp-9);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--sage-300); }
.hero__lede { font-size: var(--fs-lg); color: #C9D6E4; max-width: 46ch; }
.hero__trust {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(162, 175, 142, 0.18);
  border: 1px solid rgba(162, 175, 142, 0.42);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--sage-100);
}
.hero__trust svg { width: 13px; height: 13px; fill: var(--sage-300); }
.hero__trust code { font-family: inherit; color: #fff; }

/* Hero side card, the quick portal picker */
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  backdrop-filter: blur(4px);
}
.hero-card h2 { font-size: var(--fs-lg); color: #fff; margin-bottom: var(--sp-2); }
.hero-card > p { font-size: var(--fs-sm); color: #C9D6E4; margin-bottom: var(--sp-4); }
.hero-card ul { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.hero-card li { margin-bottom: var(--sp-2); }
.hero-card li a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background-color 0.15s ease;
}
.hero-card li a:hover { background: rgba(162, 175, 142, 0.28); color: #fff; }
.hero-card li svg { width: 17px; height: 17px; fill: var(--sage-300); flex-shrink: 0; }
.hero-card li .meta { margin-left: auto; font-size: var(--fs-xs); font-weight: 400; color: #A9BACD; }

/* --- Figures band, values printed in the HTML source ------------------ */
.figures { background: var(--surface-sage); border-block: 1px solid var(--sage-100); }
.figures ul {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  list-style: none; margin: 0; padding: 0;
}
.figures li { margin: 0; text-align: center; }
.figure__value {
  display: block;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy-700);
  letter-spacing: -0.02em;
}
.figure__unit { font-size: 0.55em; font-weight: 600; margin-left: 2px; }
.figure__label { display: block; font-size: var(--fs-xs); color: var(--ink-500); margin-top: var(--sp-2); }

/* --- Split feature blocks --------------------------------------------- */
.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.split--reverse > :first-child { order: 2; }
.media-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  color: #fff;
  padding: var(--sp-6);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.media-panel--sage { background: linear-gradient(140deg, var(--sage-300), var(--sage-500)); color: var(--navy-900); }
.media-panel h3 { color: inherit; }
.media-panel ul { list-style: none; padding: 0; margin: 0; }
.media-panel li { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.media-panel li svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; margin-top: 4px; opacity: 0.85; }

/* --- Product / rate list ---------------------------------------------- */
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-200);
  font-size: var(--fs-sm);
  margin: 0;
}
.spec-list dt, .spec-list .spec-key { color: var(--ink-500); }
.spec-list .spec-val { font-weight: 700; color: var(--navy-900); text-align: right; }

/* --- Steps ------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--sp-5); }
.steps li { counter-increment: step; display: flex; gap: var(--sp-4); margin: 0; }
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
}
.steps h3 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.steps p { font-size: var(--fs-sm); color: var(--ink-500); margin: 0; }

/* --- Branch locator ---------------------------------------------------- */
.locator-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: flex-end;
  padding: var(--sp-5);
  background: var(--surface-alt);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-6);
}
.locator-controls .field { margin: 0; flex: 1 1 200px; }
.branch-list { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); list-style: none; padding: 0; margin: 0; }
.branch-list li { margin: 0; }
.branch {
  height: 100%;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
}
.branch h3 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.branch .region { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--sage-600); }
.branch address { font-size: var(--fs-sm); color: var(--ink-500); margin: var(--sp-3) 0; }
.branch .branch-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-xs); }
.branch[hidden] { display: none; }
.locator-empty { padding: var(--sp-6); text-align: center; color: var(--ink-500); }

/* --- Channel verification table ---------------------------------------- */
.channel-table td code, .channel-table th code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
  color: var(--navy-700);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.channel-table tr td:first-child { font-weight: 600; color: var(--navy-900); }

/* --- Store badges ------------------------------------------------------- */
.store-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  min-width: 190px;
}
.store-badge:hover { background: var(--navy-700); color: #fff; }
.store-badge svg { width: 25px; height: 25px; fill: currentColor; flex-shrink: 0; }
.store-badge .sb-small { display: block; font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.store-badge .sb-big { display: block; font-size: var(--fs-base); font-weight: 700; line-height: 1.2; }

/* --- Legal documents ---------------------------------------------------- */
.doc-layout { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 250px) minmax(0, 1fr); align-items: start; }
.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  padding: var(--sp-5);
  background: var(--surface-alt);
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}
.doc-toc h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--sage-600); margin-bottom: var(--sp-3); }
.doc-toc ul { list-style: none; padding: 0; margin: 0; }
.doc-toc li { margin-bottom: var(--sp-2); }
.doc-toc a { text-decoration: none; color: var(--ink-700); }
.doc-toc a:hover { color: var(--navy-500); text-decoration: underline; }

.doc-body h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); padding-top: var(--sp-2); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: var(--fs-base); margin-top: var(--sp-5); }
.doc-body p, .doc-body li { font-size: var(--fs-sm); }
.doc-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
  background: var(--surface-sage);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  color: var(--ink-500);
}
.doc-meta strong { color: var(--navy-900); }

/* --- Page header band --------------------------------------------------- */
.page-head { background: var(--navy-700); color: #fff; padding-block: var(--sp-7); }
.page-head h1 { color: #fff; margin-bottom: var(--sp-3); }
.page-head p { color: #C9D6E4; font-size: var(--fs-md); max-width: 62ch; }
.page-head .eyebrow { color: var(--sage-300); }

/* --- Call to action band ------------------------------------------------ */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: linear-gradient(120deg, var(--navy-700), var(--navy-900));
  border-radius: var(--radius-lg);
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: var(--sp-2); font-size: var(--fs-xl); }
.cta-band p { color: #C9D6E4; font-size: var(--fs-sm); margin: 0; max-width: 56ch; }

/* --- News list ---------------------------------------------------------- */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.news-list li { margin: 0; }
.news-item { height: 100%; display: flex; flex-direction: column; padding: var(--sp-5); border: 1px solid var(--line-200); border-radius: var(--radius-lg); background: var(--surface); }
.news-item time { font-size: var(--fs-xs); color: var(--sage-600); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.news-item h3 { font-size: var(--fs-base); margin: var(--sp-2) 0; }
.news-item p { font-size: var(--fs-sm); color: var(--ink-500); }

/* --- FAQ ---------------------------------------------------------------- */
.faq { border: 1px solid var(--line-200); border-radius: var(--radius); margin-bottom: var(--sp-3); background: var(--surface); }
.faq > summary {
  cursor: pointer;
  padding: var(--sp-4) var(--sp-5);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--navy-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  align-items: center;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; font-size: 1.3rem; color: var(--sage-600); line-height: 1; flex-shrink: 0; }
.faq[open] > summary::after { content: "\2013"; }
.faq > div { padding: 0 var(--sp-5) var(--sp-5); font-size: var(--fs-sm); color: var(--ink-500); }

/* --- Proposal cover page ------------------------------------------------ */
.cover {
  min-height: 100vh;
  background: linear-gradient(150deg, #0B1533 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  color: #D5DFEA;
  padding-block: var(--sp-7);
}
.cover h1, .cover h2, .cover h3 { color: #fff; }
.cover a { color: var(--sage-200); }
.cover__brands { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); margin-bottom: var(--sp-7); }
.cover__brands img { height: 56px; width: auto; }
.cover__divider { width: 1px; height: 46px; background: rgba(255, 255, 255, 0.24); }
.cover__meta {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  padding: var(--sp-5);
  margin-block: var(--sp-6);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
}
.cover__meta dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.09em; color: var(--sage-300); margin-bottom: 2px; }
.cover__meta dd { margin: 0; color: #fff; font-weight: 600; }
.cover-table { font-size: var(--fs-sm); }
.cover-table th, .cover-table td { border-bottom-color: rgba(255, 255, 255, 0.14); vertical-align: top; }
.cover-table th { color: var(--sage-200); }
.cover-table td { color: #C6D2E0; }
.cover-table td:first-child { color: #fff; font-weight: 700; white-space: nowrap; }
.cover .scroll-x { border-color: rgba(255, 255, 255, 0.16); }
.cover-note { font-size: var(--fs-xs); color: #93A3B8; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: var(--sp-7); gap: var(--sp-6); }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .split--reverse > :first-child { order: 0; }
}

@media (max-width: 620px) {
  .cta-band { padding: var(--sp-5); }
  .spec-list li { flex-direction: column; gap: var(--sp-1); }
  .spec-list .spec-val { text-align: left; }
  .store-badge { min-width: 0; width: 100%; }
}
