/* ============================================================
   Boost — sections 05–08, close, footer, responsive
   ============================================================ */

/* ---------------------------------------------------------- 05 history */

.hist-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.hist-side .mono { font-size: 8px; color: var(--faint); }
.range {
  display: flex;
  gap: 3px;
  width: fit-content;
  margin-top: 12px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.range button {
  padding: 7px 13px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
  transition: background 0.2s, color 0.2s;
}
.range button:hover { color: var(--text); }
.range button[aria-selected="true"] { background: rgba(233, 240, 235, 0.09); color: var(--text); }

.hist-stats { margin-top: 24px; border-top: 1px solid var(--line); }
.hist-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.hist-stat span { font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.hist-stat b { font-size: 21px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hist-stat.warn b { color: var(--amber); }
.hist-side .fine { margin-top: 15px; font-size: 11.5px; line-height: 1.6; color: var(--faint); }
.hist-side .fine b { color: var(--muted); font-weight: 500; }

.chart-panel {
  position: relative;
  padding: 16px 18px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(233, 240, 235, 0.026), rgba(233, 240, 235, 0) 42%), var(--panel);
  overflow: hidden;
}
.chart-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.chart-head .mono { font-size: 8px; color: var(--faint); }
.chart-head .live { display: flex; align-items: center; gap: 6px; color: var(--mint); }
.chart-head .live i { width: 4px; height: 4px; border-radius: 50%; background: var(--mint); }
.chart-wrap { position: relative; margin-top: 12px; }
.chart-plot { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.gridline { stroke: rgba(233, 240, 235, 0.065); stroke-width: 1; stroke-dasharray: 2 6; }
.y-labels text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--faint);
}
.chart-line { fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#areaFill); opacity: 0; transition: opacity 0.8s ease 0.15s; }
.chart-area.in { opacity: 1; }
.chart-dot { fill: var(--mint); stroke: var(--ink); stroke-width: 2.5; opacity: 0; transition: opacity 0.12s; }
.chart-dot.on { opacity: 1; }
.chart-x {
  display: flex;
  justify-content: space-between;
  padding: 5px 2px 0 4%;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.chart-tip {
  position: absolute;
  z-index: 3;
  padding: 5px 8px;
  border: 1px solid rgba(95, 227, 180, 0.28);
  border-radius: 5px;
  background: #0a0f0e;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -132%);
  transition: opacity 0.12s;
}
.chart-tip.on { opacity: 1; }
.chart-tip b { color: var(--mint); font-weight: 500; }
.chart-annot {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -112%);
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(10, 15, 14, 0.9);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s;
}
.chart-annot b { color: var(--amber); font-weight: 500; }
.chart-annot.hide { opacity: 0; }

.alerts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.alert .mono { font-size: 8px; color: var(--mint); }
.alert h3 { margin: 9px 0 6px; font-size: 15px; font-weight: 500; letter-spacing: -0.015em; }
.alert p { font-size: 12.5px; line-height: 1.58; color: var(--muted); }

/* ---------------------------------------------------------- 06 everything else */

.spec-list { border-top: 1px solid var(--line); }
.spec {
  display: grid;
  grid-template-columns: 42px 210px minmax(0, 1fr) 74px;
  gap: clamp(14px, 2.4vw, 30px);
  align-items: start;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.spec-num { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--faint); padding-top: 5px; transition: color 0.2s; }
.spec:hover .spec-num { color: var(--mint); }
.spec h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.025em; padding-top: 1px; }
.spec p { max-width: 74ch; font-size: 13.5px; line-height: 1.63; color: var(--muted); }
.spec p b { color: var(--text); font-weight: 500; }
.spec-tag {
  justify-self: end;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--faint);
  white-space: nowrap;
}

.term {
  margin-top: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #090e0d;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-2);
}
.term-bar .tl { width: 8px; height: 8px; }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.term pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font-size: 11.5px; line-height: 2; color: var(--text); }
.trow { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
.term .c { color: var(--faint); }
.term .p { color: var(--mint); }
.term .cmdname { color: var(--text); }

/* ---------------------------------------------------------- 07 install */

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.install-side .sec-title h2 { margin-bottom: 16px; }
.install-side .lede { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 46ch; }
.install-side .lede b { color: var(--text); font-weight: 500; }
.install-side .micro { margin-top: 22px; }

.installer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.installer-bar { display: flex; align-items: center; gap: 3px; padding: 8px; border-bottom: 1px solid var(--line); }
.installer-bar button {
  padding: 7px 12px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
  transition: background 0.2s, color 0.2s;
}
.installer-bar button[aria-selected="true"] { background: rgba(233, 240, 235, 0.09); color: var(--text); }
.installer-bar .copy-mini {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.installer-bar .copy-mini:hover { color: var(--mint); border-color: rgba(95, 227, 180, 0.4); }
.installer-bar .copy-mini .ico { width: 11px; height: 11px; }
.installer pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 11.5px; line-height: 1.95; color: var(--text); }
.installer pre .c { color: var(--faint); }
.installer pre .p { color: var(--mint); }

.fineprint {
  margin-top: 18px;
  padding: 15px 17px;
  border-left: 2px solid rgba(95, 227, 180, 0.5);
  background: rgba(95, 227, 180, 0.035);
  border-radius: 0 7px 7px 0;
}
.fineprint .mono { font-size: 7.5px; color: var(--mint); }
.fineprint p { margin-top: 7px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.fineprint a { color: var(--text); border-bottom: 1px solid var(--line); }
.fineprint a:hover { color: var(--mint); border-color: rgba(95, 227, 180, 0.5); }

.perm { margin-top: clamp(40px, 6vw, 64px); }
.perm-head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.perm-head h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.perm-head .mono { color: var(--faint); font-size: 8px; }
.perm-scroll { overflow-x: auto; }
.perm-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.perm-table th {
  padding: 10px 14px 9px 0;
  text-align: left;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line-2);
}
.perm-table td { padding: 12px 14px 12px 0; vertical-align: top; font-size: 12.5px; line-height: 1.5; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.perm-table td:first-child { color: var(--text); white-space: nowrap; font-weight: 500; }
.perm-table td:last-child { color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: 0.02em; white-space: nowrap; }
.perm-table .none { color: var(--mint); }

/* ---------------------------------------------------------- close */

.close {
  position: relative;
  padding: clamp(76px, 10vw, 140px) 0 0;
  background: var(--mint);
  color: #07211a;
  overflow: hidden;
}
.close .wrap { position: relative; z-index: 1; }
.close .mono { color: #1d4a3d; font-size: 8.5px; }
.close h2 {
  max-width: 15ch;
  margin: 20px 0 22px;
  font-size: clamp(42px, 6.7vw, 104px);
  line-height: 0.93;
  letter-spacing: -0.05em;
  font-weight: 600;
}
.close .lede { max-width: 50ch; font-size: 15.5px; line-height: 1.6; color: #1d4a3d; }
.close .lede a { border-bottom: 1px solid rgba(7, 33, 26, 0.5); }
.close .lede a:hover { border-color: #07211a; }
.close .cmd {
  margin-top: 28px;
  background: #08211a;
  border-color: #08211a;
  color: var(--mint);
  box-shadow: 0 20px 50px rgba(7, 33, 26, 0.18);
}
.close .cmd:hover { background: #062018; border-color: #062018; }
.close .cmd .dollar { color: rgba(95, 227, 180, 0.7); }
.close .cmd .copy { background: rgba(95, 227, 180, 0.1); color: rgba(95, 227, 180, 0.75); }
.close .cmd:hover .copy { color: var(--mint); background: rgba(95, 227, 180, 0.16); }
.close-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; }
.close-links a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #245044;
  border-bottom: 1px solid rgba(7, 33, 26, 0.45);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.close-links a:hover { color: #07211a; border-color: #07211a; }
.watermark {
  margin-top: clamp(50px, 8vw, 90px);
  font-size: clamp(110px, 25vw, 400px);
  line-height: 0.68;
  letter-spacing: -0.07em;
  font-weight: 600;
  color: rgba(7, 33, 26, 0.065);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand { font-size: 13px; }
.footer .brand-mark { width: 21px; height: 21px; border-radius: 6px; }
.footer .brand-mark svg { width: 11px; height: 11px; }
.footer p { font-family: var(--mono); font-size: 8px; letter-spacing: 0.07em; color: var(--faint); line-height: 1.7; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { font-family: var(--mono); font-size: 8px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); transition: color 0.2s; }
.footer nav a:hover { color: var(--mint); }

/* ---------------------------------------------------------- responsive */

/* short laptop screens: keep the whole popover above the fold */
@media (min-width: 921px) and (max-height: 1010px) {
  .hero { padding-top: 100px; padding-bottom: 52px; }
  .hero h1 { margin-top: 26px; font-size: clamp(43px, 5.5vw, 80px); }
  .hero-bottom { margin-top: 34px; }
  .fig { margin-bottom: 8px; }
  .fig.bottom { margin-top: 8px; }
  .shell { padding: 17px; }
  .pop { padding: 14px; }
  .pop-readout { padding: 6px 2px 12px; }
  .stat-grid > div { padding: 7px 9px; }
  .pop-label { margin: 11px 0 4px; }
  .app-list li { height: 25px; }
  .free-btn { margin-top: 9px; height: 36px; }
  .pop-result { min-height: 30px; padding-top: 7px; }
}

@media (max-width: 1200px) {
  .nav { gap: 18px; }
  .nav a { font-size: 9px; }
}

@media (max-width: 1060px) {
  .nav { display: none; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; }
  .hero-visual { max-width: 380px; }
  .pop-big b { font-size: 29px; }
}

@media (max-width: 920px) {
  .hero { padding-top: 118px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .hero-visual { margin: 0; max-width: 470px; }
  .hero::after { right: -30vw; top: 30%; width: 100vw; height: 100vw; }
  .rail-inner { grid-template-columns: repeat(3, 1fr); }
  .rail-item { padding: 16px 0 16px 16px; }
  .rail-item:nth-child(4) { border-left: 0; padding-left: 0; }
  .rail-item:nth-child(-n+3) { border-bottom: 1px solid var(--line-2); }
  .pause-grid { grid-template-columns: 1fr; gap: 40px; }
  .disk-grid { grid-template-columns: 1fr; }
  .hist-grid { grid-template-columns: 1fr; gap: 28px; }
  .hist-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
  .hist-side .mono { grid-column: 1 / -1; }
  .range { grid-column: 1 / -1; margin-top: 10px; }
  .hist-stats { grid-column: 1 / -1; }
  .hist-side .fine { grid-column: 1 / -1; }
  .install-grid { grid-template-columns: 1fr; gap: 36px; }
  .shot-legend { grid-template-columns: repeat(2, 1fr); }
  .alerts { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 760px) {
  .marker { width: 18px; height: 18px; font-size: 7.5px; }
  .marker::after { inset: -4px; }
  .chart-annot { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; padding-top: 16px; margin-bottom: 34px; }
  .sec-index { padding-top: 0; }
  .sec-title h2 { margin-top: 0; }
  .sec-title .lede { font-size: 15px; }
  .hero-meta span:nth-child(2) { display: none; }
  .hero h1 { margin-top: 28px; }
  .legend { grid-template-columns: repeat(3, 1fr); }
  .legend button:nth-child(4), .legend button:nth-child(5) { grid-column: span 1; }
  .anatomy-top { flex-direction: column; gap: 6px; margin-bottom: 22px; }
  .bar { height: 54px; }
  .seg span { font-size: 7.5px; left: 6px; bottom: 6px; }
  .seg.cached span { font-size: 7px; left: 4px; letter-spacing: 0; }
  .bracket { display: none; }
  .bar-wrap { padding-top: 0; }
  .compare { grid-template-columns: 1fr; }
  .truth-quote { max-width: 18ch; }
  .shot-foot { flex-direction: column; gap: 6px; }
  .shots-tabs button { padding: 6px 7px; font-size: 7.5px; }
  .shots-title { display: none; }
  .spec { grid-template-columns: 34px 1fr 58px; gap: 10px 14px; }
  .spec p { grid-column: 2 / -1; }
  .spec-tag { grid-column: 3; grid-row: 1; align-self: start; }
  .spec h3 { grid-column: 2; }
  .spec-num { grid-row: 1; }
  .disk-note { flex-direction: column; gap: 8px; }
  .manifest-foot { flex-direction: column; gap: 4px; }
  .manifest-foot span:last-child { text-align: left; }
  .disk-main small { max-width: 44vw; }
  .chart-x span:nth-child(even) { display: none; }
  .y-labels { display: none; }
  .perm-head { flex-direction: column; gap: 6px; }
  .perm-scroll { overflow: visible; }
  .perm-table { min-width: 0; }
  .perm-table thead { display: none; }
  .perm-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-2);
  }
  .perm-table td { display: block; padding: 0; border: 0; }
  .perm-table td:first-child { grid-column: 1; grid-row: 1; }
  .perm-table td:last-child { grid-column: 2; grid-row: 1; text-align: right; }
  .perm-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 560px) {
  .menubar-meta .net { display: none; }
  .hero { padding-top: 104px; padding-bottom: 58px; }
  .hero h1 { font-size: clamp(40px, 11.4vw, 58px); letter-spacing: -0.045em; }
  .hero-bottom { gap: 38px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cmd { width: 100%; align-items: flex-start; padding: 10px 10px 10px 12px; }
  .cmd .dollar { padding-top: 1px; }
  .cmd code { font-size: 10.5px; white-space: normal; overflow: visible; line-height: 1.55; word-break: break-word; text-align: left; }
  .cmd .copy { margin-top: -1px; }
  .text-link { align-self: flex-start; }
  .hero-visual { max-width: 100%; }
  .shell { padding: 13px; border-radius: 20px; }
  .pop { padding: 14px; }
  .rail-inner { grid-template-columns: repeat(2, 1fr); }
  .rail-item { padding: 15px 0 15px 14px; }
  .rail-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .rail-item:nth-child(4) { border-left: 1px solid var(--line-2); padding-left: 14px; border-bottom: 1px solid var(--line-2); }
  .rail-item:nth-child(5) { padding-left: 14px; }
  .rail-item b { font-size: 22px; }
  .legend { grid-template-columns: repeat(2, 1fr); }
  .compare-num { font-size: 26px; }
  .shot-legend { grid-template-columns: 1fr; }
  .markers { display: none; }
  .freeze-controls .spark { display: none; }
  .hist-side { grid-template-columns: 1fr; }
  .chart-panel { padding: 13px 12px 11px; }
  .chart-x { font-size: 7px; }
  .spec { grid-template-columns: 28px 1fr; }
  .spec-tag { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 2px; }
  .spec p { grid-column: 2; }
  .spec h3 { grid-column: 2; }
  .installer pre { font-size: 10px; padding: 15px; }
  .term pre { font-size: 10px; white-space: normal; overflow-x: visible; line-height: 1.9; }
  .trow { display: block; margin-bottom: 9px; }
  .trow:last-child { margin-bottom: 0; }
  .trow .c { display: block; font-size: 9px; }
  .manifest-head > .mono:first-child { display: none; }
  .close h2 { font-size: clamp(40px, 11vw, 62px); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer nav { gap: 14px; flex-wrap: wrap; }
}
