/* Thistledown wholesale prospect list: concept demo by Alex Mercer */
@font-face { font-family: "Geist"; src: url("../fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f4f0e8; --paper-2: #ebe5d9; --card: #fffdf9; --ink: #1a1714; --ink-2: #4a443d; --ink-3: #6a6158;
  --line: rgba(26,23,20,.11); --line-2: rgba(26,23,20,.2);
  --accent: #8a3c1c; --accent-2: #b8562b; --accent-3: #f3e3d6;
  --a: #2f6b4f; --a-bg: #dcece2; --b: #9a6a12; --b-bg: #f6e8c8; --c: #6a6158; --c-bg: #e9e3da;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --r: 14px; --shadow: 0 1px 0 rgba(26,23,20,.04), 0 12px 32px -14px rgba(26,23,20,.24);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 52px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.eyebrow { font: 500 11.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow--light { color: #e7b394; }

/* top bar */
.top { position: sticky; top: 0; z-index: 40; background: rgba(244,240,232,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo__mark { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: var(--paper); display: grid; place-items: center; }
.logo__mark svg { width: 24px; height: 24px; }
.logo__word { display: flex; flex-direction: column; line-height: 1.15; }
.logo__word span { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.logo__word small { font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { font-size: 13.5px; text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a.is-on { color: var(--ink); border-color: var(--accent-2); }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 500 14.5px/1 var(--sans); text-decoration: none; padding: 13px 20px; border-radius: 10px; border: 1px solid transparent; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s; cursor: pointer; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--solid { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(138,60,28,.8), inset 0 1px 0 rgba(255,255,255,.15); }
.btn--solid:hover { background: #6f2f15; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-2); background: rgba(255,253,249,.6); }
.btn--ghost:hover { border-color: var(--ink); background: var(--card); }
.btn--sm { padding: 9px 14px; font-size: 13.5px; }
.btn--light { background: #f4f0e8; color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--line { border-color: rgba(244,240,232,.35); color: #f4f0e8; }
.btn--line:hover { border-color: #f4f0e8; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.85fr); gap: 64px; align-items: center; padding: 76px 0 84px; }
.hero h1 { font: 400 clamp(42px, 5.4vw, 74px)/1.0 var(--serif); letter-spacing: -.018em; margin: 18px 0 22px; text-wrap: balance; }
.hero h1 em { color: var(--accent); }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px 22px 20px; box-shadow: var(--shadow); }
.facts dl { margin: 0; }
.facts dl div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.facts dd b { color: var(--a); font-weight: 600; }
.facts .tiers { display: flex; align-items: center; gap: 6px; }
.facts .tiers .tier { margin-left: 6px; }
.stamp { display: inline-block; margin-top: 16px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #b4361f; border: 1.5px solid #b4361f; border-radius: 6px; padding: 7px 9px; transform: rotate(-2deg); }

.tier { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 600 12px/1 var(--mono); }
.tier--a { background: var(--a-bg); color: var(--a); }
.tier--b { background: var(--b-bg); color: var(--b); }
.tier--c { background: var(--c-bg); color: var(--c); }

/* sections */
.sec { padding: 104px 0; }
.band { padding: 100px 0; background: var(--paper-2); border-block: 1px solid var(--line); }
.band--soft { background: #efe9de; }
.band--ink { background: #211a15; color: #f1ebe3; border: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.sec-head h2 { font: 400 clamp(34px, 3.8vw, 52px)/1.04 var(--serif); letter-spacing: -.012em; margin-top: 12px; text-wrap: balance; }
.sec-head__note { color: var(--ink-2); font-size: 15.5px; max-width: 470px; justify-self: end; }
.band--ink .sec-head__note { color: #c9bdb1; }
h3 { font: 600 17px/1.3 var(--sans); letter-spacing: -.01em; }

/* brief */
.brief { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.ask, .rules, .fields { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; margin: 0; }
.ask { background: var(--accent); color: #fbf3ec; border: 0; display: flex; flex-direction: column; }
.ask .eyebrow { color: #f2c3a6; }
.ask blockquote { margin: 18px 0 22px; font: 400 26px/1.22 var(--serif); }
.ask__by { margin-top: auto; font-size: 13.5px; color: #f2d5c3; }
.ask__by span { opacity: .8; }
.rules h3, .fields h3 { margin-bottom: 14px; }
.rules ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules li { counter-increment: r; position: relative; padding: 9px 0 9px 34px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.rules li::before { content: counter(r); position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-3); color: var(--accent); font: 600 11.5px/22px var(--mono); text-align: center; }
.rules b { color: var(--ink); font-weight: 600; }
.fields ul { margin: 0; padding: 0; list-style: none; }
.fields li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); position: relative; }
.fields li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--a); border-bottom: 2px solid var(--a); transform: rotate(-45deg); }

/* list tools */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.tools label { display: block; }
.tools__search { flex: 1 1 280px; position: relative; }
.tools__search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); }
.tools input, .tools select { font: 400 14.5px/1.2 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; height: 44px; }
.tools input { width: 100%; padding: 0 14px 0 40px; }
.tools select { padding: 0 34px 0 14px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236a6158' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 11px; cursor: pointer; }
.tools__count { margin-left: auto; font: 500 12.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }

/* table */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list thead th { background: #f8f4ee; text-align: left; font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 14px; border-bottom: 1px solid var(--line-2); }
.list td { vertical-align: top; padding: 18px 14px; border-bottom: 1px solid var(--line); }
.list tbody tr:last-child td { border-bottom: 0; }
.list tbody tr:hover { background: #fcf8f2; }
.list td span, .list td a { display: block; }
.c-id { color: var(--ink-3); font-size: 12px; width: 74px; white-space: nowrap; padding-top: 20px !important; }
.c-biz { width: 21%; }
.c-biz b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.c-biz .type { display: inline-block !important; margin: 5px 0 6px 8px; vertical-align: 2px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-3); border-radius: 5px; padding: 4px 6px; }
.c-biz .addr, .c-biz .now { color: var(--ink-3); font-size: 13px; }
.c-town { width: 10%; white-space: nowrap; }
.c-town .mono { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.c-contact { width: 21%; }
.c-contact b { font-weight: 600; }
.c-contact span { color: var(--ink-3); font-size: 13px; }
.c-contact a { color: var(--accent); font-size: 12.5px; text-decoration: none; overflow-wrap: anywhere; margin-top: 3px; }
.c-contact a:hover { text-decoration: underline; }
.c-contact .muted { font-style: italic; margin-top: 3px; }
.c-contact .mono { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.c-fit { width: 84px; }
.c-fit .tier { display: inline-grid !important; }
.c-fit .score { font-size: 20px; font-weight: 500; margin-top: 6px; letter-spacing: -.02em; }
.c-fit .score small { font-size: 11px; color: var(--ink-3); }
.c-fit .bar { height: 4px; background: var(--paper-2); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.c-fit .bar i { display: block; height: 100%; background: var(--accent-2); border-radius: 2px; }
.c-why p { color: var(--ink-2); }
.c-why .opener { margin-top: 10px; padding: 9px 12px; background: #f8f3ec; border-left: 2px solid var(--accent-2); border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--ink); font-style: italic; }
.c-why .opener span { font: 500 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--accent); margin-bottom: 2px; }
.c-src { width: 12%; }
.c-src a { color: var(--ink); font-weight: 500; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.c-src .mono { color: var(--ink-3); font-size: 11.5px; margin-top: 4px; }
.empty { padding: 32px; text-align: center; color: var(--ink-3); }

/* scoring */
.scoring { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); gap: 20px; align-items: start; }
.rubric, .plain { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rubric { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border-style: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.rubric th, .rubric td, .plain th, .plain td { text-align: left; vertical-align: top; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.rubric thead th, .plain thead th { font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: #f8f4ee; }
.rubric tbody th { font-weight: 600; white-space: nowrap; }
.rubric td.mono { white-space: nowrap; color: var(--accent); font-size: 13px; }
.rubric td:last-child { color: var(--ink-2); }
.rubric tbody tr:last-child > * { border-bottom: 0; }
.worked { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.worked h3 { font: 400 30px/1.1 var(--serif); margin: 8px 0 16px; }
.sum { list-style: none; margin: 0; padding: 0; }
.sum li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 14.5px; color: var(--ink-2); }
.sum b { font: 500 14.5px/1 var(--mono); color: var(--ink); display: flex; align-items: center; gap: 8px; }
.sum__total { border-bottom: 0 !important; padding-top: 12px !important; color: var(--ink) !important; font-weight: 600; }
.sum__total b { font-size: 18px; }
.tiers-key { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.tiers-key p { display: flex; align-items: center; gap: 10px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.chart { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; font-size: 15px; }
.legend { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); display: flex; align-items: center; gap: 6px; text-transform: uppercase; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.bars__row { display: grid; grid-template-columns: 150px minmax(0,1fr) 28px; gap: 12px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.bars__label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars__track { display: flex; height: 14px; gap: 2px; }
.seg { display: block; height: 100%; border-radius: 3px; }
.seg--a { background: var(--a); }
.seg--b { background: #d4a03c; }
.seg--c { background: #c3b8aa; }
.bars__n { text-align: right; color: var(--ink); font-size: 13px; }

/* checks */
.checks { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.checks li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.checks b { display: block; font: 400 48px/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.checks span { font-size: 14.5px; color: var(--ink-2); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mini-h { margin-bottom: 14px; }
.table-wrap--plain { box-shadow: none; }
.plain { font-size: 13.5px; }
.plain th, .plain td { padding: 12px 14px; }
.plain tbody th { font-weight: 600; }
.plain td { color: var(--ink-2); }
.plain tbody tr:last-child > * { border-bottom: 0; }
.rule { display: inline-block; font: 500 10.5px/1.3 var(--mono); letter-spacing: .04em; color: var(--accent); background: var(--accent-3); padding: 4px 7px; border-radius: 5px; }

/* handoff */
.handoff { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.sheet { background: #fbf8f3; color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.sheet__tabs { display: flex; gap: 2px; background: #e4ddd1; padding: 8px 8px 0; overflow-x: auto; }
.sheet__tabs span { font: 500 12px/1 var(--mono); padding: 9px 12px; border-radius: 7px 7px 0 0; color: var(--ink-3); white-space: nowrap; }
.sheet__tabs .on { background: #fbf8f3; color: var(--accent); }
.sheet__body { margin: 0; padding: 8px 24px 16px; }
.sheet__body div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sheet__body div:last-child { border-bottom: 0; }
.sheet__body dt { font-weight: 600; }
.sheet__body dd { margin: 0; color: var(--ink-2); }
.route h3 { color: #fff; margin-bottom: 14px; }
.route ol { margin: 0; padding: 0; list-style: none; }
.route li { padding: 12px 0; border-top: 1px solid rgba(241,235,227,.14); font-size: 14.5px; display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.route li b { color: #e7b394; font-weight: 500; }
.route li span { color: #d9cfc4; }
.route__note { margin-top: 14px; color: #b3a69a; font-size: 14px; }
.dl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.foot__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot__inner p:first-child { max-width: 720px; }
.foot b { color: var(--ink); }

/* motion */
.anim .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.anim .reveal.is-in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .top__inner .btn { margin-left: auto; }
  .brief { grid-template-columns: 1fr 1fr; }
  .ask { grid-column: 1 / -1; }
  .checks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .sec-head__note { justify-self: start; }
  .scoring, .charts, .twocol, .handoff { grid-template-columns: 1fr; }
  /* table to cards */
  .table-wrap:not(.table-wrap--plain) { background: none; border: 0; box-shadow: none; overflow: visible; }
  .list thead { display: none; }
  .list, .list tbody { display: block; }
  .list tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
  .list tbody tr[hidden] { display: none; }
  .list td { display: block; padding: 0; border: 0; width: auto !important; }
  .c-id { grid-column: 1 / -1; order: -2; padding: 0 0 8px !important; }
  .c-biz { grid-column: 1; grid-row: 2; }
  .c-fit { grid-column: 2; grid-row: 2; text-align: right; }
  .c-fit .tier { margin-left: auto; }
  .c-fit .bar { width: 64px; margin-left: auto; }
  .c-town { grid-column: 1 / -1; margin-top: 10px; display: flex !important; gap: 8px; align-items: baseline; }
  .c-town .mono { margin: 0; }
  .c-contact { grid-column: 1 / -1; margin-top: 12px; padding-top: 12px !important; border-top: 1px solid var(--line) !important; }
  .c-why { grid-column: 1 / -1; margin-top: 12px; }
  .c-src { grid-column: 1 / -1; margin-top: 12px; display: flex !important; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .c-src .mono { margin: 0; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .sec, .band { padding: 72px 0; }
  .logo__word small { display: none; }
  .hero h1 { font-size: 42px; }
  .lede { font-size: 16.5px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .brief { grid-template-columns: 1fr; }
  .ask blockquote { font-size: 23px; }
  .tools__search { flex-basis: 100%; }
  .tools label:not(.tools__search) { flex: 1 1 calc(50% - 5px); }
  .tools select { width: 100%; }
  .tools__count { margin-left: 0; }
  .checks { grid-template-columns: 1fr; }
  .bars__row { grid-template-columns: 110px minmax(0,1fr) 24px; font-size: 12.5px; }
  .chart { padding: 20px; }
  .plain thead { display: none; }
  .plain, .plain tbody, .plain tr, .plain th, .plain td { display: block; }
  .plain tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .plain tbody tr:last-child { border-bottom: 0; }
  .plain th, .plain td { padding: 2px 0; border: 0; }
  .rubric thead { display: none; }
  .rubric, .rubric tbody, .rubric tr, .rubric th, .rubric td { display: block; }
  .rubric tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .rubric th, .rubric td { padding: 2px 0; border: 0; }
  .rubric tbody th { display: inline-block; margin-right: 8px; }
  .rubric td.mono { display: inline-block; }
  .sheet__body { padding: 4px 18px 12px; }
  .sheet__body div { grid-template-columns: 1fr; gap: 2px; }
  .route li { grid-template-columns: 1fr; gap: 2px; }
  .dl .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  .am-demo-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .top, .tools, .hero__cta, .dl { display: none !important; }
}
