/* ChipPilot v2 — additions
   Command-center hero, manifesto display, metrics, packet anatomy,
   skeptics FAQ, pricing, horizontal roadmap, subtle motion.
*/

/* ====================== MOTION PRIMITIVES ====================== */
@keyframes cp-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
@keyframes cp-tick  { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes cp-scan  { 0% { transform: translateX(-30%); } 100% { transform: translateX(130%); } }
@keyframes cp-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes cp-drift { from { background-position: 0 0; } to { background-position: 56px 56px; } }
@keyframes cp-dash  { to { stroke-dashoffset: -32; } }

.cursor {
  display: inline-block;
  width: 7px; height: 1.05em;
  background: var(--acc);
  vertical-align: -2px;
  margin-left: 2px;
  animation: cp-blink 1.05s steps(1) infinite;
}

.led {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
  animation: cp-pulse 1.6s ease-in-out infinite;
}
.led--ok  { background: var(--ok);   box-shadow: 0 0 8px var(--ok); }
.led--err { background: var(--err);  box-shadow: 0 0 8px var(--err); }
.led--info{ background: var(--info); box-shadow: 0 0 8px var(--info); }
.led--warn{ background: var(--warn); box-shadow: 0 0 6px var(--warn); }

/* ====================== HERO: COMMAND CENTER ====================== */
.cc {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}
.cc-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.cc-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}
.cc-stat::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--acc); opacity: 0.5;
}
.cc-stat .k {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--fg-3); text-transform: uppercase;
}
.cc-stat .v {
  font-family: var(--f-mono); font-size: 22px;
  color: var(--fg); letter-spacing: -0.02em;
  margin-top: 2px; display: flex; align-items: baseline; gap: 6px;
}
.cc-stat .v small {
  font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em;
}
.cc-stat .trend {
  position: absolute; right: 10px; top: 12px;
  font-family: var(--f-mono); font-size: 10px;
  color: var(--acc); letter-spacing: 0.06em;
}

.cc-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-2);
}
/* Scanning beam over the main panel */
.cc-main::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 60%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc) 8%, transparent), transparent);
  animation: cp-scan 6.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.cc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-1);
  background: linear-gradient(to bottom, var(--bg-3), var(--surface));
  position: relative; z-index: 2;
}
.cc-head .left { display:flex; align-items:center; gap:10px; min-width:0; }
.cc-head .title { font-family: var(--f-mono); font-size: 12px; color: var(--fg-1); letter-spacing: 0.02em; }
.cc-head .pill {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--acc); text-transform: uppercase;
  border: 1px solid var(--acc-line); background: var(--acc-soft);
  padding: 2px 8px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 6px;
}

.cc-body { padding: 14px; position: relative; z-index: 2; }
.cc-runlist {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.cc-runlist .row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border-1);
  border-radius: 6px;
  background: var(--bg-1);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-1);
}
.cc-runlist .row.active {
  border-color: var(--acc-line);
  background: color-mix(in srgb, var(--acc) 6%, var(--surface));
}
.cc-runlist .row .id { color: var(--fg-3); }
.cc-runlist .row .label { color: var(--fg-1); }
.cc-runlist .row .meta {
  color: var(--fg-3); font-size: 11px;
}
.cc-runlist .row .bar {
  width: 80px; height: 4px; background: var(--bg-3);
  border-radius: 999px; overflow: hidden;
}
.cc-runlist .row .bar i {
  display: block; height: 100%; background: var(--acc);
}

.cc-foot {
  background: var(--bg-1);
  border-top: 1px solid var(--border-1);
  padding: 0;
}
.cc-log {
  height: 84px;
  overflow: hidden;
  position: relative;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.7;
  padding: 8px 14px;
  color: var(--fg-1);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 4px), transparent 100%);
}
.cc-log .scroller { animation: cp-log 18s linear infinite; }
@keyframes cp-log {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.cc-log .l .ts { color: var(--fg-3); margin-right: 8px; }
.cc-log .l .lev { color: var(--fg-2); margin-right: 8px; }
.cc-log .l .ok { color: var(--ok); }
.cc-log .l .err { color: var(--err); }
.cc-log .l .info { color: var(--info); }
.cc-log .l .acc { color: var(--acc); }

/* ====================== HERO TWEAKS ====================== */
.hero h1 .tick {
  display: inline-block;
  color: var(--acc);
  font-style: italic;
  font-weight: 400;
}

/* ====================== MANIFESTO DISPLAY ====================== */
.manifesto {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, color-mix(in srgb, var(--acc) 7%, transparent) 0%, transparent 70%),
    var(--bg);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.manifesto .die-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.6;
}
.manifesto .container { position: relative; z-index: 1; }
.manifesto h2 {
  font-size: clamp(36px, 6vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 380;
  max-width: 18ch;
}
.manifesto h2 em {
  font-style: italic;
  color: var(--acc);
  font-weight: 380;
}
.manifesto h2 span.struck {
  display: inline-block;
  position: relative;
  color: var(--fg-3);
}
.manifesto h2 span.struck::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; top: 56%; height: 0.08em;
  background: var(--fg-3);
  transform: rotate(-2deg);
}
.manifesto .sig {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  max-width: 920px;
}
.manifesto .sig .row {
  display: flex; flex-direction: column; gap: 6px;
}
.manifesto .sig .k {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--fg-3); text-transform: uppercase;
}
.manifesto .sig .v {
  font-size: 17px;
  color: var(--fg-1);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .manifesto { padding: 84px 0; }
  .manifesto .sig { grid-template-columns: 1fr; }
}

/* ====================== METRICS THAT MATTER ====================== */
.metrics {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}
.metrics-note {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.5;
}
.metrics .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  min-height: 280px;
}
.metrics .card.feature { grid-row: span 2; }
.metrics .head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.metrics .head .k {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--fg-3); text-transform: uppercase;
}
.metrics .head h4 { font-size: 18px; margin-top: 4px; }
.metrics .big {
  font-family: var(--f-mono);
  font-size: 56px;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.metrics .big sup {
  font-size: 18px; vertical-align: super; color: var(--acc); margin-left: 6px;
  letter-spacing: 0.04em;
}
.metrics .sub {
  color: var(--fg-2); font-size: 13px;
}
.metrics .chart {
  flex: 1; display: flex; align-items: flex-end;
  border-top: 1px dashed var(--border-1); padding-top: 14px;
  min-height: 120px;
}
.metrics .chart svg { width: 100%; height: 130px; display: block; }
@media (max-width: 980px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics .card.feature { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 620px) {
  .metrics { grid-template-columns: 1fr; }
  .metrics .card.feature { grid-column: auto; }
}

/* ====================== EVIDENCE PACKET ANATOMY ====================== */
.packet {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.packet .stack {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.packet .sheet {
  position: absolute;
  width: 320px;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.6);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-2);
}
.packet .sheet h5 {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--fg-3); text-transform: uppercase; margin: 0 0 8px;
  font-weight: 500;
}
.packet .sheet.s1 { transform: translate(-110px, -120px) rotate(-6deg); }
.packet .sheet.s2 { transform: translate(70px, -50px) rotate(3deg); }
.packet .sheet.s3 { transform: translate(-50px, 60px) rotate(-2deg); }
.packet .sheet.s4 { transform: translate(90px, 150px) rotate(5deg); z-index: 2; }

.packet .legend {
  display: flex; flex-direction: column; gap: 20px;
}
.packet .legend .item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-1);
}
.packet .legend .item:last-child { border-bottom: 0; }
.packet .legend .item .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--acc);
  letter-spacing: 0.18em;
  border: 1px solid var(--acc-line);
  border-radius: 4px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--acc-soft);
}
.packet .legend .item h4 { font-size: 16px; }
.packet .legend .item p { font-size: 13px; color: var(--fg-2); margin-top: 4px; }
.packet .legend .item .tag {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--fg-3); letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .packet { grid-template-columns: 1fr; }
  .packet .stack { height: 360px; }
}

/* ====================== SKEPTICS FAQ ====================== */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.faq .q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.faq .q .num {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.18em; color: var(--fg-3);
}
.faq .q h3 {
  font-size: 18px; letter-spacing: -0.01em;
  color: var(--fg);
}
.faq .q h3 .q-mark { color: var(--acc); margin-right: 6px; }
.faq .q p { font-size: 14px; color: var(--fg-1); line-height: 1.55; }
.faq .q .receipt {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  border-top: 1px dashed var(--border-1);
  padding-top: 10px;
  display: flex; align-items: center; gap: 8px;
}
.faq .q .receipt .led { width: 5px; height: 5px; }
@media (max-width: 720px) { .faq { grid-template-columns: 1fr; } }

/* ====================== PRICING ====================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pricing .tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  min-height: 460px;
}
.pricing .tier.featured {
  background: color-mix(in srgb, var(--acc) 6%, var(--surface));
  border-color: var(--acc-line);
}
.pricing .tier .badge {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acc);
  border: 1px solid var(--acc-line);
  border-radius: 3px;
  padding: 2px 8px;
  background: var(--acc-soft);
}
.pricing .tier .name {
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.16em; color: var(--fg-3);
  text-transform: uppercase;
}
.pricing .tier h3 {
  font-size: 32px; letter-spacing: -0.02em;
  font-weight: 480;
}
.pricing .tier .desc { color: var(--fg-2); font-size: 14px; }
.pricing .tier .price {
  font-family: var(--f-mono);
  font-size: 28px;
  color: var(--fg);
  letter-spacing: -0.02em;
  border-top: 1px solid var(--border-1);
  padding-top: 18px;
}
.pricing .tier .price small {
  display: block;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.pricing .tier ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.pricing .tier ul li {
  font-size: 13.5px;
  color: var(--fg-1);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  line-height: 1.4;
}
.pricing .tier ul li .tick { color: var(--acc); font-family: var(--f-mono); font-size: 12px; padding-top: 2px; }
.pricing .tier .cta-btn {
  margin-top: auto;
}
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr; } }

/* ====================== HORIZONTAL ROADMAP TIMELINE ====================== */
.timeline {
  position: relative;
  padding: 16px 0 0;
}
.timeline .track {
  position: relative;
  height: 2px;
  background: var(--border);
  margin: 60px 16px 28px;
  border-radius: 999px;
}
.timeline .track .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 38%;
  background: linear-gradient(to right, var(--acc), color-mix(in srgb, var(--acc) 40%, transparent));
  border-radius: 999px;
}
.timeline .marks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline .mark {
  position: relative;
  padding: 0 16px;
  display: flex; flex-direction: column; gap: 8px;
  text-align: left;
}
.timeline .mark .node {
  position: absolute;
  left: 16px;
  top: -34px;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 2px solid var(--border-2);
}
.timeline .mark.shipping .node {
  background: var(--acc);
  border-color: var(--acc);
  box-shadow: 0 0 0 4px var(--acc-soft);
}
.timeline .mark.active .node {
  background: var(--bg-1);
  border-color: var(--acc);
}
.timeline .mark .ver {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.18em;
  text-transform: uppercase;
}
.timeline .mark.shipping .ver { color: var(--acc); }
.timeline .mark h4 { font-size: 17px; }
.timeline .mark p { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
@media (max-width: 880px) {
  .timeline .track { display: none; }
  .timeline .marks { grid-template-columns: 1fr; gap: 32px; }
  .timeline .mark { padding-left: 0; }
  .timeline .mark .node { position: static; margin-bottom: 8px; }
}

/* ====================== TYPOGRAPHIC OVERLINE SECTION HEAD ====================== */
.bigeyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.bigeyebrow::before, .bigeyebrow::after {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: var(--fg-3);
}

/* ====================== HERO ANIMATED PULSE BG ====================== */
.hero .pulse-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 90%);
  animation: cp-drift 24s linear infinite;
  pointer-events: none;
}
.hero .hero-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 75% 50%, color-mix(in srgb, var(--acc) 8%, transparent) 0%, transparent 60%);
  mix-blend-mode: screen;
}

/* ====================== UTILITIES ====================== */
.divider-tape {
  height: 28px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-1) 0 12px,
      var(--bg-2) 12px 14px
    );
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.divider-tape::before {
  content: "EVIDENCE · TOOL-GATED · POLICY-BOUNDED · REPRODUCIBLE · EVIDENCE · TOOL-GATED · POLICY-BOUNDED · REPRODUCIBLE · ";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  padding: 0 20px;
  animation: marq 60s linear infinite;
}

/* ====================== FAB / SCROLL CUE ====================== */
.scroll-cue {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10.5px; color: var(--fg-3);
  letter-spacing: 0.16em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: cp-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.scroll-cue .bar {
  width: 1px; height: 22px; background: linear-gradient(to bottom, transparent, var(--fg-3));
}

/* ====================== LIVE STATUS RING (nav) ====================== */
.live-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-2); letter-spacing: 0.04em;
  padding: 4px 10px;
  border: 1px solid var(--border-1);
  border-radius: 999px;
  background: var(--bg-2);
  white-space: nowrap;
  flex-shrink: 0;
}
.live-status .led { width: 6px; height: 6px; }
@media (max-width: 1080px) {
  .live-status { display: none; }
}

@media (min-width: 1081px) and (max-width: 1320px) {
  .hero h1 {
    font-size: clamp(54px, 4.8vw, 68px);
  }

  .hero-stats {
    margin-top: 32px;
  }
}

/* ====================== CTA UPGRADE ====================== */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.cta-grid .panel {
  padding: 26px;
}
.cta-form input, .cta-form textarea {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  color: var(--fg);
  padding: 10px 12px;
  border-radius: 6px;
  font: 13px var(--f-mono);
  outline: none;
}
.cta-form input:focus, .cta-form textarea:focus {
  border-color: var(--acc-line);
  background: color-mix(in srgb, var(--acc) 4%, var(--bg-1));
}
.cta-form .row { display: flex; gap: 10px; }
.cta-form .row > * { flex: 1; }
.cta-form label {
  display: block;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 6px;
}
.cta-form .submit {
  background: var(--acc); color: var(--acc-ink);
  border: 1px solid var(--acc);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
@media (max-width: 880px) { .cta-grid { grid-template-columns: 1fr; } }

/* ====================== PRODUCTION RESPONSIVE NAV ====================== */
.mobile-only,
.nav-menu-button {
  display: none;
}

.nav-menu-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-2);
  color: var(--fg);
}

.nav-menu-button span {
  display: block;
  width: 15px;
  height: 1px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav.nav-open .nav-menu-button span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav.nav-open .nav-menu-button span:nth-child(2) {
  opacity: 0;
}

.nav.nav-open .nav-menu-button span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 920px) {
  .nav-menu-button {
    display: inline-flex;
  }

  .mobile-only {
    display: block;
  }

  .nav.nav-open .nav-links {
    display: flex;
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    box-shadow: var(--shadow-2);
  }

  .nav.nav-open .nav-links a {
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .nav-cta {
    display: none;
  }

  .logo .ver {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 24px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 .acc-word {
    display: inline;
    white-space: normal;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions .btn {
    max-width: 100%;
  }

  .cc-strip {
    grid-template-columns: 1fr;
  }

  .cc-head {
    align-items: flex-start;
    gap: 10px;
  }

  .cc-head .title {
    white-space: normal;
  }

  .cc-runlist .row {
    grid-template-columns: 52px 1fr;
  }

  .cc-runlist .row .bar,
  .cc-runlist .row .meta {
    grid-column: 2;
  }

  .cc-runlist .row .bar {
    width: 100%;
  }

  .evidence-grid,
  .problem-grid {
    grid-template-columns: 1fr !important;
  }

  .evidence-grid > *,
  .evidence-grid .panel,
  .demo-pane .col {
    min-width: 0;
  }

  .agent .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .agent .footer .muted {
    line-height: 1.55;
    text-align: left;
  }

  .panel-head,
  .panel-head .lhs {
    flex-wrap: wrap;
  }

  .panel-body > div[style*="display:flex"] {
    flex-wrap: wrap;
  }

  pre.code,
  .code,
  .log {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }

  .arch .arch-grid {
    display: grid;
    gap: 10px;
    min-height: auto;
    min-width: 0;
  }

  .arch .arch-grid > svg {
    display: none;
  }

  .arch .anode,
  .arch .anode.core,
  .arch .anode.tool {
    min-width: 0 !important;
    position: static !important;
    width: auto;
  }

  .arch .arch-grid > div[style*="position:absolute"] {
    position: static !important;
    text-align: left;
  }

  .cursor-glow {
    display: none !important;
  }

  .marquee {
    contain: paint;
    max-width: 100vw;
  }

  .demo {
    contain: layout paint;
  }

  .demo-tabs {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .demo-tabs button {
    align-items: flex-start;
    border-right: 0;
    min-width: 0;
    padding: 14px 18px 14px 20px;
    width: 100%;
    white-space: normal;
    border-bottom: 1px solid var(--border-1);
  }

  .demo-tabs button:last-child {
    border-bottom: 0;
  }

  .demo-tabs button.on::after {
    bottom: 0;
    height: auto;
    right: auto;
    top: 0;
    width: 3px;
  }

  .demo-tabs button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--acc) 70%, white 10%);
    outline-offset: -3px;
  }

  .demo-tabs .lab {
    display: block;
  }

  .packet .stack {
    align-items: stretch;
    display: grid;
    gap: 10px;
    height: auto;
    min-height: 0;
  }

  .packet .sheet {
    position: static;
    transform: none !important;
    width: 100%;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 40px;
  }

  .hero-meta {
    gap: 8px;
  }

  .chip {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
