/* mm-hm.com — waitlist landing
   Tokens and layout translated from the design handoff (mm-hm Landing.dc.html). */

:root {
  --bone: #F0E6D6;
  --bone-deep: #E4D8C3;
  --ink: #0A0A0A;
  --ink-70: #0A0A0AB3;
  --ink-60: #0A0A0A99;
  --ink-40: #0A0A0A66;
  --oxblood: #C1121F;

  --font-display: 'Archivo Black', Archivo, system-ui, sans-serif;
  --font-body: Archivo, system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --rule: 2px solid var(--ink);
  --page-max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bone);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; font-weight: inherit; }

[hidden] { display: none !important; }

a {
  color: inherit;
  text-decoration: none;
}
a:hover { color: var(--oxblood); }

input::placeholder { color: var(--ink-40); }

/* ---------- keyframes ---------- */

@keyframes mmhm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes mmhm-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes mmhm-fill-ink {
  0%        { background: transparent; }
  7%        { background: var(--ink); }
  65%, 100% { background: transparent; }
}
@keyframes mmhm-fill-accent {
  0%        { background: transparent; }
  7%        { background: var(--oxblood); }
  65%, 100% { background: transparent; }
}
@keyframes mmhm-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

/* ---------- page frame ---------- */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
}
/* Once the viewport is wider than the sheet, close it with side rules. */
@media (min-width: 1284px) {
  .page {
    border-left: var(--rule);
    border-right: var(--rule);
  }
}

/* ---------- shared primitives ---------- */

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-60);
}
.label--wide { letter-spacing: 0.2em; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: var(--rule);
  padding: 6px 10px;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 18px var(--gutter);
  border-bottom: var(--rule);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand__name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.brand__name:hover { color: var(--ink); }
.brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-60);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.nav__cta {
  background: var(--ink);
  color: var(--bone);
  padding: 8px 14px;
}
.nav__cta:hover { color: var(--bone); background: var(--oxblood); }

/* ---------- hero ---------- */

.hero {
  padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

/* Dot-matrix wordmark: 48 × 7 grid, 112 outlined dots that fill in a left-to-right wave. */
.wordmark {
  display: grid;
  grid-template-columns: repeat(48, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: clamp(2px, 0.35vw, 6px);
  aspect-ratio: 48 / 7;
  width: 100%;
}
.dot {
  display: block;
  grid-area: var(--r) / var(--c);
  background: transparent;
  border: max(2px, 0.16em) solid var(--ink);
  border-radius: 22%;
  animation: mmhm-fill-ink 3.6s ease-out infinite;
  animation-delay: calc((var(--c) - 1) * 0.035s + (var(--r) - 1) * 0.03s);
}
/* Deliberate print-flaw dots (and the hyphen) flash oxblood — intentional, not a bug. */
.dot--accent {
  border-color: var(--oxblood);
  animation-name: mmhm-fill-accent;
}

.hero__band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  border-top: var(--rule);
  padding-top: clamp(20px, 3vw, 32px);
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 44ch;
}
.hero__copy p {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero__copy strong {
  font-family: var(--font-display);
  font-weight: 400;
}

/* ---------- waitlist form (shared by hero and CTA band) ---------- */

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.waitlist__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.waitlist__input {
  flex: 1 1 220px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 14px 16px;
  border: var(--rule);
  border-radius: 0;
  background: var(--bone);
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.waitlist__input:focus-visible { border-color: var(--oxblood); }
.waitlist__button {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 14px 22px;
  border: var(--rule);
  border-radius: 0;
  background: var(--oxblood);
  color: var(--bone);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.waitlist__button:hover { background: var(--ink); }
.waitlist__button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.waitlist__button:disabled {
  cursor: progress;
  opacity: 0.7;
}
.waitlist__status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  min-height: 18px;
  color: var(--oxblood);
}
.waitlist__status.is-ok { color: var(--ink); }

/* CTA band variant: bigger padding, inverted button, status inherits bone. */
.waitlist--cta .waitlist__input { padding: 16px; }
.waitlist--cta .waitlist__button {
  padding: 16px 24px;
  background: var(--ink);
}
.waitlist--cta .waitlist__button:hover {
  background: var(--bone);
  color: var(--ink);
}
.waitlist--cta .waitlist__button:focus-visible { outline-color: var(--bone); }
.waitlist--cta .waitlist__status,
.waitlist--cta .waitlist__status.is-ok { color: inherit; }

.success {
  display: flex;
  align-items: center;
  gap: 10px;
  border: var(--rule);
  background: var(--bone);
  color: var(--ink);
  padding: 12px 14px;
  animation: mmhm-pop 220ms ease-out;
}
.success__mark {
  font-family: var(--font-display);
  font-size: 18px;
  white-space: nowrap;
  flex-shrink: 0;
}
.success__text {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- marquee ---------- */

.marquee {
  border-top: var(--rule);
  border-bottom: var(--rule);
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  padding: 12px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: mmhm-marquee 26s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 30px);
  text-transform: lowercase;
  letter-spacing: -0.01em;
}
.marquee__track span {
  padding-right: 28px;
  white-space: nowrap;
}

/* ---------- bordered grids (assistant / how / features) ----------
   Each cell draws its own right + bottom 2px rule; the grid is pulled 2px
   right and down so the outer rules coincide with the section edge and never
   double up, whatever the column count. */

.assistant,
.how,
.features { border-bottom: var(--rule); overflow: hidden; }

.assistant__grid,
.how__grid,
.features__grid {
  display: grid;
  margin: 0 -2px -2px 0;
}
.assistant__grid > *,
.how__grid > *,
.features__grid > * {
  border-right: var(--rule);
  border-bottom: var(--rule);
  min-width: 0;
}

/* ---------- assistant proof ---------- */

.assistant__grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.assistant__pitch {
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.assistant__headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.assistant__pitch p {
  font-size: 15px;
  line-height: 1.55;
  max-width: 38ch;
  text-wrap: pretty;
}

.inbox {
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--bone-deep);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inbox__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-60);
}
.inbox__head span:last-child { white-space: nowrap; }
.mail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--bone);
  border: var(--rule);
  padding: 12px 14px;
}
.mail__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mail__from {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-60);
}
.mail__subject {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mail__note {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-70);
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 8px;
  white-space: nowrap;
  border: var(--rule);
  background: var(--bone-deep);
  color: var(--ink);
}
.tag--hot   { background: var(--oxblood); color: var(--bone); }
.tag--yours { background: var(--ink);     color: var(--bone); }

.inbox__foot {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-60);
}
.caret { animation: mmhm-blink 1s step-end infinite; }

/* ---------- how ---------- */

.how__grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.step {
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step__num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--oxblood);
}
.step__title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- features ---------- */

.features__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(24px, 3vw, 44px) var(--gutter) clamp(16px, 2vw, 28px);
}
.features__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.features__grid {
  /* 270px floor from the design; the 33% floor caps the grid at three columns
     so six cards always land as 3+3 / 2+2+2 / 1 instead of 5+1 on wide screens. */
  grid-template-columns: repeat(auto-fit, minmax(max(270px, 33%), 1fr));
  border-top: var(--rule);
}

.card {
  padding: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-60);
}
.card__tag {
  padding: 4px 8px;
  border: var(--rule);
  color: var(--ink);
}
.card__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.card__proof {
  margin-top: auto;
  padding-top: 10px;
  border-top: var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--oxblood);
}

/* ---------- final CTA ---------- */

.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(32px, 5vw, 72px) var(--gutter);
  background: var(--oxblood);
  color: var(--bone);
  border-bottom: var(--rule);
}
.cta__left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.cta__count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-60);
}

/* ---------- responsive tweaks ---------- */

@media (max-width: 720px) {
  .brand__tag { display: none; }
}

/* ---------- motion ----------
   All animations (wordmark wave, marquee, caret, success pop) run regardless of
   the OS reduced-motion setting — a deliberate product decision. */
