/* Rovantra Sim page. Charcoal surfaces (the Sim icon plate), purple only for actions and highlights.
   Overlay mockups are static HTML with hand-typed, fictional data. Nothing here reads a sim or calculates anything. */

.page-sim { --sim-bg: #262E33; --sim-bg-2: #1E2529; --sim-surface: #2D363C; background: var(--sim-bg-2); }
.page-sim .band-sim { background: var(--sim-bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-sim .site-footer { background: var(--sim-bg-2); }

/* ---------- Screen mockup ---------- */
.sim-screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-2); background: #111316;
  container-type: inline-size;
  --ovs: 1.05cqw;
}
.sim-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sim-monitor { background: #0C0E10; border: 1px solid var(--line-2); border-radius: 16px; padding: 10px; }
.sim-monitor .sim-screen { border-radius: 8px; border: 0; }
.sim-stand { width: 22%; height: 18px; margin: 0 auto; background: #15181B; border-radius: 0 0 10px 10px; }
.mock-tag {
  position: absolute; left: 1.4%; bottom: 2.2%; z-index: 5;
  font: 700 max(9px, .8cqw)/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  padding: .5em .8em; border-radius: 999px; background: rgba(12,14,18,.75); color: #C9CED8;
}

/* ---------- Overlays (shared by the screen and the gallery cards) ---------- */
.ov {
  position: absolute; z-index: 3;
  font: 500 var(--ovs)/1.35 var(--font-body); font-variant-numeric: tabular-nums;
  color: #EEF0F3; background: rgba(14, 16, 20, .86);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: .5em; padding: .55em .7em;
}
.ov-head { display: flex; justify-content: space-between; gap: 1em; font-size: .78em; letter-spacing: .08em; text-transform: uppercase; color: #9AA3B2; margin-bottom: .4em; }
.ov table { width: 100%; border-collapse: collapse; }
.ov td { padding: .18em .35em; white-space: nowrap; }
.ov td.n { text-align: right; }
.ov .num { display: inline-block; min-width: 2.1em; text-align: center; border-radius: .3em; background: #3A4249; font-weight: 700; font-size: .9em; }
.ov tr.me td { background: rgba(105, 50, 255, .55); }
.ov tr.me td:first-child { border-radius: .3em 0 0 .3em; }
.ov tr.me td:last-child { border-radius: 0 .3em .3em 0; }
.ov .ahead { color: #FF8A8A; }
.ov .behind { color: #7FE0A6; }
.ov .best { color: var(--t-best); }
.ov .muted-t { color: #9AA3B2; }

/* Delta bar */
.ov-delta { text-align: center; }
.ov-delta .bar { position: relative; height: .8em; border-radius: .4em; background: #2A2F35; overflow: hidden; margin-top: .3em; }
.ov-delta .bar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #EEF0F3; }
.ov-delta .fill { position: absolute; top: 0; bottom: 0; right: 50%; width: 22%; background: var(--ok); }
.ov-delta b { font-size: 1.6em; color: #7FE0A6; }

/* Fuel */
.ov-fuel dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: .2em 1em; }
.ov-fuel dt { color: #9AA3B2; }
.ov-fuel dd { margin: 0; text-align: right; font-weight: 600; }

/* Radar */
.ov-radar { padding: 0; background: none; border: 0; aspect-ratio: 1; }
.ov-radar svg { width: 100%; height: 100%; }

/* Inputs */
.ov-inputs svg { width: 100%; height: auto; display: block; }

/* Placement on the screen mockup */
.sim-screen .ov-delta { top: 9%; left: 50%; transform: translateX(-50%); width: 24%; }
.sim-screen .ov-rel { left: 11%; bottom: 27%; width: 25%; }
.sim-screen .ov-fuel { right: 11%; top: 16%; width: 15%; }
.sim-screen .ov-radar { right: 12%; bottom: 30%; width: 11%; }
.sim-screen .ov-inputs { right: 26%; bottom: 3%; width: 16%; }
.sim-screen .ov-stand { left: 11%; top: 12%; width: 23%; }

/* On small screens the picture is tiny: keep the two key overlays and make them bigger */
@container (max-width: 420px) {
  .sim-screen { --ovs: 1.9cqw; }
  .sim-screen .ov-fuel, .sim-screen .ov-radar, .sim-screen .ov-inputs, .sim-screen .ov-stand { display: none; }
  .sim-screen .ov-rel { width: 40%; left: 4%; bottom: 22%; }
  .sim-screen .ov-delta { width: 40%; }
}

/* ---------- Hero ---------- */
.sim-hero .hero-grid { gap: 36px; }
.sim-hero .facts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: #C9CED8; }
.sim-hero .facts span { display: inline-flex; align-items: center; gap: 8px; }
.sim-hero .facts span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--purple); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font: 600 13px/1 var(--font-body); padding: 8px 12px; border-radius: 999px;
  background: rgba(255,181,71,.12); color: #FFD08A; border: 1px solid rgba(255,181,71,.3);
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }

/* ---------- Real and sim pair ---------- */
.pair { display: grid; gap: 14px; }
.pair figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); }
.pair figure > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pair figure .sim-screen { border: 0; border-radius: 0; }
.pair figcaption {
  position: absolute; left: 12px; bottom: 12px; z-index: 6;
  font: 700 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; background: rgba(12,14,18,.82); color: #fff;
}
@media (min-width: 860px) { .pair { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* ---------- Charlie ---------- */
.charlie { display: grid; gap: 14px; background: var(--sim-surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; }
.charlie .play {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.25);
}
.charlie .play-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #3A4249; color: #C9CED8; }
.charlie .play-btn svg { width: 22px; height: 22px; }
.charlie .wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 40px; }
.charlie .wave i { flex: 1; background: #4A535B; border-radius: 2px; }
.charlie .play small { color: var(--muted); font-size: 13px; }
.calls { display: flex; flex-wrap: wrap; gap: 8px; }
.calls span { font: 600 14px/1 var(--font-body); padding: 10px 14px; border-radius: 12px 12px 12px 4px; background: #1E2529; border: 1px solid var(--line-2); }

/* ---------- Overlay gallery ---------- */
.ov-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .ov-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ov-grid { grid-template-columns: repeat(3, 1fr); } }
.ov-card {
  background: var(--sim-surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  display: grid; gap: 14px; align-content: start; --ovs: 13px;
}
.ov-card .stage { background: #3B4A3A url("../img/sim/mockup-cockpit.svg") center 62% / cover; border-radius: 10px; padding: 18px; display: grid; place-items: center; min-height: 190px; }
.ov-card .ov { position: static; width: 100%; max-width: 300px; transform: none; }
.ov-card .ov-radar { width: 150px; }
.ov-card h3 { font-size: 18px; font-weight: 600; }
.ov-card p { color: var(--muted); font-size: 14px; }
.ov-groups { display: grid; gap: 16px; margin-top: 36px; }
.ov-groups div { display: grid; gap: 8px; }
.ov-groups h3 { font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
@media (min-width: 860px) { .ov-groups { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Sims supported ---------- */
.sims { display: grid; gap: 10px; }
.sims li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--sim-surface); border: 1px solid var(--line); font-weight: 600; }
.sims em { font: 600 12px/1 var(--font-body); font-style: normal; padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.sims .ready { background: rgba(52,210,123,.14); color: #7FE0A6; }
.sims .building { background: rgba(255,181,71,.12); color: #FFD08A; }
@media (min-width: 760px) { .sims { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Plans ---------- */
.plan-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sim-surface); border: 1px solid var(--line-2); margin-bottom: 24px; }
.plan-toggle button { font: 600 14px/1 var(--font-body); color: var(--muted); background: none; border: 0; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.plan-toggle button[aria-pressed="true"] { background: var(--purple); color: #fff; }
.plans { display: grid; gap: 18px; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; } }
.plan { background: var(--sim-surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; display: grid; gap: 16px; align-content: start; }
.plan.featured { border-color: rgba(154,120,255,.6); }
.plan h3 { font-size: 24px; font-weight: 700; }
.plan .who { color: var(--muted); font-size: 15px; }
.plan .price { font: 700 44px/1 var(--font-head); }
.plan .price small { font: 500 15px/1.4 var(--font-body); color: var(--muted); margin-left: 6px; }
.plan ul { display: grid; gap: 8px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 2px; background: var(--purple); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.plan-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
[data-period="year"] .q, [data-period="quarter"] .y { display: none; }

/* ---------- Requirements and FAQ ---------- */
.req { display: grid; gap: 16px; }
@media (min-width: 860px) { .req { grid-template-columns: 1fr 1fr; gap: 24px; } }
.req .card { background: var(--sim-surface); }
.req ul { display: grid; gap: 8px; }
.req li { color: var(--muted); font-size: 15px; display: flex; gap: 10px; }
.req li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 2px; background: var(--purple); }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--sim-surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--purple-hi); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 16px; font-size: 15px; }

/* ---------- Download steps ---------- */
.steps { display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--sim-surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 66px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 20px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; font: 700 15px/1 var(--font-head); }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.disclaimer { font-size: 13px; color: var(--faint); }
.charlie-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; border-radius: 14px; }

/* Real overlay images (cropped from Rovantra Sim's Customise previews) */
.sim-screen > .ovi { position: absolute; inset: auto; z-index: 3; height: auto; object-fit: initial; border-radius: .6cqw; }
.sim-screen .ovi-delta { top: 8%; left: 50%; transform: translateX(-50%); width: 26%; }
.sim-screen .ovi-rel { left: 10%; bottom: 25%; width: 28%; }
.sim-screen .ovi-fuel { right: 10%; top: 14%; width: 20%; }
.sim-screen .ovi-inputs { right: 24%; bottom: 3%; width: 22%; }
.sim-screen .ovi-blind { left: 50%; top: 52%; transform: translateX(-50%); width: 30%; opacity: .95; }
@container (max-width: 420px) {
  .sim-screen .ovi-fuel, .sim-screen .ovi-inputs, .sim-screen .ovi-blind { display: none; }
  .sim-screen .ovi-rel { width: 46%; left: 3%; bottom: 20%; }
  .sim-screen .ovi-delta { width: 42%; }
}

/* Overlay explorer */
.ovx { display: grid; gap: 24px; }
@media (min-width: 1000px) { .ovx { grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; } }
.ovx-tabs { display: grid; gap: 14px; }
.ovx-group h3 { font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.ovx-tabs .chip { border: 1px solid transparent; cursor: pointer; font-family: var(--font-body); }
.ovx-tabs .chip[aria-selected="true"] { background: var(--purple); color: #fff; }
.ovx-view { min-width: 0; }
.ovx-panel { display: grid; gap: 16px; }
.ovx-panel[hidden] { display: none; }
.ovx-stage { background: var(--sim-bg, #262E33); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; display: grid; place-items: center; min-height: 260px; }
.ovx-stage img { width: auto; max-width: 100%; max-height: 440px; }
.ovx-copy .kicker { font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--purple-hi); }
.ovx-copy h3 { font-size: 24px; font-weight: 700; margin: 8px 0 6px; }
.ovx-copy p { color: var(--muted); }
@media (min-width: 1000px) { .ovx-view { position: sticky; top: calc(var(--header-h) + 20px); } .ovx-stage { min-height: 420px; } }

.customise-shot { margin: 32px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); }
.customise-shot img { width: 100%; }
.customise-shot figcaption { padding: 12px 16px; font-size: 13px; color: var(--faint); background: var(--sim-surface, #2D363C); }