/* How it works — tactical briefing layout. Loaded after tactical.css. */

.how { --hdr: calc(var(--nav-h) + 50px); }

/* ---------------------------------------------------------------- hero */
.how-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 48px); }
.how-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(105, 170, 193, 0.05) 0 1px, transparent 1px 14px);
  mask-image: linear-gradient(100deg, transparent 40%, #000 80%);
  -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 80%);
  pointer-events: none;
}
.how-hero .shell { position: relative; }
.how-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(4rem, 10vw, 8rem); line-height: 0.82; }
.how-sub { margin-top: var(--s-4); max-width: 52ch; color: var(--muted); font-size: 1.02rem; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: var(--s-6) 0 0; max-width: 760px; }
.facts > div { padding: 12px 16px 10px; border: 1px solid var(--line); background: var(--bg-2); clip-path: var(--clip-card); }
.facts dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 2.2rem; line-height: 0.9; text-transform: uppercase; }

/* ---------------------------------------------------------------- sticky section tabs */
.how-tabs { position: sticky; top: var(--nav-h); z-index: 30; background: rgba(7, 16, 19, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.how-tabs .shell { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.how-tabs .shell::-webkit-scrollbar { display: none; }
.how-tabs a { flex: none; position: relative; padding: 15px 14px 13px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); transition: color var(--t-fast); }
.how-tabs a:hover { color: var(--text); }
.how-tabs a[aria-current='true'] { color: var(--text); }
.how-tabs a[aria-current='true']::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent); }

/* ---------------------------------------------------------------- sections */
.how-sec { padding-block: clamp(48px, 6vw, 80px) 0; scroll-margin-top: var(--hdr); }
.sec-title { display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 0.9; margin-bottom: var(--s-5); }
.sec-title span { font-size: 0.9rem; padding: 5px 8px 3px; color: var(--accent-ink); background: var(--accent); clip-path: var(--clip-tag); padding-right: 14px; letter-spacing: 0.06em; }
.sec-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.sec-lede { color: var(--muted); max-width: 62ch; }
.fine { margin-top: var(--s-5); padding-left: 14px; border-left: 2px solid var(--line-2); font-size: 0.84rem; color: var(--dim); max-width: 80ch; }
.fine strong { color: var(--warn); font-weight: 600; }

/* shared HUD card look for this page's blocks */
.flow li, .verdict, .tile, .price-steps > div, .sim, .formula-row, .how-cta {
  position: relative;
  border: 1px solid var(--line);
  background-color: var(--bg-2);
  clip-path: var(--clip-card);
  background-image:
    linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud)),
    linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud)),
    linear-gradient(to bottom left, transparent calc(50% - 1px), var(--line-2) 50%, transparent calc(50% + 1px));
  background-repeat: no-repeat;
  background-size: 16px 2px, 2px 16px, 16px 2px, 2px 16px, var(--cut) var(--cut);
  background-position: 0 0, 0 0, 100% 100%, 100% 100%, 100% 0;
}

/* the round */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.flow li { padding: 22px 20px 22px; overflow: hidden; }
.flow-n { position: absolute; top: 6px; right: 16px; font-family: var(--font-display); font-weight: 700; font-size: 4.6rem; line-height: 1; color: rgba(105, 170, 193, 0.1); }
.flow .icon { width: 26px; height: 26px; color: var(--accent); }
.flow h3 { margin: 16px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 0.9; text-transform: uppercase; }
.flow p { font-size: 0.88rem; color: var(--muted); }
.flow li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  width: 10px;
  height: 18px;
  transform: translateY(-50%);
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0.6;
}
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.rules li { padding: 12px 16px; border-left: 2px solid var(--accent); background: rgba(16, 33, 39, 0.5); font-size: 0.86rem; color: var(--muted); }

/* verdicts */
.verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: var(--s-5); }
.verdict { padding: 24px 20px 22px; }
.verdict::before { content: ''; position: absolute; left: 0; right: var(--cut); top: 0; height: 3px; background: var(--vc); }
.verdict { --vc: var(--accent); }
.v-ok { --vc: var(--success); --hud: var(--success); }
.v-wait { --vc: var(--warn); --hud: var(--warn); }
.v-bad { --vc: var(--error); --hud: var(--error); }
.verdict-tag { display: inline-block; padding: 4px 14px 3px 10px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); background: var(--vc); clip-path: var(--clip-tag); }
.verdict h3 { margin: 14px 0 8px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 2.1rem; line-height: 0.9; color: var(--vc); }
.verdict p { font-size: 0.88rem; color: var(--muted); }

/* scoring */
.score-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.formulas { display: grid; gap: 14px; }
.formula-row { display: flex; align-items: center; gap: 20px; padding: 16px 20px; }
.f-weight { font-family: var(--font-display); font-weight: 700; font-size: 4.4rem; line-height: 0.8; color: var(--accent); padding-top: 0.12em; }
.f-weight.q { color: var(--violet); }
.f-name { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.f-math { margin-top: 4px; font-size: 1rem; font-weight: 500; }

.sim { padding: 18px 20px 20px; }
.sim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sim-note { font-size: 0.74rem; color: var(--faint); }
.sim-players { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sim-p { margin: 0; padding: 12px 14px 14px; border: 1px solid var(--line); min-width: 0; }
.sim-p legend { padding: 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; text-transform: uppercase; line-height: 1; }
.sim-p[data-p='b'] legend { color: var(--muted); }
.sim-p label { display: grid; gap: 6px; margin-top: 10px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.sim-p output { float: right; font-family: var(--font-display); font-size: 1.5rem; line-height: 0.8; color: var(--text); letter-spacing: 0.02em; }
.sim input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
.sim input[type='range']::-webkit-slider-runnable-track { height: 4px; background: var(--line-2); }
.sim input[type='range']::-moz-range-track { height: 4px; background: var(--line-2); }
.sim input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 18px; margin-top: -7px; background: var(--accent); clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%); }
.sim input[type='range']::-moz-range-thumb { width: 14px; height: 18px; border: 0; border-radius: 0; background: var(--accent); }
.sim input[type='range']:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.sim-result { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sr-col { display: grid; gap: 8px; }
.sr-top { display: flex; justify-content: space-between; align-items: baseline; }
.sr-name { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.sr-final { font-family: var(--font-display); font-size: 3rem; line-height: 0.8; }
.sr-col.win .sr-final { color: var(--success); }
.sr-bar { display: grid; grid-template-columns: 44px 1fr 40px; gap: 8px; align-items: center; font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.sr-track { display: block; height: 4px; background: var(--line); }
.sr-track span { display: block; height: 100%; width: var(--w); background: var(--accent); transition: width 220ms var(--ease); }
.sr-bar.q .sr-track span { background: var(--violet); }
.sr-num { text-align: right; font-family: var(--font-display); font-size: 1.1rem; color: var(--muted); letter-spacing: 0.02em; }
.sr-verdict { grid-column: 1 / -1; text-align: center; padding: 8px; font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 0.9; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: rgba(243, 248, 248, 0.03); }
.sr-verdict.win { color: var(--success); background: rgba(57, 214, 163, 0.08); }
.sr-verdict.loss { color: var(--error); background: rgba(251, 113, 133, 0.08); }

/* pricing / privacy steps */
.price-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.price-steps > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 18px 20px; align-items: start; }
.ps-n { width: 40px; height: 40px; display: grid; place-items: center; padding-top: 0.15em; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--accent); background: rgba(105, 170, 193, 0.12); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.price-steps p { font-size: 0.88rem; color: var(--muted); }
.price-steps strong { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }

/* fair play tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 20px; }
.tile .icon { width: 22px; height: 22px; color: var(--accent); }
.tile h3 { margin: 12px 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 0.9; text-transform: uppercase; }
.tile p { font-size: 0.86rem; color: var(--muted); }

/* CTA */
.how-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding: 28px 32px; background-color: var(--bg-2); }
.how-cta .hud-tag { margin-bottom: 8px; }
.how-cta-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 0.85; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(2)::after { display: none; }
  .score-grid { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow, .verdicts, .tiles, .rules { grid-template-columns: minmax(0, 1fr); }
  .flow li::after { display: none; }
  .sim-players, .sim-result { grid-template-columns: minmax(0, 1fr); }
  .how-cta { padding: 22px; }
  .how-cta .btn { width: 100%; }
}
/* The CTA box itself carries .shell, so size it to the content width instead of the gutter box. */
.how-cta.shell { width: calc(min(100vw, var(--shell)) - 2 * var(--gutter)); max-width: none; padding: 28px 32px; margin-inline: auto; }
@media (max-width: 640px) { .how-cta.shell { padding: 22px; } }
