/* Rovantra — product mockups.
   Static illustrations only: every value is typed in by hand and nothing is calculated.
   Mockups use container queries so each one reflows to the space it is given (phone first). */

/* ---------- Device frames ---------- */
.device-laptop { position: relative; width: 100%; }
.device-laptop .screen {
  border-radius: 14px 14px 4px 4px; padding: 8px; background: #05060A;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.6), 0 30px 120px -40px rgba(105,50,255,.55);
}
.device-laptop .base {
  height: 12px; margin: 0 -4%; border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #2A303A, #12151C); border: 1px solid rgba(255,255,255,.1); border-top: 0;
}
.device-laptop .base::after { content: ""; display: block; width: 16%; height: 5px; margin: 0 auto; background: #0B0D13; border-radius: 0 0 8px 8px; }

.device-phone {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: 40px; padding: 10px; background: #05060A;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 30px 100px -40px rgba(105,50,255,.6);
}
.device-phone .screen { border-radius: 31px; overflow: hidden; position: relative; }
.device-phone .notch { position: absolute; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: #05060A; }

.hero-devices { position: relative; padding-bottom: 40px; }
.hero-devices .device-phone { position: absolute; right: -4px; bottom: -8px; width: 34%; max-width: 210px; border-radius: 28px; padding: 6px; }
.hero-devices .device-phone .screen { border-radius: 22px; }
.hero-devices .device-phone .notch { width: 50px; height: 14px; top: 5px; }
@media (min-width: 1000px) { .hero-devices { padding-bottom: 0; margin-right: -40px; } .hero-devices .device-phone { right: -10px; bottom: -40px; } }

.illustrative { margin-top: 14px; font-size: 12px; color: var(--faint); text-align: center; }

/* ---------- App base ---------- */
.app {
  container-type: inline-size;
  background: #0B0D13; color: #E8EAF0;
  font: 500 11px/1.35 var(--font-body); font-variant-numeric: tabular-nums;
  border-radius: 8px; overflow: hidden; text-align: left;
}
.app.light { background: #F6F7F9; color: #1B2126; }
.app * { letter-spacing: 0; }
.app-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #11141C; border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap; overflow: hidden;
}
.app.light .app-bar { background: #fff; border-bottom-color: #E2E5EA; }
.app-bar .logo { width: 16px; height: 16px; flex: none; }
.app-bar .title { font-weight: 700; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.app-bar .sub { color: #8C94A6; overflow: hidden; text-overflow: ellipsis; }
.app-bar .spacer { flex: 1; }
.live {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px;
  background: rgba(52,210,123,.14); color: var(--ok); font-weight: 700; font-size: 9.5px; letter-spacing: .06em;
}
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.flag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; font-weight: 800; font-size: 9.5px; letter-spacing: .06em; }
.flag.green { background: #15A35A; color: #fff; }
.flag.yellow { background: #F2C94C; color: #1B1B1B; }
.flag.sc { background: #FFB547; color: #1B1B1B; }
.flag.red { background: #E5384F; color: #fff; }
.flag.chequered { background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0/8px 8px; color: transparent; width: 22px; }
.clock { font: 700 12px/1 var(--font-body); font-variant-numeric: tabular-nums; color: #fff; }
.app.light .clock { color: #1B2126; }

.panel { background: #12151D; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; min-width: 0; }
.app.light .panel { background: #fff; border-color: #E2E5EA; }
.panel-h {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8C94A6;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.app.light .panel-h { border-bottom-color: #EBEDF0; color: #6A737D; }
.panel-h b { color: #E8EAF0; letter-spacing: .04em; }
.app.light .panel-h b { color: #1B2126; }
.panel-b { padding: 10px; }

/* Timing colours */
.t-best { color: var(--t-best); font-weight: 700; }
.t-pb { color: var(--t-pb); font-weight: 700; }
.t-slow { color: var(--t-slow); }
.bg-best { background: rgba(180,140,255,.18); color: #D9C7FF; }
.bg-pb { background: rgba(52,210,123,.16); color: #8FF0BA; }
.bg-slow { background: rgba(242,201,76,.14); color: #F7DD8C; }
.dim { color: #6F788A; }

/* ---------- Timing tower ---------- */
.tower { width: 100%; border-collapse: collapse; white-space: nowrap; }
.tower th { font-size: 9px; font-weight: 700; letter-spacing: .06em; color: #6F788A; text-align: right; padding: 6px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.tower td { padding: 5px 6px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.035); }
.tower th:nth-child(-n+3), .tower td:nth-child(-n+3) { text-align: left; }
.tower .pos { width: 22px; font-weight: 700; color: #fff; }
.tower .no { width: 30px; }
.tower .no span { display: inline-block; min-width: 24px; padding: 2px 4px; border-radius: 3px; background: #262C3A; color: #fff; font-weight: 700; text-align: center; }
.tower .drv { color: #E8EAF0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.tower tr.team td { background: rgba(105,50,255,.16); }
.tower tr.team td:first-child { box-shadow: inset 3px 0 0 var(--purple); }
.tower tr.team .no span { background: var(--purple); }
.tower tr.pit td { color: #6F788A; }
.tower .pit-tag { display: inline-block; padding: 1px 5px; border-radius: 3px; background: rgba(78,168,240,.18); color: var(--info); font-size: 9px; font-weight: 800; }
.tower .sec { padding: 2px 5px; border-radius: 3px; }
.tower .c-md, .tower .c-lg { display: none; }
@container (min-width: 420px) { .tower .c-md { display: table-cell; } }
@container (min-width: 640px) { .tower .c-lg { display: table-cell; } .app { font-size: 11.5px; } }

/* ---------- Timing laptop layout ---------- */
.t-layout { display: grid; gap: 8px; padding: 8px; }
.t-side { display: grid; gap: 8px; align-content: start; }
@container (min-width: 700px) { .t-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
@container (max-width: 699px) { .t-side { display: none; } }

/* Focused car card */
.focus-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.big-no { font: 700 30px/1 var(--font-head); color: #fff; padding: 2px 8px; border-radius: 6px; background: var(--purple); }
.focus-head .who b { display: block; font-size: 12px; }
.focus-head .who span { color: #8C94A6; font-size: 10px; }
.focus-head .p { text-align: right; font: 700 22px/1 var(--font-head); }
.focus-head .p small { display: block; font: 600 9px var(--font-body); color: #8C94A6; letter-spacing: .08em; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.kv div { background: #0B0D13; border-radius: 5px; padding: 6px 8px; }
.app.light .kv div { background: #F3F4F7; }
.kv span { display: block; font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: #6F788A; font-weight: 700; }
.kv b { font-size: 13px; font-weight: 700; }
.sectors-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.sectors-row div { border-radius: 4px; padding: 5px 6px; text-align: center; font-weight: 700; }
.sectors-row small { display: block; font-size: 8px; opacity: .7; font-weight: 600; }

.progress { margin-top: 10px; }
.progress .lab { display: flex; justify-content: space-between; font-size: 9px; color: #8C94A6; margin-bottom: 4px; font-weight: 600; }
.progress .bar { height: 6px; border-radius: 6px; background: #1F2430; overflow: hidden; position: relative; }
.progress .bar i { position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: 6px; background: linear-gradient(90deg, var(--purple), #9A78FF); animation: lapfill 9s linear infinite; }
@keyframes lapfill { from { width: 4%; } to { width: 98%; } }

/* Race control feed */
.rc { display: grid; }
.rc li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.04); align-items: start; }
.rc time { color: #6F788A; font-weight: 600; }
.rc .tag { display: inline-block; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; padding: 1px 5px; border-radius: 3px; margin-right: 5px; vertical-align: 1px; }
.rc .tag.info { background: rgba(78,168,240,.18); color: var(--info); }
.rc .tag.pen { background: rgba(255,84,104,.18); color: var(--bad); }
.rc .tag.flag-y { background: rgba(242,201,76,.2); color: var(--t-slow); }
.rc .tag.flag-g { background: rgba(52,210,123,.18); color: var(--ok); }
.rc .tag.sc { background: rgba(255,181,71,.2); color: var(--warn); }

/* ---------- Car view: runs/stints ---------- */
.laps { width: 100%; border-collapse: collapse; white-space: nowrap; }
.laps th { font-size: 9px; letter-spacing: .06em; color: #6F788A; font-weight: 700; text-align: right; padding: 5px 6px; }
.laps td { text-align: right; padding: 4px 6px; border-top: 1px solid rgba(255,255,255,.035); }
.laps th:first-child, .laps td:first-child { text-align: left; }
.laps .run-h td { background: #171B26; color: #CDBEFF; font-weight: 700; text-align: left; font-size: 10px; letter-spacing: .04em; padding: 6px; }
.laps .run-h td span { color: #8C94A6; font-weight: 500; margin-left: 8px; }
.laps .note { color: #8C94A6; text-align: left; font-style: italic; }
.laps .c-md, .laps .c-lg { display: none; }
@container (min-width: 460px) { .laps .c-md { display: table-cell; } }
@container (min-width: 640px) { .laps .c-lg { display: table-cell; } }
.carview { display: grid; gap: 8px; padding: 8px; }
@container (min-width: 600px) { .carview { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.run-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.run-summary div { background: #0B0D13; border-radius: 5px; padding: 7px 8px; }
.run-summary span { display: block; font-size: 8.5px; font-weight: 700; color: #6F788A; letter-spacing: .08em; text-transform: uppercase; }
.run-summary b { font-size: 13px; }
.chart { width: 100%; height: auto; }
.chart .grid { stroke: rgba(255,255,255,.06); }
.chart .axis { fill: #6F788A; font: 600 8px var(--font-body); }
.chart .line { fill: none; stroke: var(--purple-hi); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line2 { fill: none; stroke: #4EA8F0; stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart .dot { fill: #0B0D13; stroke: var(--purple-hi); stroke-width: 1.5; }
.chart .best { fill: var(--t-best); stroke: none; }
.chart .area { fill: url(#chartfill); }

/* ---------- Phone "My car" ---------- */
.phone-app { min-height: 560px; padding-top: 30px; display: flex; flex-direction: column; font-size: 11px; }
.phone-app .app-bar { padding: 8px 14px; background: transparent; border: 0; }
.phone-hero { padding: 6px 14px 12px; display: grid; gap: 10px; }
.phone-hero .top { display: flex; align-items: center; gap: 12px; }
.phone-hero .big-no { font-size: 34px; padding: 4px 10px; }
.phone-hero .who b { display: block; font: 700 15px/1.2 var(--font-head); }
.phone-hero .who span { color: #8C94A6; font-size: 10.5px; }
.phone-hero .pos { margin-left: auto; text-align: right; font: 700 34px/1 var(--font-head); }
.phone-hero .pos small { display: block; font: 700 9px var(--font-body); color: var(--ok); letter-spacing: .04em; }
.phone-big { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-big div { background: #141824; border-radius: 10px; padding: 10px; }
.phone-big span { display: block; font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #6F788A; }
.phone-big b { font: 700 20px/1.2 var(--font-body); font-variant-numeric: tabular-nums; }
.phone-tabs { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.phone-tabs span { padding: 8px 8px; font-weight: 700; font-size: 10px; color: #6F788A; border-bottom: 2px solid transparent; }
.phone-tabs span.on { color: #fff; border-color: var(--purple); }
.phone-list { padding: 4px 8px 12px; flex: 1; }
.phone-nav { display: flex; justify-content: space-around; padding: 10px 6px 14px; border-top: 1px solid rgba(255,255,255,.07); background: #0E1118; }
.phone-nav span { display: grid; justify-items: center; gap: 3px; font-size: 8.5px; font-weight: 700; color: #6F788A; }
.phone-nav span.on { color: var(--purple-hi); }
.phone-nav i { width: 18px; height: 18px; border-radius: 5px; background: currentColor; opacity: .5; }
.phone-nav span.on i { opacity: 1; }

/* Small phone in hero (simplified) */
.mini-phone { padding: 24px 8px 10px; font-size: 8px; min-height: 0; }
.mini-phone .big-no { font-size: 18px; padding: 2px 6px; border-radius: 4px; }
.mini-phone .row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.mini-phone .row b { font: 700 9px/1.1 var(--font-head); display: block; }
.mini-phone .row span { color: #8C94A6; font-size: 7px; }
.mini-phone .pos { margin-left: auto; font: 700 20px/1 var(--font-head); }
.mini-phone .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; }
.mini-phone .tiles div { background: #141824; border-radius: 6px; padding: 5px; }
.mini-phone .tiles span { display: block; font-size: 6px; font-weight: 700; color: #6F788A; letter-spacing: .06em; }
.mini-phone .tiles b { font-size: 10px; }
.mini-phone .sectors-row { gap: 3px; margin: 0 0 6px; }
.mini-phone .sectors-row div { padding: 3px; font-size: 7.5px; }
.mini-phone .lap { display: flex; justify-content: space-between; padding: 3px 2px; border-top: 1px solid rgba(255,255,255,.05); font-size: 7.5px; }

/* ---------- Maps ---------- */
.maps { display: grid; gap: 8px; padding: 8px; }
@container (min-width: 540px) { .maps { grid-template-columns: 1fr 1fr; align-items: start; } }
.map-svg { width: 100%; height: auto; display: block; }
.map-svg .ring { fill: none; stroke: #232937; stroke-width: 16; }
.map-svg .ring-line { fill: none; stroke: #343C4E; stroke-width: 1; stroke-dasharray: 2 4; }
.map-svg .pitlane { fill: none; stroke: rgba(78,168,240,.4); stroke-width: 3; stroke-dasharray: 4 3; }
.map-svg .sf { stroke: #fff; stroke-width: 2; }
.map-svg .track { fill: none; stroke: #232937; stroke-width: 14; stroke-linejoin: round; stroke-linecap: round; }
.map-svg .track-edge { fill: none; stroke: #39415A; stroke-width: 1; stroke-dasharray: 2 4; }
.map-svg .lbl { font: 700 9px var(--font-body); fill: #6F788A; letter-spacing: .06em; }
.map-svg .car circle { fill: #3A4256; stroke: #0B0D13; stroke-width: 1.5; }
.map-svg .car text { font: 800 6.5px var(--font-body); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.map-svg .car.team circle { fill: var(--purple); stroke: #fff; stroke-width: 1.5; }
.orbit { transform-box: view-box; transform-origin: 120px 120px; animation: orbit linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.on-track { offset-rotate: 0deg; animation: lap linear infinite; }
@keyframes lap { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.map-legend { display: flex; gap: 12px; padding: 0 10px 10px; font-size: 9.5px; color: #8C94A6; flex-wrap: wrap; }
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }

/* ---------- Sectors scoreboard ---------- */
.scoreboard { display: grid; gap: 8px; padding: 8px; }
@container (min-width: 560px) { .scoreboard { grid-template-columns: repeat(3, 1fr); } }
.sb-list li { display: grid; grid-template-columns: 16px 30px 1fr auto; gap: 6px; padding: 5px 10px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.035); }
.sb-list .no { display: inline-block; text-align: center; padding: 1px 4px; border-radius: 3px; background: #262C3A; font-weight: 700; color: #fff; }
.sb-list li.team { background: rgba(105,50,255,.14); }
.sb-list li.team .no { background: var(--purple); }
.ideal { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #171B26; font-weight: 700; }
.ideal span { color: #8C94A6; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Report page ---------- */
.report-stack { position: relative; display: grid; gap: 16px; }
@media (min-width: 700px) { .report-stack { grid-template-columns: 1.6fr 1fr; align-items: center; } .slides { grid-template-columns: 1fr; } }
.paper {
  container-type: inline-size;
  background: #fff; color: #1B2126; border-radius: 6px; padding: 18px; font: 500 9.5px/1.4 var(--font-body); font-variant-numeric: tabular-nums;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.8); aspect-ratio: 1 / 1.414; overflow: hidden;
}
.paper .r-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--purple); padding-bottom: 8px; margin-bottom: 10px; gap: 8px; }
.paper .r-head img { height: 12px; width: auto; }
.paper h5 { font: 700 15px/1.15 var(--font-head); margin: 0; }
.paper .r-sub { color: #6A737D; font-size: 8.5px; margin-top: 2px; }
.paper .r-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.paper .r-kpis div { background: #F3F1FF; border-radius: 4px; padding: 6px; }
.paper .r-kpis span { display: block; font-size: 7px; font-weight: 700; color: #6A737D; letter-spacing: .08em; text-transform: uppercase; }
.paper .r-kpis b { font-size: 12px; }
.paper table { width: 100%; border-collapse: collapse; }
.paper th { text-align: left; font-size: 7px; letter-spacing: .06em; color: #6A737D; padding: 4px 3px; border-bottom: 1px solid #E2E5EA; }
.paper td { padding: 3.5px 3px; border-bottom: 1px solid #F0F1F4; }
.paper tr.team td { background: #F0EBFF; font-weight: 700; }
.paper .r-chart { margin: 10px 0; }
.paper .r-foot { margin-top: 10px; font-size: 7px; color: #9AA1AB; display: flex; justify-content: space-between; }

.slides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slide {
  aspect-ratio: 1080 / 1350; border-radius: 8px; overflow: hidden; position: relative; padding: 14px 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #1C1240 0%, #0B0D13 60%); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.8); color: #fff; font-family: var(--font-body);
}
.slide .s-top { font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #CDBEFF; }
.slide .s-big { font: 700 clamp(22px, 6cqi, 40px)/1 var(--font-head); }
.slide { container-type: inline-size; }
.slide .s-big { font-size: 22cqi; }
.slide .s-mid { font: 700 9cqi/1.1 var(--font-head); }
.slide .s-small { font-size: 6.5cqi; color: #A0A8B8; }
.slide img { height: 8cqi; width: auto; }
.slide .s-rows div { display: flex; justify-content: space-between; font-size: 6.5cqi; padding: 2cqi 0; border-top: 1px solid rgba(255,255,255,.1); font-variant-numeric: tabular-nums; }
.slide .s-rows div.team { color: #CDBEFF; font-weight: 700; }

/* ---------- Rovantra OS ---------- */
.os-shell { display: grid; grid-template-columns: 1fr; min-height: 100%; }
.os-rail { display: none; background: #0E1118; border-right: 1px solid rgba(255,255,255,.06); padding: 10px 8px; gap: 4px; align-content: start; }
.os-rail span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; color: #8C94A6; font-weight: 600; white-space: nowrap; }
.os-rail span i { width: 12px; height: 12px; border-radius: 3px; background: currentColor; opacity: .5; flex: none; }
.os-rail span.on { background: rgba(105,50,255,.18); color: #fff; }
.os-rail span.on i { background: var(--purple-hi); opacity: 1; }
@container (min-width: 720px) { .os-shell { grid-template-columns: 150px 1fr; } .os-rail { display: grid; } }
.os-main { padding: 10px; display: grid; gap: 8px; min-width: 0; align-content: start; }
.os-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.os-title h6 { margin: 0; font: 700 15px/1.1 var(--font-head); }
.os-title span { color: #8C94A6; font-size: 10px; }
.os-grid { display: grid; gap: 8px; }
@container (min-width: 560px) { .os-grid.c2 { grid-template-columns: 1fr 1fr; } .os-grid.c3 { grid-template-columns: repeat(3, 1fr); } }
@container (min-width: 820px) { .os-grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.os-grid.c4 { grid-template-columns: 1fr 1fr; }

.ready-car { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.04); }
.ready-car .no { font: 700 12px/1 var(--font-head); text-align: center; background: #262C3A; padding: 5px 0; border-radius: 4px; }
.ready-car b { display: block; font-size: 11px; }
.ready-car span { color: #8C94A6; font-size: 9.5px; }
.pill { display: inline-block; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: rgba(52,210,123,.16); color: var(--ok); }
.pill.warn { background: rgba(255,181,71,.16); color: var(--warn); }
.pill.bad { background: rgba(255,84,104,.16); color: var(--bad); }
.pill.info { background: rgba(78,168,240,.16); color: var(--info); }
.pill.brand { background: rgba(105,50,255,.2); color: #CDBEFF; }
.app.light .pill.ok { background: #E3F6EC; color: #157A43; }
.app.light .pill.warn { background: #FFF1DD; color: #9A5B00; }
.app.light .pill.bad { background: #FDE6E9; color: #B3192D; }
.app.light .pill.info { background: #E3F0FB; color: #1F5F8B; }
.app.light .pill.brand { background: #EEE8FF; color: #4A20C9; }

.meter { height: 5px; border-radius: 5px; background: #1F2430; overflow: hidden; margin-top: 5px; }
.app.light .meter { background: #E9EBF0; }
.meter i { display: block; height: 100%; border-radius: 5px; background: var(--purple); }
.meter i.ok { background: var(--ok); }
.meter i.warn { background: var(--warn); }
.meter i.bad { background: var(--bad); }
.stat-tile b { display: block; font: 700 20px/1.1 var(--font-head); }
.stat-tile span { color: #8C94A6; font-size: 9.5px; font-weight: 600; }
.app.light .stat-tile span { color: #6A737D; }

.reg { width: 100%; border-collapse: collapse; white-space: nowrap; }
.reg th { text-align: left; font-size: 9px; letter-spacing: .06em; color: #6A737D; font-weight: 700; padding: 6px 8px; border-bottom: 1px solid #E2E5EA; background: #FAFBFC; }
.reg td { padding: 6px 8px; border-bottom: 1px solid #EEF0F3; }
.reg td.n { text-align: right; }
.reg .id { font-weight: 700; color: #4A20C9; }
.reg .c-md, .reg .c-lg { display: none; }
@container (min-width: 520px) { .reg .c-md { display: table-cell; } }
@container (min-width: 700px) { .reg .c-lg { display: table-cell; } }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters span { padding: 4px 9px; border-radius: 999px; border: 1px solid #DDE1E7; font-weight: 600; color: #59636B; background: #fff; }
.filters span.on { background: #1B2126; color: #fff; border-color: #1B2126; }

.bio-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid #E2E5EA; }
@container (min-width: 560px) { .bio-head { grid-template-columns: 1fr auto 1fr; } .bio-head .r { display: block; } }
.bio-head .l b { display: block; font: 700 15px/1.2 var(--font-head); }
.bio-head .l span { color: #6A737D; }
.bio-head .c { text-align: center; font: 700 44px/1 var(--font-head); color: #1B2126; }
.bio-head .c small { display: block; font: 700 8.5px var(--font-body); letter-spacing: .1em; color: #6A737D; margin-top: 3px; }
.bio-head .r { display: none; text-align: right; color: #59636B; }
.bio-head .r div { margin: 1px 0; }
.bio-tabs { display: flex; gap: 14px; padding: 0 12px; border-bottom: 1px solid #E2E5EA; overflow: hidden; }
.bio-tabs span { padding: 8px 0; font-weight: 700; font-size: 10px; letter-spacing: .04em; color: #6A737D; border-bottom: 2px solid transparent; white-space: nowrap; }
.bio-tabs span.on { color: #1B2126; border-color: var(--purple); }
.timeline { padding: 6px 12px 12px; }
.timeline li { display: grid; grid-template-columns: 62px 14px 1fr; gap: 8px; padding: 6px 0; align-items: start; }
.timeline time { color: #6A737D; font-weight: 600; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 2px; background: #fff; border: 2px solid var(--purple); }
.timeline b { display: block; }
.timeline span { color: #6A737D; }

.job-task { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; padding: 7px 12px; border-bottom: 1px solid #EEF0F3; }
.job-task .cb { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid #B9C0CA; }
.job-task .cb.done { background: var(--purple); border-color: var(--purple); box-shadow: inset 0 0 0 2px #fff; }
.job-task.done b { color: #9AA1AB; text-decoration: line-through; font-weight: 600; }
.job-task b { font-weight: 600; }
.job-task small { display: block; color: #6A737D; font-size: 9px; }
.people { display: flex; gap: 16px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid #E2E5EA; }
.people div span { display: block; font-size: 8px; font-weight: 700; letter-spacing: .08em; color: #6A737D; text-transform: uppercase; }
.people div b { font-weight: 600; }
.connected { margin: 10px 12px 12px; padding: 10px; border-radius: 6px; background: #F3F1FF; border: 1px dashed #B9A6FF; }
.connected b { color: #4A20C9; font-size: 10px; letter-spacing: .04em; }
.connected div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid #E3DBFF; margin-top: 4px; }

.module-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding-bottom: 2px; }
.module-tabs::-webkit-scrollbar { display: none; }
.module-tabs button {
  flex: none; font: 600 14px/1 var(--font-body); color: var(--muted); background: rgba(255,255,255,.04);
  border: 1px solid var(--line); padding: 11px 16px; border-radius: 999px; cursor: pointer;
}
.module-tabs button[aria-selected="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }
.module-panel[hidden] { display: none; }

/* Narrow app bars: keep the session title, drop secondary detail */
.app-bar > * { flex: none; }
.app-bar .title, .app-bar .sub { flex: 0 1 auto; min-width: 0; }
@container (max-width: 480px) { .app-bar .sub { display: none; } .app-bar { gap: 8px; } }
.os-grid.c3 { grid-template-columns: repeat(3, 1fr); }
@container (max-width: 420px) { .os-grid.c3 .stat-tile b { font-size: 16px; } .os-grid.c3 .stat-tile span { font-size: 8.5px; } }

/* Real screengrabs */
img.shot { display: block; width: 100%; height: auto; border-radius: 6px; }
.device-phone .screen img.shot { border-radius: 0; }
.shot-frame { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 20px 80px -40px rgba(105,50,255,.5); }
.shot-frame img { display: block; width: 100%; height: auto; }
/* Screenshots that already show the device (TV, iPad, phone): no extra frame, just a soft shadow. */
.shot-frame.device { border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.shot-frame.device img { filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)) drop-shadow(0 10px 50px rgba(105,50,255,.22)); }
.hero-devices .illustrative { text-align: left; max-width: 62%; }

/* ---------- Scrolling report viewer (Timing 06) ----------
   Each page is laid out on a 1080-wide grid and scaled with container units, like an image. */
.report-viewer { max-width: 520px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #1A1E28; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 30px 100px -40px rgba(105,50,255,.55); }
.rv-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #11141C; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #A0A8B8; }
.rv-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3A4256; }
.rv-bar b { margin-left: 8px; color: #E8EAF0; font-weight: 600; }
.rv-bar em { margin-left: auto; font-style: normal; }
.rv-window { container-type: inline-size; aspect-ratio: 1080 / 1350; overflow: hidden; position: relative; background: #2A2F3A; }
.rv-stack { display: grid; gap: 0; animation: rv-scroll 30s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes rv-scroll {
  0%, 14% { transform: translateY(0); }
  20%, 34% { transform: translateY(-20%); }
  40%, 54% { transform: translateY(-40%); }
  60%, 74% { transform: translateY(-60%); }
  80%, 94% { transform: translateY(-80%); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .rv-window { overflow-y: auto; } .rv-stack { animation: none; } }

.rs { --u: calc(100cqi / 1080); aspect-ratio: 1080 / 1350; background: #fff; color: #1B2126; font-family: var(--font-body); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; overflow: hidden; border-bottom: calc(var(--u) * 14) solid #2A2F3A; box-sizing: border-box; }
.rs-top { background: linear-gradient(90deg, #5428E8, #6932FF 55%, #8B5CFF); color: #fff; padding: calc(var(--u)*30) calc(var(--u)*44) calc(var(--u)*24); display: flex; justify-content: space-between; align-items: flex-start; }
.rs-ev { font-size: calc(var(--u)*15); letter-spacing: .14em; font-weight: 700; opacity: .9; margin: 0; }
.rs-top h4 { font: 700 calc(var(--u)*44)/1.08 var(--font-head); margin: calc(var(--u)*10) 0 calc(var(--u)*6); }
.rs-sub { font-size: calc(var(--u)*17); margin: 0; opacity: .92; }
.rs-pg { font: 700 calc(var(--u)*19) var(--font-body); opacity: .9; }
.rs-hero { display: flex; justify-content: space-between; gap: calc(var(--u)*16); padding: calc(var(--u)*24) calc(var(--u)*44) calc(var(--u)*14); }
.rs-lbl { font-size: calc(var(--u)*12.5); font-weight: 700; letter-spacing: .12em; color: #59636B; margin: 0; }
.rs-big { font: 700 calc(var(--u)*82)/1 var(--font-head); color: #6932FF; margin: calc(var(--u)*8) 0; letter-spacing: -.02em; }
.rs-big small { font-size: .38em; margin-left: .1em; }
.rs-who { font-size: calc(var(--u)*16); color: #3A434B; margin: 0; }
.rs-kpis { display: flex; gap: calc(var(--u)*12); align-items: flex-start; }
.rs-kpi { width: calc(var(--u)*158); border: 1px solid #E2E5EA; border-radius: calc(var(--u)*12); padding: calc(var(--u)*14); box-shadow: 0 calc(var(--u)*3) calc(var(--u)*10) rgba(0,0,0,.05); }
.rs-kpi span { display: block; font-size: calc(var(--u)*11); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #59636B; min-height: 2.6em; }
.rs-kpi b { display: block; font: 700 calc(var(--u)*24)/1.15 var(--font-body); margin: calc(var(--u)*6) 0 calc(var(--u)*4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-kpi small { display: block; font-size: calc(var(--u)*12); color: #6A737D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-t { margin: calc(var(--u)*14) calc(var(--u)*44) 0; width: calc(100% - var(--u)*88); border-collapse: collapse; font-size: calc(var(--u)*15.5); }
.rs-t th { font-size: calc(var(--u)*11.5); font-weight: 700; letter-spacing: .06em; color: #6932FF; text-align: left; padding: calc(var(--u)*8) calc(var(--u)*6); border-bottom: 1px solid #E2E5EA; white-space: nowrap; }
.rs-t td { padding: calc(var(--u)*7.5) calc(var(--u)*6); border-bottom: 1px solid #EEF0F3; white-space: nowrap; }
.rs-t tr.hl td { background: #EEE8FF; }
.rs-t td.car { color: #6932FF; font-weight: 700; }
.rs-t td.drv, .rs-t td.drvb { font-weight: 600; }
.rs-t td.drvb { color: #3A2A9C; }
.rs-t td.b { font-weight: 700; }
.rs-t td.red { color: #D3283F; font-weight: 600; }
.rs-t td.rk { background: #DCD2FF; color: #3A2A9C; font-weight: 700; text-align: center; }
.rs-t td.loss, .rs-t td.tot { background: #9FC4F2; font-weight: 700; }
.rs-t td.team { color: #59636B; font-size: .85em; }
.rs-t td.h-good { background: #A9C8F5; }
.rs-t td.h-mid { background: #EEF1F7; }
.rs-t td.h-bad { background: #F4A99C; }
.rs-strip { position: relative; display: inline-block; width: calc(var(--u)*130); height: calc(var(--u)*10); vertical-align: middle; }
.rs-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #CFE7E2; }
.rs-strip i { position: absolute; top: 50%; width: calc(var(--u)*5); height: calc(var(--u)*5); margin: calc(var(--u)*-2.5) 0 0 calc(var(--u)*-2.5); border-radius: 50%; background: #2BA597; opacity: .75; }
.rs-strip b { position: absolute; top: 0; bottom: 0; width: calc(var(--u)*2.5); background: #1B2126; }
.rs-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: calc(var(--u)*20) calc(var(--u)*44); border-top: 1px solid #E2E5EA; font-size: calc(var(--u)*14); color: #6A737D; }
.rs-foot img { height: calc(var(--u)*22); width: auto; }

/* ---------- Countdown page: Branding tab and "three ways" cards (static) ---------- */
.feature-copy .num .tag { vertical-align: 2px; margin-left: 6px; }
.tag { display: inline-block; font: 700 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(105,50,255,.18); color: var(--purple-hi); }
.tag.new { background: rgba(52,210,123,.14); color: var(--ok); }
.tag.free { background: rgba(255,255,255,.08); color: var(--muted); }
.cd-brand dl { display: grid; gap: 0; font-size: 14px; }
.cd-brand dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.cd-brand dl > div:first-child { border-top: 0; }
.cd-brand dt { color: var(--muted); }
.cd-brand dd { text-align: right; font-weight: 600; }
.cd-logos { display: flex; gap: 6px; }
.cd-logo { font: 800 11px/1 var(--font-head); letter-spacing: .12em; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line-2); }
.cd-logo.dark { background: #0B0D13; color: #2F80ED; }
.cd-logo.light { background: #F4F5F8; color: #1B4F9C; }
.cd-swatches { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; font: 600 13px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.cd-swatches span { display: inline-flex; align-items: center; gap: 6px; }
.cd-swatches i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-2); }
.cd-sponsors { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.cd-sub { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.cd-sub small { color: var(--muted); font-weight: 500; }
.cd-band { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.cd-band span { display: grid; place-items: center; min-height: 34px; padding: 4px; border-radius: 6px; background: #fff; color: #262E33; font: 800 10px/1.1 var(--font-head); letter-spacing: .04em; text-align: center; }
.cd-ways ol { display: grid; gap: 12px; counter-reset: way; }
.cd-ways li { counter-increment: way; display: grid; grid-template-columns: 36px 1fr auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.cd-ways li::before { content: counter(way); margin: 0; grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(105,50,255,.16); color: var(--purple-hi); font: 700 16px/1 var(--font-head); }
.cd-ways li b { font-size: 16px; }
.cd-ways li > span:last-child { grid-column: 2 / -1; color: var(--muted); font-size: 14px; }

/* Countdown page: tighter vertical rhythm than the other product pages. */
.cd-page .hero { padding-bottom: 40px; }
.cd-page .section { padding: 48px 0; }
.cd-page .feature { padding: 40px 0; }
.cd-page .feature:first-of-type { padding-top: 0; }
@media (min-width: 860px) { .cd-page .section { padding: 72px 0; } .cd-page .section-head { margin-bottom: 36px; } }
@media (min-width: 1000px) { .cd-page .feature { padding: 56px 0; } }
/* Countdown page: sunset photo behind the closing call to action. */
@media (min-width: 700px) { .cd-page .cta-bg img { object-position: 70% 55%; } }
/* Countdown hero: the car on the kerb behind the heading, darkened on the text side and faded into the page below. */
.cd-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cd-hero-bg picture, .cd-hero-bg img { display: block; width: 100%; height: 100%; }
.cd-hero-bg img { object-fit: cover; object-position: 60% 40%; }
.cd-hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,8,12,.78) 0%, rgba(7,8,12,.72) 50%, rgba(7,8,12,.9) 80%, #0B0D13 100%); }
@media (min-width: 860px) {
  .cd-hero-bg img { object-position: center 55%; }
  .cd-hero-bg::after { background:
    linear-gradient(90deg, rgba(7,8,12,.96) 0%, rgba(7,8,12,.9) 40%, rgba(7,8,12,.5) 62%, rgba(7,8,12,.25) 80%, rgba(7,8,12,.4) 100%),
    linear-gradient(180deg, rgba(7,8,12,.3) 0%, rgba(7,8,12,0) 35%, rgba(7,8,12,.6) 80%, #0B0D13 100%); }
}
.cd-hero .lead { color: #D4D8E0; }


/* ---------- Static Rovantra Timing displays ----------
   Each .snip holds a captured HTML display (assets/screens/) at its real resolution,
   scaled to the box by main.js. No scripts or logic run inside the displays. */
.snip { position: relative; width: 100%; overflow: hidden; background: #F4F5F8; }
.snip iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.device-laptop .screen .snip, .device-phone .screen .snip { display: block; }
.shot-frame .snip { border-radius: 0; }
.device-tv { background: #05060A; border-radius: 12px; padding: 1.2%; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 80px -30px rgba(0,0,0,.8), 0 20px 80px -40px rgba(105,50,255,.45); }
.device-tv .snip { border-radius: 4px; }
.device-tv + .tv-stand { width: 16%; height: 16px; margin: 0 auto; background: linear-gradient(#1c202b, #12151d); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.device-tablet { background: #0D0F15; border-radius: 22px; padding: 3%; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 24px 50px rgba(0,0,0,.5); }
.device-tablet .snip { border-radius: 8px; }
.screen-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.screen-tabs [role="tab"] { font: 600 14px/1 var(--font-body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.screen-tabs [role="tab"][aria-selected="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.screen-panel > p { color: var(--muted); margin: 0 0 16px; max-width: 70ch; }
.phone-pair { display: flex; gap: 18px; justify-content: center; align-items: flex-end; }
.phone-pair .device-phone { width: 48%; max-width: 260px; }
.device-row { display: grid; gap: 22px; align-items: end; }
@media (min-width: 700px) { .device-row { grid-template-columns: 1.6fr 1fr; } }

/* ---------- Data station: two rows of monitors, each with its own layout ---------- */
.station { position: relative; border-radius: 16px; padding: 3.2% 3% 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #1B2030, #0D1017 70%); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 20px 80px -40px rgba(105,50,255,.4); }
.station-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4%; align-items: end; }
.station-row.bottom { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr) minmax(0, 1fr); margin-top: 2.2%; }
.station .mon { margin: 0; min-width: 0; }
.station .device-tv { border-radius: 6px; padding: 2.2%; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 14px 30px rgba(0,0,0,.55); }
.station .device-tv .snip { border-radius: 2px; }
.station .device-laptop .screen { padding: 3%; border-radius: 8px 8px 2px 2px; }
.station .device-laptop .base { height: 6px; }
.station .device-laptop .base::after { height: 3px; }
.station figcaption { margin-top: 6px; text-align: center; font: 600 clamp(9px, 1.05vw, 13px)/1.3 var(--font-body); color: var(--muted); }
.station figcaption b { color: var(--text); font-weight: 600; }
.station-shelf { height: 10px; margin: 1.6% -3% 0; background: linear-gradient(#2A303C, #151922); box-shadow: 0 8px 18px rgba(0,0,0,.5); }
.station-desk { height: 18px; margin: 1.8% -3% 0; background: linear-gradient(#262B36, #10131A); }
.station-closer { margin: 34px 0 14px; font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.station figcaption { position: relative; z-index: 1; }
.station figcaption span { display: none; }
@media (min-width: 700px) { .station figcaption span { display: inline; } }

/* Safe area: keep every display's text clear of bezels, rounded corners and the phone notch.
   The white mat is a border so the iframe (positioned inside the border) and the
   aspect-ratio (content-box) both match the display's own size, with nothing cropped. */
.snip { --mat: 0px; box-sizing: content-box; width: calc(100% - 2 * var(--mat)); border: var(--mat) solid #fff; }
.device-laptop .screen .snip, .device-tv .snip, .device-tablet .snip { --mat: 8px; }
.station .snip { --mat: 4px; }
.device-phone .screen { background: #fff; padding: 34px 12px 22px; }
.device-phone .screen .snip { --mat: 0px; }
.hero-devices .device-phone .screen { padding: 20px 7px 14px; }
@media (max-width: 699px) {
  .device-laptop .screen .snip, .device-tv .snip, .device-tablet .snip { --mat: 5px; }
  .station .snip { --mat: 2px; }
  .hero-devices .device-phone .screen { padding: 16px 5px 10px; }
}

/* ---------- Display library: every Timing display, scrolled sideways ---------- */
.dl { position: relative; }
.dl-nav { display: flex; justify-content: flex-end; gap: 8px; margin: -8px 0 14px; }
.dl-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.dl-btn svg { width: 20px; height: 20px; }
.dl-btn:hover { border-color: var(--purple); }
.dl-track { list-style: none; margin: 0; padding: 0 0 18px; display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 760px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.dl-track:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
.dl-card { scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.02); }
.dl-stage { height: 440px; display: flex; align-items: center; justify-content: center; padding: 14px; background: #05060A; border-bottom: 1px solid var(--line); }
.dl-stage .snip { --mat: 6px; width: min(calc(100% - 12px), calc(var(--ar) * 400px)); border-radius: 4px; }
.dl-copy { padding: 20px 24px 24px; }
.dl-copy h3 { font: 700 20px/1.2 var(--font-head); margin: 10px 0 8px; }
.dl-copy p { margin: 0 0 8px; font-size: 15px; max-width: 62ch; }
.dl-copy p.muted { color: var(--muted); }
.dl-tag { display: inline-block; font: 600 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 9px; margin-right: 6px; }
.dl-tag.pred { color: #F5B640; border-color: rgba(245,182,64,.5); }
@media (max-width: 699px) { .dl-track { grid-auto-columns: 78vw; } .dl-stage { height: 280px; padding: 10px; } .dl-stage .snip { --mat: 4px; width: min(calc(100% - 8px), calc(var(--ar) * 252px)); } .dl-nav { display: none; } }
.dl-tag.new { color: #fff; background: var(--purple); border-color: var(--purple); }
.report-viewer.report-live { max-width: 680px; }
.rv-frame { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
@media (max-width: 699px) { .rv-frame { height: 560px; } }

/* ---------- Timing hero: monitor, laptop and phone (13 Nov 2026) ---------- */
.hero-photo .hero-grid.hero-wide { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero-wide .hero-copy .display { max-width: 18ch; }
.hero-wide .hero-copy .lead { max-width: 62ch; }
.trio-stage { position: relative; width: 100%; aspect-ratio: 2000 / 1060; }
.trio-stage > * { position: absolute; }
.trio-monitor { left: 0; top: 0; width: 70%; }
.trio-monitor .bezel { background: #05060A; border-radius: 12px; padding: 1.1% 1.1% 1.1%; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85), 0 30px 120px -40px rgba(105,50,255,.5); }
.trio-monitor .snip { border-radius: 3px; }
.trio-monitor .neck { width: 12%; height: 0; padding-bottom: 9%; margin: 0 auto; background: linear-gradient(90deg, #1A1E27, #2B303B 50%, #1A1E27); }
.trio-monitor .foot { width: 34%; height: 0; padding-bottom: 1.6%; margin: 0 auto; border-radius: 999px; background: linear-gradient(#2B303B, #12151C); box-shadow: 0 12px 24px rgba(0,0,0,.5); }
.trio-laptop { left: 48%; top: 46%; width: 44%; z-index: 2; }
.trio-laptop .device-laptop .screen { padding: 1.6%; border-radius: 10px 10px 3px 3px; }
.trio-laptop .device-laptop .base { height: 0; padding-bottom: 2.4%; }
.trio-phone { right: 0; top: 42%; width: 13.5%; z-index: 3; }
.trio-phone .device-phone { max-width: none; border-radius: 16% / 7.5%; padding: 5%; }
.trio-phone .device-phone .screen { border-radius: 12% / 5.6%; padding: 9% 3% 6%; }
.trio-phone .device-phone .notch { width: 30%; height: 3%; top: 2.2%; }
.trio-stage .snip { --mat: 0px !important; border: 0 !important; width: 100% !important; box-sizing: border-box; }
.trio-caption { margin-top: 14px; }
/* Phones: all three devices, as wide as the screen allows */
@media (max-width: 699px) {
  .trio-stage { aspect-ratio: 2000 / 1180; width: calc(100% + 2 * var(--gutter) - 8px); margin-left: calc(4px - var(--gutter)); }
  .trio-monitor { width: 74%; }
  .trio-laptop { left: 38%; top: 44%; width: 50%; }
  .trio-phone { top: 36%; width: 17%; }
}

/* ---------- Timing page: laptop with report overlay, data station with lines (13 Nov 2026) ---------- */
.lap-report { position: relative; padding: 0 12% 10% 0; }
.lap-report .report-cover { position: absolute; right: 0; bottom: 0; width: 34%; height: auto; border-radius: 6px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 60px -20px rgba(0,0,0,.85); transform: rotate(2deg); }
.ds-stage { position: relative; width: 100%; aspect-ratio: 100 / 60; }
.ds-stage > * { position: absolute; }
.ds-screen { top: 0; width: 44%; }
.ds-left { left: 0; } .ds-right { right: 0; }
.ds-screen .device-tv { background: #000; }
.ds-laptop { left: 50%; bottom: 0; width: 42%; transform: translateX(-50%); z-index: 2; }
.ds-lines { inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.ds-lines path { fill: none; stroke: #8B5CFF; stroke-width: .35; stroke-dasharray: 1.2 1; vector-effect: non-scaling-stroke; stroke-width: 2px; opacity: .85; }
@media (max-width: 699px) {
  .ds-stage { aspect-ratio: auto; display: grid; gap: 26px; }
  .ds-stage > * { position: relative; inset: auto; width: 100%; transform: none; left: auto; right: auto; top: auto; bottom: auto; }
  .ds-laptop { order: 2; width: 86%; margin: 0 auto; }
  .ds-left { order: 1; } .ds-right { order: 3; }
  .ds-lines { display: none; }
  .lap-report { padding: 0 8% 14% 0; }
  .lap-report .report-cover { width: 40%; }
}
.ds-lines circle { fill: #8B5CFF; }

/* ---------- Heroes fill the space on computers (13 Nov 2026) ---------- */
@media (min-width: 1000px) {
  .hero-photo .hero-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
  .hero-photo .hero-grid > :last-child { margin-right: min(-24px, calc((var(--max) - 100vw) / 2)); }
  .hero-photo .hero-grid.hero-wide > :last-child { margin-right: 0; }
}
@media (min-width: 1400px) {
  .hero-photo .hero-grid > :last-child { margin-right: calc((var(--max) - 100vw) / 2 + 24px); }
}

/* Phones and tablets: show the hero device straight after the heading, so it is on the first screen */
@media (max-width: 999px) {
  .hero-photo .hero-grid { gap: 22px; }
  .hero-photo .hero-copy { display: contents; }
  .hero-photo .hero-copy > * { order: 1; }
  .hero-photo .hero-copy > .display, .hero-photo .hero-copy > .eyebrow, .hero-photo .hero-copy > .product-badge, .hero-photo .hero-copy > .avail-pill { order: 0; }
  .hero-photo .hero-grid > :last-child { order: 0; margin: 4px 0 8px; }
  .hero-photo .trio-caption, .hero-photo .hero-grid > :last-child > .illustrative { display: none; }
}

/* Wide screens: hero spreads wider, so the copy sits further left with longer lines (13 Nov 2026) */
@media (min-width: 1000px) {
  .hero-photo .wrap.hero-grid { --hero-max: 1680px; max-width: var(--hero-max); padding-left: clamp(24px, 4vw, 64px); grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); column-gap: 40px; }
  .hero-photo .hero-grid .hero-copy .display { max-width: 15ch; }
  .hero-photo .hero-grid .hero-copy .lead { max-width: 60ch; }
  .hero-photo .hero-grid > :last-child { margin-right: min(-24px, calc((var(--hero-max) - 100vw) / 2)); }
}
@media (min-width: 1400px) {
  .hero-photo .hero-grid > :last-child { margin-right: min(-24px, calc((var(--hero-max) - 100vw) / 2 + 24px)); }
}
@media (min-width: 1000px) {
  .hero-photo .hero-grid { align-items: end; }
  .hero-photo .hero-grid .hero-copy .display { max-width: none; }
  .hero-photo .hero-grid .hero-copy { position: relative; }
  .hero-photo .hero-copy .eco-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 620px; }
  .hero-photo .hero-copy .eco-chips a { padding: 12px; gap: 10px; height: 100%; }
  .hero-photo .hero-copy .eco-chips img { width: 34px; height: 34px; }
  .hero-photo .hero-copy .eco-chips b { font-size: 14px; }
  .hero-photo .hero-copy .hero-note { position: absolute; left: 0; top: calc(100% + 14px); }
  .hero-photo .hero-grid > :last-child { position: relative; }
  .hero-photo .hero-grid > :last-child > .illustrative { position: absolute; left: 0; right: 0; top: calc(100% + 10px); margin: 0; }
}
@media (min-width: 1000px) {
  .hero-photo .hero-copy .eco-chips a { flex-direction: row; align-items: center; padding: 10px 12px; }
  .hero-photo .hero-copy .eco-chips a > span { min-width: 0; line-height: 1.2; }
  .hero-photo .hero-copy .eco-chips b { display: block; }
  .hero-photo .hero-copy .eco-chips .when { display: block; white-space: nowrap; margin-top: 3px; }
  .hero-photo .hero-copy .eco-chips b { font-size: 13px; }
  .hero-photo .hero-copy .eco-chips .when { font-size: 11px; }
  .hero-photo .hero-copy .eco-chips img { width: 30px; height: 30px; }
}
/* Keep hero devices inside the first screen on short, wide displays */
@media (min-width: 1000px) {
  .hero-photo .hero-grid > :last-child > .device-laptop { max-width: calc((100vh - 230px) * 1.5); margin-left: auto; margin-right: auto; }
  .hero-photo .hero-grid > :last-child > .trio-stage { max-width: calc((100vh - 200px) * 1.85); margin-left: auto; }
}
@media (min-width: 1000px) {
  .hero-photo .hero-grid > :last-child:has(> .device-laptop) { margin-right: 0; }
}

/* Display library cards: photo backgrounds behind each display (13 Nov 2026).
   bg-1..26 (one per card, no repeats) are blurred, desaturated race photos; swap the files to change them. */
.dl-stage { position: relative; isolation: isolate; background: #05060A center / cover no-repeat; }
.dl-stage::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(5,6,10,.35) 0%, rgba(5,6,10,.7) 70%, rgba(5,6,10,.85) 100%); }
.dl-card:nth-child(1) .dl-stage { background-image: url(../img/timing/bg/bg-1.jpg); }
.dl-card:nth-child(2) .dl-stage { background-image: url(../img/timing/bg/bg-2.jpg); }
.dl-card:nth-child(3) .dl-stage { background-image: url(../img/timing/bg/bg-3.jpg); }
.dl-card:nth-child(4) .dl-stage { background-image: url(../img/timing/bg/bg-4.jpg); }
.dl-card:nth-child(5) .dl-stage { background-image: url(../img/timing/bg/bg-5.jpg); }
.dl-card:nth-child(6) .dl-stage { background-image: url(../img/timing/bg/bg-6.jpg); }
.dl-card:nth-child(7) .dl-stage { background-image: url(../img/timing/bg/bg-7.jpg); }
.dl-card:nth-child(8) .dl-stage { background-image: url(../img/timing/bg/bg-8.jpg); }
.dl-card:nth-child(9) .dl-stage { background-image: url(../img/timing/bg/bg-9.jpg); }
.dl-card:nth-child(10) .dl-stage { background-image: url(../img/timing/bg/bg-10.jpg); }
.dl-card:nth-child(11) .dl-stage { background-image: url(../img/timing/bg/bg-11.jpg); }
.dl-card:nth-child(12) .dl-stage { background-image: url(../img/timing/bg/bg-12.jpg); }
.dl-card:nth-child(13) .dl-stage { background-image: url(../img/timing/bg/bg-13.jpg); }
.dl-card:nth-child(14) .dl-stage { background-image: url(../img/timing/bg/bg-14.jpg); }
.dl-card:nth-child(15) .dl-stage { background-image: url(../img/timing/bg/bg-15.jpg); }
.dl-card:nth-child(16) .dl-stage { background-image: url(../img/timing/bg/bg-16.jpg); }
.dl-card:nth-child(17) .dl-stage { background-image: url(../img/timing/bg/bg-17.jpg); }
.dl-card:nth-child(18) .dl-stage { background-image: url(../img/timing/bg/bg-18.jpg); }
.dl-card:nth-child(19) .dl-stage { background-image: url(../img/timing/bg/bg-19.jpg); }
.dl-card:nth-child(20) .dl-stage { background-image: url(../img/timing/bg/bg-20.jpg); }
.dl-card:nth-child(21) .dl-stage { background-image: url(../img/timing/bg/bg-21.jpg); }
.dl-card:nth-child(22) .dl-stage { background-image: url(../img/timing/bg/bg-22.jpg); }
.dl-card:nth-child(23) .dl-stage { background-image: url(../img/timing/bg/bg-23.jpg); }
.dl-card:nth-child(24) .dl-stage { background-image: url(../img/timing/bg/bg-24.jpg); }
.dl-card:nth-child(25) .dl-stage { background-image: url(../img/timing/bg/bg-25.jpg); }
.dl-card:nth-child(26) .dl-stage { background-image: url(../img/timing/bg/bg-26.jpg); }
.dl-stage .snip { box-shadow: 0 24px 60px -18px rgba(0,0,0,.9); }

/* Every display library: still screengrabs instead of live frames */
.dl-stage .dl-shot { display: block; box-sizing: content-box; width: min(calc(100% - 12px), calc(var(--ar) * 400px)); height: auto; max-height: 100%; object-fit: contain; border: 6px solid #fff; border-radius: 4px; background: #fff; box-shadow: 0 24px 60px -18px rgba(0,0,0,.9); }
@media (max-width: 699px) { .dl-stage .dl-shot { border-width: 4px; width: min(calc(100% - 8px), calc(var(--ar) * 252px)); } }
