/* MERCHINT landing page.

   Values are copied from frontend/src/design/tokens.css rather than
   imported, because this page ships as a standalone static site to
   Cloudflare Pages and cannot reach the Next.js build. Night only: there is
   no theme switch on a one page site, and night is the working default.

   Mobile first. Base rules are the phone; min-width queries add to them.
   Hairlines and type scale carry the structure. No boxes, no card grid. */

:root {
  --m-void: #05070a;
  --m-void-deep: #020406;
  --m-ink: #eceae3;
  --m-muted: #98a2ac;
  --m-faint: #646e78;
  --m-accent: #00b4d8;
  --m-accent-hot: #00f5d4;
  --m-mark-bars: #00f5d4;
  --m-mark-stem: #ff006e;
  --m-hairline: rgba(154, 163, 172, 0.2);
  --m-hairline-strong: rgba(154, 163, 172, 0.36);

  --m-measure: 34rem;
  --m-gap: 1.5rem;
}

/* Resets carry no specificity, so a later single class always wins. A
   `.m-band p` style reset once flattened every margin on a sibling build. */
:where(body, h1, h2, h3, p, ul, ol, li, figure) {
  margin: 0;
  padding: 0;
}
:where(ul, ol) {
  list-style: none;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--m-void);
  color: var(--m-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The wordmark. The E is three bars and the I is one stem, per the token
   file's note that both letters are marks rather than type. */
.m-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  color: var(--m-ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-decoration: none;
}

.m-mark-e {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 0.52em;
  height: 0.72em;
  margin: 0 0.1em 0 0.02em;
}

.m-mark-e i {
  display: block;
  height: 0.1em;
  background: var(--m-mark-bars);
}

.m-mark-e i:nth-child(2) {
  width: 78%;
}

.m-mark-i {
  display: inline-block;
  width: 0.11em;
  height: 0.72em;
  margin: 0 0.16em;
  background: var(--m-mark-stem);
  transform: translateY(0.08em);
}

.m-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.m-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-gap);
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid var(--m-hairline);
}

.m-top-link {
  color: var(--m-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.m-top-link:hover,
.m-top-link:focus-visible {
  color: var(--m-accent-hot);
}

main {
  display: block;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.m-hero {
  padding: 3.5rem 0 2.5rem;
}

.m-kicker {
  color: var(--m-accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  max-width: var(--m-measure);
  margin-top: 1.25rem;
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.m-lede {
  max-width: var(--m-measure);
  margin-top: 1.25rem;
  color: var(--m-muted);
}

.m-rule {
  height: 1px;
  border: 0;
  background: var(--m-hairline);
}

.m-band {
  padding: 2.75rem 0;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.m-band > p {
  max-width: var(--m-measure);
  margin-top: 1rem;
  color: var(--m-muted);
}

.m-price {
  margin-top: 1rem;
  color: var(--m-ink);
  font-size: 1.6rem;
  line-height: 1.2;
}

.m-price strong {
  color: var(--m-accent-hot);
  font-weight: 700;
}

.m-price span {
  color: var(--m-faint);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

/* The numbered list is drawn with a counter and a hairline rather than a
   card, so the page reads as one column of evidence. */
.m-list {
  counter-reset: item;
  margin-top: 2rem;
}

.m-list > li {
  counter-increment: item;
  position: relative;
  padding: 1.4rem 0 1.4rem 2.6rem;
  border-top: 1px solid var(--m-hairline);
}

.m-list > li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  left: 0;
  color: var(--m-accent);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.m-refusals {
  margin-top: 2rem;
}

.m-refusals > li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--m-hairline);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
}

.m-list p,
.m-refusals p {
  margin-top: 0.4rem;
  max-width: var(--m-measure);
  color: var(--m-muted);
}

.m-contact {
  padding-bottom: 3.5rem;
}

.m-cta {
  margin-top: 1.75rem;
}

.m-button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--m-accent);
  color: var(--m-accent-hot);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.m-button:hover,
.m-button:focus-visible {
  border-color: var(--m-accent-hot);
  color: var(--m-void);
  background: var(--m-accent-hot);
}

:focus-visible {
  outline: 2px solid var(--m-accent-hot);
  outline-offset: 3px;
}

.m-foot {
  margin-top: 1rem;
  padding: 1.75rem 1.25rem 2.5rem;
  border-top: 1px solid var(--m-hairline);
  color: var(--m-faint);
  font-size: 0.82rem;
}

.m-foot p + p {
  margin-top: 0.3rem;
}

@media (min-width: 40rem) {
  .m-top {
    padding: 1.5rem 2rem;
  }

  main {
    padding: 0 2rem;
  }

  .m-hero {
    padding: 5.5rem 0 3.5rem;
  }

  h1 {
    font-size: 2.85rem;
  }

  .m-lede {
    font-size: 1.08rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .m-band {
    padding: 3.5rem 0;
  }

  .m-foot {
    padding: 2rem 2rem 3rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .m-top-link,
  .m-button {
    transition: color 120ms ease, background-color 120ms ease,
      border-color 120ms ease;
  }
}
