/* ==========================================================
   VERYQUERY · marketing site
   Loaded after cdn.veryquery.com/css/v1/{fonts,design-system}.css.

   This file is intentionally lean: tokens, .btn, .field,
   .eyebrow, .prose, scrollbar and ambient glow all live in the
   shared layer. Site CSS only owns:
     · nav layout (marketing nav, not the app shell)
     · hero composition + the query-feed visual
     · sec/grid layout primitives + the section-chip header
     · ledger table layout (editorial three-column)
     · access form grid
     · footer layout
     · demo card chassis with per-store signature accents
========================================================== */

.sec__inner,
.hero__grid,
.foot__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================
   SITE NAV
   The outer chrome (`.app__header` + `.app__mark` +
   `.app__header-end`) is the canonical contract shared with
   admin / dashboard / help / docs, defined in
   cdn/css/v1/components.css. This block defines the
   marketing-only pieces that sit *inside* `.app__header-end`:
   the inline link cluster, the primary "Start" CTA pill, and
   the mobile hamburger panel.
========================================================== */

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-mid);
}
.site-nav a {
  transition: color 160ms var(--ease-out);
}
.site-nav a:not(.site-nav__cta):hover { color: var(--ink); }

/* Primary CTA pill - iOS-feel filled accent with subtle glow.
   Mirrors shared .btn--primary but inline-sized for the nav.
   `a.site-nav__cta` (element + class) ties the specificity of
   the canonical `.app__header-end a` rule in components.css so
   the cascade order picks site/styles.css and the white text
   wins on the blue pill. Without the element selector, the
   class-only form loses on specificity and the pill turns grey. */
a.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.9375rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.40), 0 0.375rem 1rem rgba(10, 132, 255, 0.28);
  transition: background 160ms var(--ease-out), transform 80ms var(--ease-out);
}
a.site-nav__cta:hover { background: var(--accent-deep); color: #fff; }
a.site-nav__cta:active { transform: scale(0.97); }
.site-nav__cta-arrow {
  width: 0.75em;
  height: 0.75em;
  flex-shrink: 0;
}

.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-md);
  font: inherit;
  line-height: 1;
}
.site-nav__toggle:hover { background: var(--paper-1); }
.site-nav__toggle-icon { display: block; width: 1.125rem; height: 0.75rem; }
.site-nav__toggle-icon line { stroke: currentColor; stroke-width: 1.5; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-icon-bars { display: none; }
.site-nav__toggle-icon-x { display: none; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-icon-x { display: block; }

@media (max-width: 60rem) {
  .site-nav__toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4) var(--gutter) var(--s-5);
    background: var(--paper-1);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .app__header[data-nav-open="true"] .site-nav { display: flex; }
  .site-nav a { padding: var(--s-3) 0; color: var(--ink); }
  .site-nav__cta { margin-top: var(--s-3); justify-content: center; }
}

/* ==========================================================
   HERO
========================================================== */
.hero { padding-block: clamp(var(--s-6), 6vw, var(--s-8)) var(--s-9); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(var(--s-6), 4vw, var(--s-8));
  align-items: start;
}
@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

.hero__head {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero__head em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

.hero__sub {
  margin-top: var(--s-5);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.55;
  max-width: 44ch;
  color: var(--ink-soft);
  font-weight: 400;
}

.hero__ctas {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.hero__scroll {
  margin-top: var(--s-8);
  margin-inline: auto;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-2xs);
  color: var(--ink-ghost);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  animation: drift 2.4s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(0.375rem); }
}

/* ---------- Hero viz · query feed ----------
   Framed panel with a soft accent glow holding a faux search
   field; script.js types each everyday shopper phrase out, holds,
   clears, and types the next, for a feel for natural-language
   search without staging a fake result. */
.hero__viz {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(15rem, 21vw, 19rem);
  background: var(--paper-1);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: 0 1.5rem 4rem -1.5rem rgba(10, 132, 255, 0.22), inset 0 0 0 1px var(--rule-soft);
  overflow: hidden;
}
.hero__viz::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 50% 45%, var(--accent-tint), transparent 55%);
  pointer-events: none;
  opacity: 0.55;
}
.hero__viz-cap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  color: var(--ink-ghost);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.qfeed {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
}
.qfeed__field {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--s-4);
  background: var(--paper-0);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qfeed__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-right: var(--s-3);
  color: var(--ink-ghost);
}
.qfeed__text {
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  line-height: 1.4;
  min-height: 1.4em;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.qfeed__caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 0.12em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: qcaret 1.05s steps(1, end) infinite;
}
@keyframes qcaret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.qfeed__result {
  display: flex;
  align-items: center;
  min-height: 1.875rem;
  gap: var(--s-2);
  margin: 0;
  padding-left: calc(var(--s-4) + 1rem + var(--s-3));
  font-family: var(--font-mono);
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.qfeed__result.is-shown { opacity: 1; transform: none; }
.qfeed__result-arrow { color: var(--ink-ghost); }
.qfeed__result-cat { color: var(--accent); font-weight: 600; }
.qfeed__result-variants {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.qfeed__result-variant {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-full);
  color: var(--ink-mid);
  font-weight: 500;
}
.qfeed__result-swatch {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.qfeed__result-swatch--olive    { background: #6f7d3a; }
.qfeed__result-swatch--brick    { background: #a14b3d; }
.qfeed__result-swatch--cognac   { background: #a9683c; }
.qfeed__result-swatch--charcoal { background: #3b3f45; }
.qfeed__result-swatch--forest   { background: #2f4a36; }
.qfeed__result-swatch--tan      { background: #c4a079; }
@media (prefers-reduced-motion: reduce) {
  .qfeed__caret { animation: none; }
  .qfeed__result { transition: none; }
}

/* ==========================================================
   SECTIONS · base
========================================================== */
.sec {
  padding-block: clamp(var(--s-8), 9vw, var(--s-9));
  border-top: 1px solid var(--rule);
  position: relative;
}
.sec--alt  { background: var(--paper-1); }
.sec--dark { background: var(--paper-0); }

/* Section header - capsule pill with mono numeral + tag. The
   internal divider reuses the legacy .sec__rule span (which is
   already in the markup), so HTML stays put. */
.sec__head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  margin-bottom: var(--s-6);
  border-radius: var(--radius-full);
  background: var(--paper-1);
  border: 1px solid var(--rule);
  font-size: var(--t-xs);
}
.sec--alt .sec__head { background: var(--paper-2); }
.sec__num {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.sec__rule {
  display: inline-block;
  width: 1px;
  height: 0.75rem;
  background: var(--rule);
  flex-shrink: 0;
}
.sec__tag {
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

.sec__h {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--s-5);
}
.sec__h em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.sec__h--wide { max-width: 20ch; }
.sec__lede {
  margin-top: var(--s-5);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  max-width: 62ch;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 400;
}
.sec__lede em {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}

.sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: start;
}
@media (max-width: 56.25rem) {
  .sec__grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
.sec__aside { padding-top: var(--s-3); }

/* Pullquote */
.pullquote {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-6);
  position: relative;
}
.sec--alt .pullquote { background: var(--paper-0); }
.pullquote::before {
  content: "";
  position: absolute;
  top: var(--s-5);
  bottom: var(--s-5);
  left: 0;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.pullquote blockquote {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.pullquote figcaption {
  margin-top: var(--s-4);
  font-size: var(--t-xs);
  color: var(--ink-ghost);
  font-weight: 500;
}

/* Figlist (§04 sidebar). Negated values get strike-through. */
.figlist {
  margin-top: var(--s-7);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(var(--s-5), 4vw, var(--s-7));
}
@media (max-width: 40rem) {
  .figlist { grid-template-columns: 1fr; }
}
.figlist__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-sm);
  gap: var(--s-3);
}
.figlist__k { color: var(--ink-mid); font-weight: 400; }
.figlist__v { color: var(--ink); font-weight: 500; text-align: right; }
.figlist__v--strike {
  color: var(--ink-ghost);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* ==========================================================
   §06 INTEGRATION · two-path cards + shared list helpers
   The .way cards (Shopify / API), plus the hairline .cap__list /
   .way__list bullet style reused by the §03/§04 value sections.
========================================================== */
.two-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-5), 2vw, var(--s-6));
  margin-top: var(--s-6);
}
@media (max-width: 56.25rem) {
  .two-ways { grid-template-columns: 1fr; }
}

.way {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s-5), 2.5vw, var(--s-6));
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.sec--alt .way { background: var(--paper-0); }
.way:hover { border-color: rgba(255, 255, 255, 0.14); }

.way__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.way__top {
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-2);
}

.way__tag {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.way__h {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.way__p {
  margin: 0;
  font-size: var(--t-md);
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 400;
  max-width: 42ch;
}

.cap__list,
.way__list {
  margin: 0;
  padding: var(--s-3) 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.cap__list { padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.cap__list li,
.way__list li {
  position: relative;
  padding-left: var(--s-4);
  font-size: var(--t-sm);
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.55;
}
.cap__list li::before,
.way__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625em;
  width: 0.5rem;
  height: 1px;
  background: var(--accent);
}

.way__hint {
  margin: var(--s-3) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: var(--t-xs);
  color: var(--ink-mid);
  font-weight: 400;
}
.way__hint em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}

/* ==========================================================
   §07 LEDGER · three-column editorial table
========================================================== */
.ledger {
  margin-top: var(--s-7);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ledger__head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-6);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.ledger__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-6);
  padding: var(--s-5) 0;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-md);
  color: var(--ink-soft);
  line-height: 1.45;
  font-weight: 400;
  transition: background 160ms;
}
.ledger__row:hover { background: rgba(255, 255, 255, 0.02); }
.ledger__row:last-child { border-bottom: 0; }
.ledger__row em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.ledger__row--sum {
  border-top: 1px solid var(--rule);
  font-size: var(--t-lg);
  color: var(--ink);
  font-weight: 600;
}
.ledger__row--sum em { color: var(--accent); font-weight: 600; }
.ledger__mob {
  display: none;
  font-size: var(--t-2xs);
  color: var(--ink-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--s-1);
  font-weight: 500;
}
@media (max-width: 47.5rem) {
  .ledger__head { display: none; }
  .ledger__row {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
  .ledger__row > div { display: flex; flex-direction: column; }
  .ledger__mob { display: block; }
}

/* ==========================================================
   §08 ACCESS · contact form
========================================================== */
.access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: start;
  margin-top: var(--s-6);
}
@media (max-width: 56.25rem) { .access { grid-template-columns: 1fr; } }

.access__text .prose {
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 50ch;
}
.access__text .prose a {
  color: var(--accent);
  font-weight: 500;
}
.access__text .prose a:hover { color: var(--accent-deep); }

.access__meta {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-size: var(--t-sm);
}
.access__meta span {
  color: var(--ink-mid);
  font-weight: 500;
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.access__meta a {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 500;
}
.access__meta a:hover { color: var(--accent-deep); }

.access__form {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-4);
  /* L1 - form sits on the page (L0); inputs inside land at L2 via the
     design-system safety-net, lifting to L3 on hover/focus. */
  background: var(--paper-1);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
}
.access__form .field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.access__form .field--wide { grid-column: 1 / -1; }
.access__form .field__k {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0;
}
.access__submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: var(--s-2);
}
.access__confirm {
  grid-column: 1 / -1;
  font-size: var(--t-sm);
  color: var(--accent);
  font-weight: 500;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 220ms;
}
.access__confirm.is-shown { opacity: 1; }
@media (max-width: 40rem) {
  .access__form { grid-template-columns: 1fr; }
}

/* Spam honeypot (off-screen) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================
   §05 FIELD · demo catalogs
========================================================== */
.demos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-5), 2vw, var(--s-6));
  margin-top: var(--s-7);
}
@media (max-width: 53.75rem) { .demos { grid-template-columns: 1fr; } }

/* Each store has a signature accent color borrowed from its
   storefront. The top bar, kicker, and CTA all pick this up
   so you get a small visual preview of the brand. */
.demo-card {
  --demo-accent: var(--accent);
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: calc(clamp(var(--s-5), 2.5vw, var(--s-6)) + 0.25rem) clamp(var(--s-5), 2.5vw, var(--s-6)) clamp(var(--s-5), 2.5vw, var(--s-6));
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  overflow: hidden;
  transition: border-color 160ms var(--ease-out);
}
.demo-card:hover { border-color: rgba(255, 255, 255, 0.14); }
.demo-card__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0.25rem;
  background: var(--demo-accent);
}
.demo-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
}
.demo-card__kicker {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--demo-accent);
}
.demo-card__count {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.04em;
  color: var(--ink-ghost);
  font-variant-numeric: tabular-nums;
}
.demo-card__h {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  margin: var(--s-1) 0 var(--s-1);
}
.demo-card__blurb {
  font-size: var(--t-md);
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 var(--s-3);
  max-width: 44ch;
  font-weight: 400;
}
.demo-card__try-label {
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin: var(--s-3) 0 var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.demo-card__queries {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.demo-card__queries li a {
  font-style: italic;
  font-size: var(--t-md);
  color: var(--ink);
  line-height: 1.4;
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-2);
  font-weight: 400;
  transition: color 220ms, transform 220ms;
}
.demo-card__queries li a span {
  color: var(--demo-accent);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.demo-card__queries li a:hover {
  color: var(--demo-accent);
  transform: translateX(0.1875rem);
}
.demo-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0.5625rem 1rem;
  background: var(--demo-accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: filter 220ms, transform 80ms var(--ease-out);
}
.demo-card__cta:hover { filter: brightness(1.12); }
.demo-card__cta:active { transform: scale(0.98); }
.demo-card__arrow {
  width: 0.875em;
  height: 0.875em;
  flex-shrink: 0;
}

/* Per-store signature accents - tuned so each reads cleanly on
   dark paper but still cues the storefront's identity. */
.demo-card--fashion   { --demo-accent: #E5E5EA; }   /* off-white, Maison Véga's paper+ink */
.demo-card--sporting  { --demo-accent: #5BD17A; }   /* lichen, Cairn & Compass */
.demo-card--home      { --demo-accent: #C89878; }   /* walnut, Homeward */
.demo-card--cosmetics { --demo-accent: #E0974F; }   /* amber, Meadow Mercantile */
.demo-card--fashion .demo-card__cta { color: var(--paper-0); }

/* ==========================================================
   FOOTER
========================================================== */
.foot {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-8) var(--s-6);
  background: var(--paper-1);
}
.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  grid-template-areas:
    "brand cols"
    "tag   cols"
    "base  base";
  column-gap: var(--s-7);
  row-gap: var(--s-4);
  align-items: start;
}
@media (max-width: 51.25rem) {
  .foot__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "tag"
      "cols"
      "base";
  }
}
.foot__brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1;
}
.foot__logo {
  height: 1.1em;
  width: auto;
  display: block;
}
.foot__tag {
  grid-area: tag;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 32ch;
  font-weight: 400;
}
.foot__cols {
  grid-area: cols;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
}
@media (max-width: 40rem) { .foot__cols { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.foot__cols > div {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.foot__k {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: var(--s-1);
}
.foot__cols a {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  transition: color 160ms;
  line-height: 1.5;
}
.foot__cols a:hover { color: var(--ink); }
.foot__base {
  grid-area: base;
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  color: var(--ink-ghost);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   SCROLL REVEAL · JS-only; no-JS gets content immediately
========================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   PROSE PRIMITIVES · bullet lists, inline email, code chips
========================================================== */
.bullets {
  margin: var(--s-3) 0;
  padding-left: var(--s-5);
  list-style: disc;
}
.bullets > li {
  margin-bottom: var(--s-2);
  color: var(--ink-soft);
  line-height: 1.55;
}
.bullets a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.bullets a:hover { color: var(--accent-deep); }

.email-link {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-inline: 0.15em;
}
.email-link:hover { color: var(--accent-deep); }

.prose code,
.bullets code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  margin-inline: 0.15em;
  padding: 0.05em 0.3em;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.25rem;
  color: var(--ink);
}

.prose strong,
.bullets strong,
.prose em,
.bullets em { margin-inline: 0.04em; }

.sec[id] { scroll-margin-top: 5rem; }


/* ==========================================================
   DELTAVISOR HOME PAGE (folded in from home.css)
========================================================== */
/* ==========================================================
   DeltaVisor · home page (site/index.html)
   Layers on the shared design system (cdn.deltavisor.com/css/v1).
   OLED ground, iOS-blue accent, Geist, capsule pills, all inherited.
   This file owns only the home-specific pieces: the live map+feed
   instrument, the filter chips, the signal colour key, and the
   marketing sections below it.
========================================================== */

:root {
  /* Signal colors are the shared --eg-* event-group vars from the design system;
     see .hl-swatch below. */
  --home-max: 78rem;
}

/* keep the sticky header from hiding anchor targets */
.hsec[id], .hero-live[id] { scroll-margin-top: 5rem; }

/* ---------- shared bits ---------- */
.hl-swatch {
  width: 0.5rem; height: 0.5rem; border-radius: var(--radius-full);
  display: inline-block; flex: none; background: var(--ink-mid);
  box-shadow: 0 0 0.375rem currentColor;
}
.hl-swatch[data-g="permits"]     { background: var(--eg-permits);     color: var(--eg-permits); }
.hl-swatch[data-g="demolitions"] { background: var(--eg-demolitions); color: var(--eg-demolitions); }
.hl-swatch[data-g="cofo"]        { background: var(--eg-cofo);        color: var(--eg-cofo); }
.hl-swatch[data-g="sales"]       { background: var(--eg-sales);       color: var(--eg-sales); }
.hl-swatch[data-g="violations"]  { background: var(--eg-violations);  color: var(--eg-violations); }
.hl-swatch[data-g="distress"]    { background: var(--eg-distress);    color: var(--eg-distress); }
.hl-swatch[data-g="vacancy"]     { background: var(--eg-vacancy);     color: var(--eg-vacancy); }

.hl-live-dot {
  width: 0.5rem; height: 0.5rem; border-radius: var(--radius-full);
  background: var(--status-success); flex: none; display: inline-block;
  box-shadow: 0 0 0 0 var(--status-success);
  animation: hl-pulse 2.6s var(--ease-out) infinite;
}
@keyframes hl-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(50, 209, 122, 0.5); }
  70%  { box-shadow: 0 0 0 0.5rem rgba(50, 209, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(50, 209, 122, 0); }
}
@media (prefers-reduced-motion: reduce) { .hl-live-dot { animation: none; } }

/* ==========================================================
   HERO · the live instrument
========================================================== */
.hero-live {
  max-width: var(--home-max);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, var(--s-8)) var(--gutter) var(--s-7);
  display: flex; flex-direction: column;
  gap: var(--s-5);
}
.hero-live__head { display: flex; flex-direction: column; gap: var(--s-3); max-width: 46rem; }
.hl-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--t-xs); color: var(--ink-mid); font-weight: 500;
}
.hero-live h1 {
  font-size: clamp(2.75rem, 7vw, var(--t-6xl));
  line-height: 1.0; letter-spacing: -0.035em; font-weight: 650;
}
.hero-live h1 em { color: var(--accent-deep); font-style: normal; }
.hl-sub {
  font-size: clamp(1rem, 1.4vw, var(--t-lg));
  color: var(--ink-mid); line-height: 1.55; max-width: 52ch;
}
.hl-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-2); }
.hl-ctas--center { justify-content: center; }
.hl-ctas .btn { padding: 0.625rem 1.125rem; font-size: var(--t-base); }

/* ---- filter chips (the landing lp-chip: rectangular, mono, colour dot + count) ---- */
.hl-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1px solid var(--rule); background: var(--paper-1);
  border-radius: var(--radius-md); padding: 0.35rem 0.7rem;
  font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.lp-chip:hover { background: var(--paper-2); }
.lp-chip[aria-pressed="false"] { opacity: 0.32; }
.lp-chip-n { color: var(--ink-mid); font-variant-numeric: tabular-nums; }

/* ---- the map + feed ---- */
.hl-instrument {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: var(--s-4);
  height: clamp(26rem, 58vh, 38rem);
}
.hl-map-wrap {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-md);
  background: var(--paper-1);
}
/* the region's baked Geoapify static map + a canvas dot overlay (landing approach) */
.hl-map-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hl-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* scale readout beneath the instrument: this live view is one region of many */
.hl-scale {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2.25rem;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
  font-size: var(--t-sm); color: var(--ink-mid);
}
.hl-scale__item { display: inline-flex; align-items: baseline; gap: 0.45rem; }
.hl-scale b {
  color: var(--ink); font-weight: 600; font-size: var(--t-lg);
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.hl-freshness {
  position: absolute; left: 0.875rem; bottom: 0.875rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4375rem 0.75rem; border-radius: var(--radius-full);
  background: var(--bar); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: var(--t-xs); color: var(--ink-soft);
}
.hl-freshness .mono { font-size: var(--t-xs); letter-spacing: 0; }

/* ---- feed ---- */
.hl-feed {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--paper-1); border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.hl-feed__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0.875rem 1rem 0.625rem; border-bottom: 1px solid var(--rule);
}
.hl-feed__title { font-size: var(--t-xs); color: var(--ink-mid); letter-spacing: 0; }
.hl-feed__list {
  list-style: none; margin: 0; padding: 0.375rem;
  overflow-y: auto; flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 0.1875rem;
  scrollbar-width: thin;
}
.hl-row {
  display: grid; grid-template-columns: auto 1fr auto;
  grid-template-areas: "dot kind time" "dot addr addr" "dot meta meta";
  column-gap: 0.625rem; row-gap: 0.125rem;
  padding: 0.625rem 0.75rem; border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease);
  cursor: default; animation: hl-rowin var(--dur-2) var(--ease) both;
}
.hl-row:hover { background: var(--paper-2); }
@keyframes hl-rowin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hl-row { animation: none; } }
.hl-row__dot {
  grid-area: dot; align-self: start; margin-top: 0.3125rem;
  width: 0.5rem; height: 0.5rem; border-radius: var(--radius-full);
}
.hl-row__kind {
  grid-area: kind; font-family: var(--font-mono);
  font-size: var(--t-2xs); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); align-self: baseline;
}
.hl-row__wt { color: var(--ink-mid); text-transform: none; letter-spacing: 0; }
.hl-row__time {
  grid-area: time; font-family: var(--font-mono); font-size: var(--t-2xs);
  color: var(--ink-ghost); white-space: nowrap; align-self: baseline;
}
.hl-row__addr {
  grid-area: addr; font-size: var(--t-sm); color: var(--ink);
  line-height: 1.3; letter-spacing: -0.005em;
}
.hl-row__meta {
  grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: var(--t-xs); color: var(--ink-mid); margin-top: 0.0625rem;
}
.hl-row__val { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-weight: 500; }
.hl-row__who { font-family: var(--font-mono); font-size: var(--t-2xs); color: var(--ink-mid); letter-spacing: 0; }
.hl-row__contact {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: var(--t-2xs); color: var(--status-success);
  padding: 0.0625rem 0.375rem; border-radius: var(--radius-sm);
  background: var(--status-success-bg);
}
.hl-row__abs {
  font-size: var(--t-2xs); color: var(--status-warning);
  padding: 0.0625rem 0.375rem; border-radius: var(--radius-sm);
  background: var(--status-warning-bg);
}
.hl-feed__foot {
  padding: 0.75rem 1rem 0.875rem; border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 0.4375rem;
}
.hl-feed__foot .btn { justify-content: center; }
.hl-feed__disclaimer { font-size: var(--t-2xs); color: var(--ink-ghost); line-height: 1.35; text-align: center; }

@media (max-width: 60rem) {
  .hl-instrument { grid-template-columns: 1fr; height: auto; }
  .hl-map-wrap { height: 22rem; }
  .hl-feed { height: 24rem; }
}

/* ==========================================================
   MARKETING SECTIONS (home-namespaced, no legacy .sec)
========================================================== */
.hsec {
  padding-block: clamp(var(--s-7), 8vw, var(--s-9));
  padding-inline: var(--gutter);
}
.hsec > * { max-width: var(--home-max); margin-inline: auto; }
.hsec--alt { background: var(--paper-1); }
.hsec__head { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-6); max-width: 46rem; }
.hsec__head h2 { font-size: clamp(1.75rem, 3.6vw, var(--t-3xl)); }
.hsec__lede { color: var(--ink-mid); font-size: clamp(1rem, 1.2vw, var(--t-md)); line-height: 1.55; max-width: 56ch; }


/* what you can watch */
/* the catalog reads as a color-keyed reference, not another card grid:
   three columns under hairlines, each item tagged by its signal colour */
.watch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-6); }
.watch-card {
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.watch-card h3 { font-size: var(--t-md); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.watch-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.watch-card li { display: flex; align-items: center; gap: 0.6875rem; font-size: var(--t-base); color: var(--ink-soft); }
.watch-card li .hl-swatch { width: 0.5625rem; height: 0.5625rem; }
@media (max-width: 56rem) { .watch-grid { grid-template-columns: 1fr; gap: var(--s-4); } }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.step { display: flex; flex-direction: column; gap: var(--s-3); }
.step__n {
  width: 2rem; height: 2rem; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent-deep);
  font-size: var(--t-sm); font-weight: 600;
}
.step h3 { font-size: var(--t-lg); margin-bottom: 0.25rem; }
.step p { color: var(--ink-mid); font-size: var(--t-base); line-height: 1.55; }
@media (max-width: 56rem) { .steps { grid-template-columns: 1fr; gap: var(--s-4); } }

/* who it's for */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.who-card {
  padding: var(--s-5); border-radius: var(--radius-lg);
  background: var(--paper-1); box-shadow: inset 0 0 0 1px var(--rule);
  display: flex; flex-direction: column; gap: 0.5rem;
}
/* the two build-and-sell cards lead via a subtle elevation lift, not an accent rail */
.who-card--lead { background: var(--paper-2); }
.who-card h3 { font-size: var(--t-md); color: var(--ink); }
.who-card p { font-size: var(--t-sm); color: var(--ink-mid); line-height: 1.5; }
@media (max-width: 60rem) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .who-grid { grid-template-columns: 1fr; } }

/* cta */
.hsec--cta { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.cta-inner h2 { font-size: clamp(1.75rem, 4vw, var(--t-4xl)); }
.cta-inner .hsec__lede { text-align: center; max-width: 46ch; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding: var(--s-6) var(--gutter); }
.site-foot__inner {
  max-width: var(--home-max); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4);
}
.site-foot__links { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.site-foot__links a { color: var(--ink-mid); font-size: var(--t-sm); }
.site-foot__links a:hover { color: var(--ink); }
.site-foot__fine { flex: 1 1 100%; color: var(--ink-ghost); font-size: var(--t-xs); }

/* reveal-on-scroll (script.js adds .is-in; falls back to adding it to all
   without IntersectionObserver). Hidden state gated on .js so no-JS sees content. */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
