/*
 * Landing page (templates/index.html), on tokens.css, ui.css and site.css. One night surface from
 * top to bottom, as on a product page: the map hero, a statement that lights up as it is read, the
 * scroll story (the agent's light window floating on night), the busy-hours chart, the tiles of
 * lookups, the scorecard, trust and the closing question. Sections are told apart by light (glows),
 * not by white bands. Data colours (busy-hours cells, the map) come from the markup and landing.js;
 * nothing here names a raw colour.
 * Motion: reveals, the statement and the story's steps run only with prefers-reduced-motion:
 * no-preference, and only once landing.js has marked the page (html.mtl-js); without it everything
 * simply shows.
 */

.mtl-site--landing { background: var(--night); color: var(--on-night); }
/* Wide screens: the page grows with them, as a product page does, instead of a narrow island */
@media (min-width: 1600px) { .mtl-site--landing { --container: 1320px; } }
.mtl-site--landing main { overflow-x: clip; background: var(--night); }
.mtl-site--landing ::selection { background: rgba(139, 151, 255, .35); color: var(--on-night); }

/* Shared section type ------------------------------------------------------- */
.mtl-kicker {
    display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
    background: linear-gradient(90deg, var(--primary-glow) 0%, var(--accent-glow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mtl-site--landing h2 { font-size: clamp(36px, 5vw, 68px); font-weight: 800; letter-spacing: -.045em; line-height: 1.06; color: var(--on-night); text-wrap: balance; }
.mtl-lede { margin-top: var(--sp-5); max-width: 620px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--on-night-2); text-wrap: pretty; }
.mtl-sec-head { max-width: 1000px; margin-bottom: var(--sp-12); }
.mtl-sec-head h2 { margin-top: var(--sp-3); }
.mtl-sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.mtl-sec-head--center .mtl-lede { margin-left: auto; margin-right: auto; }
/* A soft light behind a section, so night sections read apart without white bands */
.mtl-glow { position: relative; isolation: isolate; }
.mtl-glow::before {
    content: ""; position: absolute; z-index: -1; left: 50%; top: var(--glow-top, 0); width: min(1300px, 140vw); height: 760px; transform: translateX(-50%);
    pointer-events: none; filter: blur(70px); opacity: .55;
    background: radial-gradient(40% 50% at 35% 50%, rgba(82, 98, 232, .4), transparent 70%), radial-gradient(35% 45% at 70% 45%, rgba(24, 184, 172, .26), transparent 70%);
}

/* Reveal on scroll (landing.js adds .is-in) */
@media (prefers-reduced-motion: no-preference) {
    .mtl-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
    .mtl-js [data-reveal].is-in { opacity: 1; transform: none; }
    /* the product window comes forward as it arrives */
    .mtl-js [data-reveal="zoom"] { transform: scale(.93) translateY(32px); transition: opacity 1s var(--ease), transform 1.3s cubic-bezier(.2, .7, .2, 1); }
    .mtl-js [data-reveal="zoom"].is-in { transform: none; }
    /* bars, gauges and blocks grow once their section is in view */
    .mtl-js .mtl-tile__bars i, .mtl-js .mtl-score__rank em i { transition: width 1.3s cubic-bezier(.2, .7, .2, 1) .35s; }
    .mtl-js [data-reveal]:not(.is-in) .mtl-tile__bars i, .mtl-js [data-reveal]:not(.is-in) .mtl-score__rank em i { width: 0; }
    .mtl-js .mtl-tile__gauge circle.is-val { transition: stroke-dasharray 1.5s cubic-bezier(.2, .7, .2, 1) .35s; }
    .mtl-js [data-reveal]:not(.is-in) .mtl-tile__gauge circle.is-val { stroke-dasharray: 0 100; }
    .mtl-js .mtl-tile__blocks i { transition: height 1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(.3s + var(--n, 0) * 70ms); }
    .mtl-js [data-reveal]:not(.is-in) .mtl-tile__blocks i { height: 0; }
    .mtl-js .mtl-hours__split-bar i { transition: flex-grow 1.2s cubic-bezier(.2, .7, .2, 1) .4s; }
    .mtl-js [data-reveal]:not(.is-in) .mtl-hours__split-bar i { flex-grow: .001; }
}
/* Looping decoration runs only while it is on screen (landing.js: data-onscreen) */
.mtl-js [data-onscreen]:not(.is-onscreen) .mtl-tile__sweep, .mtl-js [data-onscreen]:not(.is-onscreen) .mtl-tile__radar i { animation-play-state: paused; }

/* =========================================================================
   Hero: the night map
   ========================================================================= */
.mtl-hero {
    position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
    min-height: max(720px, 100svh); background: var(--night); color: var(--on-night);
}
.mtl-hero__media { position: absolute; inset: 0; z-index: -1; }
.mtl-hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 50%; }
.mtl-hero__map, .mtl-hero__map.maplibregl-map { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }  /* the library's stylesheet makes its container relative */
.mtl-hero__map.is-live { opacity: 1; }
.mtl-hero__map canvas { outline: none; }
.mtl-hero__shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 7, 15, .94) 0%, rgba(5, 7, 15, .8) 26%, rgba(5, 7, 15, .3) 50%, rgba(5, 7, 15, 0) 66%),
        linear-gradient(0deg, var(--night) 0%, rgba(5, 7, 15, 0) 18%),
        linear-gradient(180deg, rgba(5, 7, 15, .7) 0%, rgba(5, 7, 15, 0) 16%);
}
.mtl-hero__ui { position: relative; padding-top: 112px; padding-bottom: 72px; }
.mtl-hero__copy { max-width: 620px; }
.mtl-hero__copy h1 { width: max-content; max-width: min(860px, calc(100vw - 2 * var(--gutter))); }
.mtl-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); }
.mtl-hero h1 { margin-top: var(--sp-5); font-size: clamp(42px, 4.8vw, 82px); font-weight: 800; letter-spacing: -.05em; line-height: 1.04; color: var(--on-night); }
.mtl-hero h1 > span { display: block; }
.mtl-hero h1 .mtl-hero__h1-2 {
    display: block; padding-bottom: .08em;
    background: linear-gradient(92deg, var(--primary-glow) 0%, var(--accent-glow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mtl-hero__lead { margin-top: var(--sp-6); max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--on-night-2); }
/* The copy arrives in order, as on a product page: words first, then the question box */
@media (prefers-reduced-motion: no-preference) {
    .mtl-hero__eyebrow, .mtl-hero h1 > span, .mtl-hero__lead, .mtl-hero .mtl-ask__box, .mtl-hero .mtl-ask__try-label, .mtl-hero__hud {
        animation: mtl-arrive 1.1s cubic-bezier(.2, .7, .2, 1) both;
    }
    .mtl-hero h1 > span:first-child { animation-delay: .08s; }
    .mtl-hero h1 > span:last-child { animation-delay: .2s; }
    .mtl-hero__lead { animation-delay: .34s; }
    .mtl-hero .mtl-ask__box { animation-delay: .46s; }
    .mtl-hero .mtl-ask__try-label { animation-delay: .56s; }
    .mtl-hero__hud { animation-delay: .9s; }
}
@keyframes mtl-arrive { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* The sites' labels on the live map (landing.js: MapLibre markers) */
.mtl-hero__pin {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 4px; border-radius: var(--r-full); white-space: nowrap;
    font-size: 12.5px; font-weight: 600; color: var(--on-night); background: rgba(10, 14, 28, .74); border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
.mtl-hero__pin b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; background: rgba(255, 255, 255, .16); }
.mtl-hero__pin.is-first b { background: var(--primary); box-shadow: 0 0 14px var(--primary); }
.mtl-hero__pin strong { font-family: var(--font-display); font-weight: 800; color: var(--accent-glow); font-variant-numeric: tabular-nums; }
.mtl-hero__pin small { margin-left: -4px; font-size: 11px; font-weight: 500; color: var(--on-night-3); }

/* The hour the map shows, with the week to play, pause or jump through (landing.js shows the controls
   once the live map runs). Each site's % busy is on its label on the map. */
.mtl-hero__hud {
    position: absolute; right: max(var(--gutter), calc((100vw - var(--container)) / 2)); top: 100px; z-index: 2; display: flex; align-items: center; gap: 12px;
    padding: 7px 16px 7px 14px; border-radius: var(--r-full); background: rgba(10, 14, 28, .62); border: 1px solid var(--night-line);
    backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.mtl-hero__hud:has(.mtl-hero__play:not([hidden])) { padding-left: 7px; }
.mtl-hero__play {
    width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
    color: var(--on-night); background: rgba(255, 255, 255, .1); transition: background-color .2s;
}
.mtl-hero__play:hover { background: rgba(255, 255, 255, .2); }
.mtl-hero__play .ic { width: 14px; height: 14px; fill: currentColor; }
.mtl-hero__play .is-play, .mtl-hero__play.is-paused .is-pause { display: none; }
.mtl-hero__play.is-paused .is-play { display: block; }
.mtl-hero__live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-3); }
.mtl-hero__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--danger-bright); box-shadow: 0 0 10px var(--danger-bright); animation: mtl-breathe 1.6s ease-in-out infinite; }
.mtl-hero__hud.is-paused .mtl-hero__live i { animation: none; opacity: .4; }
.mtl-hero__hud b { min-width: 124px; font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--on-night); font-variant-numeric: tabular-nums; }
.mtl-hero__week { position: relative; display: grid; grid-template-columns: repeat(7, 26px); gap: 2px; padding: 0 0 6px 12px; border-left: 1px solid var(--night-line); }
.mtl-hero__week button {
    height: 26px; border: 0; border-radius: 8px; cursor: pointer; background: transparent;
    font: inherit; font-size: 12px; font-weight: 600; color: var(--on-night-3); transition: color .2s, background-color .2s;
}
.mtl-hero__week button:hover { color: var(--on-night); background: rgba(255, 255, 255, .08); }
.mtl-hero__week button[aria-pressed="true"] { color: var(--night); background: var(--on-night); }
.mtl-hero__track { position: absolute; left: 12px; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .1); }
.mtl-hero__track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: 1px; background: linear-gradient(90deg, var(--primary-glow), var(--accent-glow)); }
@media (max-width: 1099px) { .mtl-hero__week { display: none !important; } }
.mtl-hero__credit { position: absolute; right: 12px; bottom: 6px; z-index: 2; font-size: 10.5px; color: var(--on-night-3); }
@keyframes mtl-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* The question box: the start of a conversation with Maria --------------------------------
   Glass on night, with a light that travels its border; brighter when it has the focus. */
@property --mtl-ask-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.mtl-ask { position: relative; margin-top: var(--sp-8); text-align: left; }
.mtl-ask__box {
    position: relative; isolation: isolate; border-radius: 26px;
    background: linear-gradient(180deg, rgba(22, 28, 56, .78) 0%, rgba(12, 16, 32, .82) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 80px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1);
    backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
    transition: box-shadow .3s var(--ease);
}
/* the travelling light on the border */
.mtl-ask__box::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: conic-gradient(from var(--mtl-ask-a), transparent 0deg, rgba(139, 151, 255, .95) 50deg, rgba(79, 224, 210, .9) 100deg, transparent 150deg, transparent 360deg);
    -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: .75; transition: opacity .3s var(--ease);
}
/* and a soft glow beneath the box */
.mtl-ask__box::after {
    content: ""; position: absolute; inset: 12% 6% -10%; z-index: -2; border-radius: inherit; pointer-events: none; filter: blur(36px); opacity: .5;
    background: radial-gradient(60% 70% at 30% 50%, rgba(82, 98, 232, .55), transparent 70%), radial-gradient(50% 60% at 75% 50%, rgba(24, 184, 172, .35), transparent 70%);
    transition: opacity .3s var(--ease);
}
@media (prefers-reduced-motion: no-preference) { .mtl-ask__box::before { animation: mtl-ask-spin 7s linear infinite; } }
@keyframes mtl-ask-spin { to { --mtl-ask-a: 360deg; } }
.mtl-ask__box:focus-within { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 80px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(139, 151, 255, .5), 0 0 0 5px rgba(139, 151, 255, .16); }
.mtl-ask__box:focus-within::before { opacity: 1; }
.mtl-ask__box:focus-within::after { opacity: .8; }

.mtl-ask__head { display: flex; align-items: center; gap: 11px; padding: 14px 16px 0; }
.mtl-ask__avatar {
    position: relative; width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%;
    color: var(--on-color); background: var(--brand-gradient); box-shadow: 0 6px 18px rgba(82, 98, 232, .45);
}
.mtl-ask__avatar .ic { width: 17px; height: 17px; }
.mtl-ask__who { display: grid; line-height: 1.2; min-width: 0; }
.mtl-ask__who b { font-size: 14px; font-weight: 700; color: var(--on-night); }
.mtl-ask__who small { margin-top: 2px; font-size: 12px; color: var(--on-night-3); white-space: nowrap; }
.mtl-ask__free { margin-left: auto; padding: 4px 10px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--accent-glow); background: rgba(79, 224, 210, .1); border: 1px solid rgba(79, 224, 210, .25); }

.mtl-ask__field { position: relative; }
.mtl-ask__input {
    display: block; width: 100%; min-height: 68px; max-height: 220px; padding: 12px 18px 6px; border: 0; background: transparent; resize: none;
    font: inherit; font-size: 18px; line-height: 1.5; color: var(--on-night); outline: none; caret-color: var(--primary-glow);
}
.mtl-ask__input::placeholder { color: var(--on-night-3); }
/* A suggestion typing itself while the box is empty and has no focus (site.js sets is-ghosting) */
.mtl-ask__ghost { position: absolute; left: 18px; right: 18px; top: 12px; display: none; font-size: 18px; line-height: 1.5; color: var(--on-night-2); pointer-events: none; }
.mtl-ask__ghost i { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -.2em; border-radius: 1px; background: var(--primary-glow); animation: mtl-caret 1s steps(1) infinite; }
@keyframes mtl-caret { 50% { opacity: 0; } }
.mtl-ask.is-ghosting .mtl-ask__ghost { display: block; }
.mtl-ask.is-ghosting .mtl-ask__input::placeholder { color: transparent; }

.mtl-ask__foot { display: flex; align-items: center; gap: 12px; padding: 6px 10px 10px 18px; }
.mtl-ask__keys, .mtl-ask__ready { flex: 1; min-width: 0; font-size: 12.5px; color: var(--on-night-3); }
.mtl-ask__keys .ui-kbd { color: var(--on-night-2); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.mtl-ask__ready { display: none; color: var(--accent-glow); font-weight: 600; }
.mtl-ask.is-ready .mtl-ask__keys { display: none; }
.mtl-ask.is-ready .mtl-ask__ready { display: block; }
.mtl-ask__go {
    flex: none; position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-full); cursor: pointer;
    font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--on-color);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%); box-shadow: 0 10px 28px -8px rgba(82, 98, 232, .8), inset 0 1px 0 rgba(255, 255, 255, .2);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.mtl-ask__go:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -8px rgba(82, 98, 232, .9), inset 0 1px 0 rgba(255, 255, 255, .2); }
.mtl-ask__go:active { transform: scale(.98); }
.mtl-ask__go .ic { transition: transform .2s var(--ease); }
.mtl-ask__go:hover .ic { transform: translateX(2px); }
/* once a suggestion is in the box, the button calls for the click */
@media (prefers-reduced-motion: no-preference) {
    .mtl-ask.is-ready .mtl-ask__go { animation: mtl-ask-pulse 1.6s var(--ease) 3; }
}
/* a ring that grows a fixed 14 px around the button, whatever its width */
@keyframes mtl-ask-pulse {
    0% { box-shadow: 0 10px 28px -8px rgba(82, 98, 232, .8), inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 0 rgba(139, 151, 255, .7); }
    100% { box-shadow: 0 10px 28px -8px rgba(82, 98, 232, .8), inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 14px rgba(139, 151, 255, 0); }
}

/* Suggested questions: cards that invite the click */
.mtl-ask__try { margin-top: 22px; }
.mtl-ask__try-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13.5px; font-weight: 500; color: var(--on-night-2); }
.mtl-ask__try-label .ic { width: 15px; height: 15px; color: var(--accent-glow); }
.mtl-ask__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mtl-try {
    position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 108px; padding: 14px 14px 15px; border-radius: 18px; cursor: pointer; text-align: left;
    font: inherit; color: var(--on-night); background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .03) 100%);
    border: 1px solid rgba(255, 255, 255, .11); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: transform .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.mtl-try:hover, .mtl-try:focus-visible {
    transform: translateY(-3px); border-color: color-mix(in srgb, var(--tint) 60%, transparent);
    background-color: color-mix(in srgb, var(--tint) 10%, transparent);
    box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--tint) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.mtl-try[aria-pressed="true"] { border-color: var(--tint); background-color: color-mix(in srgb, var(--tint) 14%, transparent); box-shadow: 0 0 0 1px var(--tint), 0 16px 34px -14px color-mix(in srgb, var(--tint) 70%, transparent); }
.mtl-try__top { display: flex; align-items: center; gap: 9px; }
.mtl-try__icon {
    width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px;
    color: var(--tint); background: color-mix(in srgb, var(--tint) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tint) 30%, transparent);
}
.mtl-try__icon .ic { width: 15px; height: 15px; }
.mtl-try__kind { flex: 1; min-width: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-3); }
.mtl-try__go {
    width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%;
    color: var(--on-night-2); background: rgba(255, 255, 255, .06); transition: color .25s, background-color .25s, transform .25s var(--ease);
}
.mtl-try__go .ic { width: 13px; height: 13px; }
.mtl-try__go .is-done { display: none; }
.mtl-try:hover .mtl-try__go, .mtl-try:focus-visible .mtl-try__go { color: var(--night); background: var(--tint); transform: rotate(45deg); }
.mtl-try[aria-pressed="true"] .mtl-try__go { color: var(--night); background: var(--tint); transform: none; }
.mtl-try[aria-pressed="true"] .mtl-try__go .is-go { display: none; }
.mtl-try[aria-pressed="true"] .mtl-try__go .is-done { display: block; }
.mtl-try__q { font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--on-night); text-wrap: pretty; }
/* the cards arrive after the box, one by one */
@media (prefers-reduced-motion: no-preference) {
    .mtl-hero .mtl-try { animation: mtl-arrive .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.62s + var(--n, 0) * .09s); }
}

/* =========================================================================
   Statement: lights up, word by word, as it is read (landing.js)
   ========================================================================= */
.mtl-statement { padding: var(--sp-20) 0 var(--sp-8); }
.mtl-statement__text {
    max-width: 1060px; font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.22;
    color: var(--on-night); text-wrap: pretty;
}
.mtl-statement__text span { transition: color .35s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
    .mtl-js .mtl-statement__text span { color: rgba(245, 247, 255, .16); }
    .mtl-js .mtl-statement__text span.is-lit { color: var(--on-night); }
}

/* =========================================================================
   Story: one answer, step by step, in a picture of the agent
   ========================================================================= */
.mtl-story { position: relative; padding-top: var(--sp-16); --glow-top: 30%; }
.mtl-story__intro { text-align: center; }
.mtl-story__intro h2 { margin-top: var(--sp-3); }
.mtl-story__intro .mtl-lede { margin-left: auto; margin-right: auto; }
.mtl-story__track { position: relative; padding: var(--sp-12) 0 var(--sp-16); }
.mtl-story__grid { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: var(--sp-12); align-items: center; }

.mtl-story__steps { position: relative; display: grid; gap: 4px; padding-left: 22px; }
.mtl-story__steps::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--night-line); }
.mtl-story__steps::after {
    content: ""; position: absolute; left: 13px; top: 18px; width: 2px; height: calc((100% - 36px) * var(--p, 0)); border-radius: 2px;
    background: linear-gradient(180deg, var(--primary-glow), var(--accent-glow)); transition: height .3s linear;
}
.mtl-story__step { position: relative; display: flex; gap: 16px; padding: 14px 0 14px 4px; }
.mtl-story__n {
    position: relative; z-index: 1; width: 28px; height: 28px; flex: none; margin-left: -22px; display: grid; place-items: center; border-radius: 50%;
    font-size: 12px; font-weight: 700; color: var(--on-night-3); background: var(--night); border: 2px solid var(--night-line);
    transition: color .3s, border-color .3s, background-color .3s, box-shadow .3s;
}
.mtl-story__step h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--on-night-3); transition: color .3s; }
.mtl-story__step p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--on-night-3); transition: color .3s; }
.mtl-story__step.is-on h3 { color: var(--on-night); }
.mtl-story__step.is-on p { color: var(--on-night-2); }
.mtl-story__step.is-on .mtl-story__n { color: var(--on-color); background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 5px rgba(82, 98, 232, .25), 0 0 18px var(--primary); }

/* The window --------------------------------------------------------------- */
.mtl-app {
    --app-h: min(640px, calc(100svh - 140px));
    position: relative; overflow: hidden; border-radius: 20px; background: var(--surface); color: var(--text); font-size: 13px;
    border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 60px 120px -30px rgba(0, 0, 0, .8), 0 0 120px -20px rgba(82, 98, 232, .45);
}
.mtl-app__chrome { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: var(--surface-3); border-bottom: 1px solid var(--border); }
.mtl-app__lights { display: inline-flex; gap: 7px; }
.mtl-app__lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.mtl-app__url { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 8px; background: var(--surface); font-size: 12px; color: var(--muted); }
.mtl-app__url .ic { width: 11px; height: 11px; }
.mtl-app__body { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: var(--app-h); }

.mtl-app__rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; border-right: 1px solid var(--border); background: var(--surface); }
.mtl-app__rail > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.mtl-app__rail .ic { width: 15px; height: 15px; }
.mtl-app__rail > .mtl-app__logo { color: var(--on-color); background: var(--brand-gradient); border-radius: 50%; }
.mtl-app__new { color: var(--on-color) !important; background: var(--primary); margin-bottom: 8px; }
.mtl-app__conv.is-active { color: var(--primary-strong) !important; background: var(--primary-soft); }

.mtl-app__chat { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.mtl-app__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mtl-app__head b { display: block; font-size: 13.5px; color: var(--ink); }
.mtl-app__head small { font-size: 11.5px; color: var(--muted); }
.mtl-app__head > div { flex: 1; min-width: 0; }
.mtl-app__avatar { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--on-color); background: var(--brand-gradient); }
.mtl-app__avatar .ic { width: 14px; height: 14px; }
.mtl-app__status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--primary-strong); background: var(--primary-soft); border: 1px solid var(--primary-line); }
.mtl-app__status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: mtl-breathe 1.2s ease-in-out infinite; }
.mtl-app__status .is-done { display: none; }
.mtl-app[data-step="4"] .mtl-app__status { color: var(--success); background: var(--success-soft); border-color: var(--success-line); }
.mtl-app[data-step="4"] .mtl-app__status i { animation: none; }
.mtl-app[data-step="4"] .mtl-app__status .is-run { display: none; }
.mtl-app[data-step="4"] .mtl-app__status .is-done { display: inline; }

/* landing.js keeps the newest part in view, like the agent's own chat */
.mtl-app__msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 8px; overflow: hidden; }
.mtl-app__q, .mtl-app__turn { flex: none; }
.mtl-app__q { align-self: flex-end; max-width: 88%; padding: 10px 13px; border-radius: 14px 14px 4px 14px; background: var(--primary); color: var(--on-color); line-height: 1.5; box-shadow: 0 8px 20px -10px rgba(82, 98, 232, .8); }
.mtl-app__turn { display: flex; gap: 10px; align-items: flex-start; }
.mtl-app__col { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mtl-app__lookups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 7px 9px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); }
.mtl-app__lookup { display: flex; align-items: center; gap: 8px; padding: 2px 0; color: var(--text-2); font-size: 12px; }
.mtl-app__lookup > span { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; color: var(--primary-strong); background: var(--primary-soft); }
.mtl-app__lookup .ic { width: 11px; height: 11px; }
.mtl-app__lookup em { flex: 1; min-width: 0; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtl-app__lookup b { width: 15px; height: 15px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--success); background: var(--success-soft); }
.mtl-app__lookup b .ic { width: 9px; height: 9px; stroke-width: 3.2; }
.mtl-app__answer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.55; }
.mtl-app__answer strong { color: var(--ink); }
/* The answer: three streets, three clocks */
.mtl-app { --c-breakfast: var(--primary); --c-weekends: var(--accent-strong); --c-nights: var(--heat-3); }
.mtl-app__clocks { display: grid; gap: 6px; }
.mtl-app__clock { display: grid; grid-template-columns: 96px minmax(40px, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); }
.mtl-app__clock.is-breakfast { border-color: var(--primary-line); background: var(--primary-soft); }
.mtl-app__clock-name { display: grid; line-height: 1.2; min-width: 0; }
.mtl-app__clock-name b { font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.mtl-app__clock-name small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.mtl-app__clock.is-breakfast, .mtl-app__key .is-breakfast, .mtl-app__table .is-breakfast { --c: var(--c-breakfast); }
.mtl-app__clock.is-weekends, .mtl-app__key .is-weekends, .mtl-app__table .is-weekends { --c: var(--c-weekends); }
.mtl-app__clock.is-nights, .mtl-app__key .is-nights, .mtl-app__table .is-nights { --c: var(--c-nights); }
.mtl-app__spark { width: 100%; height: 24px; overflow: visible; }
.mtl-app__spark path { fill: none; stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mtl-app__spark .is-wd { stroke: var(--c); }
.mtl-app__spark .is-we { stroke: var(--c); stroke-dasharray: 2 3; opacity: .55; }
.mtl-app__clock-fig { display: grid; justify-items: end; line-height: 1.15; }
.mtl-app__clock-fig em { font-style: normal; font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.mtl-app__clock-fig small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.mtl-app__next { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.mtl-app__next > span { margin-right: 2px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mtl-app__next i { padding: 3px 9px; border-radius: var(--r-full); font-style: normal; font-size: 11px; color: var(--primary-strong); background: var(--surface); border: 1px solid var(--primary-line); }
.mtl-app__composer { display: flex; align-items: center; justify-content: space-between; margin: 8px 14px 14px; padding: 9px 9px 9px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.mtl-app__composer i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--on-color); background: var(--primary); }
.mtl-app__composer .ic { width: 13px; height: 13px; }

.mtl-app__panel { position: relative; display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--border); background: var(--surface); }
.mtl-app__tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mtl-app__tabs span { padding: 6px 10px 9px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .3s, border-color .3s; }
.mtl-app__tabs b { display: inline-block; min-width: 16px; padding: 0 5px; border-radius: 999px; font-size: 10px; text-align: center; color: var(--primary-strong); background: var(--primary-soft); }
.mtl-app .is-map, .mtl-app.is-data .is-data { color: var(--primary-strong); border-bottom-color: var(--primary); }
.mtl-app.is-data .is-map { color: var(--muted); border-bottom-color: transparent; }
.mtl-app__map, .mtl-app__data { position: absolute; inset: 41px 0 0; transition: opacity .5s var(--ease); }
.mtl-app__map { overflow: hidden; background: var(--surface-3); container-type: size; }
/* The image and its overlay share one box of the image's proportions, so every pin stays on its street */
.mtl-app__frame {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: max(100cqw, calc(100cqh * 420 / 640)); height: max(100cqh, calc(100cqw * 640 / 420));   /* cover, like the image would */
}
.mtl-app__frame img { display: block; width: 100%; height: 100%; }
.mtl-app__credit { position: absolute; right: 6px; bottom: 4px; font-size: 9px; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 1px 5px; border-radius: 4px; }
.mtl-app__data { opacity: 0; padding: 14px; display: grid; align-content: start; gap: 14px; background: var(--surface); }
.mtl-app.is-data .mtl-app__data { opacity: 1; }
.mtl-app.is-data .mtl-app__map { opacity: 0; }
.mtl-app__layer { position: absolute; inset: 0; }
.mtl-app__dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--warning-bright); border: 1.5px solid var(--on-color); box-shadow: 0 1px 3px rgba(15, 23, 42, .3); }
.mtl-app__ring { position: absolute; width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px dashed rgba(82, 98, 232, .7); background: rgba(82, 98, 232, .08); }
.mtl-app__pin {
    position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; display: grid; place-items: center; border-radius: 50%;
    font-size: 11px; font-weight: 700; color: var(--on-color); background: var(--ink); border: 2px solid var(--on-color); box-shadow: 0 6px 14px rgba(15, 23, 42, .35);
}
.mtl-app__pin.is-first { background: var(--primary); width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.mtl-app__legend { position: absolute; left: 10px; bottom: 22px; display: grid; gap: 5px; padding: 8px 10px; border-radius: 10px; font-size: 11px; color: var(--text-2); background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-md); }
.mtl-app__legend div { display: flex; align-items: center; gap: 7px; }
.mtl-app__legend b { margin-left: auto; padding-left: 12px; color: var(--ink); }
.mtl-app__legend i { width: 9px; height: 9px; border-radius: 50%; }
.mtl-app__legend .is-site { background: var(--primary); }
.mtl-app__legend .is-comp { background: var(--warning-bright); }
.mtl-app__chart { padding: 12px 12px 10px; border-radius: 12px; border: 1px solid var(--border); }
.mtl-app__chart-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.mtl-app__kind { padding: 1px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-strong); background: var(--primary-soft); }
.mtl-app__curves { display: block; width: 100%; height: 150px; color: var(--primary); overflow: visible; }
.mtl-app__gridline { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mtl-app__line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.mtl-app__line.is-breakfast { stroke: var(--c-breakfast); stroke-width: 3.2; }
.mtl-app__line.is-weekends { stroke: var(--c-weekends); }
.mtl-app__line.is-nights { stroke: var(--c-nights); }
.mtl-app__plot { position: relative; padding-top: 16px; }
.mtl-app__mark { position: absolute; top: 0; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--muted); }
.mtl-app__markline { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.mtl-app__key i { background: var(--c); }
.mtl-app__table { padding: 12px; border-radius: 12px; border: 1px solid var(--border); }
.mtl-app__table table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.mtl-app__table th { padding: 0 6px 6px; text-align: right; font-size: 10px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); }
.mtl-app__table td { padding: 6px; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--surface-3); }
.mtl-app__table th:first-child, .mtl-app__table td:first-child { padding-left: 0; text-align: left; }
.mtl-app__table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.mtl-app__table td i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--c); }
.mtl-app__table td.is-hi { font-weight: 800; color: var(--ink); }
.mtl-app__axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10px; color: var(--muted); }
.mtl-app__key { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--text-2); }
.mtl-app__key i { display: inline-block; width: 10px; height: 3px; margin-right: 5px; border-radius: 2px; vertical-align: 3px; }

/* The steps, in motion (landing.js sets data-step and .is-on). A part not reached yet takes no
   space (so the chat grows as the real one does) and plays its entrance when it appears. Without
   landing.js, or with reduced motion: the finished answer. */
@media (prefers-reduced-motion: no-preference) {
    .mtl-js .mtl-app [data-at]:not(.is-on) { display: none; }
    .mtl-js .mtl-app [data-at].is-on { animation: mtl-rise .55s var(--ease) both; }
    .mtl-js .mtl-app__turn.is-on .mtl-app__lookup { animation: mtl-slide .4s var(--ease) both; animation-delay: calc(var(--i) * .32s); }
    .mtl-js .mtl-app__turn.is-on .mtl-app__lookup b { animation: mtl-pop .35s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * .32s + .3s); }
    .mtl-js .mtl-app__layer.is-on .mtl-app__dot { animation: mtl-pop .4s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(.35s + var(--d) * 45ms); }
    .mtl-js .mtl-app__layer.is-on .mtl-app__pin { animation: mtl-drop .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * .12s); }
    .mtl-js .mtl-app__layer.is-on .mtl-app__ring { animation: mtl-ring .8s var(--ease) both; animation-delay: .15s; }
    .mtl-js .mtl-app__curves g { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease) .25s; }
    .mtl-js .mtl-app.is-data .mtl-app__curves g { clip-path: inset(0 0 0 0); }
}
@keyframes mtl-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mtl-slide { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes mtl-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes mtl-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes mtl-ring { from { opacity: 0; transform: translate(-50%, -50%) scale(.3); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* Scroll-driven on wide screens: the stage holds while the steps advance (landing.js) */
@media (min-width: 1600px) {
    .mtl-app { --app-h: min(720px, calc(100svh - 140px)); }
    .mtl-story__grid { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
}
@media (min-width: 1100px) {
    .mtl-js .mtl-story__track.is-scrolly { height: calc(var(--steps, 5) * 55vh + 100vh); padding: 0; }
    .mtl-js .mtl-story__track.is-scrolly .mtl-story__stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 56px; }
}
@media (max-width: 1099px) {
    .mtl-story__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-10); }
    .mtl-story__steps { order: 2; max-width: 640px; }
    .mtl-story__step h3 { color: var(--on-night); }
    .mtl-story__step p { color: var(--on-night-2); }
}
@media (max-width: 760px) {
    .mtl-app { --app-h: 760px; font-size: 12px; }
    .mtl-app__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 380px; }
    .mtl-app__rail, .mtl-app__url { display: none; }
    .mtl-app__panel { border-left: 0; border-top: 1px solid var(--border); }
        }

/* The answer in numbers, under the story */
.mtl-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: var(--sp-10) 0 var(--sp-6); border-top: 1px solid var(--night-line); }
.mtl-figures div { display: flex; flex-direction: column; gap: 10px; padding: 0 var(--sp-6); border-left: 1px solid var(--night-line); }
.mtl-figures div:first-child { padding-left: 0; border-left: 0; }
.mtl-figures dd {
    font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); font-weight: 800; letter-spacing: -.05em; line-height: 1.04;
    background: linear-gradient(135deg, var(--on-night) 0%, var(--primary-glow) 55%, var(--accent-glow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mtl-figures dd { order: -1; }
.mtl-figures dt { max-width: 240px; font-size: 15px; line-height: 1.45; color: var(--on-night-2); }
.mtl-figures__note { margin: 0 0 var(--sp-16); font-size: 13px; line-height: 1.5; color: var(--on-night-3); }
.mtl-figures__note b { color: var(--on-night-2); }
@media (max-width: 900px) {
    .mtl-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-10) 0; }
    .mtl-figures div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* =========================================================================
   Hours: the busy-hours chart, on night
   ========================================================================= */
.mtl-hours { position: relative; padding: var(--sp-16) 0; color: var(--on-night); overflow: hidden; }
.mtl-hours::before { content: ""; position: absolute; left: 50%; top: 12%; width: 1200px; height: 700px; margin-left: -600px; pointer-events: none; filter: blur(60px); opacity: .5;
    background: radial-gradient(40% 50% at 35% 50%, rgba(82, 98, 232, .45), transparent 70%), radial-gradient(35% 45% at 70% 45%, rgba(24, 184, 172, .3), transparent 70%); }
.mtl-hours .ui-container { position: relative; }
.mtl-hours__head { max-width: 860px; margin-bottom: var(--sp-10); }
.mtl-hours__head h2 { margin-top: var(--sp-3); }
.mtl-hours__card { padding: clamp(18px, 3vw, 36px); border-radius: 28px; background: linear-gradient(180deg, rgba(18, 24, 49, .9), rgba(10, 14, 28, .9)); border: 1px solid var(--night-line); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); }
.mtl-hours__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.mtl-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-full); background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); }
.mtl-seg__btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border: 0; border-radius: var(--r-full); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--on-night-2); background: transparent; transition: background-color .25s, color .25s; }
.mtl-seg__btn em { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 11px; color: var(--on-night); background: rgba(255, 255, 255, .1); }
.mtl-seg__btn:hover { color: var(--on-night); }
.mtl-seg__btn[aria-pressed="true"] { color: var(--night); background: var(--on-night); }
.mtl-seg__btn[aria-pressed="true"] em { color: var(--on-color); background: var(--primary); }
.mtl-hours__unit { display: inline-flex; align-items: center; gap: 10px; max-width: 460px; font-size: 13px; line-height: 1.4; color: var(--on-night-3); }
.mtl-hours__unit b { flex: none; padding: 4px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; color: var(--on-night); background: rgba(139, 151, 255, .18); border: 1px solid rgba(139, 151, 255, .35); }

.mtl-hours__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr); gap: var(--sp-8); align-items: end; margin: var(--sp-10) 0 var(--sp-8); }
.mtl-hours__lead { display: flex; align-items: flex-end; gap: 18px; }
.mtl-hours__lead > b {
    font-family: var(--font-display); font-size: clamp(64px, 8vw, 112px); font-weight: 800; letter-spacing: -.06em; line-height: .85;
    background: linear-gradient(135deg, var(--on-night) 10%, var(--primary-glow) 55%, var(--accent-glow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mtl-hours__lead > span { padding-bottom: 6px; font-size: 15px; line-height: 1.4; color: var(--on-night-2); }
.mtl-hours__lead strong { font-weight: 600; color: var(--on-night); }
.mtl-hours__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.mtl-hours__stats > div { display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); }
.mtl-hours__stats dt { font-size: 12.5px; line-height: 1.35; color: var(--on-night-3); }
.mtl-hours__stats dd { margin-top: 10px; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--on-night); font-variant-numeric: tabular-nums; }

/* When the day's visits happen: one bar, four parts of the day */
.mtl-hours__split { margin-bottom: var(--sp-8); }
.mtl-hours__split-title { display: block; margin-bottom: 10px; font-size: 12.5px; color: var(--on-night-3); }
.mtl-hours__split-bar { display: flex; gap: 3px; height: 12px; border-radius: var(--r-full); overflow: hidden; }
.mtl-hours__split-bar i { flex: var(--w) 0 0; }
.mtl-hours__split-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 13px; color: var(--on-night-2); }
.mtl-hours__split-key span { display: inline-flex; align-items: center; gap: 7px; }
.mtl-hours__split-key i { width: 9px; height: 9px; border-radius: 50%; }
.mtl-hours__split-key b { color: var(--on-night); font-weight: 600; font-variant-numeric: tabular-nums; }
.mtl-hours__split .is-morning { background: var(--accent-glow); }
.mtl-hours__split .is-midday { background: var(--heat-2); }
.mtl-hours__split .is-afternoon { background: var(--heat-3); }
.mtl-hours__split .is-evening { background: var(--primary-glow); }

.mtl-hours__grid { position: relative; margin: 0; }
.mtl-hours__cells { display: grid; gap: 4px; }
.mtl-hours__row, .mtl-hours__axis { display: grid; grid-template-columns: 40px repeat(24, minmax(0, 1fr)); gap: 4px; align-items: center; }
.mtl-hours__row > span { font-size: 12px; font-weight: 600; color: var(--on-night-3); }
.mtl-hours__row i { height: clamp(16px, 2.6vw, 30px); border-radius: 6px; transition: transform .2s var(--ease), box-shadow .2s; }
.mtl-hours__row i:hover { transform: scale(1.18); box-shadow: 0 0 0 2px var(--on-night), 0 0 20px rgba(255, 255, 255, .35); position: relative; z-index: 1; }
.mtl-hours__row i.is-peak { position: relative; z-index: 1; box-shadow: 0 0 0 2px var(--on-night), 0 0 24px rgba(239, 68, 68, .7); }
.mtl-hours__axis span { white-space: nowrap; overflow: visible; }
.mtl-hours__legend { display: grid; grid-template-columns: max-content minmax(0, 280px); grid-template-rows: auto auto; justify-content: end; align-items: center; gap: 6px 14px; margin-top: var(--sp-5); margin-left: 44px; font-size: 12px; color: var(--on-night-3); }
.mtl-hours__legend span { grid-row: 1 / span 2; font-weight: 600; color: var(--on-night-2); }
.mtl-hours__legend i { height: 8px; border-radius: 4px; }
.mtl-hours__legend em { grid-row: 2; font-style: normal; font-variant-numeric: tabular-nums; }
.mtl-hours__legend em:nth-of-type(1) { grid-column: 2; justify-self: start; }
.mtl-hours__legend em:nth-of-type(2) { grid-column: 2; justify-self: center; }
.mtl-hours__legend em:nth-of-type(3) { grid-column: 2; justify-self: end; }
.mtl-hours__axis span { font-size: 11px; color: var(--on-night-3); font-variant-numeric: tabular-nums; }
.mtl-hours__tip {
    position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); padding: 6px 10px; border-radius: 10px; white-space: nowrap;
    font-size: 12.5px; font-weight: 600; color: var(--night); background: var(--on-night); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.mtl-hours__tip b { color: var(--primary-strong); }
.mtl-hours__curves { margin-top: var(--sp-12); padding-left: 44px; }
.mtl-hours__plot { position: relative; height: 200px; }
.mtl-hours__curves svg { display: block; width: 100%; height: 100%; overflow: visible; color: var(--primary-glow); }
.mtl-hours__tick { position: absolute; left: -44px; transform: translateY(-50%); font-size: 11px; color: var(--on-night-3); font-variant-numeric: tabular-nums; }
.mtl-hours__mark { position: absolute; width: 0; height: 0; }
.mtl-hours__mark i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--night); }
.mtl-hours__mark--wd i { background: var(--primary-glow); box-shadow: 0 0 12px var(--primary-glow); }
.mtl-hours__mark--we i { background: var(--accent-glow); box-shadow: 0 0 12px var(--accent-glow); }
.mtl-hours__axis--curve { display: flex; justify-content: space-between; margin-top: 10px; }
.mtl-hours__curves line { stroke: var(--night-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mtl-hours__curves path.is-wd, .mtl-hours__curves path.is-we { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mtl-hours__curves path.is-wd { stroke: var(--primary-glow); filter: drop-shadow(0 0 8px rgba(139, 151, 255, .6)); }
.mtl-hours__curves path.is-we { stroke: var(--accent-glow); filter: drop-shadow(0 0 8px rgba(79, 224, 210, .5)); }
.mtl-hours__key { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 14px; font-size: 13px; color: var(--on-night-2); }
.mtl-hours__key span { display: inline-flex; align-items: center; }
.mtl-hours__key b { margin-left: 8px; font-weight: 600; color: var(--on-night); }
.mtl-hours__key i { display: inline-block; width: 14px; height: 3px; margin-right: 7px; border-radius: 2px; vertical-align: 4px; }
.mtl-hours__key .is-wd { background: var(--primary-glow); }
.mtl-hours__key .is-we { background: var(--accent-glow); }
@media (prefers-reduced-motion: no-preference) {
    .mtl-js .mtl-hours__row i { opacity: 0; transform: scale(.4); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--x) * 22ms + var(--y) * 6ms); }
    .mtl-js .mtl-hours__card.is-in .mtl-hours__row i { opacity: 1; transform: none; }
    .mtl-js .mtl-hours__curves g { clip-path: inset(-20px 100% -20px 0); transition: clip-path 2s var(--ease) .6s; }
    .mtl-js .mtl-hours__card.is-in .mtl-hours__curves g { clip-path: inset(-20px 0 -20px 0); }
}
@media (max-width: 1024px) {
    .mtl-hours__top { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--sp-6); }
}
@media (max-width: 640px) {
    .mtl-hours__stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .mtl-hours__stats > div { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; }
    .mtl-hours__stats dd { margin-top: 0; font-size: 24px; }
    .mtl-hours__lead > b { font-size: 76px; }
    .mtl-hours__legend { margin-left: 30px; }
    .mtl-hours__curves { padding-left: 34px; }
    .mtl-hours__tick { left: -34px; }
    .mtl-hours__unit { max-width: none; }
}
@media (max-width: 640px) {
    .mtl-hours__row, .mtl-hours__axis { grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; }
    .mtl-hours__cells { gap: 2px; }
    .mtl-hours__row i { border-radius: 3px; }
    .mtl-hours__axis span { font-size: 9px; }
    .mtl-seg { width: 100%; }
    .mtl-seg__btn { flex: 1; justify-content: center; padding: 8px 6px; font-size: 12px; line-height: 1.2; text-align: center; white-space: normal; }
    .mtl-seg__btn em { display: none; }
    .mtl-hours__key { flex-direction: column; gap: 6px; }
}

/* =========================================================================
   Tiles: what Maria can look up, as glass on night
   ========================================================================= */
.mtl-bento-sec { padding: var(--sp-16) 0; --glow-top: 10%; }
.mtl-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.mtl-tile {
    position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 250px; padding: 28px; border-radius: 28px;
    color: var(--on-night); background: linear-gradient(180deg, var(--night-3) 0%, var(--night-2) 100%); border: 1px solid var(--night-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.mtl-tile h3 { margin-top: 10px; font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--on-night); text-wrap: balance; }
.mtl-tile__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--primary-glow); }
.mtl-tile__kicker .ic { width: 16px; height: 16px; }
.mtl-tile__sub { margin-top: auto; padding-top: var(--sp-4); font-size: 15px; line-height: 1.5; color: var(--on-night-2); }
.mtl-tile__big { margin-top: auto; font-family: var(--font-display); font-size: clamp(44px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1.04;
    background: linear-gradient(135deg, var(--on-night) 0%, var(--primary-glow) 55%, var(--accent-glow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mtl-tile__big + .mtl-tile__sub { margin-top: 8px; padding-top: 0; }
.mtl-tile__sub b { color: var(--on-night); font-weight: 700; }
/* The question each tile answers, as the user's message in a chat */
.mtl-tile__ask {
    align-self: flex-start; max-width: 100%; margin-top: 14px; padding: 9px 14px 9px 12px; border-radius: 16px 16px 16px 4px;
    font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--on-night); text-wrap: balance;
    background: rgba(139, 151, 255, .14); border: 1px solid rgba(139, 151, 255, .3);
}
.mtl-tile__ask::before { content: "\201C"; margin-right: 2px; color: var(--primary-glow); }
.mtl-tile__ask::after { content: "\201D"; margin-left: 1px; color: var(--primary-glow); }
.mtl-tile__take { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--night-line); font-size: 14px; line-height: 1.5; color: var(--on-night-2); }

/* Competitors: a radar */
.mtl-tile--comp {
    grid-column: span 4; grid-row: span 2; padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr auto; gap: 0 var(--sp-8);
    background: radial-gradient(70% 80% at 75% 50%, rgba(82, 98, 232, .22), transparent 70%), linear-gradient(180deg, var(--night-3) 0%, var(--night-2) 100%);
}
.mtl-tile--comp h3 { font-size: clamp(26px, 2.8vw, 38px); }
.mtl-tile--comp p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--on-night-2); }
.mtl-tile__radar {
    grid-column: 2; grid-row: 1 / span 2; position: relative; align-self: center; width: 100%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(82, 98, 232, .16) 0%, rgba(82, 98, 232, .04) 55%, transparent 70%);
}
.mtl-tile__ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(139, 151, 255, .45); box-shadow: inset 0 0 40px rgba(82, 98, 232, .2); }
.mtl-tile__ring--half { inset: 29%; border-style: dashed; border-color: rgba(139, 151, 255, .25); box-shadow: none; }
.mtl-tile__sweep { position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(79, 224, 210, .35), rgba(79, 224, 210, 0) 22%, transparent 100%); }
@media (prefers-reduced-motion: no-preference) { .mtl-tile__sweep { animation: mtl-spin 6s linear infinite; } }
@keyframes mtl-spin { to { transform: rotate(360deg); } }
.mtl-tile__radar i { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--warning-bright); box-shadow: 0 0 10px rgba(245, 158, 11, .8); }
@media (prefers-reduced-motion: no-preference) { .mtl-tile__radar i { animation: mtl-blip 3s ease-in-out infinite; animation-delay: calc(var(--d) * -.33s); } }
@keyframes mtl-blip { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
.mtl-tile__radar b { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--primary-glow); box-shadow: 0 0 0 5px rgba(139, 151, 255, .25), 0 0 26px var(--primary-glow); }
.mtl-tile__radar small { position: absolute; left: 50%; top: 8%; transform: translate(-50%, -140%); font-size: 11px; font-weight: 600; color: var(--on-night-3); }
.mtl-tile__figs { grid-column: 1; grid-row: 2 / span 2; align-self: end; display: grid; gap: 14px; margin-top: var(--sp-8); }
.mtl-tile__key { grid-column: 2; grid-row: 3; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: var(--sp-3); font-size: 12px; color: var(--on-night-3); }
.mtl-tile__key span { display: inline-flex; align-items: center; gap: 7px; }
.mtl-tile__key i { width: 8px; height: 8px; border-radius: 50%; background: var(--warning-bright); box-shadow: 0 0 8px rgba(245, 158, 11, .7); }
.mtl-tile__key i.is-site { width: 10px; height: 10px; background: var(--primary-glow); box-shadow: 0 0 0 3px rgba(139, 151, 255, .25); }
.mtl-tile__figs div { padding-top: 14px; border-top: 1px solid var(--night-line); }
.mtl-tile__figs dt { font-size: 13px; color: var(--on-night-3); }
.mtl-tile__figs dd { margin-top: 2px; font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--on-night); }
.mtl-tile__figs dd small { font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--on-night-3); }

.mtl-tile--people, .mtl-tile--walk { grid-column: span 2; }
.mtl-tile__bars { display: grid; gap: 9px; margin-top: var(--sp-5); }
.mtl-tile__bars div { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12px; color: var(--on-night-2); }
.mtl-tile__bars span { white-space: nowrap; }
.mtl-tile__bars i { display: block; height: 6px; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, var(--primary-glow), var(--accent-glow)); box-shadow: 0 0 10px rgba(79, 224, 210, .35); }
.mtl-tile__bars b { font-weight: 600; color: var(--on-night); font-variant-numeric: tabular-nums; }
.mtl-tile__gauge { position: relative; width: 132px; height: 132px; margin: var(--sp-5) auto 0; }
.mtl-tile__gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.mtl-tile__gauge circle { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 10; }
.mtl-tile__gauge circle.is-val { stroke: var(--accent-glow); stroke-linecap: round; stroke-dasharray: var(--v) 100; filter: drop-shadow(0 0 8px rgba(79, 224, 210, .6)); }
.mtl-tile__gauge b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: var(--on-night); }
.mtl-tile__gauge b small { align-self: center; margin-top: 12px; font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--on-night-3); }

.mtl-tile--brand, .mtl-tile--reach, .mtl-tile--city { grid-column: span 2; }
.mtl-tile__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: var(--sp-5); }
.mtl-tile__chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-full); font-size: 13px; font-weight: 500; color: var(--on-night-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); }
.mtl-tile__chips .ic { width: 14px; height: 14px; color: var(--primary-glow); }
.mtl-tile__iso { position: relative; height: 120px; margin-top: var(--sp-5); }
.mtl-tile__iso i { position: absolute; left: 50%; top: 50%; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; transform: translate(-50%, -50%); }
.mtl-tile__iso i:nth-child(1) { width: 220px; height: 116px; background: rgba(24, 184, 172, .1); border: 1.5px solid rgba(79, 224, 210, .4); }
.mtl-tile__iso i:nth-child(2) { width: 150px; height: 80px; background: rgba(82, 98, 232, .16); border: 1.5px solid rgba(139, 151, 255, .5); border-radius: 58% 42% 50% 50% / 46% 56% 44% 54%; }
.mtl-tile__iso i:nth-child(3) { width: 80px; height: 44px; background: rgba(82, 98, 232, .32); border: 1.5px solid var(--primary-glow); box-shadow: 0 0 24px rgba(82, 98, 232, .5); }
.mtl-tile__iso em { position: absolute; left: 50%; top: 0; transform: translate(-50%, -55%); padding: 1px 7px; border-radius: var(--r-full); font-size: 11px; font-style: normal; font-weight: 600; white-space: nowrap; color: var(--on-night-2); background: var(--night-2); }
.mtl-tile__iso b { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--on-night); box-shadow: 0 0 0 4px rgba(139, 151, 255, .35), 0 0 16px var(--primary-glow); }
.mtl-tile__blocks { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: var(--sp-5); padding: 0 6px; border-bottom: 1px solid var(--night-line); }
.mtl-tile__blocks i { flex: 1; height: calc(var(--h) * 1%); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(139, 151, 255, .35) 0%, rgba(139, 151, 255, .06) 100%); border: 1px solid rgba(139, 151, 255, .3); border-bottom: 0; }
.mtl-tile__blocks i:nth-child(4) { background: linear-gradient(180deg, var(--primary-glow) 0%, rgba(82, 98, 232, .3) 100%); border-color: var(--primary-glow); box-shadow: 0 0 24px rgba(82, 98, 232, .5); }

.mtl-tile--more { grid-column: span 6; min-height: 0; padding: 22px 28px; }
.mtl-tile__more-label { font-size: 13px; font-weight: 700; color: var(--primary-glow); }
.mtl-tile--more ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 14px; align-items: center; }
.mtl-tile--more li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--on-night-2); }
.mtl-tile--more .ic { width: 18px; height: 18px; flex: none; color: var(--primary-glow); }

@media (max-width: 1024px) {
    .mtl-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mtl-tile--comp { grid-column: span 2; grid-row: auto; }
    .mtl-tile--people, .mtl-tile--walk, .mtl-tile--brand, .mtl-tile--reach, .mtl-tile--city { grid-column: span 1; }
    .mtl-tile--more { grid-column: span 2; }
    .mtl-tile--more ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .mtl-bento { grid-template-columns: minmax(0, 1fr); }
    .mtl-tile--comp { grid-column: auto; grid-template-columns: minmax(0, 1fr); padding: 26px; }
    .mtl-tile__radar { grid-column: 1; grid-row: auto; margin-top: var(--sp-8); }
    .mtl-tile--people, .mtl-tile--walk, .mtl-tile--brand, .mtl-tile--reach, .mtl-tile--city, .mtl-tile--more { grid-column: auto; }
    .mtl-tile--more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mtl-tile__figs, .mtl-tile__key { grid-column: 1; grid-row: auto; }
    .mtl-tile__figs { order: 1; }
    .mtl-tile { min-height: 0; padding: 24px; border-radius: 22px; }
}

/* =========================================================================
   Scorecard: the report, on night, in perspective
   ========================================================================= */
.mtl-score { position: relative; padding: var(--sp-16) 0; color: var(--on-night); overflow: hidden; }
.mtl-score::before { content: ""; position: absolute; right: -10%; top: 10%; width: 900px; height: 900px; pointer-events: none; filter: blur(80px); opacity: .55;
    background: radial-gradient(closest-side, rgba(82, 98, 232, .55), rgba(24, 184, 172, .15) 60%, transparent); }
.mtl-score__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--sp-16); align-items: center; }
.mtl-score h2 { margin-top: var(--sp-3); }
.mtl-score h2 span { background: linear-gradient(92deg, var(--primary-glow), var(--accent-glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mtl-score__rank { display: grid; gap: 10px; margin-top: var(--sp-3); max-width: 560px; }
.mtl-score__caption { margin-top: var(--sp-8); font-size: 12.5px; color: var(--on-night-3); }
.mtl-score__rank li { display: grid; grid-template-columns: 24px minmax(0, 1fr) 160px 64px; align-items: center; gap: 12px; font-size: 14px; color: var(--on-night-2); }
.mtl-score__rank b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 11.5px; color: var(--on-night); background: rgba(255, 255, 255, .1); }
.mtl-score__rank li:first-child b { background: var(--primary); }
.mtl-score__rank span { min-width: 0; font-weight: 600; color: var(--on-night); line-height: 1.25; }
.mtl-score__rank span small { display: block; font-size: 12px; font-weight: 400; color: var(--on-night-3); }
.mtl-score__rank em { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mtl-score__rank em i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, var(--primary-glow), var(--accent-glow)); }
.mtl-score__rank strong { font-family: var(--font-display); font-size: 18px; text-align: right; color: var(--on-night); }
.mtl-score__rank strong small { font-family: var(--font-sans); font-size: 11px; font-weight: 500; color: var(--on-night-3); }
.mtl-score__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-10); }
.mtl-score__pages { --t: 0; position: relative; display: block; height: 600px; perspective: 1800px; }
.mtl-score__page {
    position: absolute; left: 50%; top: 50%; width: 330px; height: auto; border-radius: 8px; background: var(--surface);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -20px rgba(0, 0, 0, .7); transition: transform .9s var(--ease);
}
.mtl-score__page--1 { z-index: 3; transform: translate(-50%, -50%) rotateY(calc(-14deg + var(--t) * 10deg)) rotateX(6deg) translateZ(60px); }
.mtl-score__page--2 { z-index: 2; transform: translate(-50%, -50%) translateX(calc(-150px - var(--t) * 30px)) rotateY(calc(-22deg + var(--t) * 8deg)) rotateX(6deg) scale(.88); filter: brightness(.82); }
.mtl-score__page--3 { z-index: 1; transform: translate(-50%, -50%) translateX(calc(160px + var(--t) * 30px)) rotateY(calc(-8deg + var(--t) * 8deg)) rotateX(6deg) scale(.88); filter: brightness(.82); }
.mtl-score__pages:hover .mtl-score__page--1 { transform: translate(-50%, -50%) rotateY(-4deg) rotateX(2deg) translateZ(90px); }
@media (max-width: 1024px) {
    .mtl-score__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-10); }
    .mtl-score__pages { height: 520px; }
}
@media (max-width: 640px) {
    .mtl-score__pages { height: 400px; }
    .mtl-score__page { width: 220px; }
    .mtl-score__page--2 { transform: translate(-50%, -50%) translateX(-90px) rotateY(-18deg) scale(.86); }
    .mtl-score__page--3 { transform: translate(-50%, -50%) translateX(90px) rotateY(-6deg) scale(.86); }
    .mtl-score__rank li { grid-template-columns: 24px minmax(0, 1fr) 56px 58px; }
    .mtl-score__actions .ui-btn { flex: 1 1 100%; }
}

/* =========================================================================
   Trust and the closing question
   ========================================================================= */
.mtl-trust { padding: var(--sp-16) 0 var(--sp-8); }
.mtl-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mtl-trust__item { padding: 26px; border-radius: 24px; background: linear-gradient(180deg, var(--night-3) 0%, var(--night-2) 100%); border: 1px solid var(--night-line); }
.mtl-trust__item > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--primary-glow); background: rgba(139, 151, 255, .12); border: 1px solid rgba(139, 151, 255, .25); }
.mtl-trust__item .ic { width: 21px; height: 21px; }
.mtl-trust__item h3 { margin-top: var(--sp-5); font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--on-night); }
.mtl-trust__item p { margin-top: var(--sp-2); font-size: 15px; line-height: 1.55; color: var(--on-night-2); }
@media (max-width: 1024px) { .mtl-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .mtl-trust__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    /* the icon beside the title, so four cards don't fill four screens */
    .mtl-trust__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 18px; border-radius: 20px; }
    .mtl-trust__item > span { width: 40px; height: 40px; border-radius: 12px; }
    .mtl-trust__item h3 { margin-top: 0; font-size: 17px; }
    .mtl-trust__item p { grid-column: 1 / -1; font-size: 14.5px; }
}

.mtl-close { position: relative; padding: var(--sp-16) 0 var(--sp-20); text-align: center; overflow: hidden; --glow-top: 10%; }
.mtl-close .ui-container { position: relative; }
.mtl-close h2 { font-size: clamp(40px, 6vw, 84px); }
.mtl-close .mtl-lede { margin-left: auto; margin-right: auto; }
.mtl-close .mtl-ask { max-width: 760px; margin: var(--sp-10) auto 0; }
.mtl-close .mtl-ask__try-label { justify-content: center; }
.mtl-close__alt { margin-top: var(--sp-5); font-size: 14px; color: var(--on-night-3); }
.mtl-close__alt a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-glow); font-weight: 600; }
.mtl-close__alt .ic { width: 14px; height: 14px; }

/* The footer, on the landing page: night like the rest */
.mtl-site--landing .mtl-footer { background: var(--night); border-top-color: var(--night-line); color: var(--on-night-3); }
.mtl-site--landing .mtl-footer__brand p, .mtl-site--landing .mtl-footer__col a, .mtl-site--landing .mtl-footer__bottom { color: var(--on-night-3); }
.mtl-site--landing .mtl-footer__col a:hover { color: var(--on-night); }
.mtl-site--landing .mtl-footer__title, .mtl-site--landing .mtl-footer .ui-brand__name { color: var(--on-night); }
.mtl-site--landing .mtl-footer__bottom { border-top-color: var(--night-line); }

/* =========================================================================
   Narrow screens: the hero
   ========================================================================= */
/* Tablets: the copy on top, the map's sites below it (landing.js frames them there) */
@media (min-width: 768px) and (max-width: 1099px) {
    .mtl-hero { align-items: flex-start; min-height: max(1240px, 100svh); }
    .mtl-hero__ui { padding-top: 140px; }
    .mtl-hero__shade { background: linear-gradient(180deg, rgba(5, 7, 15, .92) 0%, rgba(5, 7, 15, .84) 48%, rgba(5, 7, 15, .15) 64%, rgba(5, 7, 15, 0) 80%, var(--night) 100%); }
}
@media (max-width: 767px) {
    /* The map is a band under the copy (its still: hero-night-phone.jpg) */
    .mtl-hero { flex-direction: column; align-items: stretch; min-height: 0; }
    .mtl-hero__ui { order: 1; padding-top: 100px; padding-bottom: 0; }
    .mtl-hero__media { position: relative; order: 2; height: 420px; margin-top: -8px; }
    .mtl-hero__poster { object-position: 50% 50%; }
    .mtl-hero__shade { background: linear-gradient(180deg, var(--night) 0%, rgba(5, 7, 15, 0) 22%, rgba(5, 7, 15, 0) 80%, var(--night) 100%); }
    .mtl-hero h1 { font-size: clamp(38px, 10.6vw, 52px); }
    .mtl-hero__copy h1 { width: auto; }
    .mtl-hero__hud { display: none; }
    .mtl-hero__pin { gap: 6px; padding: 3px 9px 3px 3px; font-size: 11.5px; }
    .mtl-hero__pin b { width: 18px; height: 18px; font-size: 10px; }
    .mtl-hero__pin small { display: none; }
    .mtl-hero__credit { position: static; order: 4; margin: 0 var(--gutter) 24px; text-align: right; }
    .mtl-ask__box { border-radius: 22px; }
    .mtl-ask__head { padding: 12px 12px 0; }
    .mtl-ask__input { min-height: 60px; padding: 10px 14px 4px; font-size: 16px; }
    .mtl-ask__foot { flex-wrap: wrap; padding: 6px 10px 10px; }
    .mtl-ask__keys { display: none; }
    .mtl-ask__ready { flex: 1 1 100%; padding: 0 4px; }
    .mtl-ask__go { flex: 1 1 100%; justify-content: center; }
    .mtl-ask__cards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .mtl-try { min-height: 0; flex-direction: row; align-items: center; padding: 11px 12px; border-radius: 16px; }
    .mtl-try__top { display: contents; }
    .mtl-try__kind { display: none; }
    .mtl-try__q { flex: 1; order: 2; font-size: 14px; }
    .mtl-try__go { order: 3; }
    .mtl-statement { padding: var(--sp-12) 0 var(--sp-4); }
    .mtl-story { padding-top: var(--sp-12); }
    .mtl-hours, .mtl-bento-sec, .mtl-score, .mtl-trust, .mtl-close { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }
    .mtl-sec-head { margin-bottom: var(--sp-8); }
}
