/* Sillview — Web design system (see docs/BRAND.md §"Web design system").
   Derived with ui-ux-pro-max: Trust & Authority style + "Financial Trust"
   type pairing (IBM Plex Sans) + Trust & Authority + Conversion landing
   pattern. Goal: a serious financial-services desk a co-op treasurer trusts
   on sight. Blue = structure/authority; orange = a single point of emphasis
   (the CTA only), never more than ~10% of any view. */

:root {
  color-scheme: light;

  /* Brand palette (locked — docs/BRAND.md §1) */
  --ink: #1a2330;        /* body text, always */
  --muted: #51606f;      /* secondary text — 5.6:1 on white (AA) */
  --line: #dce3ea;       /* hairline borders */
  --paper: #ffffff;      /* dominant surface */
  --ground: #f4f7fa;     /* page ground */
  --blue: #006bb6;       /* primary — structure & authority */
  --blue-dark: #00568f;  /* hover / deep band */
  --orange: #f58426;     /* accent — emphasis only (CTA) */
  --blue-wash: #e8f1f9;  /* structural tints, panels */
  --orange-wash: #fef0e2;

  /* Type — one hosted font (IBM Plex Sans), graceful system fallback */
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type scale (1.25 major-third, fluid at the top end) */
  --fs-eyebrow: 0.8125rem;                 /* 13px */
  --fs-small: 0.9375rem;                   /* 15px */
  --fs-body: 1.0625rem;                    /* 17px */
  --fs-lede: clamp(1.1875rem, 1.4vw + 0.9rem, 1.5rem);   /* 19 → 24 */
  --fs-h3: 1.1875rem;                      /* 19px */
  --fs-h2: clamp(1.625rem, 2.4vw + 1rem, 2.375rem);      /* 26 → 38 */
  --fs-h1: clamp(2.25rem, 4.2vw + 1.1rem, 3.75rem);      /* 36 → 60 */

  /* Spacing — 8px base grid */
  --s1: 0.25rem;  --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;   --s6: 2rem;    --s7: 3rem;    --s8: 4rem;   --s9: 6rem;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --maxw: 1200px;

  /* Depth — subtle, never flashy */
  --shadow-sm: 0 1px 2px rgba(26, 35, 48, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 35, 48, 0.08);
  --shadow-lg: 0 22px 60px rgba(26, 35, 48, 0.12);

  --radius: 10px;
  --ease: 200ms ease;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-padding-top: 88px;        /* sticky-header offset for anchor jumps */
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 20;
  padding: 12px 18px;
  background: var(--blue);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--s4);
  top: var(--s4);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s3) var(--gutter);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(120%) blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s6);
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  transition: color var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--blue);
  color: var(--paper);
}

/* Secondary nav path for non-board visitors (lenders, agents, partners).
   Blue text link — clearly subordinate to the outlined snapshot CTA, never
   orange (orange is reserved for the primary snapshot CTA only). */
.nav-contact {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 2px;
  color: var(--blue);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease);
}

.nav-contact:hover,
.nav-contact:focus-visible {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* ---------- Shared type ---------- */

h1, h2, h3, p { margin-top: 0; overflow-wrap: break-word; }

.eyebrow,
.panel-kicker {
  margin: 0 0 var(--s3);
  color: var(--blue);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: var(--s5);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin-bottom: var(--s3);
  color: var(--blue);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  margin-bottom: var(--s2);
  color: var(--ink);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 5.5rem) var(--gutter) clamp(3rem, 6vw, 5.5rem);
}

.hero-copy { min-width: 0; max-width: 640px; }

.lede {
  margin-bottom: var(--s6);
  color: #33414f;
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.4;
}

.hero-actions { margin-bottom: var(--s4); }

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  max-width: 100%;
  padding: 14px 28px;
  border-radius: var(--radius);
  /* CTA = Sillview Orange, the page's single point of emphasis. White-on-orange
     fails contrast, so the label is ink (docs/BRAND.md §2.5). */
  background: var(--orange);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
  box-shadow: var(--shadow-sm);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #e0741a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.disclosure {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Hero trust card — credibility panel (Trust & Authority pattern) */
.trust-card {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.trust-points {
  margin: 0 0 var(--s5);
  padding: 0;
  list-style: none;
}

.trust-points li,
.request-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--s3);
  align-items: start;
  padding: var(--s3) 0;
  color: var(--ink);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.trust-points li + li,
.request-points li + li {
  border-top: 1px solid var(--line);
}

.tick {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--blue);
  background: var(--blue-wash);
  border-radius: 50%;
  padding: 2px;
}

.trust-line {
  margin: 0;
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.section-light {
  max-width: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-light > * { max-width: var(--maxw); margin-inline: auto; }

.section-heading { max-width: 680px; margin-bottom: var(--s8); }

.section-intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--fs-lede);
  line-height: 1.45;
}

/* How it works — numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}

.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.step-number {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s5);
  place-items: center;
  background: var(--blue-wash);
  color: var(--blue);
  border-radius: 50%;
  font-size: 1.0625rem;
  font-weight: 700;
}

.step p { margin-bottom: 0; color: var(--muted); }

/* Snapshot — deliverable preview */
.snapshot-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.snapshot-copy { max-width: 560px; }
.snapshot-copy p { margin-bottom: 0; color: var(--muted); }

.snapshot-preview {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--blue);
  color: var(--paper);
  font-size: var(--fs-small);
  font-weight: 600;
}

.preview-tag {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #e6f1fa;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.preview-grid div {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line);
}

.preview-grid div:nth-child(odd) { border-right: 1px solid var(--line); }

.preview-grid dt {
  margin-bottom: var(--s2);
  color: var(--muted);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

/* Positioning band — solid Sillview Blue, white text */
.lane-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  background: var(--blue);
  color: var(--paper);
}

.lane-heading { max-width: 360px; }
.lane-heading .eyebrow { color: #bcdcf2; }
.lane-section h2 { color: var(--paper); }

.lane-body {
  margin: 0;
  color: #d8e8f5;
  font-size: var(--fs-lede);
  line-height: 1.55;
  max-width: 720px;
}

/* Request — final conversion section with the embedded form */
.request-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.request-copy { max-width: 460px; }
.request-copy p { color: var(--muted); }

.request-points {
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
}

.form-card {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.form-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 560px;
  background: var(--paper);
  border: 0;
}

/* ---------- Pre-footer: contact, partner path, legal ---------- */

/* White band so the affiliation small print reads as slate/ink on white
   (docs/BRAND.md §6) — never on a colored band, never orange. */
.footer-legal {
  padding: var(--s7) var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-legal-inner {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
}

.footer-partners-label {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Secondary CTA — blue outline, ink-free of orange (brand discipline). */
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--blue);
  color: var(--paper);
}

.footer-contact {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

.footer-contact a {
  color: var(--blue);
  font-weight: 600;
}

.footer-boilerplate {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: var(--fs-eyebrow);   /* 13px small print */
  line-height: 1.5;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: var(--s7) var(--gutter);
  background: var(--ink);
  color: #9aa7b4;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s5);
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand-footer { color: #ffffff; }
.site-footer p { margin: 0; font-size: var(--fs-small); }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero,
  .snapshot-section,
  .lane-section,
  .request-section {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: clamp(2rem, 6vw, 3rem); }
  .lane-heading { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .section-heading { margin-bottom: var(--s6); }

  .nav-links { display: none; }
}

@media (max-width: 560px) {
  :root { --fs-body: 1rem; }

  .site-header { padding: var(--s3) var(--s4); }
  .nav-cta,
  .nav-contact { display: none; }

  .button-primary { display: flex; width: 100%; }

  .preview-grid { grid-template-columns: 1fr; }
  .preview-grid div:nth-child(odd) { border-right: 0; }

  .form-frame { min-height: 600px; }
  .footer-inner { gap: var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
  .step:hover,
  .button-primary:hover { transform: none; }
}
