/* ==========================================================================
   North Shore Agentic — lender report front page
   Palette: county file-room paper, document ink, recorder's stamp violet,
   and one red reserved for "this is ahead of your money".
   ========================================================================== */

:root {
  --paper:      #E4E6DE;
  --paper-deep: #D8DBD1;
  --card:       #FBFAF6;
  --ink:        #17191B;
  --ink-2:      #4A4F4C;
  --ink-3:      #767B76;
  --rule:       #C6CAC0;
  --rule-soft:  #E1E3DB;
  --stamp:      #4B3BA5;
  --stamp-soft: #EAE7F7;
  --claim:      #A82A1E;
  --claim-soft: #F6EAE8;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --disp: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --band-y: clamp(64px, 9vw, 116px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--stamp); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--stamp);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; z-index: 50; font-size: 15px;
}
.skip:focus { left: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- shared type ------------------------------------------------- */

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--stamp);
}

.head {
  margin: 0 0 20px;
  font-family: var(--disp);
  font-optical-sizing: auto;
  font-weight: 640;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 17ch;
}

.lede {
  margin: 0 0 8px;
  font-size: clamp(17px, 1.55vw, 19.5px);
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 62ch;
}

.link {
  color: var(--stamp);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  font-weight: 500;
}
.link:hover { color: var(--ink); }

/* ---------- top bar ----------------------------------------------------- */

.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  flex-wrap: wrap;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mark__stamp {
  width: 15px; height: 15px;
  border-radius: 3px;
  background: var(--stamp);
  box-shadow: inset 0 0 0 2.5px var(--paper), 0 0 0 1.5px var(--stamp);
  flex: none;
}
.mark__word {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

/* ---------- hero -------------------------------------------------------- */

.hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--rule);
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.hero__say { padding-top: 6px; }

.hero__head {
  margin: 0 0 22px;
  font-family: var(--disp);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(42px, 6.1vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.hero__lede {
  margin: 0 0 34px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}

/* ---------- the ask ----------------------------------------------------- */

.ask__label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.ask__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ask__input {
  flex: 1 1 260px;
  min-width: 0;
  font: inherit;
  font-size: 16.5px;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--card);
  color: var(--ink);
}
.ask__input::placeholder { color: #9AA096; }
.ask__input:focus { outline: none; box-shadow: 0 0 0 3px var(--stamp-soft); border-color: var(--stamp); }

.btn {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  border: 1.5px solid var(--stamp);
  border-radius: 2px;
  background: var(--stamp);
  color: #fff;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #3B2D88; border-color: #3B2D88; }
.btn:active { transform: translateY(1px); }

.ask__note {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--ink-3);
  max-width: 46ch;
}
.ask__note.is-sent { color: var(--stamp); font-weight: 500; }

/* ---------- the ladder (signature) -------------------------------------- */

.hero__show { position: relative; }

.figure-slot {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--rule);
}

.ladder-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  box-shadow: 14px 14px 0 -1px var(--paper-deep), 14px 14px 0 0 var(--rule);
}
.ladder-card__cap { padding: 22px 24px 16px; }
.eyebrow--card { margin-bottom: 7px; }
.ladder-card__sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}

.rung {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 74px 88px;
  grid-template-areas: "yr who st amt";
  column-gap: 12px;
  row-gap: 2px;
  align-items: baseline;
  padding: 10px 24px;
  border-bottom: 1px solid var(--rule-soft);
  border-left: 3px solid transparent;
}
.rung__yr {
  grid-area: yr;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}
.rung__who {
  grid-area: who;
  font-size: 14.5px;
  line-height: 1.35;
}
.rung__who em {
  font-style: normal;
  color: var(--ink-3);
  font-size: 13px;
}
.rung__amt {
  grid-area: amt;
  justify-self: end;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rung__st {
  grid-area: st;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rung.is-released { color: var(--ink-3); }
.rung.is-released .rung__who { color: var(--ink-3); }
.rung.is-released .rung__amt { color: #9AA096; }

.rung.is-active {
  background: var(--claim-soft);
  border-left-color: var(--claim);
}
.rung.is-active .rung__who { font-weight: 500; color: var(--ink); }
.rung.is-active .rung__amt { color: var(--claim); font-weight: 500; }
.rung.is-active .rung__st { color: var(--claim); }

.rung.is-you {
  background: var(--stamp-soft);
  border-left-color: var(--stamp);
  border-bottom: none;
  padding-block: 15px;
}
.rung.is-you .rung__who {
  font-family: var(--disp);
  font-optical-sizing: auto;
  font-weight: 650;
  font-size: 17px;
  color: var(--stamp);
  letter-spacing: -0.01em;
}
.rung.is-you .rung__yr,
.rung.is-you .rung__st { color: var(--stamp); }
.rung.is-you .rung__amt { color: var(--stamp); }

.ladder-card__foot {
  margin: 0;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.ladder-card__foot strong { color: var(--claim); font-family: var(--mono); font-weight: 500; }

/* one orchestrated moment: the ladder builds oldest to newest */
@media (prefers-reduced-motion: no-preference) {
  .js .ladder .rung {
    opacity: 0;
    transform: translateY(7px);
  }
  .js .ladder .rung.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .42s ease, transform .42s cubic-bezier(.2,.7,.3,1);
  }
}

/* ---------- bands ------------------------------------------------------- */

.band {
  padding-block: var(--band-y);
  border-bottom: 1px solid var(--rule);
}
.band--quiet { background: var(--paper-deep); }
.band--tabs .lede { margin-bottom: 34px; }

/* ---------- tabs -------------------------------------------------------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px;
  max-width: 78ch;
  margin-bottom: 30px;
  padding-bottom: 0;
  border-bottom: 2px solid var(--ink);
}
.tab {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.3;
  padding: 8px 12px 8px 26px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px 2px 0 0;
  border-bottom-color: var(--rule-soft);
  color: var(--ink-2);
  position: relative;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tab::before {
  content: "";
  position: absolute;
  left: 10px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--rule);
}
.tab:nth-child(3n)::before   { background: #B9B49A; }
.tab:nth-child(4n)::before   { background: #A9B4A4; }

.tabs__punch {
  margin: 0;
  font-family: var(--disp);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 40ch;
  border-left: 3px solid var(--stamp);
  padding-left: 18px;
}

/* ---------- answer grid ------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 40px;
}
.cell {
  background: var(--paper);
  padding: 26px 24px 28px;
}
.cell__h {
  margin: 0 0 9px;
  font-family: var(--disp);
  font-optical-sizing: auto;
  font-weight: 640;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.cell__p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.52;
  color: var(--ink-2);
}

.standout {
  margin: 26px 0 0;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--stamp);
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 72ch;
}
.standout strong { color: var(--stamp); font-weight: 600; }

/* ---------- honesty ----------------------------------------------------- */

.honest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink-3);
  padding: 24px 26px;
}
.quote__h {
  margin: 0 0 10px;
  font-family: var(--disp);
  font-optical-sizing: auto;
  font-weight: 640;
  font-size: 20px;
  letter-spacing: -0.015em;
}
.quote__p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.quote__cite {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- the seven pages --------------------------------------------- */

.pages {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 26px;
}
.page {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--rule);
  transition: transform .16s ease, box-shadow .16s ease;
}
.page img { width: 100%; height: auto; }
.page__n {
  position: absolute;
  left: 0; bottom: 0;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 9px;
  background: var(--ink);
  color: var(--paper);
}
.page:hover, .page:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 -4px var(--rule);
}
.pages__cta { margin: 0; font-size: 16.5px; }

/* ---------- coverage ---------------------------------------------------- */

.cover {
  list-style: none;
  margin: 40px 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.cover__i {
  display: grid;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule);
  padding: 22px 22px 24px;
}
.cover__i.is-on { border-top-color: var(--stamp); }
.cover__i.is-off { background: transparent; }
.cover__n {
  font-family: var(--disp);
  font-optical-sizing: auto;
  font-weight: 660;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.cover__s {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cover__i.is-on .cover__s { color: var(--stamp); }
.cover__p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.cover__ask {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---------- price ------------------------------------------------------- */

.band--price { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }
.band--price .eyebrow { color: #A79BE8; }

.price {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}
.price__num {
  margin: 0;
  font-family: var(--disp);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(76px, 12vw, 148px);
  line-height: 0.84;
  letter-spacing: -0.045em;
}
.price__cap {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: #B7BCB4;
  max-width: 24ch;
}
.price__side { display: grid; gap: 18px; padding-top: 10px; }
.price__line {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: #CDD1C9;
  max-width: 54ch;
}
.price__line strong { color: var(--paper); font-weight: 600; }
.price__line--vs {
  border-top: 1px solid #33373A;
  padding-top: 18px;
  color: #969B94;
  font-size: 15.5px;
}

/* ---------- what it is not ---------------------------------------------- */

.notwhat__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 52px);
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.notwhat__p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.notwhat__p strong { color: var(--ink); font-weight: 600; }

/* ---------- footer ------------------------------------------------------ */

.foot { padding-block: 34px 44px; }
.foot__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot__co {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.foot__loc { color: var(--ink-3); letter-spacing: 0.06em; }
.foot__contact { margin: 0; font-family: var(--mono); font-size: 13px; }

/* ---------- narrow ------------------------------------------------------ */

@media (max-width: 900px) {
  .pages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .hero__in,
  .honest,
  .price { grid-template-columns: minmax(0, 1fr); }
  .hero__head { max-width: 14ch; }
  .price__side { padding-top: 0; }
  .ladder-card { box-shadow: 8px 8px 0 -1px var(--paper-deep), 8px 8px 0 0 var(--rule); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .rung { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "yr who amt" ". st st"; padding-inline: 18px; }
  .ladder-card__cap,
  .ladder-card__foot { padding-inline: 18px; }
  .tab { white-space: normal; }
  .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .btn { width: 100%; }
  .topbar__meta { display: none; }
  .topbar__in { min-height: 54px; flex-wrap: nowrap; }
}
