/* ═══════════════════════════════════════════════════════════════════════
   mtplus.css — the MT+ product page (site_mtplus.html), 1.3.0 overhaul

   Dark hero with the download card (the home hero's language), then the
   three headline features as alternating picture rows, each picture in an
   app-window frame. Port Verification is the big one, so it sits on a dark
   panel; the Certified test gets the same treatment, since it is how a tech
   tries it. Maintenance Tool vs MT+ comparisons read left to right: the long
   list of MT steps against the one MT+ step.
   ═══════════════════════════════════════════════════════════════════════ */

.mtp-hero {
  background-color: var(--dark);
  background-image:
    radial-gradient(ellipse 60% 120% at 85% 50%, transparent 0%, var(--dark) 75%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  color: var(--white);
}
.mtp-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 28px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.mtp-crumb { font-size: 13px; color: #9a9a9a; margin-bottom: 18px; }
.mtp-crumb a { color: var(--on-dark); text-decoration: none; }
.mtp-crumb a:hover { color: var(--white); text-decoration: underline; }
.mtp-title {
  font: 700 clamp(4rem, 9vw, 6.5rem)/0.9 var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.mtp-title span[aria-hidden] { color: var(--red); }
.mtp-tagline {
  font: 600 clamp(1.4rem, 2.6vw, 1.85rem)/1.2 var(--font-display);
  color: var(--white);
  margin-bottom: 14px;
  max-width: 24ch;
}
.mtp-lede { color: var(--on-dark); font-size: 1.02rem; line-height: 1.65; max-width: 54ch; }
.mtp-hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 20px 0 26px;
  font-size: 14px;
  color: var(--white);
}
.mtp-hero-points li { position: relative; padding-left: 18px; }
.mtp-hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-on-dark);
}
/* ── Download card ── */
.mtp-get {
  background: var(--white);
  color: var(--dark);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border-top: 4px solid var(--red);
}
.mtp-get-head { font: 600 1.3rem/1.25 var(--font-display); margin-bottom: 14px; }
.mtp-get-copy { color: var(--gray); margin: -6px 0 16px; line-height: 1.55; }
.mtp-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 11px;
  background: var(--red);
  color: var(--white);
  font: 600 16px var(--font-sans);
  cursor: pointer;
  transition: background 0.15s;
}
.mtp-dl:hover { background: #a83224; }
.mtp-dl:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.mtp-warn { margin-top: 10px; font-size: 13.5px; color: var(--gray); }
.mtp-warn a { color: var(--red); }
.mtp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.mtp-facts dt { font-size: 12.5px; color: #6b6b6b; }
.mtp-facts dd { font: 500 14px var(--font-mono); }
.mtp-notes { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.mtp-notes-head { font-weight: 600; cursor: pointer; }
.mtp-notes-count { font-weight: 400; color: var(--gray); }
.mtp-notes ul {
  max-height: 320px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 0 6px 0 18px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.55;
}
.mtp-notes li + li { margin-top: 6px; }
.mtp-get .dl-countdown { margin-top: 16px; }

/* ── Body ── */
.mtp-body { max-width: 1120px; margin: 0 auto; padding: 64px 28px 8px; width: 100%; }
.mtp-body a { color: var(--red); }
.mtp-body h2 { font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--font-display); margin-bottom: 14px; }
.mtp-sec { margin-bottom: 48px; }

.mtp-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font: 600 13px/1.3 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}
.mtp-num { font-family: var(--font-mono); color: var(--muted); letter-spacing: 0; }
.mtp-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--red);
  font: 600 12px/1.3 var(--font-sans);
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Feature rows: copy beside a big picture, alternating sides. */
.mtp-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 88px;
}
.mtp-feature--flip .mtp-feature-copy { order: 2; }
.mtp-feature-copy p { color: var(--gray); line-height: 1.65; }
.mtp-feature-copy p + p { margin-top: 12px; }
.mtp-aside {
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  background: var(--white);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

.mtp-ticks { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.mtp-ticks li,
.mtp-checks li { position: relative; padding-left: 28px; line-height: 1.5; }
.mtp-ticks li::before,
.mtp-checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='%23c0392b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--red-border);
}
.mtp-checks { list-style: none; display: grid; gap: 10px; }

/* Port Verification: the big one, on a dark panel. */
.mtp-feature--big {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  padding: 48px;
  border-radius: 20px;
  background: var(--dark);
  color: var(--white);
  margin-bottom: 40px;
}
.mtp-feature--big .mtp-kicker { color: var(--red-on-dark); }
.mtp-feature--big .mtp-feature-copy p { color: var(--on-dark); }
.mtp-feature--big .mtp-shot figcaption { color: #9a9a9a; }

/* Port Verification walks through three clips, each with its own callout. */
.mtp-pv { display: block; }
.mtp-pv-intro { max-width: 70ch; margin-bottom: 36px; }
.pv-steps { list-style: none; display: grid; gap: 40px; }
.pv-step {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 36px;
  align-items: center;
}
.pv-callout { position: relative; padding-left: 48px; }
.pv-n {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font: 700 15px var(--font-display);
}
.pv-callout h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 8px; }
.pv-callout p { color: var(--on-dark); line-height: 1.6; }

/* ── Picture slot: an app-window frame around a video, still or placeholder ── */
.mtp-shot { margin: 0; }
.mtp-shot-frame {
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  border: 1px solid #2c2c2c;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.mtp-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-line);
}
.mtp-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #4a4a4a; }
.mtp-shot-bar span { margin-left: 8px; font: 600 11.5px var(--font-sans); color: #8a8a8a; }
/* A capture keeps its own shape (width/height attributes); a placeholder,
   which has none, is drawn at 16:10. */
.mtp-shot-media {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
}
.mtp-ph { aspect-ratio: 16 / 10; }
.mtp-shot-still { display: none; }
.mtp-shot figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.mtp-shot-full { white-space: nowrap; font-weight: 500; }
.mtp-feature--big .mtp-shot-full { color: var(--red-on-dark); }
@media (prefers-reduced-motion: reduce) {
  .mtp-shot-video[poster] { display: none; }
  .mtp-shot-video[poster] + .mtp-shot-still { display: block; }
}

/* Drawn placeholder until a capture lands: the view's shape, not its data. */
.mtp-ph {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 20px 20px,
    #161616;
}
.mtp-ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mtp-ph .u, .mtp-ph .ic rect, .mtp-ph .row, .mtp-ph .ports rect { fill: var(--ink-2); stroke: #4a4a4a; stroke-width: 1.5; }
.mtp-ph .tx, .mtp-ph .tx rect { fill: #4a4a4a; }
.mtp-ph .pipe { fill: none; stroke: #6b6b6b; stroke-width: 2; }
.mtp-ph .err { fill: var(--red); }
.mtp-ph .off { fill: rgba(0, 0, 0, 0.45); stroke: none; }
.mtp-ph .ok { fill: #2c4a37; }
.mtp-ph .flag { fill: var(--red); }
.mtp-ph .live { fill: #3a2320; stroke: var(--red-on-dark); stroke-width: 1.5; }
.mtp-ph .trace { fill: none; stroke: var(--red-on-dark); stroke-width: 3; stroke-linecap: round; }
.mtp-ph .trace2 { fill: none; stroke: #6aa0d8; stroke-width: 3; stroke-linecap: round; }
.mtp-ph .sheet { fill: #f4f4f4; }
.mtp-ph .hd { fill: var(--dark); }
.mtp-ph--pv-report .row { fill: #e6e6e6; stroke: none; }
.mtp-ph--pv-report .tx { fill: #bdbdbd; }
.mtp-ph--pv-report .ok { fill: #9cc9ab; }
.mtp-ph .fill { fill: none; stroke: #9a9a9a; stroke-width: 1.5; stroke-dasharray: 4 4; }
.mtp-ph-note {
  position: absolute;
  right: 12px; bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #a8a8a8;
  font: 500 11.5px var(--font-sans);
}

/* ── Maintenance Tool vs MT+ ── */
.mtp-compare { margin-bottom: 88px; }
.vs-grid { display: grid; gap: 20px; }
.vs {
  padding: 22px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
}
.vs h3 { font-size: 1.05rem; margin-bottom: 14px; }
.vs-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.vs-col { padding: 14px; border-radius: 10px; }
.vs-col--mt { background: var(--page-bg); }
.vs-col--mtp { background: var(--red-light); border: 1px solid var(--red-border); }
.vs-who { font: 600 12px/1.3 var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray); margin-bottom: 10px; }
.vs-col--mtp .vs-who { color: var(--red); }
.vs-steps { padding-left: 20px; color: var(--gray); font-size: 0.92rem; line-height: 1.45; }
.vs-steps li + li { margin-top: 4px; }

/* ── Get Certified ── */
.mtp-certify {
  scroll-margin-top: calc(var(--header-h) + 16px);
  padding: 48px;
  margin-bottom: 88px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 50% 90% at 100% 0%, rgba(192, 57, 43, 0.28), transparent 70%),
    var(--dark);
  color: var(--white);
}
.mtp-certify-head { max-width: 68ch; margin-bottom: 32px; }
.mtp-certify-head p:last-child { color: var(--on-dark); line-height: 1.65; }
.mtp-kicker--on-dark { color: var(--red-on-dark); }
.cert-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}
.cert-steps li {
  padding: 20px;
  border-radius: 14px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
}
.cert-n {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--red);
  font: 700 15px var(--font-display);
}
.cert-steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.cert-steps p { color: var(--on-dark); font-size: 0.93rem; line-height: 1.55; }
.cert-steps strong { color: var(--white); }
.cert-notes {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  color: var(--on-dark);
  font-size: 0.93rem;
  line-height: 1.55;
}
.cert-notes li { position: relative; padding-left: 18px; }
.cert-notes li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-on-dark);
}

/* ── Coming next (1.3.1) ── */
.mtp-next {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
  padding: 36px;
  margin-bottom: 72px;
  border-radius: 20px;
  border: 1.5px dashed #c9c9c9;
  background: var(--white);
}
.mtp-soon {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  font: 600 12.5px var(--font-sans);
  color: #6b4a00;
}
.mtp-next-copy p:last-child { color: var(--gray); line-height: 1.65; }
.mtp-next code { font: 500 0.92em var(--font-mono); }

/* ── Basics + requirements ── */
.mtp-basics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-bottom: 64px;
  padding-top: 40px;
  border-top: 2px solid var(--dark);
}
.mtp-basics h2 { font-size: 1.35rem; }
.mtp-basics p { color: var(--gray); line-height: 1.65; }

.mtp-faq-more { margin-top: 16px; color: var(--gray); }
.mtp-fine { font-size: 13.5px; color: #6b6b6b; line-height: 1.6; max-width: 80ch; }

@media (max-width: 960px) {
  .mtp-feature, .mtp-feature--big, .mtp-next { grid-template-columns: 1fr; gap: 28px; }
  .mtp-feature--flip .mtp-feature-copy { order: 0; }
  .cert-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-step { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 900px) {
  .mtp-hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px 40px; }
}
@media (max-width: 640px) {
  .mtp-hero-inner { padding: 24px 16px 32px; }
  .mtp-body { padding: 40px 16px 8px; }
  .mtp-get { padding: 20px; }
  .mtp-feature { margin-bottom: 56px; }
  .mtp-feature--big, .mtp-certify, .mtp-next { padding: 24px 18px; border-radius: 16px; }
  .pv-callout { padding-left: 44px; }
  .cert-steps, .vs-cols, .mtp-basics { grid-template-columns: 1fr; }
  .mtp-basics { gap: 32px; }
}

/* ── Full-size video lightbox ── */
.mtp-lightbox {
  margin: auto;
  max-width: 94vw;
  max-height: 92vh;
  padding: 0;
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  background: #111;
  overflow: hidden;
}
.mtp-lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }
.mtp-lightbox video {
  display: block;
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
}
.mtp-lightbox-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font: 600 22px/1 var(--font-sans);
  cursor: pointer;
}
.mtp-lightbox-close:focus-visible { outline: 2px solid var(--red-on-dark); outline-offset: 2px; }
