/* ==========================================================================
   Comstocks site pages: the landing (/) and the inner site pages (help, contact,
   careers, privacy, terms, brand, 404), built from the State of Blocks home and
   its /models, /performance hero bands. Primitives come from css/manual.css.

   Landing:  .lp-hero (paper grid, copy + plate + seal), .lp-ticker, .lp-sec,
             .lp-inst (four instruments), .lp-tx (transmission cards), .lp-band
             (deep green band with the bull plate), .lp-token ($COMSTOCKS)
   Inner:    .pg-hero (paper-grid band, kicker, title, lede, stamp),
             .pg-body (sheets), .doc (legal text), .brand-* (brand page)
   ========================================================================== */

.lp, .pg { overflow-x: clip; }

/* ------------------------------------------------------------------ hero */
.lp-hero { position: relative; border-bottom: 1px solid hsl(var(--ink-c) / .12); }
.lp-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px;
  padding-top: 64px; padding-bottom: 40px;
}
@media (min-width: 900px) {
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 56px; }
}
.lp-hero-copy { min-width: 0; }
.lp-title { max-width: 12ch; }
@media (min-width: 900px) { .lp-title { font-size: clamp(56px, 5.6vw, 80px); } }
.lp-lede { max-width: 44ch; margin-top: 26px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 32px; }
@media (max-width: 479.98px) {
  .lp-hero .lp-cta .btn-m { flex: 1 1 100%; }
}
.lp-stats { margin-top: 36px; max-width: 520px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-stats > * { display: flex; flex-direction: column; }
@media (max-width: 379.98px) { .lp-stats > * { padding: 12px 10px; } .lp-stats .value { font-size: 24px; } .lp-stats .label { letter-spacing: .14em; } }
.lp-coverage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 18px; max-width: 520px; }
.lp-cov-list { font: 400 11px/1.7 var(--mono); letter-spacing: .1em; color: var(--ink-2); }

.lp-hero-art { position: relative; min-width: 0; max-width: 500px; width: 100%; justify-self: center; padding: 18px 18px 0 0; }
@media (min-width: 900px) { .lp-hero-art { justify-self: end; } }
.lp-plate { position: relative; }
.lp-plate img { aspect-ratio: 900 / 1288; object-fit: cover; }
.lp-seal { position: absolute; top: -8px; right: -6px; width: 96px; height: 96px; z-index: 2; }
.lp-seal .seal { transform: none; }
@media (max-width: 479.98px) { .lp-seal { width: 78px; height: 78px; top: -4px; right: -2px; } }
.lp-coords {
  padding-bottom: 22px; font: 400 10px/1.4 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}

.lp-ticker .ticker-track { animation-duration: 48s; }

/* -------------------------------------------------------------- sections */
.lp-sec { padding-top: 88px; padding-bottom: 88px; }
@media (min-width: 900px) { .lp-sec { padding-top: 112px; padding-bottom: 112px; } }
.lp-sec + .lp-sec { border-top: 1px solid hsl(var(--ink-c) / .12); }
.lp-h2 { font-size: clamp(38px, 6vw, 56px); }
.lp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.lp-sec-head > div { min-width: 0; }
.lp-candles { display: none; width: 120px; height: 30px; flex: none; margin-bottom: 8px; }
@media (min-width: 760px) { .lp-candles { display: block; } }

/* ------------------------------------------------- sheet 02: instruments */
.lp-inst-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin-top: 56px;
  border: 1px solid hsl(var(--ink-c) / .25); background: hsl(var(--ink-c) / .25);
}
@media (min-width: 760px) { .lp-inst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-inst { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px 24px 30px; background: var(--paper); }
@media (min-width: 600px) { .lp-inst { padding: 32px 32px 34px; } }
.lp-inst:nth-child(2), .lp-inst:nth-child(3) { background: hsl(var(--paper-2-c) / .55); }
@media (max-width: 759.98px) { .lp-inst:nth-child(3) { background: var(--paper); } .lp-inst:nth-child(even) { background: hsl(var(--paper-2-c) / .55); } }
.lp-inst-no { align-self: flex-end; font: italic 400 40px/1 var(--serif); color: hsl(var(--ink-c) / .14); }
.lp-inst-fig { width: 100%; max-width: 300px; height: 150px; margin: 4px auto 0; }
.lp-inst-title { margin-top: 24px; font: 400 28px/1.1 var(--serif); color: var(--ink); }
.lp-inst-body { max-width: 40ch; margin-top: 12px; font: 400 14px/1.65 var(--font); color: var(--ink-2); }
.lp-inst-rule { display: block; width: 64px; height: 2px; margin-top: auto; padding-top: 0; }
.lp-inst-body + .lp-inst-rule { margin-top: 28px; }
.lp-inst-rule.is-green { background: var(--green); }
.lp-inst-rule.is-red { background: hsl(var(--red-c) / .8); }

/* --------------------------------------------- sheet 03: transmissions */
.lp-tx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 56px; }
@media (min-width: 960px) { .lp-tx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; } }
.lp-tx-cell { position: relative; min-width: 0; }
@media (min-width: 960px) {
  .lp-tx-cell.is-plated { padding-top: 12px; }
  .lp-tx-cell.is-plated::before {
    content: ""; position: absolute; z-index: 0; top: -48px; left: 40%; width: 560px; aspect-ratio: 1100 / 696;
    background: url('/img/plates/botanical-plate-sm.webp') center / cover no-repeat;
    opacity: .38; pointer-events: none; filter: saturate(.7);
  }
  .lp-tx-cell.is-plated .lp-tx { position: relative; z-index: 1; background: hsl(var(--paper-c) / .93); }
}
.lp-tx { background: var(--paper); border: 1px solid hsl(var(--ink-c) / .3); box-shadow: var(--shadow-hard-sm); min-width: 0; }
.lp-tx-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px;
  padding: 12px 20px; border-bottom: 1px solid hsl(var(--ink-c) / .2);
  font: 400 9.5px/1.5 var(--mono); letter-spacing: .24em; text-transform: uppercase;
}
.lp-tx-id { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-2); min-width: 0; }
.lp-tx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.lp-tx-ch { color: var(--green); }
.lp-tx-date { color: var(--muted); }
.lp-tx-body { padding: 20px; }
.lp-tx-by { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lp-tx-who { font: 600 12px/1.4 var(--mono); color: var(--ink); }
.lp-tx-meta { font: 400 9.5px/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.lp-tx-name { margin-top: 4px; font: 400 26px/1.1 var(--serif); }
.lp-tx-name a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); }
@media (hover: hover) { .lp-tx-name a:hover { color: var(--green); } }
.lp-tx-quote {
  margin: 14px 0 0; padding: 2px 0 2px 14px; border-left: 2px solid hsl(var(--red-c) / .7);
  font: 400 12.5px/1.75 var(--mono); color: var(--ink);
}
.lp-tx-legs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.lp-tx-legs li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 400 12px/1.9 var(--mono); color: var(--ink-2); min-width: 0; }
.lp-tx-legs li::before { content: ""; width: 5px; height: 5px; margin-right: 2px; background: var(--green); flex: none; align-self: center; }
.lp-tx-sym { flex: 1 1 auto; color: var(--ink); }
.lp-tx-w { color: var(--muted); }
.lp-tx-note { margin-top: 14px; font: 400 12px/1.7 var(--mono); color: var(--ink-2); }
.lp-tx-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  margin: 0 20px; padding: 12px 0 14px; border-top: 1px dotted hsl(var(--ink-c) / .35);
}
.lp-tx-open { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
@media (hover: hover) { .lp-tx-open:hover { text-decoration: underline; text-underline-offset: 4px; } }
.lp-tx-filed { font: 400 9px/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.lp-more { margin-top: 56px; }
.lp-more a { display: inline-flex; align-items: center; min-height: 40px; }

/* ------------------------------------------------------ sheet 04: band */
.lp-band { position: relative; padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 900px) { .lp-band { padding-top: 96px; padding-bottom: 96px; } }
.lp-band-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 900px) { .lp-band-grid { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 80px; } }
.lp-bull { max-width: 380px; width: 100%; }
.lp-bull img { aspect-ratio: 1200 / 1133; object-fit: cover; }
.lp-band-copy { min-width: 0; }
.lp-quote { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; max-width: 18ch; }
.lp-band .lede { max-width: 48ch; }
.lp-band-note { align-self: center; font: 400 10px/1.5 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: hsl(var(--paper-c) / .8); }

/* ------------------------------------------------------- $COMSTOCKS */
.lp-token-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .lp-token-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; } }
.lp-link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lp-token-card { padding: 22px; min-width: 0; }
@media (min-width: 600px) { .lp-token-card { padding: 28px; } }
.lp-token-top { display: flex; align-items: center; gap: 14px; }
.lp-token-top > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-token-ticker { font: 400 30px/1 var(--serif); color: var(--ink); }
.lp-token-spec { margin-top: 20px; }
.lp-token-spec a { display: inline-flex; align-items: center; min-height: 40px; color: var(--green); }
.lp-token-spec > div { padding-top: 4px; padding-bottom: 4px; align-items: center; }
.lp-token-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.lp-token-actions > span { display: contents; }
.lp-token-actions .btn-m { flex: 1 1 140px; padding: 0 16px; }
.lp-token-x .icon { flex: none; }
.lp-ca { margin-left: 8px; text-transform: none; letter-spacing: .04em; opacity: .7; }

/* ==================================================== inner site pages */
.pg-hero { position: relative; border-bottom: 1px solid hsl(var(--ink-c) / .12); }
.pg-hero-in { position: relative; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 900px) { .pg-hero-in { padding-top: 84px; padding-bottom: 84px; } }
.pg-title { max-width: 16ch; font-size: clamp(42px, 7vw, 68px); }
.pg-hero .lede { max-width: 54ch; }
.pg-stamp { display: none; position: absolute; right: var(--gutter-content); top: 50%; margin-top: -18px; }
@media (min-width: 900px) { .pg-stamp { display: inline-block; } }
.pg-stamp-sm { display: inline-block; margin-top: 28px; }
@media (min-width: 900px) { .pg-stamp-sm { display: none; } }

.pg-body { padding-top: 64px; padding-bottom: 96px; }
@media (min-width: 900px) { .pg-body { padding-top: 80px; padding-bottom: 112px; } }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 760px) { .pg-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (min-width: 960px) { .pg-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
@media (min-width: 760px) and (max-width: 959.98px) { .pg-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px; }
@media (min-width: 600px) { .pg-card { padding: 28px; } }
.pg-card-no { font: 500 10px/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--green); }
.pg-card h2, .pg-card h3 { font: 400 26px/1.12 var(--serif); color: var(--ink); }
.pg-card p { font: 400 14px/1.65 var(--font); color: var(--ink-2); }
.pg-card .btn-m { align-self: flex-start; margin-top: 8px; }
.pg-card a:not(.btn-m) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.pg-section + .pg-section { margin-top: 72px; }
.pg-section > .exhibit { margin-bottom: 22px; }

/* FAQ rows */
.faq { border-top: 1px solid hsl(var(--ink-c) / .3); }
.faq details { border-bottom: 1px solid hsl(var(--ink-c) / .2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 2px;
  cursor: pointer; list-style: none; font: 400 22px/1.2 var(--serif); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 18px/1 var(--mono); color: var(--green); transition: transform var(--dur-2) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 64ch; padding: 0 2px 20px; font: 400 14.5px/1.7 var(--font); color: var(--ink-2); }
.faq details p a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .faq summary:hover { color: var(--green); } }

/* legal text */
.doc { max-width: 720px; }
.doc h2 { margin-top: 44px; font: 400 28px/1.15 var(--serif); color: var(--ink); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { margin-top: 14px; font: 400 15px/1.75 var(--font); color: var(--ink-2); }
.doc ul { margin: 0; padding-left: 20px; }
.doc li::marker { color: var(--green); }
.doc a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-meta { margin-bottom: 36px; }

/* brand */
.brand-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 760px) { .brand-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.brand-tile { display: flex; flex-direction: column; min-width: 0; }
.brand-view { display: grid; place-items: center; aspect-ratio: 4 / 3; border-bottom: 1px solid hsl(var(--ink-c) / .25); }
.brand-view.is-paper { background: var(--paper-2); }
.brand-view.is-grid { background-color: var(--paper); }
.brand-view.is-deep { background: var(--green-deep); }
.brand-view img { width: 96px; height: 96px; box-shadow: var(--shadow-hard); }
.brand-view.is-deep img { box-shadow: 4px 4px 0 hsl(var(--paper-c) / .85); }
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; }
.brand-lockup img { width: 56px; height: 56px; }
.brand-lockup span { font: 400 40px/1 var(--serif); color: var(--ink); }
.brand-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.brand-bar .label { color: var(--ink-2); }
.brand-dl { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 44px; padding: 0 2px; font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
@media (hover: hover) { .brand-dl:hover { text-decoration: underline; text-underline-offset: 4px; } }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 600px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.swatch { display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; background: var(--paper); border: 1px solid hsl(var(--ink-c) / .4); box-shadow: var(--shadow-hard-sm); cursor: pointer; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
@media (hover: hover) { .swatch:hover { transform: translate(-1px, -1px); box-shadow: 3.5px 3.5px 0 var(--ink); } }
.swatch-chip { display: block; height: 84px; border-bottom: 1px solid hsl(var(--ink-c) / .25); }
.swatch-meta { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; min-width: 0; }
.swatch-name { font: 400 18px/1.15 var(--serif); color: var(--ink); }
.swatch-hex { font: 400 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.type-rows { border-top: 1px solid hsl(var(--ink-c) / .3); }
.type-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px 0; border-bottom: 1px solid hsl(var(--ink-c) / .2); }
@media (min-width: 760px) { .type-row { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: baseline; } }
.type-sample { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.type-sample.is-serif { font: 400 clamp(36px, 6vw, 56px)/1.05 var(--serif); }
.type-sample.is-serif em { color: var(--green); }
.type-sample.is-mono { font: 400 13px/1.6 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.type-sample.is-sans { font: 400 16px/1.65 var(--font); color: var(--ink-2); max-width: 56ch; }
.covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 600px) { .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .covers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cover-card { min-width: 0; margin: 0; padding: 8px 8px 0; background: var(--paper); border: 1px solid hsl(var(--ink-c) / .45); box-shadow: var(--shadow-hard-sm); }
.cover-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.cover-card figcaption { padding: 8px 2px 10px; font: 400 9.5px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); overflow-wrap: anywhere; }

/* 404 */
.nf { min-height: 62vh; display: flex; align-items: center; }
.nf .pg-hero-in { width: 100%; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
@media (max-width: 479.98px) { .nf-actions .btn-m, .pg-actions .btn-m { flex: 1 1 100%; } }
.pg-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
