/* StoxCredit home: a measured credit field sheet, informed by the Workshop Manual
   flavor. Existing brand palette, live data and interactions remain unchanged. */

html[data-site-route="home"] body.app-mode .home-shell {
  max-width:1520px;
  padding:35px clamp(20px,3.4vw,54px) 0;
}
html[data-site-route="home"] body.app-mode .home-lead {
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(385px,.92fr);
  gap:0;
  align-items:stretch;
  min-height:0;
  padding:0;
  border:1px solid var(--sc-border);
  background:var(--sc-bg);
}
html[data-site-route="home"] body.app-mode .home-sheet-head {
  grid-column:1/-1;
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding:12px clamp(25px,3vw,42px);
  border-bottom:1px solid var(--sc-border);
  color:var(--sc-muted);
  font:500 12px/1.4 Inter,Geist,"Segoe UI",sans-serif;
  letter-spacing:.025em;
}
html[data-site-route="home"] body.app-mode .home-sheet-head span:first-child { color:var(--sc-text); font-weight:650; }
html[data-site-route="home"] body.app-mode .home-lead-copy {
  grid-column:1;
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:clamp(38px,5vw,74px) clamp(30px,4.2vw,68px) 32px;
  border-right:1px solid var(--sc-border);
}
html[data-site-route="home"] body.app-mode .home-lead .home-kicker {
  margin:0 0 22px;
  color:var(--sc-accent);
  font:650 13px/1.3 Inter,Geist,"Segoe UI",sans-serif;
  letter-spacing:.025em;
  text-transform:none;
}
html[data-site-route="home"] body.app-mode .home-lead h1 {
  max-width:760px;
  margin:0 0 25px;
  color:var(--sc-text);
  font-size:clamp(47px,4.7vw,70px);
  font-weight:650;
  line-height:1.015;
  letter-spacing:-.055em;
}
html[data-site-route="home"] body.app-mode .home-intro {
  max-width:510px;
  margin:0;
  color:var(--sc-muted);
  font-size:16px;
  line-height:1.65;
}
html[data-site-route="home"] body.app-mode .home-actions { margin:34px 0 0; gap:17px 25px; }
html[data-site-route="home"] body.app-mode .home-primary {
  min-width:209px;
  min-height:50px;
  border-radius:3px;
  padding:12px 17px;
  box-shadow:none;
}
html[data-site-route="home"] body.app-mode .home-primary span { font-size:18px; }
html[data-site-route="home"] body.app-mode .home-secondary { text-decoration-thickness:1px; }
html[data-site-route="home"] body.app-mode .home-caution {
  max-width:none;
  margin:clamp(35px,5vw,67px) 0 0;
  padding:16px 0 0;
  border:0;
  border-top:1px solid var(--sc-border);
  border-radius:0;
  background:transparent;
  color:var(--sc-muted);
  font-size:13px;
  line-height:1.55;
}
html[data-site-route="home"] body.app-mode .home-caution strong {
  color:var(--sc-warning);
  font-weight:650;
}
html[data-site-route="home"] body.app-mode .home-visitor-count {
  margin-top:18px;
  color:var(--sc-muted);
  font-size:12px;
}

/* The diagram is explanatory, not a fake account balance or quote. */
html[data-site-route="home"] body.app-mode .home-loan-plate {
  grid-column:2;
  min-width:0;
  padding:0 clamp(25px,3vw,43px);
  background:var(--sc-surface);
}
html[data-site-route="home"] body.app-mode .home-loan-plate-head {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
  align-items:baseline;
  padding:18px 0;
  border-bottom:1px solid var(--sc-border);
}
html[data-site-route="home"] body.app-mode .home-loan-plate-head span,
html[data-site-route="home"] body.app-mode .home-loan-stage-index,
html[data-site-route="home"] body.app-mode .home-loan-transfer,
html[data-site-route="home"] body.app-mode .home-loan-plate-foot {
  color:var(--sc-muted);
  font-size:11px;
  line-height:1.4;
  letter-spacing:.045em;
}
html[data-site-route="home"] body.app-mode .home-loan-plate-head h2 {
  margin:0;
  color:var(--sc-text);
  font:650 15px/1.3 Inter,Geist,"Segoe UI",sans-serif;
  letter-spacing:-.01em;
}
html[data-site-route="home"] body.app-mode .home-loan-drawing {
  margin:18px 0 0;
  padding:9px 0 12px;
  border-bottom:1px solid var(--sc-border);
  color:var(--sc-text);
}
html[data-site-route="home"] body.app-mode .home-loan-drawing svg { display:block; width:100%; height:auto; overflow:visible; }
html[data-site-route="home"] body.app-mode .home-loan-drawing :is(.drawing-guide,.drawing-line,.drawing-arrow,.drawing-oracle-line,.drawing-node,.drawing-oracle,.drawing-market,.drawing-usdc-ring) { fill:none; vector-effect:non-scaling-stroke; }
html[data-site-route="home"] body.app-mode .home-loan-drawing .drawing-guide { stroke:var(--sc-border); stroke-width:.8; stroke-dasharray:3 8; opacity:.6; }
html[data-site-route="home"] body.app-mode .home-loan-drawing :is(.drawing-line,.drawing-arrow,.drawing-oracle-line) { stroke:var(--sc-accent); stroke-width:1.5; }
html[data-site-route="home"] body.app-mode .home-loan-drawing .drawing-oracle-line { stroke-dasharray:3 3; }
html[data-site-route="home"] body.app-mode .home-loan-drawing :is(.drawing-node,.drawing-oracle,.drawing-usdc-ring) { stroke:var(--sc-border); stroke-width:1; }
html[data-site-route="home"] body.app-mode .home-loan-drawing .drawing-market { fill:var(--sc-bg); stroke:var(--sc-accent); stroke-width:1.5; }
html[data-site-route="home"] body.app-mode .home-loan-drawing text { fill:var(--sc-text); font-family:Inter,Geist,"Segoe UI",sans-serif; font-size:11px; font-weight:650; }
html[data-site-route="home"] body.app-mode .home-loan-drawing .drawing-caption { fill:var(--sc-muted); font-size:10px; letter-spacing:1px; }
html[data-site-route="home"] body.app-mode .home-loan-drawing .drawing-market-label { font-size:12px; letter-spacing:.5px; }
html[data-site-route="home"] body.app-mode .home-loan-stage { padding:27px 0 25px; }
html[data-site-route="home"] body.app-mode .home-loan-stage-index { color:var(--sc-accent); font-weight:650; }
html[data-site-route="home"] body.app-mode .home-loan-stage-main {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  margin:12px 0 7px;
}
html[data-site-route="home"] body.app-mode .home-loan-stage-main > strong {
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--sc-text);
  font-size:clamp(23px,2.3vw,31px);
  font-weight:620;
  line-height:1.15;
  letter-spacing:-.035em;
}
html[data-site-route="home"] body.app-mode .home-loan-stage-main img { flex:0 0 auto; }
html[data-site-route="home"] body.app-mode .home-loan-tickers { display:flex; gap:0; color:var(--sc-muted); font-size:12px; font-weight:600; }
html[data-site-route="home"] body.app-mode .home-loan-tickers span + span::before { content:"/"; margin:0 6px; color:var(--sc-border); }
html[data-site-route="home"] body.app-mode .home-loan-stage p {
  max-width:410px;
  margin:0;
  color:var(--sc-muted);
  font-size:13px;
  line-height:1.55;
}
html[data-site-route="home"] body.app-mode .home-loan-transfer {
  display:flex;
  align-items:center;
  gap:12px;
  height:55px;
  border-top:1px solid var(--sc-border);
  border-bottom:1px solid var(--sc-border);
}
html[data-site-route="home"] body.app-mode .home-loan-transfer span { white-space:nowrap; }
html[data-site-route="home"] body.app-mode .home-loan-transfer i {
  display:block;
  flex:1 1 auto;
  height:1px;
  min-width:20px;
  background:var(--sc-accent);
  position:relative;
}
html[data-site-route="home"] body.app-mode .home-loan-transfer i::after {
  content:"";
  position:absolute;
  right:0;
  top:-4px;
  width:7px;
  height:7px;
  border-top:1px solid var(--sc-accent);
  border-right:1px solid var(--sc-accent);
  transform:rotate(45deg);
}
html[data-site-route="home"] body.app-mode .home-loan-variable { color:var(--sc-muted); font-size:12px; }
html[data-site-route="home"] body.app-mode .home-loan-plate-foot {
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:17px 0;
  border-top:1px solid var(--sc-border);
}
html[data-site-route="home"] body.app-mode .home-loan-plate-foot span:last-child { text-align:right; }

/* The quotes become a market sheet attached to the hero, not a floating card. */
html[data-site-route="home"] body.app-mode .home-market-tape {
  grid-column:1/-1;
  max-width:none;
  width:auto;
  margin:0;
  padding:0 clamp(25px,3vw,42px) 18px;
  border:0;
  border-top:1px solid var(--sc-border);
  background:var(--sc-bg);
}
html[data-site-route="home"] body.app-mode .home-market-tape-heading {
  justify-content:flex-start;
  gap:22px;
  padding:17px 0 12px;
  border:0;
}
html[data-site-route="home"] body.app-mode .home-market-tape-heading span { font-size:12px; }
html[data-site-route="home"] body.app-mode .home-market-tape-heading strong { font-size:14px; }
html[data-site-route="home"] body.app-mode .home-market-tape-rows {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--sc-border);
  border-bottom:1px solid var(--sc-border);
}
html[data-site-route="home"] body.app-mode .home-market-tape-row {
  min-width:0;
  min-height:86px;
  padding:13px clamp(9px,1.5vw,22px);
  border:0;
}
html[data-site-route="home"] body.app-mode .home-market-tape-row:first-child { padding-left:0; }
html[data-site-route="home"] body.app-mode .home-market-tape-row + .home-market-tape-row { border-left:1px solid var(--sc-border); }
html[data-site-route="home"] body.app-mode .home-market-tape-row:hover { padding-left:clamp(9px,1.5vw,22px); }
html[data-site-route="home"] body.app-mode .home-market-tape-row:first-child:hover { padding-left:6px; }
html[data-site-route="home"] body.app-mode .home-market-tape-all { margin-top:15px; }
html[data-site-route="home"] body.app-mode .home-stat-strip {
  grid-column:1/-1;
  margin:0;
  padding:20px clamp(25px,3vw,42px) 23px;
  border:0;
  border-top:1px solid var(--sc-border);
  background:var(--sc-surface);
}
html[data-site-route="home"] body.app-mode .home-stat-strip > div { padding:0 clamp(12px,2vw,28px); }
html[data-site-route="home"] body.app-mode .home-stat-strip > div:first-child { padding-left:0; }

/* Down-page sections use the same sheet language. */
html[data-site-route="home"] body.app-mode .home-stocks { padding-top:62px; }
html[data-site-route="home"] body.app-mode .home-stocks-heading { margin-bottom:24px; }
html[data-site-route="home"] body.app-mode .home-stocks-heading .home-kicker,
html[data-site-route="home"] body.app-mode .home-lending .home-kicker { color:var(--sc-accent); font-size:13px; letter-spacing:0; text-transform:none; }
html[data-site-route="home"] body.app-mode .home-stocks h2 { font-size:clamp(28px,3vw,40px); letter-spacing:-.04em; }
html[data-site-route="home"] body.app-mode .home-calculator {
  top:86px;
  padding:21px 23px;
  border-radius:3px;
  box-shadow:none;
}
html[data-site-route="home"] body.app-mode .home-calculator h2 { font-size:21px !important; }
html[data-site-route="home"] body.app-mode .home-risk { margin-top:60px; }
html[data-site-route="home"] body.app-mode .home-lending { padding-block:39px; }

@media(min-width:761px) and (max-width:1050px) {
  html[data-site-route="home"] body.app-mode .home-lead-copy { padding:38px 28px 25px; }
  html[data-site-route="home"] body.app-mode .home-lead h1 { font-size:clamp(38px,4.5vw,45px); letter-spacing:-.052em; }
  html[data-site-route="home"] body.app-mode .home-intro { font-size:15px; }
  html[data-site-route="home"] body.app-mode .home-loan-plate { padding-inline:24px; }
  html[data-site-route="home"] body.app-mode .home-loan-plate-head span:last-child { display:none; }
  html[data-site-route="home"] body.app-mode .home-loan-plate-head { grid-template-columns:auto minmax(0,1fr); }
}
@media(max-width:760px) {
  html[data-site-route="home"] body.app-mode .home-lead { grid-template-columns:minmax(0,1fr); }
  html[data-site-route="home"] body.app-mode .home-lead-copy { grid-column:1; border-right:0; border-bottom:1px solid var(--sc-border); }
  html[data-site-route="home"] body.app-mode .home-loan-plate { grid-column:1; }
  html[data-site-route="home"] body.app-mode .home-market-tape { margin-top:0; }
}
@media(max-width:700px) {
  html[data-site-route="home"] body.app-mode .home-shell { padding:16px 16px 0; }
  html[data-site-route="home"] body.app-mode .home-sheet-head { padding:11px 18px; }
  html[data-site-route="home"] body.app-mode .home-sheet-head span:last-child { display:none; }
  html[data-site-route="home"] body.app-mode .home-lead-copy { padding:38px 23px 30px; }
  html[data-site-route="home"] body.app-mode .home-lead h1 { font-size:clamp(42px,10vw,56px); }
  html[data-site-route="home"] body.app-mode .home-caution { margin-top:31px; }
  html[data-site-route="home"] body.app-mode .home-loan-plate { padding:0 23px; }
  html[data-site-route="home"] body.app-mode .home-loan-plate-head { grid-template-columns:auto 1fr; }
  html[data-site-route="home"] body.app-mode .home-loan-plate-head span:last-child { display:none; }
  html[data-site-route="home"] body.app-mode .home-loan-stage-main { display:block; }
  html[data-site-route="home"] body.app-mode .home-loan-tickers,
  html[data-site-route="home"] body.app-mode .home-loan-variable { display:block; margin-top:8px; }
  html[data-site-route="home"] body.app-mode .home-loan-transfer span { white-space:normal; }
  html[data-site-route="home"] body.app-mode .home-loan-plate-foot { display:block; }
  html[data-site-route="home"] body.app-mode .home-loan-plate-foot span { display:block; }
  html[data-site-route="home"] body.app-mode .home-loan-plate-foot span:last-child { margin-top:5px; text-align:left; }
  html[data-site-route="home"] body.app-mode .home-market-tape { padding:0 23px 19px; }
  html[data-site-route="home"] body.app-mode .home-market-tape-heading { display:block; }
  html[data-site-route="home"] body.app-mode .home-market-tape-heading strong { display:block; margin-top:4px; }
  html[data-site-route="home"] body.app-mode .home-market-tape-rows { grid-template-columns:1fr; }
  html[data-site-route="home"] body.app-mode .home-market-tape-row,
  html[data-site-route="home"] body.app-mode .home-market-tape-row:first-child { min-height:74px; padding:11px 0; }
  html[data-site-route="home"] body.app-mode .home-market-tape-row + .home-market-tape-row { border-left:0; border-top:1px solid var(--sc-border); }
  html[data-site-route="home"] body.app-mode .home-market-tape-row:hover,
  html[data-site-route="home"] body.app-mode .home-market-tape-row:first-child:hover { padding-left:5px; }
  html[data-site-route="home"] body.app-mode .home-stat-strip { padding:4px 23px 14px; }
  html[data-site-route="home"] body.app-mode .home-stat-strip > div { padding:14px 11px !important; }
  html[data-site-route="home"] body.app-mode .home-stat-strip > div:nth-child(odd) { padding-left:0 !important; }
  html[data-site-route="home"] body.app-mode .home-stocks { padding-top:48px; }
}
@media(prefers-reduced-motion:reduce) {
  html[data-site-route="home"] body.app-mode .home-loan-plate * { animation:none !important; transition:none !important; }
}
