/* =====================================================================
   MoverScan · site.css  (MARKETING / STOREFRONT ONLY)
   Loaded by views/_site_head alongside the app's styles.css. This file is
   PURELY ADDITIVE marketing chrome for the public pages (landing, pricing,
   terms / privacy / compliance): big-type scale, section + hero rhythm,
   feature-icon chips, pricing cards w/ a highlighted tier, FAQ <details>,
   honesty status tags, compliance notices, and an inverted CTA band.

   RULES THIS FILE HONORS:
   · MONOCHROME ONLY — black / white / neutral grays. No colored accents.
   · It NEVER redefines an app class from styles.css (.btn*, .card, .badge*,
     .pill, .brand, .field, .stat, .hero/.ms-hero, .divider, ...). The only
     references to app classes are SCOPED contextual overrides inside the
     inverted .band--ink (so buttons stay legible on black) — additive, not
     a base redefinition.
   · Colors come from a new --mk-* token layer that simply re-exports the
     app's --ms-* scale (styles.css) with literal fallbacks, so the
     storefront is correct & monochrome even if this file parses first, and
     automatically tracks the app palette whenever styles.css is present.
   ===================================================================== */

/* ---------- marketing token layer (new vars only) ---------- */
:root {
  /* surfaces + ink — mirrored from styles.css, with monochrome fallbacks */
  --mk-white:         var(--ms-white,         #ffffff);
  --mk-bg:            var(--ms-app-bg,        #fafafa); /* neutral-50  */
  --mk-fill:          var(--ms-fill,          #f5f5f5); /* neutral-100 */
  --mk-ink:           var(--ms-ink,           #171717); /* neutral-900 · "black" */
  --mk-ink-strong:    var(--ms-ink-strong,    #404040); /* neutral-700 */
  --mk-ink-soft:      var(--ms-ink-soft,      #525252); /* neutral-600 */
  --mk-muted:         var(--ms-muted,         #737373); /* neutral-500 */
  --mk-faint:         var(--ms-faint,         #a3a3a3); /* neutral-400 */
  --mk-border:        var(--ms-border,        #e5e5e5); /* neutral-200 */
  --mk-border-strong: var(--ms-border-strong, #d4d4d4); /* neutral-300 */

  /* marketing-only layout + scale tokens (new) */
  --mk-shell:        72rem;                      /* matches app max-w-6xl   */
  --mk-gutter:       clamp(1.25rem, 4vw, 2rem);
  --mk-section:      clamp(4rem, 8vw, 7rem);     /* section vertical rhythm */
  --mk-section-sm:   clamp(2.5rem, 5vw, 4rem);
  --mk-radius:       0.75rem;                    /* = app .card (rounded-xl) — one card radius across surfaces */
  --mk-radius-lg:    1.5rem;                      /* reserved ONLY for the big inverted CTA band / hero         */
}

/* =====================================================================
   1 · SHELL + SECTION RHYTHM
   ===================================================================== */
.site-shell {
  width: 100%;
  max-width: var(--mk-shell);
  margin-inline: auto;
  padding-inline: var(--mk-gutter);
}

.site-section { padding-block: var(--mk-section); }
.site-section--sm { padding-block: var(--mk-section-sm); }
.site-section--flush-top { padding-top: 0; }
.site-section--flush-bottom { padding-bottom: 0; }
.site-section--bordered { border-top: 1px solid var(--mk-border); }

/* =====================================================================
   2 · BIG-TYPE SCALE  (fluid, tight-tracked, monochrome)
   ===================================================================== */
.display-1,
.display-2,
.display-3 {
  color: var(--mk-ink);
  font-weight: 800;
  text-wrap: balance;
  margin: 0;
}
.display-1 {
  font-size: clamp(2.75rem, 6vw + 0.5rem, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.display-2 {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.display-3 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* lede / subhead — calm, readable, secondary ink */
.lede {
  color: var(--mk-ink-soft);
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.375rem);
  line-height: 1.55;
  font-weight: 400;
  max-inline-size: 42rem;
}

/* uppercase tracked eyebrow label (text, not the app .pill) */
.eyebrow {
  display: inline-block;
  color: var(--mk-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* centered section header block */
.section-head {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 0.85rem; }
.section-head .section-lede,
.section-head .lede { margin-top: 1rem; }
.section-head .lede,
.section-head .section-lede { margin-inline: auto; }
.section-head--start {
  text-align: left;
  margin-inline: 0;
}
.section-head--start .lede,
.section-head--start .section-lede { margin-inline: 0; }

/* section title + lede aliases (so views can stay semantic) */
.section-title {
  color: var(--mk-ink);
  font-size: clamp(1.875rem, 3vw + 0.5rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}
.section-lede {
  color: var(--mk-ink-soft);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.2rem);
  line-height: 1.6;
  max-inline-size: 42rem;
}

/* small text helpers */
.measure { max-inline-size: 42rem; }
.measure-wide { max-inline-size: 52rem; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* =====================================================================
   3 · HERO
   ===================================================================== */
.site-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 9vw, 8rem) var(--mk-section);
  text-align: center;
}
.site-hero .lede { margin-inline: auto; }

/* optional faint monochrome grid that fades out — opt in via --grid */
.site-hero--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--mk-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--mk-border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 85% at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 85% at 50% 0%, #000 0%, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}

/* =====================================================================
   4 · HONESTY STATUS TAGS  (live vs rolling-out — mandatory in the brief)
   live = solid black · rolling out = dashed hairline outline (clearly NOT yet)
   Used by the storefront coverage modules AND the app's scan-result
   fragment (limited-coverage state) — the app chrome loads this sheet too,
   so .tag--soon is the one product-wide "not yet" vocabulary; the credit
   meter's empty state (styles.css) borrows the same dashed convention.
   ===================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.tag--live {
  background: var(--mk-ink);
  color: var(--mk-white);
  border-color: var(--mk-ink);
}
.tag--soon {
  background: var(--mk-white);
  color: var(--mk-ink-soft);
  border-color: var(--mk-border-strong);
  border-style: dashed;
}

/* =====================================================================
   5 · FEATURES — hairline grid + icon chips
   Mirrors the app's gap:1px-on-neutral-200 hairline technique (.stat).
   ===================================================================== */
.feature-grid {
  display: grid;
  gap: 1px;
  background: var(--mk-border);
  border: 1px solid var(--mk-border);
  border-radius: var(--mk-radius);
  overflow: hidden;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-grid > .feature {
  background: var(--mk-white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background-color 0.18s ease;
}
.feature-grid > .feature:hover { background: var(--mk-bg); }

/* icon chip — line-art SVG (stroke=currentColor) on a rounded hairline tile */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--mk-border-strong);
  background: var(--mk-white);
  color: var(--mk-ink);
}
.feature-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}
/* solid (inverted) variant for emphasis */
.feature-icon--solid {
  background: var(--mk-ink);
  border-color: var(--mk-ink);
  color: var(--mk-white);
}

.feature-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--mk-ink);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.feature-text {
  color: var(--mk-ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* =====================================================================
   6 · PRICING — cards + highlighted tier
   New classes only; does not touch the app .card.
   ===================================================================== */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}
/* One plan, one story: the storefront sells a single $17/mo card (plus the
   free-trial card), so tracks are content-capped at 24rem and the GROUP
   centers instead of stretching into forced thirds — 1 card centers, 2 sit
   side-by-side as soon as ~51rem of content width exists (they stack,
   centered, in the narrow 768–~856px window), anything extra wraps
   centered. Screens that still stamp md:grid-cols-3 inline keep their
   legacy 3-up until they're rebuilt (the later-injected CDN utility wins). */
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(0, 24rem));
    justify-content: center;
    gap: 1.5rem;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  padding: 1.75rem;
  background: var(--mk-white);
  border: 1px solid var(--mk-border);
  border-radius: var(--mk-radius);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* = app .card shadow-sm — same card family across surfaces */
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.price-card:hover {
  border-color: var(--mk-border-strong);
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.18);
}

/* highlighted tier — black frame, deeper lift, raised on wide screens */
.price-card--featured {
  border-color: var(--mk-ink);
  border-width: 1.5px;
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.35);
}
@media (min-width: 768px) {
  .price-card--featured { transform: translateY(-0.5rem); }
}

/* selected-state guard — app billing marks the CURRENT plan with the
   border-neutral-900 + ring-1 ring-neutral-900 utilities (0,1,0), which
   .price-card:hover above (0,2,0) would otherwise strip mid-hover,
   making the current plan look unselected under the pointer. These
   higher-specificity rules keep the ink frame + 1px ring while hovered
   (same lift as other cards). .price-card--current is the explicit
   modifier equivalent for templates that prefer a single class. */
.price-card--current {
  border-color: var(--mk-ink);
  box-shadow: 0 0 0 1px var(--mk-ink), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.price-card--current:hover,
.price-card.border-neutral-900:hover,
.price-card.ring-neutral-900:hover {
  border-color: var(--mk-ink);
  box-shadow: 0 0 0 1px var(--mk-ink), 0 10px 30px -16px rgba(0, 0, 0, 0.18);
}
/* same defect class: the featured tier keeps its black frame + deep lift */
.price-card--featured:hover {
  border-color: var(--mk-ink);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.35);
}

/* "Most popular" flag straddling the top edge */
.price-flag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: var(--mk-ink);
  color: var(--mk-white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-name {
  color: var(--mk-ink);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  color: var(--mk-ink);
}
.price-value {
  font-size: clamp(2.25rem, 3vw + 1rem, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price-period {
  color: var(--mk-muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.price-note {
  color: var(--mk-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* feature checklist — monochrome check (mask, so it follows ink) */
.price-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.price-features li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--mk-ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.05rem;
  height: 1.05rem;
  background-color: var(--mk-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* not-included row — muted minus */
.price-features li.is-off {
  color: var(--mk-muted);
}
.price-features li.is-off::before {
  background-color: var(--mk-faint);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

/* push the CTA to the bottom of every card so a row stays aligned */
.price-foot {
  margin-top: auto;
  display: grid;
  gap: 0.5rem;
}

/* =====================================================================
   7 · FAQ  ( native <details> / <summary> — scoped under .faq )
   ===================================================================== */
.faq { border-top: 1px solid var(--mk-border); }
.faq-item { border-bottom: 1px solid var(--mk-border); }

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  color: var(--mk-ink);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--mk-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* chevron marker (mask → follows ink), rotates open */
.faq-item > summary::after {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background-color: var(--mk-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq-item > summary:hover::after { background-color: var(--mk-ink); }
.faq-item[open] > summary::after {
  transform: rotate(180deg);
  background-color: var(--mk-ink);
}

.faq-answer {
  padding: 0 0.25rem 1.25rem;
  color: var(--mk-ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  max-inline-size: 52rem;
}
.faq-item[open] .faq-answer { animation: mk-faq 0.22s ease both; }
@keyframes mk-faq {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   8 · INVERTED CTA BAND  (full-width black section — still monochrome)
   Scoped, contextual overrides keep app buttons/pills legible on black.
   These are descendant modifiers — NOT base-class redefinitions.
   ===================================================================== */
.band--ink {
  background: var(--mk-ink);
  color: var(--mk-white);
}
.band--rounded { border-radius: var(--mk-radius-lg); }

.band--ink :is(.display-1, .display-2, .display-3, .section-title,
               .feature-title, .price-name) { color: var(--mk-white); }
.band--ink :is(.lede, .section-lede, .feature-text, .price-note, .fineprint) {
  color: rgba(255, 255, 255, 0.72);
}
.band--ink .eyebrow { color: rgba(255, 255, 255, 0.6); }
.band--ink .divider {
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.18) 18%,
    rgba(255, 255, 255, 0.18) 82%,
    transparent
  );
}

/* buttons inverted on the dark band */
.band--ink .btn-primary {
  background: var(--mk-white);
  color: var(--mk-ink);
  border-color: var(--mk-white);
}
.band--ink .btn-primary:hover {
  background: var(--mk-border);
  border-color: var(--mk-border);
}
.band--ink .btn-ghost {
  background: transparent;
  color: var(--mk-white);
  border-color: rgba(255, 255, 255, 0.45);
}
.band--ink .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}
.band--ink .pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.22);
}

/* =====================================================================
   9 · NOTICES + COMPLIANCE FINE PRINT
   .notice--template carries the mandatory "template, not legal advice" note.
   .fineprint carries the records-lag / signal-not-confirmation / not-FCRA cues.
   ===================================================================== */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--mk-border-strong);
  border-radius: 0.75rem;
  background: var(--mk-bg);
  color: var(--mk-ink-soft);
  font-size: 0.875rem;
  line-height: 1.55;
}
.notice strong { color: var(--mk-ink); font-weight: 600; }
.notice--template { border-style: dashed; }
.notice__mark {
  flex: none;
  margin-top: 0.05rem;
  color: var(--mk-ink);
}

.fineprint {
  color: var(--mk-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}
.fineprint a {
  color: var(--mk-ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fineprint a:hover { color: var(--mk-ink); }

/* =====================================================================
   10 · SITE FOOTER  (storefront chrome via _site_foot)
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--mk-border);
  background: var(--mk-white);
  color: var(--mk-muted);
  font-size: 0.875rem;
}
.site-footer h4 {
  color: var(--mk-ink);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer a {
  color: var(--mk-ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-footer a:hover {
  color: var(--mk-ink);
  border-bottom-color: currentColor;
}

/* =====================================================================
   11 · MOTION + FOCUS POLISH  (accessibility — presentation only)
   Give keyboard users a clear, on-brand focus ring on the storefront's
   text links (matches the FAQ summary ring), and honor reduced-motion so
   hover lifts / the FAQ reveal calm down for users who ask for less motion.
   ===================================================================== */
.site-footer a:focus-visible,
.fineprint a:focus-visible {
  outline: 2px solid var(--mk-ink);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .feature-grid > .feature,
  .price-card,
  .faq-item > summary::after,
  .site-footer a,
  .fineprint a {
    transition-duration: 0.01ms;
  }
  .faq-item[open] .faq-answer { animation: none; }
}
