/* ==========================================================================
   pages/platform.css - the reliability page. Only what this page alone needs; everything else is v1's vocabulary in components.css.
   Every demo is a v1 console (glass panel, title bar, "Live demo" pill) with v1's architecture-diagram language inside it: rounded
   --bg-3 boxes, blue dashed flow for calls, gold for configuration, green for health, red for a part that is down.
   A part that is down is never color-only: it is hatched, says "Down", and its button reports aria-pressed.
   ========================================================================== */
.page-platform [hidden] { display: none !important; }
.page-platform .pf-split > * { min-width: 0; }
@media (min-width: 1181px) { .page-platform .pf-rev > :first-child { order: 2; } }
.page-platform .console-wrap { min-width: 0; }

/* shared console footer: a sentence, then the demo's controls */
.pf-foot, .fsim__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.pf-foot > span:first-child, .fsim__foot > span:first-child { flex: 1 1 260px; min-width: 0; }
.pf-foot b { color: var(--text); }
.pf-foot__ctl { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pf-addon { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pf-tag { display: inline-flex; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); }

/* ---- the failover simulator -------------------------------------------------------------------------------------------- */
.fsim { container-type: inline-size; container-name: fsim; }
.fsim .console__body { display: grid; gap: 22px; }
.fsim__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fsim__tour { margin-left: auto; }
.fsim__tools .btn.is-ready { background: linear-gradient(180deg, #ffcb52, var(--gold-2)); color: #1a1200; border-color: transparent; box-shadow: 0 8px 24px -8px var(--glow-gold); }
.fsim__body { position: relative; display: grid; gap: 22px; }
@container fsim (min-width: 1000px) {
  .fsim__body { grid-template-columns: minmax(0, 1fr) 310px; grid-template-areas: "stage side" "status side"; column-gap: 30px; align-items: start; }
  .fsim__stage { grid-area: stage; } .fsim__status { grid-area: status; } .fsim__side { grid-area: side; }
}
@container fsim (min-width: 640px) and (max-width: 999px) {
  .fsim__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 26px; }
  .fsim__stage { grid-column: 1 / -1; }
}
.fsim__stage { position: relative; display: grid; padding: 2px 0 6px; min-height: 360px; }
@media (min-width: 900px) { .fsim__stage { min-height: 470px; } .fsim__grid { height: 460px; align-self: start; } }
.fsim__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.fsim__grid { position: relative; z-index: 1; display: grid; align-self: stretch; column-gap: clamp(24px, 3.2vw, 46px); grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.15fr); }
.fsim__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fsim__nodes { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 18px; }
.fsim__col--mg .fsim__nodes { gap: 40px; }
.fsim__h { align-self: flex-start; margin: 0; padding-right: 8px; background: var(--bg-2); font: 700 11.5px/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); position: relative; z-index: 2; }
.fsim__h span { font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.fsim__h span::before { content: "\00b7\00a0"; }

/* nodes: v1 architecture boxes. Front doors blue, management gold, standby dashed. Down = red, hatched, and says so. */
.fnode {
  position: relative; display: grid; gap: 3px; align-content: center; min-height: 88px; padding: 13px 16px 17px; text-align: left; width: 100%;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-3); color: var(--text);
  transition: background-color .2s, border-color .2s, box-shadow .25s, transform .2s;
}
.fnode--fd { border-color: rgba(77, 124, 255, .65); }
.fnode--mg { border-color: rgba(255, 187, 46, .6); }
button.fnode { cursor: pointer; }
button.fnode:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--glow-blue); }
.fnode__k { font: 700 15px/1.2 var(--font); color: var(--text); }
.fnode__t { font: 500 12.5px/1.3 var(--font); color: var(--muted); }
.fnode__s { display: flex; align-items: center; gap: 7px; margin-top: 3px; font: 700 11px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.fnode__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(115, 191, 105, .2); }
.fnode.is-standby { border-style: dashed; }
.fnode.is-busy { border-color: var(--gold); box-shadow: 0 0 0 4px var(--glow-gold); }
.fnode.is-fenced { border-style: dashed; opacity: .75; }
.fnode.is-down, .fnode.is-fenced.is-down {
  border-color: var(--red); opacity: 1;
  background: repeating-linear-gradient(135deg, rgba(242, 73, 92, .16) 0 7px, rgba(242, 73, 92, .06) 7px 14px), var(--bg-3);
}
.fnode.is-down .fnode__dot { background: var(--red); box-shadow: 0 0 0 3px rgba(242, 73, 92, .22); }
.fnode.is-down .fnode__s { color: var(--red-text); }
@keyframes fhit { from { box-shadow: 0 0 0 4px var(--glow-blue); } to { box-shadow: 0 0 0 0 transparent; } }
.fnode.is-hit { animation: fhit .48s ease-out; }
.fnode__load { position: absolute; left: 16px; right: 14px; bottom: 7px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.fnode__load::after { content: ""; position: absolute; inset: 0; width: calc(var(--load, .35) * 100%); background: linear-gradient(90deg, var(--blue), var(--gold)); border-radius: inherit; }
.fnode.is-down .fnode__load::after { width: 0; }
.fnode--ppl { min-height: 0; padding: 16px; align-self: center; }
.fnode--ppl .fnode__k { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fnode__devs { display: grid; gap: 9px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.fnode__devs li { display: flex; align-items: center; gap: 9px; }
.fnode__devs svg { color: var(--blue-text); }
.fsim__col--ppl .fsim__nodes { justify-content: center; }

/* edges and dots: calls = blue dashes, configuration = gold, replication = green, dead = faint red dots */
.fedge { fill: none; stroke: var(--line-2); stroke-width: 1.6; stroke-linecap: round; transition: opacity .24s; }
.fedge.is-route { stroke: var(--blue); stroke-width: 2.4; stroke-dasharray: 6 9; animation: pf-dash 1.3s linear infinite; }
.fedge.is-standby { stroke: var(--blue); opacity: .3; stroke-dasharray: 3 7; }
.fedge.is-dead { stroke: var(--red); opacity: .38; stroke-dasharray: 1 8; }
.fedge--cfg { stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 3 6; opacity: .55; }
.fedge--cfg.is-dead { stroke: var(--red); stroke-dasharray: 1 8; opacity: .3; }
.fedge--cfg.is-hidden { opacity: 0; }
.fedge--repl { stroke: var(--green); stroke-width: 2; stroke-dasharray: 8 5; opacity: .9; }
.fedge--repl.is-dead { stroke: var(--red); stroke-dasharray: 1 8; opacity: .3; }
@keyframes pf-dash { to { stroke-dashoffset: -30; } }
.fdot { fill: #fff; stroke: var(--blue); stroke-width: 2.4; }
.fdot--cfg { fill: transparent; stroke: var(--gold); stroke-width: 2; }
@keyframes flost { from { opacity: 1; } to { opacity: 0; } }
.fdot--lost { fill: var(--red); stroke: var(--red); stroke-width: 2; animation: flost .56s ease-out forwards; }

/* status: two lamps, a headline, a sentence, the why list and the log */
.fsim__status, .fsim__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fsim__side { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.fsim__lamps { display: flex; flex-wrap: wrap; gap: 8px; }
.lamp { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid rgba(115, 191, 105, .45); background: rgba(115, 191, 105, .12); font: 600 13px/1.1 var(--font); color: var(--text-2); transition: background-color .2s, border-color .2s; }
.lamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.lamp b { font: 800 14px/1 var(--display); color: var(--text); }
.lamp[data-state="no"] { border-color: rgba(242, 73, 92, .55); background: rgba(242, 73, 92, .13); }
.lamp[data-state="no"]::before { background: var(--red); }
.fsim__what { display: grid; gap: 8px; align-content: start; min-height: 7.2em; }
.fsim__head { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.12; }
.fsim__lede { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.fsim__why { display: grid; margin: 0; padding: 0; list-style: none; }
.fsim__why li { display: grid; gap: 7px; justify-items: start; }
.fsim__why li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fsim__why p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.fsim__clk { font-weight: 700; white-space: nowrap; color: var(--gold-text); font-family: var(--mono); }
.fsim__logwrap { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.fsim__log { height: 9.2em; overflow: hidden; margin: 0; padding: 0; list-style: none; font: 500 12.5px/1.55 var(--mono); color: var(--muted); }
.fsim__log li { display: flex; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsim__log time { flex: none; color: var(--text-2); }
.fsim__log li:last-child { color: var(--text); }

@media (max-width: 899px) {
  .fsim__stage { min-height: 0; padding: 2px 0 10px; }
  .fsim__grid { grid-template-columns: minmax(0, 1fr); row-gap: 50px; }
  .fsim__nodes, .fsim__col--mg .fsim__nodes { flex-direction: row; gap: 8px; justify-content: stretch; }
  .fsim__col--mg .fsim__nodes { gap: 24px; }
  .fnode { flex: 1 1 0; min-width: 0; min-height: 84px; padding: 10px 10px 16px 11px; }
  .fnode__k { font-size: 13.5px; }
  .fnode__t { font-size: 11.5px; }
  .fnode__load { left: 11px; right: 9px; }
  .fnode--ppl { flex: 1; }
  .fnode__devs { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .fsim__col { gap: 10px; }
}
@media (max-width: 420px) {
  .fnode { padding: 9px 7px 15px 9px; }
  .fnode__k { font-size: 12.5px; }
  .fnode__s { font-size: 10px; letter-spacing: .04em; }
  .fsim__col--mg .fsim__nodes { gap: 12px; }
}
@media (max-width: 759px) {
  .fsim__tools .btn { flex: 1 1 calc(50% - 8px); min-height: 44px; padding-inline: 10px; white-space: normal; line-height: 1.2; }
  .fsim__tour { margin-left: 0; }
  .fsim__tools .btn[data-run="mg"], .fsim__tools .btn[data-run="tour"] { flex-basis: 100%; }
}

/* ---- every case, in words ---------------------------------------------------------------------------------------------- */
.pf-cases-head { margin: 72px 0 26px; }
.pf-h3 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.025em; max-width: 24ch; }
.pf-cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pf-case { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .25s, transform .25s; }
.pf-case:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pf-case__ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(77, 124, 255, .14); color: var(--blue-text); }
.pf-case h4 { font-size: 16.5px; }
.pf-case p { font-size: 14.5px; color: var(--text-2); }
.pf-case__state { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-case__state span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text); border: 1px solid var(--line-2); background: var(--card-2); }
.pf-case__state span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pf-ok::before { background: var(--green); } .pf-wait::before { background: var(--gold); }
.pf-ok { border-color: rgba(115, 191, 105, .4) !important; } .pf-wait { border-color: rgba(255, 187, 46, .45) !important; border-style: dashed !important; }
.pf-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14.5px; }
@media (max-width: 1180px) { .pf-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-case:last-child { grid-column: 1 / -1; } }
@media (max-width: 620px) { .pf-cases { grid-template-columns: 1fr; } .pf-case:last-child { grid-column: auto; } .pf-cases-head { margin-top: 56px; } }

/* ---- safety-net cells: the link at the bottom is a button for the simulator "Try it" actions ------------------------------ */
.page-platform .sec-cell { align-content: stretch; grid-template-rows: auto auto 1fr auto; }
.page-platform .sec-cell .link-more { margin-top: 6px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; justify-self: start; }

/* ---- lanes: timelines whose segments are small glass bars (ok green, blocked red, waiting gold dashed) -------------------- */
.lkg__axis { display: grid; grid-template-columns: 22fr 50fr 28fr; margin-bottom: 8px; font: 700 11px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.lkg__axis span { text-align: center; }
.lanes { position: relative; display: grid; gap: 14px; }
.lane { display: grid; gap: 5px; }
.lane__k { font: 600 12.5px/1.2 var(--font); color: var(--text-2); }
.track { position: relative; display: flex; gap: 3px; min-height: 34px; }
.track > i { flex: var(--w, 1) 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line-2); font: 700 11.5px/1.15 var(--font); font-style: normal; letter-spacing: .05em; text-transform: uppercase; text-align: center; color: var(--text); }
.seg-ok { background: rgba(115, 191, 105, .16); border-color: rgba(115, 191, 105, .5) !important; }
.seg-bad { background: repeating-linear-gradient(135deg, rgba(242, 73, 92, .22) 0 6px, rgba(242, 73, 92, .1) 6px 12px); border-color: var(--red) !important; }
.seg-wait { background: rgba(255, 187, 46, .12); border-color: rgba(255, 187, 46, .6) !important; border-style: dashed !important; }
.lanes__head { position: absolute; top: -6px; bottom: -6px; left: var(--p, 100%); width: 2px; margin-left: -1px; background: var(--gold); box-shadow: 0 0 14px 1px var(--glow-gold); display: none; pointer-events: none; }
.lanes.is-running > .lanes__head { display: block; }
.lanes.is-running .track { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }

/* ---- the standby drill ---------------------------------------------------------------------------------------------------- */
.drill .console__body { display: grid; gap: 24px; }
.drill__top { display: grid; gap: 20px 28px; align-items: center; }
@media (min-width: 640px) { .drill__top { grid-template-columns: auto minmax(0, 1fr); } }
.drill__clock { display: grid; gap: 8px; justify-items: start; }
.drill__t { display: inline-block; padding: 8px 20px; border-radius: 14px; background: linear-gradient(180deg, var(--btn-1), var(--btn-2)); color: #fff; font: 800 clamp(40px, 5vw, 54px)/1 var(--mono); letter-spacing: .02em; box-shadow: 0 10px 30px -10px var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, .25); }
.drill__cap { font: 700 11.5px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.drill__steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.drill__steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 15px; font-weight: 500; color: var(--text-2); opacity: .6; transition: opacity .24s calc(var(--k, 0) * 140ms); }
.drill__steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font: 700 14px var(--mono); color: var(--gold-text); background: rgba(255, 187, 46, .1); border: 1px solid rgba(255, 187, 46, .3); transition: background-color .12s calc(var(--k, 0) * 140ms), color .12s calc(var(--k, 0) * 140ms); }
.drill__steps li.is-done { opacity: 1; color: var(--text); font-weight: 600; }
.drill__steps li.is-done b { background: linear-gradient(180deg, #ffcb52, var(--gold-2)); color: #1a1200; border-color: transparent; }

/* ---- live migration --------------------------------------------------------------------------------------------------------- */
.mig__body { display: grid; gap: 24px; }
.mig__route { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); }
.mig__route > span { font: 700 11.5px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.mig__to { font: 800 clamp(22px, 2.6vw, 30px)/1.1 var(--display); letter-spacing: -.02em; color: var(--text); }
.mig__servers { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.mig__srv { display: grid; gap: 14px; align-content: start; padding: 20px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--card-2), var(--card)); transition: border-color .24s, background-color .24s; }
.mig__srv header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.mig__name { font-size: 20px; }
.mig__tag { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(115, 191, 105, .5); background: rgba(115, 191, 105, .14); font: 700 11px/1.1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.mig__tag[data-s="drain"] { border-color: rgba(255, 187, 46, .6); background: rgba(255, 187, 46, .12); border-style: dashed; }
.mig__tag[data-s="done"] { border-color: var(--line-2); background: var(--card-2); }
.mig__n { display: flex; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.mig__n b { font: 800 clamp(34px, 3.6vw, 44px)/1 var(--mono); min-width: 1.5ch; color: var(--text); letter-spacing: -.02em; }
.mig__dots { display: grid; grid-template-columns: repeat(6, 16px); gap: 7px; }
.mig__dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); transition: background-color .12s, border-color .12s; }
.mig__dots i.on { background: var(--blue); border-color: var(--blue); }
.mig__box { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.mig__box svg { color: var(--gold-text); }
.mig__arrow { display: grid; place-items: center; color: var(--blue-text); }
.mig__arrow .i { width: 30px; height: 30px; }
.mig.is-final .mig__srv[data-srv="new"] { border-color: rgba(115, 191, 105, .6); background: linear-gradient(180deg, rgba(115, 191, 105, .14), var(--card)); }
.mig__ctl { display: grid; gap: 12px; }
.mig__phases { display: flex; width: 100%; }
.mig__phases .seg__btn { flex: 1 1 0; min-height: 44px; padding-inline: 6px; text-align: center; line-height: 1.2; }
.mig__text { font-weight: 500; line-height: 1.55; min-height: 3.2em; max-width: 68ch; color: var(--text-2); }
@media (max-width: 759px) {
  .mig__servers { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mig__arrow { transform: rotate(90deg); height: 30px; }
  .mig__phases .seg__btn { font-size: 12px; padding-inline: 2px; }
}

/* sliders: a glass track and a round blue thumb, 44 px tall to grab */
.pf-range { appearance: none; -webkit-appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.pf-range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: var(--line-2); border: 0; }
.pf-range::-moz-range-track { height: 8px; border-radius: 8px; background: var(--line-2); border: 0; }
.pf-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: linear-gradient(180deg, var(--btn-1), var(--btn-2)); border: 3px solid var(--bg-2); box-shadow: 0 0 0 2px var(--blue), 0 6px 14px -4px var(--glow-blue); }
.pf-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--btn-1); border: 3px solid var(--bg-2); box-shadow: 0 0 0 2px var(--blue); }
.pf-range:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; border-radius: 8px; }

/* ---- encrypted desk phones ---------------------------------------------------------------------------------------------------- */
.tls__body { display: grid; gap: 20px; align-content: start; }
.tls__label { font: 700 11.5px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: -8px; }
.tls .seg { width: 100%; }
.tls .seg__btn { flex: 1 1 0; min-height: 44px; }
.tls__path { display: grid; justify-items: stretch; padding-block: 4px; }
.tls__node { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-3); font: 700 15px/1.2 var(--font); }
.tls__node svg { color: var(--blue-text); }
.tls__node--fd { border-color: rgba(77, 124, 255, .65); }
.tls__link { display: flex; align-items: center; gap: 10px; min-height: 50px; margin-left: 28px; padding-left: 20px; border-left: 2px solid var(--blue); font: 600 12.5px/1.2 var(--mono); letter-spacing: .02em; color: var(--text-2); }
.tls__link--in { border-left-style: dotted; border-left-color: var(--line-2); }
.tls[data-mode="off"] .tls__link:not(.tls__link--in) { border-left-style: dashed; border-left-color: var(--muted); }
.tls[data-mode="off"] .tls__lock { display: none; }
.tls[data-mode="required"] .tls__link:not(.tls__link--in) { border-left-width: 5px; border-left-color: var(--gold); padding-left: 17px; }
.tls__lock { color: var(--gold-text); }
.tls__text { display: grid; gap: 6px; align-content: start; min-height: 9.5em; }
.tls__text h3 { font-size: 20px; line-height: 1.2; }
.tls__text p { color: var(--text-2); font-size: 15px; max-width: 60ch; }

/* ---- call quality ------------------------------------------------------------------------------------------------------------------ */
.qual { container-type: inline-size; container-name: qual; }
.qual__body { display: grid; gap: 26px; align-items: start; }
.ladder { position: relative; }
.ladder__life { position: absolute; top: 36px; bottom: 0; left: 50%; border-left: 2px dotted var(--line-2); }
.ladder__heads { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font: 700 11px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.ladder__rows { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
.ladder__rows::before, .ladder__rows::after { content: ""; position: absolute; top: 0; bottom: 0; border-left: 2px dotted var(--line-2); }
.ladder__rows::before { left: 16.666%; } .ladder__rows::after { right: 16.666%; }
.msg { position: relative; height: 34px; display: flex; align-items: center; margin-inline: 16.666%; opacity: .22; transition: opacity .24s; }
.msg.is-on { opacity: 1; }
.msg span { position: absolute; left: 50%; transform: translateX(-50%); top: 2px; padding: 0 8px; white-space: nowrap; background: var(--bg-2); font: 600 12px/1.2 var(--mono); color: var(--text); z-index: 1; }
.msg::before { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; border-top: 2px solid var(--blue); }
.msg--l::before { border-top-style: dashed; border-top-color: var(--text-2); }
.msg--r::after, .msg--l::after { content: ""; position: absolute; bottom: 4.5px; width: 8px; height: 8px; border: solid var(--blue); border-width: 2px 2px 0 0; }
.msg--l::after { border-color: var(--text-2); }
.msg--r::after { right: 0; transform: rotate(45deg); transform-origin: 70% 30%; }
.msg--l::after { left: 0; transform: rotate(-135deg); transform-origin: 30% 70%; }
.msg--both { height: 46px; }
.msg--both::before { height: 0; bottom: 10px; border-top: 6px double var(--green); }
.msg--both span { top: 0; }
.msg--both em { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; background: linear-gradient(180deg, #ffcb52, var(--gold-2)); color: #1a1200; font: 700 11px/1.1 var(--font); font-style: normal; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; z-index: 1; }
.ladder__rows li:nth-last-child(2) { margin-top: 26px; }
.qual__meter { display: grid; gap: 16px; align-content: start; }
.qual__score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.qual__k { flex: 1 1 100%; font: 700 11.5px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.qual__mos { display: inline-block; min-width: 3.4ch; padding: 6px 16px; border-radius: 14px; text-align: center; background: linear-gradient(180deg, var(--btn-1), var(--btn-2)); color: #fff; font: 800 clamp(34px, 4vw, 44px)/1 var(--mono); box-shadow: 0 10px 30px -10px var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, .25); transition: background .2s; }
.qual.is-bad .qual__mos { background: linear-gradient(180deg, #e0485a, #b32638); }
.qual__state { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font: 700 12.5px/1.1 var(--font); border: 1px solid rgba(115, 191, 105, .5); background: rgba(115, 191, 105, .13); color: #8fd488; }
:root[data-theme="light"] .qual__state[data-state="ok"] { color: #1f7a33; }
.qual__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.qual__state[data-state="bad"] { border-color: rgba(242, 73, 92, .6); background: rgba(242, 73, 92, .14); color: var(--red-text); }
.qual__state[data-state="bad"]::before { background: var(--red); }
.qual__scale { position: relative; height: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); margin-top: 6px; }
.qual__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 85%); border-radius: inherit; background: linear-gradient(90deg, #4f9d46, var(--green)); transition: background-color .12s; }
.qual.is-bad .qual__fill { background: linear-gradient(90deg, #b32638, var(--red)); }
.qual__tick { position: absolute; left: var(--at); top: -7px; bottom: -7px; width: 0; }
.qual__tick::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--gold); }
.qual__tick b { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 3px; font: 700 12px/1 var(--mono); color: var(--gold-text); }
.qual__ctl { display: grid; gap: 2px; margin-top: 12px; }
.qual__row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font: 600 13px/1.2 var(--font); color: var(--text-2); }
.qual__row output { font: 700 14px var(--mono); color: var(--text); }
.qual__flag { min-height: 5.4em; font-weight: 500; font-size: 14.5px; line-height: 1.55; }
.qual.is-bad .qual__flag { color: var(--red-text); font-weight: 600; }
@container qual (min-width: 640px) { .qual__body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 30px; } }

/* ---- watched and backed up (bento) ---------------------------------------------------------------------------------------------- */
.pf-bento .tile { min-height: 0; }
.pf-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 18px; }
.pf-list > li { display: grid; gap: 8px; }
.pf-list a { display: grid; gap: 3px; }
.pf-list b { font: 600 15.5px/1.3 var(--font); color: var(--text); transition: color .2s; }
.pf-list a:hover b { color: var(--blue-text); }
.pf-list span { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.pf-flags { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.pf-flags li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.pf-flags svg { color: var(--gold-text); margin-top: 2px; }
.pf-comps { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-ext { margin-top: 2px; }
@media (max-width: 1180px) and (min-width: 761px) { .pf-bento .t-2:last-child { grid-column: span 6; } }

/* ---- stack + features -------------------------------------------------------------------------------------------------------------- */
.pf-stack .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .pf-stack .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-stack .logo-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.pf-more { text-align: center; margin-top: 26px; }

/* ---- reduced motion, forced colors, no script ------------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) { .fnode.is-hit { animation: none; } .fedge.is-route { animation: none; stroke-dasharray: none; } }
html[data-motion="reduced"] .fnode.is-hit { animation: none; }
html[data-motion="reduced"] .fedge.is-route { animation: none; stroke-dasharray: none; }
@media (forced-colors: active) {
  .fnode.is-down { border-style: dashed; }
  .seg-bad { border-style: double !important; }
}
html:not(.js) .fsim__body, html:not(.js) .fsim__tools,
html:not(.js) [data-try], html:not(.js) .mig__phases, html:not(.js) .mig__range, html:not(.js) .qual__ctl, html:not(.js) .tls .seg { display: none; }
@media (max-width: 559px) {
  .qual__mos { font-size: 34px; }
  .drill__t { font-size: 40px; }
}

/* page rhythm and small fixes */
.page-platform #sim { padding-bottom: 36px; }
.pf-list a.pf-ext { display: inline-flex; }
.page-platform .pill b { white-space: nowrap; }
.page-platform .hero-trust span { align-items: flex-start; text-align: left; }
.page-platform .hero-trust svg { margin-top: 3px; }

.fsim__side .fsim__h, .fsim__logwrap .fsim__h { background: transparent; padding-right: 0; }
