/* Sheridan Capital · Multifamily pricing */
:root {
  --paper: #F4F5F7;
  --panel: #E8EAEF;
  --white: #FFFFFF;
  --ink: #1A1916;
  --ink-2: #4A463E;
  --gray: #6B665D;
  --gray-soft: #908A7E;
  --hairline: #E4DFD4;
  --accent: #D7281E;   /* Sheridan red */
  --accent-2: #1F7A5C; /* positive / meets */
  --serif: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
input::placeholder { color: var(--gray-soft); }
input:focus { outline: none; border-color: var(--ink) !important; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: 1340px; margin: 0 auto; padding: 22px 28px 60px; }

.eyebrow { font: 600 15px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.eyebrow.red { color: var(--accent); font-size: 16px; letter-spacing: .1em; }
.eyebrow.soft { color: var(--gray-soft); font-size: 13px; }
.eyebrow.paper { color: var(--paper); }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 44px; width: auto; display: block; }
.brand-rule { width: 1px; height: 20px; background: var(--hairline); }
.brand-sub { font-size: 17px; color: var(--gray); }
.stamp { font-size: 16px; color: var(--gray); }
.stamp strong { color: var(--ink); font-weight: 600; }

/* hero */
.hero { padding: 28px 0 36px; }
.hero h1 { font: 800 clamp(40px, 6.6vw, 84px)/0.98 var(--serif); letter-spacing: -.03em; margin: 18px 0 0; text-wrap: balance; }
.hero p { max-width: 720px; font-size: 20px; line-height: 1.6; color: var(--ink-2); margin: 32px 0 0; text-wrap: pretty; }

/* layout */
.layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.card { background: var(--white); border: 1px solid var(--hairline); border-radius: 4px; padding: 24px 22px; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
#results { display: flex; flex-direction: column; gap: 16px; }
#results[hidden] { display: none !important; }

/* sidebar */
.deal { flex: 1 1 370px; min-width: 0; position: sticky; top: 16px; scroll-margin-top: 16px; }
.deal-h { font: 800 19px var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.deal-note { font-size: 16px; color: var(--gray); margin-top: 4px; }
.rule { height: 1px; background: var(--hairline); margin: 18px 0; }
.rule.mb0 { margin-bottom: 0; }
.step { display: flex; gap: 8px; align-items: baseline; }
.step-n { font: 700 17px var(--mono); color: var(--accent); }
.step-t { font: 700 18px var(--serif); }
.step-d { font-size: 16px; color: var(--gray); line-height: 1.5; margin: 4px 0 12px 26px; }
.lbl { display: block; font-size: 17px; margin: 0 0 8px; }
.inp { width: 100%; height: 48px; padding: 0 10px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 3px; font: 500 18px var(--mono); color: var(--ink); }
.zip-hint { font-size: 16px; color: var(--gray); margin-top: 8px; min-height: 14px; }
.zip-hint.bad { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font: 16px var(--sans); padding: 6px 12px; border-radius: 99px; border: 1px solid var(--hairline); background: var(--white); color: var(--ink); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--panel); border-color: var(--ink); }
.field { margin-bottom: 14px; }
.field-l { display: flex; justify-content: space-between; font-size: 17px; margin-bottom: 8px; }
.field-l span { font-size: 16px; color: var(--gray); }
.money { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 12px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 3px; }
.money:focus-within { border-color: var(--ink); }
.money span { font: 17px var(--mono); color: var(--gray); }
.money input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 18px var(--mono); color: var(--ink); padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--hairline); border-radius: 3px; overflow: hidden; }
.seg button { height: 46px; border: 0; font: 500 17px var(--sans); cursor: pointer; background: var(--paper); color: var(--ink); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.seg button:active { transform: scale(.97); }
.struct-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 0 2px; border: 0; background: transparent; font: 17px var(--sans); cursor: pointer; }
.struct-toggle .mono { color: var(--gray); }
.struct { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.struct-l { display: flex; justify-content: space-between; font-size: 16px; color: var(--gray); margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { font: 16px var(--sans); padding: 7px 11px; border-radius: 3px; border: 1px solid var(--hairline); background: var(--white); color: var(--ink); cursor: pointer; }
.opt.on { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* empty + not found */
.empty { padding: 56px 32px; text-align: center; }
.empty-h { font: 800 34px var(--serif); margin: 10px 0 8px; }
.empty p { font-size: 18px; color: var(--gray); margin: 0 auto; max-width: 420px; line-height: 1.6; }
.notfound { padding: 28px; }
.nf-h { font: 800 31px var(--serif); margin: 8px 0; }
.notfound p { font-size: 18px; color: var(--gray); margin: 0 0 18px; line-height: 1.6; max-width: 560px; }
.btn-dark { display: inline-block; font: 600 17px var(--sans); padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none; border-radius: 3px; }
.btn-dark:hover { color: var(--white); background: #000; }

/* market */
.mkt { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mkt-name { font: 800 28px var(--serif); margin: 2px 0 6px; }
.mkt-loc { font-size: 16px; color: var(--gray); }
.pills { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; padding: 4px 9px; border-radius: 99px; background: var(--panel); }
.pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.pill.warn { background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent); }
.pill.warn i { background: var(--accent); }
.tierbox { text-align: right; }
.tier { font: 800 38px/1.1 var(--serif); letter-spacing: -.02em; }
.tier-rule { width: 30px; height: 3px; background: var(--accent); margin: 4px 0 0 auto; }

.scale { margin: 22px 0 18px; }
.scale-top { position: relative; height: 34px; }
.scale-marker { position: absolute; bottom: 0; z-index: 1; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: left .7s cubic-bezier(.2,.8,.2,1); }
.scale-marker span { font: 600 15px var(--mono); white-space: nowrap; background: var(--ink); color: var(--paper); padding: 3px 7px; border-radius: 2px; }
.scale-marker i { width: 2px; height: 9px; background: var(--ink); }
.scale-segs { display: grid; grid-template-columns: 21.2fr 21.1fr 23.6fr 34.1fr; gap: 2px; }
.seg-t { padding: 8px 10px; min-width: 0; background: var(--panel); transition: background .4s; }
.seg-t b { display: block; font: 600 16px var(--sans); transition: color .4s; }
.seg-t span { display: block; font-size: 15px; color: var(--gray); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .4s; }
.seg-t.on { background: var(--accent); }
.seg-t.on b, .seg-t.on span { color: var(--white); }
.scale-axis { position: relative; height: 16px; font: 13px var(--mono); color: var(--gray); }
.scale-axis span { position: absolute; top: 4px; transform: translateX(-50%); }
.scale-axis span.r { right: 0; transform: none; }
.comp { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--hairline); padding-top: 14px; }
.comp-l { font: 700 17px var(--serif); }
.comp-v { font-weight: 600; font-size: 18px; }
.scores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.bars i { height: 7px; background: var(--hairline); }
.bars i.f { background: var(--accent); }
.score-l { font-size: 13px; color: var(--gray); margin-top: 6px; line-height: 1.3; }
.score-v { font: 600 15px var(--mono); margin-top: 2px; }
.note { font-size: 16px; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }

/* pricing */
.pricing { padding: 0; overflow: hidden; }
.pr-dark { background: var(--ink); color: var(--paper); padding: 22px 20px 24px; }
.pr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pr-title { font: 700 18px var(--serif); }
.pr-hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 40px; }
.pr-coupon { flex: 1 1 260px; }
.pr-rate { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 8px; }
#coupon { font: 800 96px/0.85 var(--serif); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--paper); }
#coupon.off { color: var(--gray); font-size: 64px; }
.pr-fixed { font: 700 26px var(--serif); color: var(--accent); }
.pr-sub { font: 17px var(--mono); color: var(--hairline); }
.pr-stats { flex: 1 1 300px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--gray); margin-bottom: 22px; }
.pr-stat { padding: 12px 10px 0 0; }
.pr-stat .eyebrow { color: var(--paper); }
.pr-stat-v { font: 600 24px var(--mono); margin-top: 6px; font-variant-numeric: tabular-nums; }
.pr-stat-v.neg { color: var(--accent); }
.pr-stat-s { font-size: 16px; color: var(--hairline); margin-top: 5px; }
.pr-body { display: flex; flex-wrap: wrap; gap: 28px; padding: 20px 16px; }
.pr-build { flex: 1 1 220px; min-width: 0; }
.pr-build > .eyebrow { font-size: 13px; margin-bottom: 6px; }
.line { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; padding: 6px 0; border-top: 1px solid var(--hairline); color: var(--ink-2); }
.line span:last-child { font-family: var(--mono); white-space: nowrap; }
.pr-total { display: flex; justify-content: space-between; font: 600 16px var(--sans); padding: 8px 0; border-top: 1px solid var(--ink); }
.pr-grid { flex: 1 1 280px; min-width: 0; }
.g-head { display: flex; justify-content: space-between; font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.g-cols, .g-cells { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.g-cols div { padding: 8px 4px; text-align: center; font: 16px var(--sans); border-bottom: 1px solid var(--ink); color: var(--gray); transition: background .3s, color .3s; }
.g-cols div:first-child { text-align: left; padding: 8px; font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; align-self: end; }
.g-cols div.on { background: var(--paper); color: var(--ink); font-weight: 600; }
.g-cells { position: relative; grid-auto-rows: 46px; font: 17px var(--mono); }
.g-cell { display: flex; align-items: center; justify-content: center; padding: 0 8px; border-bottom: 1px solid var(--hairline); transition: background .3s; }
.g-cell.lab { justify-content: flex-start; }
.g-cell span { position: relative; z-index: 2; color: var(--gray); transition: color .3s .1s; }
.g-cell.band { background: var(--paper); }
.g-cell.band span { color: var(--ink); }
.g-cell.lab.band span { font-weight: 600; }
.g-cell.hit span { color: var(--white); font-weight: 700; }
.g-hl { position: absolute; z-index: 1; height: 25%; background: var(--accent); box-shadow: 0 8px 18px -8px var(--accent); transition: left .5s cubic-bezier(.2,.8,.2,1), top .5s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.g-note { font-size: 15px; color: var(--gray); margin-top: 10px; line-height: 1.5; }
.gate { background: var(--paper); padding: 18px; border-radius: 3px; font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-top: 12px; }
.gate:first-child { margin-top: 0; }
.gate strong { color: var(--ink); }
.gate a { font-weight: 600; }

/* checks */
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-h.center { align-items: center; }
.card-h .eyebrow { font-size: 13px; }
.card-t { font: 700 18px var(--serif); }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.chk { background: var(--paper); border-radius: 2px; padding: 10px; border-top: 2px solid transparent; transition: background .35s, border-color .35s; }
.chk.fail { background: color-mix(in srgb, var(--accent) 7%, white); border-top-color: var(--accent); }
.chk-l { font-size: 15px; color: var(--gray); }
.chk-v { font: 500 24px var(--mono); margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.chk-r { font-size: 13px; color: var(--gray); }
.chk-s { font: 600 13px var(--sans); color: var(--accent-2); margin-top: 4px; }
.chk.fail .chk-s { color: var(--accent); }
.chk.na .chk-s { color: var(--gray); }
.proceeds { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--hairline); margin-top: 16px; padding-top: 14px; font-size: 16px; }
.proceeds .mono { font-weight: 600; font-size: 18px; }

/* fundamentals */
.funds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); column-gap: 16px; }
.fund { border-top: 1px solid var(--hairline); padding: 12px 0 14px; }
.fund-l { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--ink-2); }
.fund-l .bars { display: flex; gap: 2px; }
.fund-l .bars i { width: 12px; height: 4px; }
.fund-v { font: 500 18px var(--mono); margin-top: 6px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.ch-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; margin-bottom: 14px; }
.ch-h > span:last-child { display: flex; gap: 8px; align-items: baseline; }
.ch-per { font: 13px var(--mono); color: var(--gray); }
.ch-val { font: 600 18px var(--mono); }
.ch-plot { position: relative; height: 150px; cursor: crosshair; touch-action: pan-y; }
.ch-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ch-x { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink); opacity: 0; pointer-events: none; }
.ch-dot { position: absolute; width: 8px; height: 8px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--accent); pointer-events: none; box-sizing: content-box; }
.ch-tip { position: absolute; top: -8px; background: var(--ink); color: var(--paper); font: 15px var(--mono); padding: 4px 8px; border-radius: 2px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ch-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); margin-top: 8px; }

/* signals */
.sig-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 28px; }
.sig-h { display: flex; justify-content: space-between; font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray); padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.sig-r { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; gap: 10px; align-items: center; font-size: 16px; padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.sig-r .mono { color: var(--ink); }
.sig-r .m { font-size: 12px; text-align: right; color: var(--gray-soft); }
.sig-r.pos .mono, .sig-r.pos .m { color: var(--accent-2); }
.sig-r.neg .mono, .sig-r.neg .m { color: var(--accent); }
.sig-key { display: flex; gap: 14px; font-size: 13px; color: var(--gray); margin-top: 10px; }
.sig-key .pos { color: var(--accent-2); }
.sig-key .neg { color: var(--accent); }

/* term sheet */
.terms { background: var(--ink); color: var(--paper); border-radius: 4px; padding: 22px 16px; display: flex; flex-wrap: wrap; gap: 20px; scroll-margin-top: 16px; }
.terms-l { flex: 1 1 220px; }
.terms-h { font: 800 24px var(--serif); }
.terms-l p { font-size: 16px; line-height: 1.55; margin: 8px 0 0; max-width: 260px; }
.terms-f { flex: 1 1 260px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.terms-f input { min-width: 0; height: 42px; padding: 0 10px; background: transparent; border: 1px solid var(--ink-2); border-radius: 3px; color: var(--paper); font: 17px var(--sans); }
.terms-f input.bad { border-color: var(--accent); }
.terms-f input:focus { border-color: var(--paper) !important; }
.terms-f .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.terms-f button { grid-column: 1 / -1; height: 46px; border: 0; border-radius: 3px; background: var(--accent); color: var(--white); font: 600 17px var(--sans); cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s; }
.terms-f button:hover { box-shadow: 0 10px 24px -10px var(--accent); transform: translateY(-1px); }
.terms-f button:active { transform: scale(.98); }
.terms-f button:disabled { opacity: .6; cursor: default; transform: none; }
.ts-err { grid-column: 1 / -1; font-size: 15px; color: var(--gray-soft); min-height: 12px; }
.ts-err a { color: var(--paper); }
.terms-done { flex: 1 1 260px; border: 1px solid var(--ink-2); border-radius: 3px; padding: 14px 16px; font-size: 17px; line-height: 1.6; }
.terms-done > div:nth-child(2) { margin-top: 6px; }
.terms-done button { margin-top: 10px; background: transparent; border: 0; padding: 0; color: var(--gray-soft); font: 16px var(--sans); text-decoration: underline; cursor: pointer; }
.disclaimer { font-size: 15px; line-height: 1.6; color: var(--gray); margin: 24px 0 0; max-width: 720px; }

.tip { position: fixed; z-index: 20; pointer-events: none; }

/* mobile summary bar */
.mbar { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--hairline); padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mbar-l { min-width: 0; }
.mbar-tier { font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.mbar-sub { font-size: 16px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar-r { text-align: right; flex: none; }
.mbar-rate { font: 800 34px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mbar-rate.off { color: var(--gray-soft); }
.mbar-spread { font: 13px var(--mono); color: var(--gray); margin-top: 3px; }

@media (max-width: 719px) {
  .wrap { padding: 22px 16px 60px; }
  .deal { position: static; }
  .hero p { margin-top: 24px; }
  #coupon { font-size: 72px; }
  .scores { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .scale-axis span.r { display: none; }
  .seg-t { padding: 8px 6px; }
  .seg-t span { display: none; }
  .inp, .money input, .terms-f input { font-size: 18px; } /* 16px stops iOS zooming on focus */
  .pr-dark { padding: 20px 16px; }
  .tierbox { text-align: left; }
  .tier-rule { margin-left: 0; }
  .mbar-sub { white-space: normal; }
  .funds { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .seg-t { padding: 8px 4px; }
  .seg-t b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .terms-f { grid-template-columns: 1fr; }
  .pr-stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
