/*
  MRGV site styles.

  Tokens mirror the console's design system (web/src/design/theme.css) so the
  site and the product read as one thing: deep plum for authority, burnt coral
  for the one action on a screen, mint for anything live, Rubik throughout.

  Every offset is a logical property. The document is RTL; nothing here knows
  which side "start" is.
*/
:root {
  --plum: #430d6e;
  --plum-2: #5b2a86;
  --plum-3: #2d004f;
  --plum-glow: #cf9afd;
  --coral: #fd7958;
  --coral-deep: #a7391e;
  --mint: #43ddbc;
  --mint-deep: #0b5c4b;
  --surface: #faf9ff;
  --surface-2: #f1f3ff;
  --surface-3: #e9edfe;
  --white: #ffffff;
  --ink: #161b27;
  --ink-soft: #4c4450;
  --line: #cec3d2;
  --line-soft: #e4e8f8;

  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 24px;
  --radius-sm: 14px;
  --pill: 999px;
  --shadow: 0 1px 3px rgba(31, 36, 48, 0.05), 0 12px 32px rgba(67, 13, 110, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 36, 48, 0.18);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 74px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

.ms {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
  display: inline-block; direction: ltr; user-select: none;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* --- Type helpers --------------------------------------------------------- */
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--plum-2); margin-bottom: 12px;
}
.eyebrow-light { color: var(--plum-glow); }
.eyebrow-coral { color: var(--coral); }
.section-title { margin-bottom: 14px; }
.section-title.light { color: var(--white); }
.section-lede { color: var(--ink-soft); max-width: 62ch; font-size: 18px; }

/* --- Buttons: pills, one loud, the rest quiet ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding-inline: 20px; border-radius: var(--pill);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn-lg { height: 54px; padding-inline: 26px; font-size: 16px; }
.btn .ms { font-size: 20px; }
/* Ink on coral: white on this coral is under AA; ink is 8:1. */
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { background: #ff8e72; transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--plum-2); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--plum-glow); }
.btn-outline-light:hover { background: rgba(207,154,253,.12); }

/* --- Capability strip ------------------------------------------------------ */
.strip { background: var(--plum-3); color: var(--plum-glow); font-size: 13px; font-weight: 600; overflow: hidden; }
.strip-track { display: flex; align-items: center; gap: 22px; width: max-content; padding-block: 8px; animation: strip 40s linear infinite; }
.strip-track span { white-space: nowrap; }
.strip-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); flex: none; }
/* The track holds the list twice; moving it by half its width loops seamlessly. */
@keyframes strip { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* --- Top bar ---------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 12px var(--gutter); background: rgba(250, 249, 255, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 22px; font-weight: 900; letter-spacing: .02em; color: var(--plum); }
.brand-text small { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.top-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.top-nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: var(--pill); color: var(--ink-soft); }
.top-nav a:hover { background: var(--surface-3); color: var(--ink); }
.top-actions { display: flex; gap: 8px; }
.menu { display: none; margin-inline-start: auto; background: none; border: 1.5px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }

/* --- Hero ------------------------------------------------------------------- */
/* The poster is the hero's own background, so there is always a picture of
   the lab: before the film has loaded, when autoplay is refused, and under
   reduced motion, where the film is removed and the still stays. */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--plum) url('assets/hero-poster.jpg') center / cover no-repeat;
}
/* The film sits under everything; the shade tints it plum and darkens the
   text side so the headline reads on any frame. Order: video, shade, glow. */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  /* Heavier behind the copy (inline start), lighter over the film. */
  background:
    linear-gradient(to left, rgba(67, 13, 110, .88) 0%, rgba(67, 13, 110, .62) 45%, rgba(67, 13, 110, .22) 100%),
    linear-gradient(to top, rgba(45, 0, 79, .8), transparent 45%);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(circle at 18% 22%, rgba(253, 121, 88, .34), transparent 52%),
    radial-gradient(circle at 82% 78%, rgba(67, 221, 188, .22), transparent 46%),
    radial-gradient(circle at 60% 10%, rgba(207, 154, 253, .16), transparent 40%);
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero-grid {
  position: relative; max-width: var(--container); margin-inline: auto; padding: clamp(48px, 8vw, 110px) var(--gutter);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero .eyebrow { color: var(--mint); }
.hero h1 em { font-style: normal; color: var(--coral); }
.lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.84); max-width: 58ch; }
.hero-pill {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1.5px solid rgba(253,121,88,.7); border-radius: var(--pill); padding: 10px 20px; font-weight: 600; font-size: 15px;
}
.hero-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* The example card: a slab of the product, not stock imagery. */
.hero-card {
  margin: 0; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-lg); border-inline-start: 10px solid var(--mint);
  display: grid; gap: 16px; transform: rotate(-1.5deg);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.card-rows { margin: 0; display: grid; gap: 12px; }
.card-rows div { display: grid; gap: 2px; }
.card-rows dt { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.card-rows dd { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card-rows dd[dir='ltr'] { text-align: end; direction: ltr; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.score { font-size: 30px; font-weight: 900; color: var(--plum); font-variant-numeric: tabular-nums; }
.score small { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.reasons li { background: var(--surface-2); border-radius: var(--pill); padding: 6px 12px; font-size: 13px; font-weight: 500; display: inline-flex; gap: 6px; align-items: baseline; }
.reasons b { color: var(--plum-2); font-weight: 800; }

.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--pill); padding: 5px 12px; font-size: 13px; font-weight: 700; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip-mint { background: rgba(67, 221, 188, .18); color: var(--mint-deep); }
.chip-plum { background: rgba(91, 42, 134, .1); color: var(--plum-2); }

/* --- Bands ------------------------------------------------------------------ */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-plum { background: var(--plum); color: var(--white); }
.band-plum h2 { color: var(--white); }
.band-text { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.82); max-width: 66ch; }

/* --- Facts ------------------------------------------------------------------ */
.facts { padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line-soft); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fact { display: grid; gap: 10px; padding-inline-start: 18px; border-inline-start: 4px solid var(--coral); }
.fact-big { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; color: var(--plum); line-height: 1.05; }
.fact-text { color: var(--ink-soft); }

/* --- Categories ------------------------------------------------------------- */
.cats { padding-block: 22px; border-bottom: 1px solid var(--line-soft); background: var(--white); }
.cats-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cats-row span { border: 1.5px solid var(--line); border-radius: var(--pill); padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }

/* --- Services / cards ------------------------------------------------------- */
.services { padding-block: clamp(56px, 8vw, 104px); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.svc {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start;
}
.svc p { color: var(--ink-soft); }
.svc-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); color: var(--plum-2); }
.svc-icon .ms { font-size: 28px; }

.who { border: 1.5px solid rgba(207,154,253,.35); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.who h3 { color: var(--coral); }
.who p { color: rgba(255,255,255,.84); }

/* --- Promo ------------------------------------------------------------------ */
.promo {
  background: var(--plum-2); color: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: center; box-shadow: var(--shadow-lg);
  margin-block: 10px clamp(56px, 8vw, 104px);
}
.promo h2 { font-size: clamp(22px, 2.6vw, 32px); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; color: rgba(255,255,255,.86); }
.ticks li { padding-inline-start: 26px; position: relative; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--mint); }
.promo-actions { display: grid; gap: 10px; justify-items: stretch; }

/* --- Screenshots ------------------------------------------------------------ */
.look { padding-block: 0 clamp(56px, 8vw, 104px); }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.shot { margin: 0; display: grid; gap: 10px; }
.shot-wide { grid-column: 1 / -1; }
.shot img { border-radius: var(--radius-sm); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); width: 100%; }
.shot figcaption { font-size: 14px; color: var(--ink-soft); }
.shot figcaption b { color: var(--ink); }

/* --- Steps ------------------------------------------------------------------ */
.how { padding-block: clamp(56px, 8vw, 104px); }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding-block: 26px; border-top: 1px solid var(--line-soft); }
.steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.num { font-size: 40px; font-weight: 900; color: var(--coral); line-height: 1; font-variant-numeric: tabular-nums; }
.steps p { color: var(--ink-soft); margin-top: 6px; max-width: 64ch; }

/* --- Verify ----------------------------------------------------------------- */
.verify { background: var(--surface-2); padding-block: clamp(56px, 8vw, 96px); border-block: 1px solid var(--line-soft); }
.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.verify-form { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.verify-form label { font-weight: 600; font-size: 15px; }
.verify-row { display: flex; gap: 10px; }
.verify-row input {
  flex: 1; min-width: 0; height: 50px; border: 1.5px solid var(--line); border-radius: 14px; padding-inline: 16px;
  font: inherit; font-size: 18px; font-variant-numeric: tabular-nums; direction: ltr; text-align: start;
}
.verify-row input:focus { border-color: var(--plum-2); outline: none; box-shadow: 0 0 0 3px rgba(91,42,134,.15); }
.hint { font-size: 13px; color: var(--ink-soft); }

/* --- Warranty activation page ---------------------------------------------- */
.page-head { padding-block: clamp(40px, 6vw, 72px); }
.page-title { font-size: clamp(32px, 4.6vw, 56px); font-weight: 900; line-height: 1.08; }
.activate { padding-block: clamp(48px, 7vw, 88px); }
.activate-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.activate-form { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); display: grid; gap: 12px; }
.activate-form h2 { font-size: clamp(24px, 3vw, 34px); }
.activate-form label { font-weight: 600; margin-top: 8px; }
.find-serial { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; background: var(--surface-2); }
.find-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.find-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.find-list .ms { color: var(--plum-2); flex: none; font-size: 26px; }
.find-list b { color: var(--ink); }
.hint a { color: var(--plum-2); }
@media (max-width: 1000px) { .activate-grid { grid-template-columns: 1fr; } }

/* --- Videos: poster cards that open one lightbox player --------------------- */
.videos-head { text-align: center; max-width: 720px; margin-inline: auto; }
.videos-head .band-text { margin-inline: auto; }
.video-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.video-card {
  margin: 0; display: grid; gap: 12px; align-content: start; padding: 10px 10px 22px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(207,154,253,.24); border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.video-card:hover, .video-card:focus-within { transform: translateY(-4px); border-color: rgba(207,154,253,.55); background: rgba(255,255,255,.09); }
.video-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; cursor: pointer;
  border-radius: calc(var(--radius) - 8px); overflow: hidden; background: var(--plum-3); color: var(--white);
}
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A vertical or square poster sits whole in the middle, over a blurred copy of itself. */
.video-thumb .thumb-blur { filter: blur(22px) saturate(1.2); transform: scale(1.2); opacity: .75; }
.video-thumb.portrait img:not(.thumb-blur), .video-thumb.square img:not(.thumb-blur) { width: auto; margin-inline: auto; object-fit: contain; }
.video-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-thumb .play svg { width: 76px; height: 76px; fill: currentColor; filter: drop-shadow(0 10px 24px rgba(20,0,40,.5)); transition: transform .25s ease; }
.video-thumb:hover .play svg, .video-thumb:focus-visible .play svg { transform: scale(1.08); }
.video-thumb .dur {
  position: absolute; inset-inline-end: 12px; bottom: 12px; padding: 4px 10px; border-radius: var(--pill);
  background: rgba(22,27,39,.78); font-size: 13px; font-weight: 700; direction: ltr; font-variant-numeric: tabular-nums;
}
.video-card h3 { font-size: 20px; line-height: 1.25; color: var(--white); padding-inline: 8px; }
.video-card h3 small { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--plum-glow); }
.video-card p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.8); padding-inline: 8px; }

.video-lightbox { border: 0; padding: 0; background: transparent; max-width: min(1080px, 94vw); width: 100%; margin: auto; overflow: visible; }
.video-lightbox::backdrop { background: rgba(20, 0, 40, .88); }
.lightbox-frame { position: relative; padding-top: 56px; }
.video-lightbox video { display: block; width: 100%; max-height: 82vh; border-radius: var(--radius); background: #000; box-shadow: var(--shadow-lg); }
.video-lightbox video.portrait { width: auto; max-width: 100%; aspect-ratio: 9 / 16; margin-inline: auto; }
.video-lightbox video.square { width: auto; max-width: 100%; aspect-ratio: 1; margin-inline: auto; }
.lightbox-close {
  position: absolute; top: 0; inset-inline-end: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: var(--white); display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.26); }

/* Section spacing that used to be an inline style (the CSP blocks style attributes). */
.section-pad { padding-block: clamp(40px, 6vw, 72px); }

/* --- Contact + footer ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center; }
.contact-actions { display: grid; gap: 10px; }
.foot { background: var(--plum-3); color: rgba(255,255,255,.8); padding-block: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.foot-brand .brand-text b { color: var(--white); }
.foot-brand .brand-text small { color: var(--plum-glow); }
.foot-brand p { margin-top: 12px; max-width: 46ch; font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--white); text-decoration: underline; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 13px; }

/* --- Page-load: hero settles in, once ---------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-card { animation: rise .7s .25s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero-card { animation-name: rise-card; }
  @keyframes rise-card { from { opacity: 0; transform: translateY(14px) rotate(-1.5deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
}

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; max-width: 520px; }
  .facts-grid, .cards3 { grid-template-columns: 1fr; }
  .promo, .verify-grid, .contact-grid, .video-cards, .foot-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .top-nav { display: none; }
  .top-actions { display: none; }
  .menu { display: grid; place-items: center; }
  /* Open: the bar wraps and the nav and actions flow below it as one column,
     so nothing has to know how tall the other is. */
  .top.open { flex-wrap: wrap; }
  .top.open .top-nav, .top.open .top-actions {
    display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0;
  }
  .top.open .top-nav { padding-top: 8px; border-top: 1px solid var(--line-soft); }
  .top.open .top-nav a { padding-block: 12px; font-size: 17px; }
  .top.open .top-actions { padding-block: 8px 4px; gap: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps li { grid-template-columns: 56px 1fr; }
  .num { font-size: 30px; }
  .verify-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
}
