/* mix-tour.css — The Mix, phase V5: the instrument tour (/for-your-business)
 * and the method page's labeled illustrative sample. Class prefix: mxt-.
 *
 * LAWS (Mix spec #design + the one-voice law):
 *  - The window law: obsidian exists ONLY inside .mxt-window product frames,
 *    each visibly carded on the warm tokens canvas. The portal palette inside:
 *    #0b0e0d ground, #43d597 green, #e0a63c amber, #e6b654 gold, #ec7663 red.
 *    Everything else in this file consumes css/tokens.css variables.
 *  - Zero inline style attributes on pages: every width/color/delay lives here.
 *  - Every animation in this file carries its prefers-reduced-motion guard in
 *    the same section.
 *  - This sheet styles ONLY mxt- classes (never components.css classes), so it
 *    can ride beside any other Mix module without collisions.
 */

/* ---------- tour layout (warm canvas, token-driven) ---------- */
.mxt-tour { display: grid; gap: clamp(48px, 6vw, 88px); }
.mxt-row {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: var(--s-6) var(--s-7); align-items: center;
}
.mxt-story h3 { margin-bottom: var(--s-2); }
.mxt-story p { color: var(--muted); }
.mxt-story p + p { margin-top: var(--s-3); }
.mxt-story .mxt-fact { color: var(--ink); }
@media (min-width: 921px) {
  .mxt-row--flip .mxt-story { order: 2; }
  .mxt-row--flip .mxt-window { order: 1; }
}
@media (max-width: 920px) {
  .mxt-row { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ---------- the obsidian product window ---------- */
.mxt-window {
  background: #0b0e0d;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: var(--s-5); box-shadow: var(--sh-3);
  color: rgba(255, 255, 255, .92);
  min-width: 0;
}
.mxt-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.mxt-tag { color: #43d597; }
.mxt-tag::before { content: "\25CF"; margin-right: 6px; }
.mxt-tag--sample { color: #e6b654; }
.mxt-date { margin-left: auto; color: rgba(255, 255, 255, .52); letter-spacing: 0.08em; }   /* W-12: .38 composites to 3.54:1 on the obsidian ground */

/* the 81-pin scan lattice (9 x 9, row-major, straight from the snapshot) */
.mxt-lattice {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px;
  margin: var(--s-4) 0 var(--s-3); aspect-ratio: 1;
}
.mxt-pin { display: block; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.mxt-pin--g { background: #43d597; box-shadow: 0 0 8px rgba(67, 213, 151, .45); }
.mxt-pin--a { background: #e0a63c; }
.mxt-pin--r { background: #ec7663; }
.mxt-pin--x { background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
/* left-to-right column sweep on load; renders finished instantly under reduced motion */
.mxt-lattice--scan .mxt-pin { opacity: 0; transform: scale(.4); animation: mxtPinIn .5s var(--ease) forwards; }
.mxt-lattice--scan .mxt-pin:nth-child(9n+1) { animation-delay: .05s; }
.mxt-lattice--scan .mxt-pin:nth-child(9n+2) { animation-delay: .12s; }
.mxt-lattice--scan .mxt-pin:nth-child(9n+3) { animation-delay: .19s; }
.mxt-lattice--scan .mxt-pin:nth-child(9n+4) { animation-delay: .26s; }
.mxt-lattice--scan .mxt-pin:nth-child(9n+5) { animation-delay: .33s; }
.mxt-lattice--scan .mxt-pin:nth-child(9n+6) { animation-delay: .40s; }
.mxt-lattice--scan .mxt-pin:nth-child(9n+7) { animation-delay: .47s; }
.mxt-lattice--scan .mxt-pin:nth-child(9n+8) { animation-delay: .54s; }
.mxt-lattice--scan .mxt-pin:nth-child(9n+9) { animation-delay: .61s; }
@keyframes mxtPinIn { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .mxt-lattice--scan .mxt-pin { animation: none; opacity: 1; transform: none; }
}

/* stat rows, attribution, plan line */
.mxt-stats {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255, 255, 255, .55);
}
.mxt-stats b { color: #fff; font-weight: 600; }
.mxt-attr { margin: var(--s-3) 0 0; font-size: 0.8rem; line-height: 1.5; color: rgba(255, 255, 255, .45); }
.mxt-plan {
  margin-top: var(--s-3); padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: #e6b654;
}

/* big figure + delta chip (reviews, change-watch, rank) */
.mxt-big {
  display: block; margin: var(--s-4) 0 var(--s-1);
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: #fff;
}
.mxt-big-caption { margin: 0 0 var(--s-2); font-size: 0.95rem; color: rgba(255, 255, 255, .7); }
.mxt-delta {
  /* inline-BLOCK, not inline-flex: a flex container drops the whitespace-only text
     nodes between child spans, which rendered "+8new in8days" (owner, 2026-08-18). */
  display: inline-block; padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(67, 213, 151, .12); color: #43d597;
  font-family: var(--font-mono); font-size: 0.8rem;
}

/* AI share meters (widths are the real snapshot shares: 236/350 and 122/350) */
.mxt-meter {
  display: grid; grid-template-columns: 108px 1fr auto; gap: var(--s-3); align-items: center;
  margin: var(--s-2) 0; font-size: 0.85rem; color: rgba(255, 255, 255, .7);
}
.mxt-meter .mxt-count { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.mxt-meter .mxt-count b { color: #fff; font-weight: 600; }
.mxt-bar { height: 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); overflow: hidden; }
.mxt-bar i { display: block; height: 100%; border-radius: var(--r-pill); }
.mxt-bar--you i { width: 67.4%; background: #43d597; }   /* 236 of 350 */
.mxt-bar--rival i { width: 34.9%; background: #e0a63c; } /* 122 of 350 */

/* verbatim stored-answer quote (the A window's product look; scoped to windows) */
.mxt-quote {
  margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4);
  border: 1px solid #e6b654; border-radius: 10px; background: rgba(255, 255, 255, .03);
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 0.95rem; line-height: 1.55; color: rgba(255, 255, 255, .85);
}
.mxt-quote small {
  display: block; margin-top: var(--s-2);
  font-family: var(--font-mono); font-style: normal; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}

/* rivals window: two stacked sub-reads */
.mxt-sub { padding: var(--s-3) 0 0; }
.mxt-sub + .mxt-sub { margin-top: var(--s-3); border-top: 1px solid rgba(255, 255, 255, .09); }
.mxt-sub-kick {
  margin: 0 0 var(--s-1); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.mxt-read { margin: 0; font-size: 0.95rem; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.mxt-read b { color: #fff; font-weight: 600; }

/* keyword demand rows */
.mxt-kwrow {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3);
  padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 0.95rem;
}
.mxt-kwrow .mxt-kw { color: rgba(255, 255, 255, .85); }
.mxt-band { font-family: var(--font-mono); font-size: 0.8rem; color: #43d597; white-space: nowrap; }
.mxt-band::after { content: " searches / mo"; color: rgba(255, 255, 255, .4); }
.mxt-note { margin: var(--s-2) 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, .6); }

/* ---------- the method page's small illustrative sample (3 x 3) ---------- */
.mxt-sample { max-width: 360px; }
.mxt-window--sample { padding: var(--s-4) var(--s-5); }
.mxt-lattice--sample {
  grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 168px; aspect-ratio: 1; margin: var(--s-4) 0 var(--s-3);
}
.mxt-key { display: grid; gap: 6px; font-size: 0.8rem; color: rgba(255, 255, 255, .6); }
.mxt-key span { display: flex; align-items: center; gap: 8px; }
.mxt-key .mxt-pin { flex: none; width: 12px; height: 12px; aspect-ratio: auto; }

/* ---------- small screens (375px pass) ---------- */
@media (max-width: 480px) {
  .mxt-window { padding: var(--s-4); }
  .mxt-lattice { gap: 4px; }
  .mxt-head { font-size: 0.64rem; }
  .mxt-date { margin-left: 0; width: 100%; }
  .mxt-meter { grid-template-columns: 76px 1fr auto; font-size: 0.78rem; }
  .mxt-stats { font-size: 0.72rem; }
}
